Class: SystemRDL::Evaluator::ArrayInfo

Inherits:
Data
  • Object
show all
Defined in:
lib/systemrdl/evaluator/array_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#firstObject (readonly)

Returns the value of attribute first

Returns:

  • (Object)

    the current value of first



5
6
7
# File 'lib/systemrdl/evaluator/array_component.rb', line 5

def first
  @first
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



5
6
7
# File 'lib/systemrdl/evaluator/array_component.rb', line 5

def id
  @id
end

#indicesObject (readonly)

Returns the value of attribute indices

Returns:

  • (Object)

    the current value of indices



5
6
7
# File 'lib/systemrdl/evaluator/array_component.rb', line 5

def indices
  @indices
end

#lastObject (readonly)

Returns the value of attribute last

Returns:

  • (Object)

    the current value of last



5
6
7
# File 'lib/systemrdl/evaluator/array_component.rb', line 5

def last
  @last
end

#sizesObject (readonly)

Returns the value of attribute sizes

Returns:

  • (Object)

    the current value of sizes



5
6
7
# File 'lib/systemrdl/evaluator/array_component.rb', line 5

def sizes
  @sizes
end

Instance Method Details

#n_elementsObject



6
7
8
# File 'lib/systemrdl/evaluator/array_component.rb', line 6

def n_elements
  sizes.inject(:*)
end