use Signal.like instead of value_bits_sign
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 28 Mar 2019 23:22:33 +0000 (23:22 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 28 Mar 2019 23:22:33 +0000 (23:22 +0000)
src/add/pipeline.py

index 39ddb809c4c9c60370cd247781f2fa61e705d7e1..617fa8969969ee55b22ac8b18d701bd59fb2ea18 100644 (file)
@@ -47,8 +47,9 @@ class SimplePipeline(object):
         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 = Signal(value_bits_sign(value), name=rname,
-                             reset_less=True)
+        #new_pipereg = Signal(value_bits_sign(value), name=rname,
+        #                     reset_less=True)
+        new_pipereg = Signal.like(value, name=rname, reset_less = True)
         if next_stage not in self._pipeline_register_map:
             self._pipeline_register_map[next_stage] = {}
         self._pipeline_register_map[next_stage][name] = new_pipereg