class Origen::Specs::Power_Supply
This class is used to store Power Supply Information at the SoC Level
Attributes
The Actual Power Supply Name. For example, GVDD could be the generic name and actual names can be G1VDD and G2VDD. GVDD ==> {G1VDD, G2VDD, G3VDD} DVDD ==> {D1VDD, D2VDD}
Display Name for the Voltage. Will be in html/dita code G1VDD –> G1V<sub>DD</sub>
Generic Power Supply Name. For example:
-
GVDD
-
DVDD
-
TVDD
-
EVDD
Input Display Name for the Voltage G1VDD –> G1V<sub>IN</sub>
Output Displat Name for the Voltage G1VDD –> G1V<sub>OUT</sub>
Voltages for the power supply. Needs to be supplied by a different source Voltages is an array for all possible values for that power supply DVDD ==>
* 1.8 V * 3.3 V
Public Class Methods
Source
# File lib/origen/specs/power_supply.rb, line 37 def initialize(gen, act) Origen.deprecate 'Origen::Specs::Power_Supply is deprecated, use Origen::PowerDomains::PowerDomain instead' @generic = gen @actual = act @voltages = [] @display_name = '' @input_display_name = '' @output_display_name = '' end
Initialize the variables
Public Instance Methods
Source
# File lib/origen/specs/power_supply.rb, line 55 def change_subscript(new_subscript) temp_display_name = @display_name.dup sub_input = temp_display_name.at_css 'sub' sub_input.content = new_subscript unless sub_input.nil? temp_display_name end
Source
# File lib/origen/specs/power_supply.rb, line 47 def update_input @input_display_name = change_subscript('IN') end
Source
# File lib/origen/specs/power_supply.rb, line 51 def update_output @output_display_name = change_subscript('OUT') end