Module: OrigenTesters::IGXLBasedTester::Base::Generator
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/origen_testers/igxl_based_tester/base/generator.rb
Instance Method Summary collapse
-
#ac_specset_sheets ⇒ Object
Returns a hash containing all AC specsets sheets.
-
#ac_specsets(filename = ac_specsets_filename) ⇒ Object
Returns the current AC specset sheet (as defined by the current value of ac_specsets_filename).
-
#ac_specsets_filename ⇒ Object
Returns the name of the current AC specset sheet.
-
#ac_specsets_filename=(name) ⇒ Object
Set the name of the current AC specsets sheet.
- #add_til(name, methods) ⇒ Object (also: #add_test_instance_library)
- #at_flow_start ⇒ Object private
- #at_run_start ⇒ Object (also: #reset_globals) private
-
#dc_specset_sheets ⇒ Object
Returns a hash containing all DC specsets sheets.
-
#dc_specsets(filename = dc_specsets_filename) ⇒ Object
Returns the current DC specset sheet (as defined by the current value of dc_specsets_filename).
-
#dc_specsets_filename ⇒ Object
Returns the name of the current DC specset sheet.
-
#dc_specsets_filename=(name) ⇒ Object
Set the name of the current DC specsets sheet.
-
#edges ⇒ Object
(also: #edge_collection)
Returns the current collection of edges that are defined.
-
#edgeset_sheets ⇒ Object
Returns a hash containing all edgeset sheets.
-
#edgesets(filename = edgesets_filename, options = {}) ⇒ Object
(also: #edge_sets)
Returns the current edgesets sheet (as defined by the current value of edgesets_filename).
-
#edgesets_filename ⇒ Object
Returns the name of the current edgesets sheet.
-
#edgesets_filename=(name) ⇒ Object
Set the name of the current edgesets sheet.
-
#flow(filename = nil) ⇒ Object
Returns the current flow sheet (as defined by the name of the current top level flow source file).
-
#flow_generators ⇒ Object
Returns an array containing all flow sheet generators.
-
#flow_sheets ⇒ Object
Returns a hash containing all flow sheets.
-
#global_spec_sheets ⇒ Object
Returns a hash containing all global spec sheets.
-
#global_specs(filename = global_specs_filename) ⇒ Object
Returns the current global spec sheet (as defined by the current value of global_specs_filename).
-
#global_specs_filename ⇒ Object
Returns the name of the current global spec sheet.
-
#global_specs_filename=(name) ⇒ Object
Set the name of the global specs sheet.
-
#initialize(options = {}) ⇒ Object
This is just to give all interfaces an initialize that takes one argument.
-
#job_sheets ⇒ Object
Returns a hash containing all job sheets.
-
#jobs_filename ⇒ Object
Returns the name of the current job sheet.
-
#jobs_filename=(name) ⇒ Object
Set the name of the jobs sheet.
-
#levels ⇒ Object
(also: #level_collection)
Returns the current collection of levels that are defined.
-
#levelset_sheets ⇒ Object
Returns a hash containing all levelset sheets.
-
#levelsets(filename = levelsets_filename) ⇒ Object
Returns the current levelsets sheet (as defined by the current value of levelsets_filename).
-
#levelsets_filename ⇒ Object
Returns the name of the current levelsets sheet.
-
#levelsets_filename=(name) ⇒ Object
Set the name of the current levelsets sheet.
-
#patgroup_sheets ⇒ Object
Returns a hash containing all pat group sheets.
-
#patgroups(filename = patgroups_filename) ⇒ Object
(also: #pat_groups, #pattern_groups)
Returns the current pattern groups sheet (as defined by the current value of patgroups_filename).
-
#patgroups_filename ⇒ Object
Returns the name of the current pat groups sheet.
-
#patgroups_filename=(name) ⇒ Object
Set the name of the current pattern groups sheet.
-
#patset_sheets ⇒ Object
Returns a hash containing all pat set sheets.
-
#patsets(filename = patsets_filename) ⇒ Object
(also: #pat_sets, #pattern_sets)
Returns the current pattern sets sheet (as defined by the current value of patsets_filename).
-
#patsets_filename ⇒ Object
Returns the name of the current pat sets sheet.
-
#patsets_filename=(name) ⇒ Object
Set the name of the current pattern sets sheet.
-
#patsubrs(filename = patsubrs_filename) ⇒ Object
(also: #pat_subrs, #pattern_subrs)
Returns the current pattern subroutine sheet (as defined by the current value of patsubrs_filename).
-
#pinmap_sheets ⇒ Object
Returns a hash containing all pinmap sheets.
-
#pinmaps(filename = pinmaps_filename) ⇒ Object
(also: #pin_maps)
Returns the current pinmaps sheet (as defined by the current value of pinmaps_filename).
-
#pinmaps_filename ⇒ Object
Returns the name of the current pinmaps sheet.
-
#pinmaps_filename=(name) ⇒ Object
Set the name of the current pinmap sheet.
-
#program_jobs(filename = jobs_filename) ⇒ Object
Returns the current job sheet (as defined by the current value of jobs_filename).
-
#reference_sheets ⇒ Object
Returns a hash containing all reference sheets.
-
#references(filename = references_filename) ⇒ Object
Returns the current reference sheet (as defined by the current value of references_filename).
-
#references_filename ⇒ Object
Returns the name of the current references sheet.
-
#references_filename=(name) ⇒ Object
Set the name of the references sheet.
-
#resources_filename=(name) ⇒ Object
Convenience method to allow the current name for the test instance, patsets, patgroups and timesets sheets to be set to the same value.
-
#sheet_generators ⇒ Object
Returns an array containing all sheet generators where a sheet generator is a flow, test instance, patset, pat group, edgeset, timeset, AC/DC/Global spec, job, or reference sheet.
-
#test_instance_sheets ⇒ Object
Returns a hash containing all test instance sheets.
-
#test_instances(filename = test_instances_filename) ⇒ Object
Returns the current test instances sheet (as defined by the current value of test_instances_filename).
-
#test_instances_filename ⇒ Object
Returns the name of the current test instances sheet.
-
#test_instances_filename=(name) ⇒ Object
Set the name of the current test instances sheet.
-
#timeset_sheets ⇒ Object
Returns a hash containing all timeset sheets.
-
#timesets(filename = timesets_filename, options = {}) ⇒ Object
(also: #time_sets, #timing_sets)
Returns the current timesets or timesets_basic sheet (as defined by the current value of timesets_filename).
-
#timesets_filename ⇒ Object
Returns the name of the current timesets sheet.
-
#timesets_filename=(name) ⇒ Object
Set the name of the current timesets sheet.
Instance Method Details
#ac_specset_sheets ⇒ Object
Returns a hash containing all AC specsets sheets
296 297 298 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 296 def ac_specset_sheets @@ac_specset_sheets ||= {} end |
#ac_specsets(filename = ac_specsets_filename) ⇒ Object
Returns the current AC specset sheet (as defined by the current value of ac_specsets_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
533 534 535 536 537 538 539 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 533 def ac_specsets(filename = ac_specsets_filename) f = filename.to_sym return ac_specset_sheets[f] if ac_specset_sheets[f] s = platform::ACSpecsets.new s.filename = f ac_specset_sheets[f] = s end |
#ac_specsets_filename ⇒ Object
Returns the name of the current AC specset sheet
231 232 233 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 231 def ac_specsets_filename @@ac_specsets_filename ||= @ac_specsets_filename || 'global' end |
#ac_specsets_filename=(name) ⇒ Object
Set the name of the current AC specsets sheet. This does not change the name of the current sheet, but rather sets the name of the sheet that will be generated the next time you access patgroups.
158 159 160 161 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 158 def ac_specsets_filename=(name) @ac_specsets_filename = name @@ac_specsets_filename = name end |
#add_til(name, methods) ⇒ Object Also known as: add_test_instance_library
20 21 22 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 20 def add_til(name, methods) custom_tils[name] = methods end |
#at_flow_start ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 26 def at_flow_start unless Origen.interface.resources_mode? flow.at_flow_start if flow end @@pinmaps_filename = nil @@test_instances_filename = nil @@patsets_filename = nil @@patgroups_filename = nil @@edgesets_filename = nil @@timesets_filename = nil @@levelsets_filename = nil @@ac_specsets_filename = nil @@dc_specsets_filename = nil @@global_specs_filename = nil @@jobs_filename = nil @@references_filename = nil end |
#at_run_start ⇒ Object Also known as: reset_globals
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 45 def at_run_start flow.at_run_start @@pinmap_sheets = nil @@test_instance_sheets = nil @@patset_sheets = nil @@flow_sheets = nil @@patgroup_sheets = nil @@edgeset_sheets = nil @@timeset_sheets = nil @@levelset_sheets = nil @@ac_specset_sheets = nil @@dc_specset_sheets = nil @@global_spec_sheets = nil @@job_sheets = nil @@reference_sheets = nil end |
#dc_specset_sheets ⇒ Object
Returns a hash containing all DC specsets sheets
301 302 303 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 301 def dc_specset_sheets @@dc_specset_sheets ||= {} end |
#dc_specsets(filename = dc_specsets_filename) ⇒ Object
Returns the current DC specset sheet (as defined by the current value of dc_specsets_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
547 548 549 550 551 552 553 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 547 def dc_specsets(filename = dc_specsets_filename) f = filename.to_sym return dc_specset_sheets[f] if dc_specset_sheets[f] s = platform::DCSpecsets.new s.filename = f dc_specset_sheets[f] = s end |
#dc_specsets_filename ⇒ Object
Returns the name of the current DC specset sheet
236 237 238 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 236 def dc_specsets_filename @@dc_specsets_filename ||= @dc_specsets_filename || 'global' end |
#dc_specsets_filename=(name) ⇒ Object
Set the name of the current DC specsets sheet. This does not change the name of the current sheet, but rather sets the name of the sheet that will be generated the next time you access patgroups.
166 167 168 169 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 166 def dc_specsets_filename=(name) @dc_specsets_filename = name @@dc_specsets_filename = name end |
#edges ⇒ Object Also known as: edge_collection
Returns the current collection of edges that are defined. These are used in support of creating edgeset/timeset sheets. They do not have an associated sheet of their own.
454 455 456 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 454 def edges @@edges ||= platform::Edges.new end |
#edgeset_sheets ⇒ Object
Returns a hash containing all edgeset sheets
281 282 283 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 281 def edgeset_sheets @@edgeset_sheets ||= {} end |
#edgesets(filename = edgesets_filename, options = {}) ⇒ Object Also known as: edge_sets
Returns the current edgesets sheet (as defined by the current value of edgesets_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
465 466 467 468 469 470 471 472 473 474 475 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 465 def edgesets(filename = edgesets_filename, = {}) = { timeset_basic: false }.merge() f = filename.to_sym return edgeset_sheets[f] if edgeset_sheets[f] e = platform::Edgesets.new() e.filename = f edgeset_sheets[f] = e end |
#edgesets_filename ⇒ Object
Returns the name of the current edgesets sheet
216 217 218 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 216 def edgesets_filename @@edgesets_filename ||= @edgesets_filename || 'global' end |
#edgesets_filename=(name) ⇒ Object
Set the name of the current edgesets sheet. This does not change the name of the current sheet, but rather sets the name of the sheet that will be generated the next time you access patgroups.
134 135 136 137 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 134 def edgesets_filename=(name) @edgesets_filename = name @@edgesets_filename = name end |
#flow(filename = nil) ⇒ Object
Returns the current flow sheet (as defined by the name of the current top level flow source file).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
422 423 424 425 426 427 428 429 430 431 432 433 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 422 def flow(filename = nil) if filename || Origen.file_handler.current_file filename ||= Origen.file_handler.current_file.basename('.rb').to_s # DH here need to reset the flow!! f = filename.to_sym return flow_sheets[f] if flow_sheets[f] # will return flow if already existing p = platform::Flow.new p.inhibit_output if Origen.interface.resources_mode? p.filename = f flow_sheets[f] = p end end |
#flow_generators ⇒ Object
Returns an array containing all flow sheet generators. All Origen program generators must implement this method
347 348 349 350 351 352 353 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 347 def flow_generators g = [] flow_sheets.each do |name, sheet| g << sheet end g end |
#flow_sheets ⇒ Object
Returns a hash containing all flow sheets
271 272 273 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 271 def flow_sheets @@flow_sheets ||= {} end |
#global_spec_sheets ⇒ Object
Returns a hash containing all global spec sheets
306 307 308 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 306 def global_spec_sheets @@global_spec_sheets ||= {} end |
#global_specs(filename = global_specs_filename) ⇒ Object
Returns the current global spec sheet (as defined by the current value of global_specs_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
561 562 563 564 565 566 567 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 561 def global_specs(filename = global_specs_filename) f = filename.to_sym return global_spec_sheets[f] if global_spec_sheets[f] s = platform::GlobalSpecs.new s.filename = f global_spec_sheets[f] = s end |
#global_specs_filename ⇒ Object
Returns the name of the current global spec sheet
241 242 243 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 241 def global_specs_filename @@global_specs_filename ||= @global_specs_filename || 'global' end |
#global_specs_filename=(name) ⇒ Object
Set the name of the global specs sheet. This does not change the name of the current sheet, but rather sets the name of the sheet that will be generated the next time you access patgroups.
174 175 176 177 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 174 def global_specs_filename=(name) @global_specs_filename = name @@global_specs_filename = name end |
#initialize(options = {}) ⇒ Object
This is just to give all interfaces an initialize that takes one argument. The super is important for cases where this module is included late via Testers::ProgramGenerators
16 17 18 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 16 def initialize( = {}) super end |
#job_sheets ⇒ Object
Returns a hash containing all job sheets
311 312 313 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 311 def job_sheets @@job_sheets ||= {} end |
#jobs_filename ⇒ Object
Returns the name of the current job sheet
246 247 248 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 246 def jobs_filename @@jobs_filename ||= @jobs_filename || 'global' end |
#jobs_filename=(name) ⇒ Object
Set the name of the jobs sheet. This does not change the name of the current sheet, but rather sets the name of the sheet that will be generated the next time you access patgroups.
182 183 184 185 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 182 def jobs_filename=(name) @jobs_filename = name @@jobs_filename = name end |
#levels ⇒ Object Also known as: level_collection
Returns the current collection of levels that are defined. These are used in support of creating levelset sheets. They do not have an associated sheet of their own.
506 507 508 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 506 def levels @@levels ||= platform::Levels.new end |
#levelset_sheets ⇒ Object
Returns a hash containing all levelset sheets
291 292 293 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 291 def levelset_sheets @@levelset_sheets ||= {} end |
#levelsets(filename = levelsets_filename) ⇒ Object
Returns the current levelsets sheet (as defined by the current value of levelsets_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
517 518 519 520 521 522 523 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 517 def levelsets(filename = levelsets_filename) f = filename.to_sym return levelset_sheets[f] if levelset_sheets[f] t = platform::Levelset.new t.filename = f levelset_sheets[f] = t end |
#levelsets_filename ⇒ Object
Returns the name of the current levelsets sheet
226 227 228 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 226 def levelsets_filename @@levelsets_filename ||= @levelsets_filename || 'global' end |
#levelsets_filename=(name) ⇒ Object
Set the name of the current levelsets sheet. This does not change the name of the current sheet, but rather sets the name of the sheet that will be generated the next time you access patgroups.
150 151 152 153 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 150 def levelsets_filename=(name) @levelsets_filename = name @@levelsets_filename = name end |
#patgroup_sheets ⇒ Object
Returns a hash containing all pat group sheets
276 277 278 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 276 def patgroup_sheets @@patgroup_sheets ||= {} end |
#patgroups(filename = patgroups_filename) ⇒ Object Also known as: pat_groups, pattern_groups
Returns the current pattern groups sheet (as defined by the current value of patgroups_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
441 442 443 444 445 446 447 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 441 def patgroups(filename = patgroups_filename) f = filename.to_sym return patgroup_sheets[f] if patgroup_sheets[f] p = platform::Patgroups.new p.filename = f patgroup_sheets[f] = p end |
#patgroups_filename ⇒ Object
Returns the name of the current pat groups sheet
211 212 213 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 211 def patgroups_filename @@patgroups_filename ||= @patgroups_filename || 'global' end |
#patgroups_filename=(name) ⇒ Object
Set the name of the current pattern groups sheet. This does not change the name of the current sheet, but rather sets the name of the sheet that will be generated the next time you access patgroups.
126 127 128 129 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 126 def patgroups_filename=(name) @patgroups_filename = name @@patgroups_filename = name end |
#patset_sheets ⇒ Object
Returns a hash containing all pat set sheets
266 267 268 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 266 def patset_sheets @@patset_sheets ||= {} end |
#patsets(filename = patsets_filename) ⇒ Object Also known as: pat_sets, pattern_sets
Returns the current pattern sets sheet (as defined by the current value of patsets_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
390 391 392 393 394 395 396 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 390 def patsets(filename = patsets_filename) f = filename.to_sym return patset_sheets[f] if patset_sheets[f] p = platform::Patsets.new p.filename = f patset_sheets[f] = p end |
#patsets_filename ⇒ Object
Returns the name of the current pat sets sheet
206 207 208 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 206 def patsets_filename @@patsets_filename ||= @patsets_filename || 'global' end |
#patsets_filename=(name) ⇒ Object
Set the name of the current pattern sets sheet. This does not change the name of the current sheet, but rather sets the name of the sheet that will be generated the next time you access patsets.
118 119 120 121 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 118 def patsets_filename=(name) @patsets_filename = name @@patsets_filename = name end |
#patsubrs(filename = patsubrs_filename) ⇒ Object Also known as: pat_subrs, pattern_subrs
Returns the current pattern subroutine sheet (as defined by the current value of patsubrs_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
406 407 408 409 410 411 412 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 406 def patsubrs(filename = patsubrs_filename) f = filename.to_sym return patsubr_sheets[f] if patsubr_sheets[f] p = platform::Patsubrs.new p.filename = f patsubr_sheets[f] = p end |
#pinmap_sheets ⇒ Object
Returns a hash containing all pinmap sheets
256 257 258 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 256 def pinmap_sheets @@pinmap_sheets ||= {} end |
#pinmaps(filename = pinmaps_filename) ⇒ Object Also known as: pin_maps
Returns the current pinmaps sheet (as defined by the current value of pinmaps_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
361 362 363 364 365 366 367 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 361 def pinmaps(filename = pinmaps_filename) f = filename.to_sym return pinmap_sheets[f] if pinmap_sheets[f] p = platform::Pinmap.new p.filename = f pinmap_sheets[f] = p end |
#pinmaps_filename ⇒ Object
Returns the name of the current pinmaps sheet
196 197 198 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 196 def pinmaps_filename @@pinmaps_filename ||= @pinmaps_filename || 'global' end |
#pinmaps_filename=(name) ⇒ Object
Set the name of the current pinmap sheet. This does not change the name of the current sheet, but rather sets the name of the sheet that will be generated the next time you access pinmaps.
102 103 104 105 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 102 def pinmaps_filename=(name) @pinmaps_filename = name @@pinmaps_filename = name end |
#program_jobs(filename = jobs_filename) ⇒ Object
Returns the current job sheet (as defined by the current value of jobs_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
575 576 577 578 579 580 581 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 575 def program_jobs(filename = jobs_filename) f = filename.to_sym return job_sheets[f] if job_sheets[f] j = platform::Jobs.new j.filename = f job_sheets[f] = j end |
#reference_sheets ⇒ Object
Returns a hash containing all reference sheets
316 317 318 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 316 def reference_sheets @@reference_sheets ||= {} end |
#references(filename = references_filename) ⇒ Object
Returns the current reference sheet (as defined by the current value of references_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
589 590 591 592 593 594 595 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 589 def references(filename = references_filename) f = filename.to_sym return reference_sheets[f] if reference_sheets[f] r = platform::References.new r.filename = f reference_sheets[f] = r end |
#references_filename ⇒ Object
Returns the name of the current references sheet
251 252 253 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 251 def references_filename @@references_filename ||= @references_filename || 'global' end |
#references_filename=(name) ⇒ Object
Set the name of the references sheet. This does not change the name of the current sheet, but rather sets the name of the sheet that will be generated the next time you access patgroups.
190 191 192 193 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 190 def references_filename=(name) @references_filename = name @@references_filename = name end |
#resources_filename=(name) ⇒ Object
Convenience method to allow the current name for the test instance, patsets, patgroups and timesets sheets to be set to the same value.
# my j750 interface
resources_filename = "common"
# The above is equivalent to:
pinmaps_filename = "common"
test_instances_filename = "common"
patsets_filename = "common"
patgroups_filename = "common"
edgesets_filename = "common"
timesets_filename = "common"
levelsets_filename = "common"
ac_specsets_filename = "common"
dc_specsets_filename = "common"
global_specs_filename = "common"
jobs_filename = "common"
references_filename = "common"
84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 84 def resources_filename=(name) self.pinmaps_filename = name self.test_instances_filename = name self.patsets_filename = name self.patgroups_filename = name self.edgesets_filename = name self.timesets_filename = name self.levelsets_filename = name self.ac_specsets_filename = name self.dc_specsets_filename = name self.global_specs_filename = name self.jobs_filename = name self.references_filename = name end |
#sheet_generators ⇒ Object
Returns an array containing all sheet generators where a sheet generator is a flow, test instance, patset, pat group, edgeset, timeset, AC/DC/Global spec, job, or reference sheet. All Origen program generators must implement this method
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 324 def sheet_generators # :nodoc: g = [] # Generate all of these sheets verbatim [pinmap_sheets, flow_sheets, test_instance_sheets, patset_sheets, patgroup_sheets, levelset_sheets, ac_specset_sheets, dc_specset_sheets, global_spec_sheets, job_sheets, reference_sheets].each do |sheets| sheets.each do |name, sheet| g << sheet end end # Choose whether to generate edgeset/timset or timeset_basic sheets # * Skip edgeset sheet generation when timeset_basic is selected [edgeset_sheets, timeset_sheets].each do |sheets| sheets.each do |name, sheet| next if sheet.class.name =~ /Edgesets$/ && sheet.ts_basic g << sheet end end g end |
#test_instance_sheets ⇒ Object
Returns a hash containing all test instance sheets
261 262 263 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 261 def test_instance_sheets @@test_instance_sheets ||= {} end |
#test_instances(filename = test_instances_filename) ⇒ Object
Returns the current test instances sheet (as defined by the current value of test_instances_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
376 377 378 379 380 381 382 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 376 def test_instances(filename = test_instances_filename) f = filename.to_sym return test_instance_sheets[f] if test_instance_sheets[f] t = platform::TestInstances.new t.filename = f test_instance_sheets[f] = t end |
#test_instances_filename ⇒ Object
Returns the name of the current test instances sheet
201 202 203 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 201 def test_instances_filename @@test_instances_filename ||= @test_instances_filename || 'global' end |
#test_instances_filename=(name) ⇒ Object
Set the name of the current test instances sheet. This does not change the name of the current sheet, but rather sets the name of the sheet that will be generated the next time you access test_instances.
110 111 112 113 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 110 def test_instances_filename=(name) @test_instances_filename = name @@test_instances_filename = name end |
#timeset_sheets ⇒ Object
Returns a hash containing all timeset sheets
286 287 288 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 286 def timeset_sheets @@timeset_sheets ||= {} end |
#timesets(filename = timesets_filename, options = {}) ⇒ Object Also known as: time_sets, timing_sets
Returns the current timesets or timesets_basic sheet (as defined by the current value of timesets_filename).
Pass in a filename argument to have a specific sheet returned instead.
If the sheet does not exist yet it will be created.
484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 484 def timesets(filename = timesets_filename, = {}) = { timeset_basic: false }.merge() f = filename.to_sym return timeset_sheets[f] if timeset_sheets[f] case [:timeset_basic] when true t = platform::TimesetsBasic.new() when false t = platform::Timesets.new() end t.filename = f timeset_sheets[f] = t end |
#timesets_filename ⇒ Object
Returns the name of the current timesets sheet
221 222 223 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 221 def timesets_filename @@timesets_filename ||= @timesets_filename || 'global' end |
#timesets_filename=(name) ⇒ Object
Set the name of the current timesets sheet. This does not change the name of the current sheet, but rather sets the name of the sheet that will be generated the next time you access patgroups.
142 143 144 145 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 142 def timesets_filename=(name) @timesets_filename = name @@timesets_filename = name end |