Class: SystemRDL::Evaluator::RegInstance
- Defined in:
- lib/systemrdl/evaluator/reg.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#alignment ⇒ Object
Returns the value of attribute alignment.
-
#stride ⇒ Object
Returns the value of attribute stride.
Attributes inherited from Instance
#array_info, #definition, #instances, #name, #parent, #properties, #token_range
Instance Method Summary collapse
- #accesswidth ⇒ Object
- #definable?(definition) ⇒ Boolean
- #instantiable?(definition) ⇒ Boolean
- #size ⇒ Object
- #sw_readable? ⇒ Boolean
- #sw_writable? ⇒ Boolean
Methods inherited from Instance
#addrmap?, #array?, #array_indices, #array_sizes, #element_name, #field?, #finalize, #first_element?, #full_name, #initialize, #last_element?, #layer, #property, #property_value, #reg?, #regfile?, #revalidate, #root?, #structural_component?, #to_value, #validate
Constructor Details
This class inherits a constructor from SystemRDL::Evaluator::Instance
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
127 128 129 |
# File 'lib/systemrdl/evaluator/reg.rb', line 127 def address @address end |
#alignment ⇒ Object
Returns the value of attribute alignment.
129 130 131 |
# File 'lib/systemrdl/evaluator/reg.rb', line 129 def alignment @alignment end |
#stride ⇒ Object
Returns the value of attribute stride.
128 129 130 |
# File 'lib/systemrdl/evaluator/reg.rb', line 128 def stride @stride end |
Instance Method Details
#accesswidth ⇒ Object
139 140 141 |
# File 'lib/systemrdl/evaluator/reg.rb', line 139 def accesswidth property_value(:accesswidth).value end |
#definable?(definition) ⇒ Boolean
131 132 133 |
# File 'lib/systemrdl/evaluator/reg.rb', line 131 def definable?(definition) definition.layer in :field end |
#instantiable?(definition) ⇒ Boolean
135 136 137 |
# File 'lib/systemrdl/evaluator/reg.rb', line 135 def instantiable?(definition) definable?(definition) end |
#size ⇒ Object
143 144 145 |
# File 'lib/systemrdl/evaluator/reg.rb', line 143 def size property_value(:regwidth).value / 8 end |
#sw_readable? ⇒ Boolean
147 148 149 |
# File 'lib/systemrdl/evaluator/reg.rb', line 147 def sw_readable? instances.any?(&:sw_readable?) end |
#sw_writable? ⇒ Boolean
151 152 153 |
# File 'lib/systemrdl/evaluator/reg.rb', line 151 def sw_writable? instances.any?(&:sw_writable?) end |