self._current_stage_num = 0
def _setup(self):
- stage_list = [method for method in dir(self) if method.startswith('stage')]
+ stage_list = []
+ for method in dir(self):
+ if method.startswith('stage'):
+ stage_list.append(method)
for stage in sorted(stage_list):
stage_method = getattr(self, stage)
stage_method()
next_stage = self._current_stage_num + 1
pipereg_id = str(self._current_stage_num) + 'to' + str(next_stage)
rname = 'pipereg_' + pipereg_id + '_' + name
- #new_pipereg = pyrtl.Register(bitwidth=len(value), name=rname)
new_pipereg = Signal(len(value), name_override=rname)
if next_stage not in self._pipeline_register_map:
self._pipeline_register_map[next_stage] = {}