Class: SystemRDL::Evaluator::ExplicitComponentInst
- Inherits:
-
Object
- Object
- SystemRDL::Evaluator::ExplicitComponentInst
- Includes:
- Common
- Defined in:
- lib/systemrdl/evaluator/component_insts.rb
Instance Attribute Summary
Attributes included from Common
#component, #parent, #token_range
Instance Method Summary collapse
- #connect(parent, component) ⇒ Object
- #evaluate(instance, **optargs) ⇒ Object
-
#initialize(id, insts, token_range) ⇒ ExplicitComponentInst
constructor
A new instance of ExplicitComponentInst.
Constructor Details
#initialize(id, insts, token_range) ⇒ ExplicitComponentInst
Returns a new instance of ExplicitComponentInst.
129 130 131 132 133 |
# File 'lib/systemrdl/evaluator/component_insts.rb', line 129 def initialize(id, insts, token_range) super(token_range) @id = id @insts = insts end |
Instance Method Details
#connect(parent, component) ⇒ Object
135 136 137 138 |
# File 'lib/systemrdl/evaluator/component_insts.rb', line 135 def connect(parent, component) super @insts.connect(self, component) end |
#evaluate(instance, **optargs) ⇒ Object
140 141 142 |
# File 'lib/systemrdl/evaluator/component_insts.rb', line 140 def evaluate(instance, **optargs) @insts.evaluate(instance, @component, @id, **optargs) end |