Class: OrigenTesters::IGXLBasedTester::Base::SupplyLevel
- Inherits:
-
Object
- Object
- OrigenTesters::IGXLBasedTester::Base::SupplyLevel
- Defined in:
- lib/origen_testers/igxl_based_tester/base/level_supply.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#delay ⇒ Object
Supply power-up delay.
-
#ifold ⇒ Object
Clamp current information.
-
#valt ⇒ Object
Supply level information.
-
#vmain ⇒ Object
Supply level information.
Instance Method Summary collapse
- #==(level) ⇒ Object
-
#initialize(options = {}) ⇒ SupplyLevel
constructor
:nodoc:.
- #platform ⇒ Object
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( = {}) # :nodoc: = { vmain: 1.8, # Main supply voltage valt: 1.8, # Alternate supply voltage ifold: 1, # Supply clamp current delay: 0 # Supply power-up delay }.merge() @vmain = [:vmain] @valt = [:valt] @ifold = [:ifold] @delay = [:delay] end |
Instance Attribute Details
#delay ⇒ Object
Supply power-up delay
7 8 9 |
# File 'lib/origen_testers/igxl_based_tester/base/level_supply.rb', line 7 def delay @delay end |
#ifold ⇒ Object
Clamp current information
6 7 8 |
# File 'lib/origen_testers/igxl_based_tester/base/level_supply.rb', line 6 def ifold @ifold end |
#valt ⇒ Object
Supply level information
5 6 7 |
# File 'lib/origen_testers/igxl_based_tester/base/level_supply.rb', line 5 def valt @valt end |
#vmain ⇒ Object
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 |
#platform ⇒ Object
33 34 35 |
# File 'lib/origen_testers/igxl_based_tester/base/level_supply.rb', line 33 def platform Origen.interface.platform end |