Method: Origen::Registers::Placeholder#initialize

Defined in:
lib/origen/registers.rb

#initialize(owner, name, attributes) ⇒ Placeholder

Returns a new instance of Placeholder.



136
137
138
139
140
141
142
143
144
145
146
# File 'lib/origen/registers.rb', line 136

def initialize(owner, name, attributes)
  @owner = owner
  @name = name
  @attributes = attributes
  @feature = attributes[:_feature] if attributes.key?(:_feature)

  # Give reg.new a way to tell if coming from Placeholder
  if attributes[:bit_info].is_a? Hash
    attributes[:bit_info][:from_placeholder] = true
  end
end