Class: Origen::Specs::Power_Supply

Inherits:
Object
  • Object
show all
Defined in:
lib/origen/specs/power_supply.rb

Overview

This class is used to store Power Supply Information at the SoC Level

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gen, act) ⇒ Power_Supply

Returns a new instance of Power_Supply.



7
8
9
10
# File 'lib/origen/specs/power_supply.rb', line 7

def initialize(gen, act)
  @generic = gen
  @actual = act
end

Instance Attribute Details

#actualObject

Returns the value of attribute actual.



5
6
7
# File 'lib/origen/specs/power_supply.rb', line 5

def actual
  @actual
end

#genericObject

Returns the value of attribute generic.



5
6
7
# File 'lib/origen/specs/power_supply.rb', line 5

def generic
  @generic
end