Module: OrigenTesters::IGXLBasedTester::Base::Generator
- Extended by:
- ActiveSupport::Concern
- Includes:
- OrigenTesters::Interface
- Included in:
- J750::Generator, J750_HPT::Generator, UltraFLEX::Generator
- 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.
Methods included from OrigenTesters::Interface
#add_description!, #add_flow_enable, #add_flow_enable=, #add_meta!, #all_pattern_references, #app_identifier, #atp, #clean_referenced_patterns, #clear_pattern_references, #clear_top_level_flow, #close, #comment, #comments, #compile, #consume_comments, #context_changed?, #context_or_parameter_changed?, #descriptions, #discard_comments, #discard_top_level_flow, #flow_generator, #generating_sub_program?, #identity_map, #import, #merge_pattern_references, #on_program_completion, #parameter_changed?, #pattern_references, #pattern_references_name, #pattern_references_name=, #platform, #record_pattern_reference, #referenced_patterns, #render, #resources_mode, resources_mode?, #resources_mode?, #set_top_level_flow, #test, #top_level_flow, #unique_test_names, #unique_test_names=, with_resources_mode, write=, write?, #write?, #write_files
Methods included from ATP::FlowAPI
#atp, #atp=, #hi_limit, #limit, #lo_limit, #loop
Instance Method Details
#ac_specset_sheets ⇒ Object
Returns a hash containing all AC specsets sheets
297 298 299 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 297 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.
534 535 536 537 538 539 540 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 534 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
232 233 234 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 232 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.
159 160 161 162 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 159 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
302 303 304 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 302 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.
548 549 550 551 552 553 554 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 548 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
237 238 239 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 237 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.
167 168 169 170 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 167 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.
455 456 457 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 455 def edges @@edges ||= platform::Edges.new end |
#edgeset_sheets ⇒ Object
Returns a hash containing all edgeset sheets
282 283 284 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 282 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.
466 467 468 469 470 471 472 473 474 475 476 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 466 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
217 218 219 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 217 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.
135 136 137 138 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 135 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.
423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 423 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
348 349 350 351 352 353 354 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 348 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
272 273 274 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 272 def flow_sheets @@flow_sheets ||= {} end |
#global_spec_sheets ⇒ Object
Returns a hash containing all global spec sheets
307 308 309 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 307 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.
562 563 564 565 566 567 568 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 562 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
242 243 244 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 242 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.
175 176 177 178 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 175 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
312 313 314 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 312 def job_sheets @@job_sheets ||= {} end |
#jobs_filename ⇒ Object
Returns the name of the current job sheet
247 248 249 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 247 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.
183 184 185 186 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 183 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.
507 508 509 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 507 def levels @@levels ||= platform::Levels.new end |
#levelset_sheets ⇒ Object
Returns a hash containing all levelset sheets
292 293 294 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 292 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.
518 519 520 521 522 523 524 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 518 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
227 228 229 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 227 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.
151 152 153 154 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 151 def levelsets_filename=(name) @levelsets_filename = name @@levelsets_filename = name end |
#patgroup_sheets ⇒ Object
Returns a hash containing all pat group sheets
277 278 279 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 277 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.
442 443 444 445 446 447 448 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 442 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
212 213 214 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 212 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.
127 128 129 130 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 127 def patgroups_filename=(name) @patgroups_filename = name @@patgroups_filename = name end |
#patset_sheets ⇒ Object
Returns a hash containing all pat set sheets
267 268 269 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 267 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.
391 392 393 394 395 396 397 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 391 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
207 208 209 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 207 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.
119 120 121 122 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 119 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.
407 408 409 410 411 412 413 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 407 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
257 258 259 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 257 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.
362 363 364 365 366 367 368 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 362 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
197 198 199 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 197 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.
103 104 105 106 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 103 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.
576 577 578 579 580 581 582 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 576 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
317 318 319 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 317 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.
590 591 592 593 594 595 596 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 590 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
252 253 254 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 252 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.
191 192 193 194 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 191 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 98 |
# 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 self.pattern_references_name = 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
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 325 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
262 263 264 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 262 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.
377 378 379 380 381 382 383 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 377 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
202 203 204 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 202 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.
111 112 113 114 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 111 def test_instances_filename=(name) @test_instances_filename = name @@test_instances_filename = name end |
#timeset_sheets ⇒ Object
Returns a hash containing all timeset sheets
287 288 289 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 287 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.
485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 485 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
222 223 224 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 222 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.
143 144 145 146 |
# File 'lib/origen_testers/igxl_based_tester/base/generator.rb', line 143 def timesets_filename=(name) @timesets_filename = name @@timesets_filename = name end |