Class: SystemRDL::Evaluator::FieldInstance
- Defined in:
- lib/systemrdl/evaluator/field.rb
Instance Attribute Summary collapse
-
#lsb ⇒ Object
Returns the value of attribute lsb.
-
#msb ⇒ Object
Returns the value of attribute msb.
-
#width ⇒ Object
Returns the value of attribute width.
Attributes inherited from Instance
#array_info, #definition, #instances, #name, #parent, #properties, #token_range
Instance Method Summary collapse
- #definable?(_definition) ⇒ Boolean
- #instantiable?(_definition) ⇒ Boolean
- #sw_readable? ⇒ Boolean
- #sw_writable? ⇒ Boolean
- #virtual_field? ⇒ Boolean
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 Attribute Details
#lsb ⇒ Object
Returns the value of attribute lsb.
235 236 237 |
# File 'lib/systemrdl/evaluator/field.rb', line 235 def lsb @lsb end |
#msb ⇒ Object
Returns the value of attribute msb.
234 235 236 |
# File 'lib/systemrdl/evaluator/field.rb', line 234 def msb @msb end |
#width ⇒ Object
Returns the value of attribute width.
236 237 238 |
# File 'lib/systemrdl/evaluator/field.rb', line 236 def width @width end |
Instance Method Details
#definable?(_definition) ⇒ Boolean
242 243 244 |
# File 'lib/systemrdl/evaluator/field.rb', line 242 def definable?(_definition) false end |
#instantiable?(_definition) ⇒ Boolean
246 247 248 |
# File 'lib/systemrdl/evaluator/field.rb', line 246 def instantiable?(_definition) false end |
#sw_readable? ⇒ Boolean
250 251 252 |
# File 'lib/systemrdl/evaluator/field.rb', line 250 def sw_readable? property_value(:sw).value in :rw | :rw1 | :r end |
#sw_writable? ⇒ Boolean
254 255 256 |
# File 'lib/systemrdl/evaluator/field.rb', line 254 def sw_writable? property_value(:sw).value in :rw | :rw1 | :w | :w1 end |
#virtual_field? ⇒ Boolean
238 239 240 |
# File 'lib/systemrdl/evaluator/field.rb', line 238 def virtual_field? parent.virtual_reg? end |