Class: RgGen::Core::RegisterMap::InputData

Inherits:
InputBase::InputData show all
Includes:
RaiseError
Defined in:
lib/rggen/core/register_map/input_data.rb

Defined Under Namespace

Modules: BitField, Register, RegisterBlockRegisterFile, Root

Constant Summary collapse

LAYER_EXTENSIONS =
{
  root: Root, register_block: RegisterBlockRegisterFile,
  register_file: RegisterBlockRegisterFile, register: Register,
  bit_field: BitField
}.freeze

Instance Attribute Summary collapse

Attributes inherited from InputBase::InputData

#children, #layer

Instance Method Summary collapse

Methods inherited from InputBase::InputData

#[], #[]=, #child, #load_file, #value, #values

Constructor Details

#initialize(layer, valid_value_list, configuration) ⇒ InputData

Returns a new instance of InputData.



43
44
45
46
47
# File 'lib/rggen/core/register_map/input_data.rb', line 43

def initialize(layer, valid_value_list, configuration)
  extend(LAYER_EXTENSIONS[layer])
  @configuration = configuration
  super(layer, valid_value_list)
end

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



49
50
51
# File 'lib/rggen/core/register_map/input_data.rb', line 49

def configuration
  @configuration
end