Class: SystemRDL::Evaluator::ExplicitComponentInst

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(id, insts, token_range) ⇒ ExplicitComponentInst

Returns a new instance of ExplicitComponentInst.



90
91
92
93
94
# File 'lib/systemrdl/evaluator/component_insts.rb', line 90

def initialize(id, insts, token_range)
  super(token_range)
  @id = id
  @insts = insts
end

Instance Method Details

#connect(parent, component) ⇒ Object



96
97
98
99
# File 'lib/systemrdl/evaluator/component_insts.rb', line 96

def connect(parent, component)
  super
  @insts.connect(self, component)
end

#evaluate(instance, **optargs) ⇒ Object



101
102
103
# File 'lib/systemrdl/evaluator/component_insts.rb', line 101

def evaluate(instance, **optargs)
  @insts.evaluate(instance, @component, @id, **optargs)
end