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.



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