Class: Origen::Specs::Mode_Select

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

Overview

This class is used to store mode select for IP

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject

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_locObject

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_headerObject

Data Sheet Header/Group Name



9
10
11
# File 'lib/origen/specs/mode_select.rb', line 9

def ds_header
  @ds_header
end

#locationObject

Location of the block to read



30
31
32
# File 'lib/origen/specs/mode_select.rb', line 30

def location
  @location
end

#modeObject

Mode Reference Name



15
16
17
# File 'lib/origen/specs/mode_select.rb', line 15

def mode
  @mode
end

#supplyObject

SoC Supply List



21
22
23
# File 'lib/origen/specs/mode_select.rb', line 21

def supply
  @supply
end

#supply_levelObject

SoC Supply Voltage Level



24
25
26
# File 'lib/origen/specs/mode_select.rb', line 24

def supply_level
  @supply_level
end

#supportedObject

SoC Supports this mode?



18
19
20
# File 'lib/origen/specs/mode_select.rb', line 18

def supported
  @supported
end

#usageObject

Block Use at the SoC Level



12
13
14
# File 'lib/origen/specs/mode_select.rb', line 12

def usage
  @usage
end