Class: OrigenTesters::IGXLBasedTester::Base::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/origen_testers/igxl_based_tester/base/job.rb

Direct Known Subclasses

UltraFLEX::Job

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(jname, options = {}) ⇒ Job

:nodoc:


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 25

def initialize(jname, options = {}) # :nodoc:
  @name = jname
  options[:pinmap] ? @pinmap         = [options[:pinmap]] : @pinmap         = []
  options[:instances] ? @instances      = [options[:instances]] : @instances      = []
  options[:flows] ? @flows          = [options[:flows]] : @flows          = []
  options[:ac_specs] ? @ac_specs       = [options[:ac_specs]] : @ac_specs       = []
  options[:dc_specs] ? @dc_specs       = [options[:dc_specs]] : @dc_specs       = []
  options[:patsets] ? @patsets        = [options[:patsets]] : @patsets        = []
  options[:patgroups] ? @patgroups      = [options[:patgroups]] : @patgroups      = []
  options[:bintables] ? @bintables      = [options[:bintables]] : @bintables      = []
  options[:cz] ? @cz             = [options[:cz]] : @cz             = []
  options[:test_procs] ? @test_procs     = [options[:test_procs]] : @test_procs     = []
  options[:mix_sig_timing] ? @mix_sig_timing = [options[:mix_sig_timing]] : @mix_sig_timing = []
  options[:wave_defs] ? @wave_defs      = [options[:wave_defs]] : @wave_defs      = []
  options[:psets] ? @psets          = [options[:psets]] : @psets          = []
  options[:signals] ? @signals        = [options[:signals]] : @signals        = []
  options[:port_map] ? @port_map       = [options[:port_map]] : @port_map       = []
  options[:fract_bus] ? @fract_bus      = [options[:fract_bus]] : @fract_bus      = []
  options[:concurrent_seq] ? @concurrent_seq = [options[:concurrent_seq]] : @concurrent_seq = []
  options[:comment] ? @comment        = options[:instances] : @comment        = nil
end

Instance Attribute Details

#ac_specsObject

Returns the value of attribute ac_specs.


9
10
11
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 9

def ac_specs
  @ac_specs
end

#bintablesObject

Returns the value of attribute bintables.


13
14
15
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 13

def bintables
  @bintables
end

#commentObject

Returns the value of attribute comment.


23
24
25
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 23

def comment
  @comment
end

#concurrent_seqObject

Returns the value of attribute concurrent_seq.


22
23
24
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 22

def concurrent_seq
  @concurrent_seq
end

#czObject

Returns the value of attribute cz.


14
15
16
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 14

def cz
  @cz
end

#dc_specsObject

Returns the value of attribute dc_specs.


10
11
12
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 10

def dc_specs
  @dc_specs
end

#flowsObject

Returns the value of attribute flows.


8
9
10
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 8

def flows
  @flows
end

#fract_busObject

Returns the value of attribute fract_bus.


21
22
23
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 21

def fract_bus
  @fract_bus
end

#instancesObject

Returns the value of attribute instances.


7
8
9
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 7

def instances
  @instances
end

#mix_sig_timingObject

Returns the value of attribute mix_sig_timing.


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

def mix_sig_timing
  @mix_sig_timing
end

#nameObject

Returns the value of attribute name.


5
6
7
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 5

def name
  @name
end

#patgroupsObject

Returns the value of attribute patgroups.


12
13
14
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 12

def patgroups
  @patgroups
end

#patsetsObject

Returns the value of attribute patsets.


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

def patsets
  @patsets
end

#pinmapObject

Returns the value of attribute pinmap.


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

def pinmap
  @pinmap
end

#port_mapObject

Returns the value of attribute port_map.


20
21
22
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 20

def port_map
  @port_map
end

#psetsObject

Returns the value of attribute psets.


18
19
20
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 18

def psets
  @psets
end

#signalsObject

Returns the value of attribute signals.


19
20
21
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 19

def signals
  @signals
end

#test_procsObject

Returns the value of attribute test_procs.


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

def test_procs
  @test_procs
end

#wave_defsObject

Returns the value of attribute wave_defs.


17
18
19
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 17

def wave_defs
  @wave_defs
end

Instance Method Details

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

Assigns job information for the given object


48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 48

def add_job_info(jname, options = {})
  @pinmap.push(options[:pinmap]) if options[:pinmap]
  @instances.push(options[:instances]) if options[:instances]
  @flows.push(options[:flows]) if options[:flows]
  @ac_specs.push(options[:ac_specs]) if options[:ac_specs]
  @dc_specs.push(options[:dc_specs]) if options[:dc_specs]
  @patsets.push(options[:patsets]) if options[:patsets]
  @patgroups.push(options[:patgroups]) if options[:patgroups]
  @bintables.push(options[:bintables]) if options[:bintables]
  @cz.push(options[:cz]) if options[:cz]
  @test_procs.push(options[:test_procs]) if options[:test_procs]
  @mix_sig_timing.push(options[:mix_sig_timing]) if options[:mix_sig_timing]
  @wave_defs.push(options[:wave_defs]) if options[:wave_defs]
  @psets.push(options[:psets]) if options[:psets]
  @signals.push(options[:signals]) if options[:signals]
  @port_map.push(options[:port_map]) if options[:port_map]
  @fract_bus.push(options[:fract_bus]) if options[:fract_bus]
  @concurrent_seq.push(options[:concurrent_seq]) if options[:concurrent_seq]
  @comment = options[:instances] if options[:instances]
end

#platformObject


69
70
71
# File 'lib/origen_testers/igxl_based_tester/base/job.rb', line 69

def platform
  Origen.interface.platform
end