Class: OrigenTesters::IGXLBasedTester::Base::Jobs

Inherits:
Object
  • Object
show all
Includes:
Generator
Defined in:
lib/origen_testers/igxl_based_tester/base/jobs.rb

Direct Known Subclasses

UltraFLEX::Jobs

Constant Summary collapse

OUTPUT_PREFIX =
nil
OUTPUT_POSTFIX =
nil

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Generator

#close, #collection, #collection=, #compiler, #current_dir, #dont_diff=, execute_source, #file_extension, #file_pipeline, #filename, #filename=, #identity_map, #import, #inhibit_output, #name, #on_close, original_reference_file, original_reference_file=, #output_file, #output_inhibited?, #platform, #reference_file, #render, #set_flow_description, #stats, #to_be_written?, #write_from_template, #write_to_file

Constructor Details

#initializeJobs

:nodoc:


11
12
13
# File 'lib/origen_testers/igxl_based_tester/base/jobs.rb', line 11

def initialize # :nodoc:
  @jobs = {}
end

Instance Attribute Details

#jobsObject

Returns the value of attribute jobs.


6
7
8
# File 'lib/origen_testers/igxl_based_tester/base/jobs.rb', line 6

def jobs
  @jobs
end

Instance Method Details

#add(jname, options = {}) ⇒ Object


15
16
17
18
# File 'lib/origen_testers/igxl_based_tester/base/jobs.rb', line 15

def add(jname, options = {})
  @jobs.key?(jname) ? @jobs[jname].add_job_info(jname, options) : @jobs[jname] = platform::Job.new(jname, options)
  @jobs[jname]
end

#finalize(options = {}) ⇒ Object


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/origen_testers/igxl_based_tester/base/jobs.rb', line 20

def finalize(options = {})
  @jobs.each do |_key, job|
    job.pinmap         = job.pinmap.flatten.uniq
    job.instances      = job.instances.flatten.uniq
    job.flows          = job.flows.flatten.uniq
    job.ac_specs       = job.ac_specs.flatten.uniq
    job.dc_specs       = job.dc_specs.flatten.uniq
    job.patsets        = job.patsets.flatten.uniq
    job.patgroups      = job.patgroups.flatten.uniq
    job.bintables      = job.bintables.flatten.uniq
    job.cz             = job.cz.flatten.uniq
    job.test_procs     = job.test_procs.flatten.uniq
    job.mix_sig_timing = job.mix_sig_timing.flatten.uniq
    job.wave_defs      = job.wave_defs.flatten.uniq
    job.psets          = job.psets.flatten.uniq
    job.signals        = job.signals.flatten.uniq
    job.port_map       = job.port_map.flatten.uniq
    job.fract_bus      = job.fract_bus.flatten.uniq
    job.concurrent_seq = job.concurrent_seq.flatten.uniq
  end
end