Class: OrigenTesters::IGXLBasedTester::Base::SupplyLevel

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

Direct Known Subclasses

UltraFLEX::SupplyLevel

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ SupplyLevel

:nodoc:



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/origen_testers/igxl_based_tester/base/level_supply.rb', line 9

def initialize(options = {}) # :nodoc:
  options = {
    vmain: 1.8,                # Main supply voltage
    valt:  1.8,                # Alternate supply voltage
    ifold: 1,                # Supply clamp current
    delay: 0                 # Supply power-up delay
  }.merge(options)
  @vmain = options[:vmain]
  @valt  = options[:valt]
  @ifold = options[:ifold]
  @delay = options[:delay]
end

Instance Attribute Details

#delayObject

Supply power-up delay



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

def delay
  @delay
end

#ifoldObject

Clamp current information



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

def ifold
  @ifold
end

#valtObject

Supply level information



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

def valt
  @valt
end

#vmainObject

Supply level information



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

def vmain
  @vmain
end

Instance Method Details

#==(level) ⇒ Object



22
23
24
25
26
27
28
29
30
31
# File 'lib/origen_testers/igxl_based_tester/base/level_supply.rb', line 22

def ==(level)
  if level.is_a? PinLevelSingle
    vmain == level.vmain &&
      valt == level.valt &&
      ifold == level.ifold &&
      delay == level.delay
  else
    super
  end
end

#platformObject



33
34
35
# File 'lib/origen_testers/igxl_based_tester/base/level_supply.rb', line 33

def platform
  Origen.interface.platform
end