From 6c168543705e5a9fcd0adbd3b60d13243bf61697 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 28 Mar 2019 23:22:33 +0000 Subject: [PATCH] use Signal.like instead of value_bits_sign --- src/add/pipeline.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/add/pipeline.py b/src/add/pipeline.py index 39ddb809..617fa896 100644 --- a/src/add/pipeline.py +++ b/src/add/pipeline.py @@ -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 -- 2.30.2