Class: OrigenTesters::IGXLBasedTester::Base::PinLevelSingle

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

Direct Known Subclasses

UltraFLEX::PinLevelSingle

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ PinLevelSingle

:nodoc:


11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/origen_testers/igxl_based_tester/base/level_io_se.rb', line 11

def initialize(options = {}) # :nodoc:
  options = {
    vil:       0,            # Input drive low
    vih:       1.8,            # Input drive high
    vol:       1.0,            # Output compare low
    voh:       0.8,            # Output compare high
    vcl:       -1,            # Voltage clamp low
    vch:       2.5,            # Voltage clamp high
    vt:        0.9,            # Termination voltage
    voutlotyp: 0,            #
    vouthityp: 0,            #
    dmode:     'Largeswing-VT' # Driver mode (possibly ATE-specific)
  }.merge(options)
  @vil       = options[:vil]
  @vih       = options[:vih]
  @vol       = options[:vol]
  @voh       = options[:voh]
  @vcl       = options[:vcl]
  @vch       = options[:vch]
  @vt        = options[:vt]
  @voutlotyp = options[:voutlotyp]
  @vouthityp = options[:vouthityp]
  @dmode     = options[:dmode]
end

Instance Attribute Details

#dmodeObject

Returns the value of attribute dmode.


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

def dmode
  @dmode
end

#vchObject

Clamp level information


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

def vch
  @vch
end

#vclObject

Clamp level information


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

def vcl
  @vcl
end

#vihObject

Input level information


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

def vih
  @vih
end

#vilObject

Input level information


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

def vil
  @vil
end

#vohObject

Output level information


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

def voh
  @voh
end

#volObject

Output level information


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

def vol
  @vol
end

#vouthitypObject

Returns the value of attribute vouthityp.


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

def vouthityp
  @vouthityp
end

#voutlotypObject

Returns the value of attribute voutlotyp.


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

def voutlotyp
  @voutlotyp
end

#vtObject

Termination level information


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

def vt
  @vt
end

Instance Method Details

#==(level) ⇒ Object


36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/origen_testers/igxl_based_tester/base/level_io_se.rb', line 36

def ==(level)
  if level.is_a? PinLevelSingle
    vil == level.vil &&
      vih == level.vih &&
      vol == level.vol &&
      voh == level.voh &&
      vcl == level.vcl &&
      vch == level.vch &&
      vt == level.vt &&
      voutlotyp == level.voutlotyp &&
      vouthityp == level.vouthityp &&
      dmode == level.dmode
  else
    super
  end
end

#platformObject


53
54
55
# File 'lib/origen_testers/igxl_based_tester/base/level_io_se.rb', line 53

def platform
  Origen.interface.platform
end