Class: SystemRDL::Evaluator::ArrayInfo
- Inherits:
-
Data
- Object
- Data
- SystemRDL::Evaluator::ArrayInfo
- Defined in:
- lib/systemrdl/evaluator/array_component.rb
Instance Attribute Summary collapse
-
#first ⇒ Object
readonly
Returns the value of attribute first.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#indices ⇒ Object
readonly
Returns the value of attribute indices.
-
#last ⇒ Object
readonly
Returns the value of attribute last.
-
#sizes ⇒ Object
readonly
Returns the value of attribute sizes.
Instance Method Summary collapse
Instance Attribute Details
#first ⇒ Object (readonly)
Returns the value of attribute first
5 6 7 |
# File 'lib/systemrdl/evaluator/array_component.rb', line 5 def first @first end |
#id ⇒ Object (readonly)
Returns the value of attribute id
5 6 7 |
# File 'lib/systemrdl/evaluator/array_component.rb', line 5 def id @id end |
#indices ⇒ Object (readonly)
Returns the value of attribute indices
5 6 7 |
# File 'lib/systemrdl/evaluator/array_component.rb', line 5 def indices @indices end |
#last ⇒ Object (readonly)
Returns the value of attribute last
5 6 7 |
# File 'lib/systemrdl/evaluator/array_component.rb', line 5 def last @last end |
#sizes ⇒ Object (readonly)
Returns the value of attribute sizes
5 6 7 |
# File 'lib/systemrdl/evaluator/array_component.rb', line 5 def sizes @sizes end |
Instance Method Details
#n_elements ⇒ Object
6 7 8 |
# File 'lib/systemrdl/evaluator/array_component.rb', line 6 def n_elements sizes.inject(:*) end |