class Origen::Specs::Power_Supply

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

Attributes

actual[RW]

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[RW]

Display Name for the Voltage. Will be in html/dita code G1VDD –> G1V<sub>DD</sub>

generic[RW]

Generic Power Supply Name. For example:

  • GVDD

  • DVDD

  • TVDD

  • EVDD

input_display_name[RW]

Input Display Name for the Voltage G1VDD –> G1V<sub>IN</sub>

output_display_name[RW]

Output Displat Name for the Voltage G1VDD –> G1V<sub>OUT</sub>

voltages[RW]

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

new(gen, act) click to toggle source

Initialize the variables

# 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

Public Instance Methods

change_subscript(new_subscript) click to toggle 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
update_input() click to toggle source
# File lib/origen/specs/power_supply.rb, line 47
def update_input
  @input_display_name = change_subscript('IN')
end
update_output() click to toggle source
# File lib/origen/specs/power_supply.rb, line 51
def update_output
  @output_display_name = change_subscript('OUT')
end