Class: Origen::Specs::Mode_Select
- Defined in:
- lib/origen/specs/mode_select.rb
Overview
This class is used to store mode select for IP
Instance Attribute Summary collapse
-
#block ⇒ Object
Block Name at the SoC (e.g. DDRC1, DDRC2, DDRC3).
-
#diff_loc ⇒ Object
Use Information from different data source.
-
#ds_header ⇒ Object
Data Sheet Header/Group Name.
-
#location ⇒ Object
Location of the block to read.
-
#mode ⇒ Object
Mode Reference Name.
-
#supply ⇒ Object
SoC Supply List.
-
#supply_level ⇒ Object
SoC Supply Voltage Level.
-
#supported ⇒ Object
SoC Supports this mode?.
-
#usage ⇒ Object
Block Use at the SoC Level.
Instance Method Summary collapse
-
#initialize(block_information, mode_usage, power_information) ⇒ Mode_Select
constructor
There are three sub-blocks of information in Mode Select * block_information: ** name : The name of the block as instiniated in the SoC ** ds_header: Data Sheet Header/Group.
Constructor Details
#initialize(block_information, mode_usage, power_information) ⇒ Mode_Select
There are three sub-blocks of information in Mode Select
-
block_information:
** name : The name of the block as instiniated in the SoC ** ds_header: Data Sheet Header/Group. Allows for multiple instantation to be grouped under one header in datasheet or allows for them to broken out ** usage: Block is used in this SoC be starting point for license plate support ** location: File path to the specml location
-
mode_usage:
** mode: The mode name at the IP Level ** usage: Does this IP in this SoC support this mode?
-
power_information:
** supply: Name of the supply for that Interface. ** voltage_level: Array of the possible values for this supply e.g. [1.8, 2.5, 3.3] or [1.8] ** use_diff: Use information from a different location
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/origen/specs/mode_select.rb', line 47 def initialize(block_information, mode_usage, power_information) @block = block_information[:name] @ds_header = block_information[:ds_header] @usage = block_information[:usage] @location = block_information[:location] @mode = mode_usage[:mode] @supported = mode_usage[:supported] @supply = power_information[:supply] @supply_level = power_information[:voltage_level] @diff_loc = power_information[:use_diff] end |
Instance Attribute Details
#block ⇒ Object
Block Name at the SoC (e.g. DDRC1, DDRC2, DDRC3)
6 7 8 |
# File 'lib/origen/specs/mode_select.rb', line 6 def block @block end |
#diff_loc ⇒ Object
Use Information from different data source
27 28 29 |
# File 'lib/origen/specs/mode_select.rb', line 27 def diff_loc @diff_loc end |
#ds_header ⇒ Object
Data Sheet Header/Group Name
9 10 11 |
# File 'lib/origen/specs/mode_select.rb', line 9 def ds_header @ds_header end |
#location ⇒ Object
Location of the block to read
30 31 32 |
# File 'lib/origen/specs/mode_select.rb', line 30 def location @location end |
#mode ⇒ Object
Mode Reference Name
15 16 17 |
# File 'lib/origen/specs/mode_select.rb', line 15 def mode @mode end |
#supply ⇒ Object
SoC Supply List
21 22 23 |
# File 'lib/origen/specs/mode_select.rb', line 21 def supply @supply end |
#supply_level ⇒ Object
SoC Supply Voltage Level
24 25 26 |
# File 'lib/origen/specs/mode_select.rb', line 24 def supply_level @supply_level end |
#supported ⇒ Object
SoC Supports this mode?
18 19 20 |
# File 'lib/origen/specs/mode_select.rb', line 18 def supported @supported end |
#usage ⇒ Object
Block Use at the SoC Level
12 13 14 |
# File 'lib/origen/specs/mode_select.rb', line 12 def usage @usage end |