Class: SystemRDL::Evaluator::RegFileInstance

Inherits:
Instance
  • Object
show all
Includes:
BlockInstance, InstTypeAwareInstance
Defined in:
lib/systemrdl/evaluator/regfile.rb

Instance Attribute Summary

Attributes included from BlockInstance

#address, #alignment, #stride

Attributes included from ArrayInstance

#array_info

Attributes included from InstTypeAwareInstance

#external

Attributes inherited from Instance

#array_info, #definition, #instances, #name, #parent, #properties, #token_range

Instance Method Summary collapse

Methods included from BlockInstance

#accesswidth, #size, #sw_readable?, #sw_writable?

Methods included from ArrayInstance

#array?, #array_indices, #array_sizes, #first_element?, #last_element?

Methods inherited from Instance

#addrmap?, #array?, #element_name, #field?, #finalize, #find_addrmap, #full_name, #initialize, #layer, #mem?, #property, #property_value, #reg?, #regfile?, #revalidate, #root?, #structural_component?, #to_value, #upper_instances, #validate

Constructor Details

This class inherits a constructor from SystemRDL::Evaluator::Instance

Instance Method Details

#definable?(definition) ⇒ Boolean

Returns:



44
45
46
# File 'lib/systemrdl/evaluator/regfile.rb', line 44

def definable?(definition)
  definition.layer in :regfile | :reg | :field
end

#instantiable?(definition) ⇒ Boolean

Returns:



48
49
50
# File 'lib/systemrdl/evaluator/regfile.rb', line 48

def instantiable?(definition)
  definition.layer in :regfile | :reg
end