From 63f0a7a495261a41b4cd0ed6a70f8c91beefc4b7 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 22 Feb 2020 17:11:47 +0000 Subject: [PATCH] add carry (not zeros, a Const of correct width) --- src/ieee754/part/partsig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ieee754/part/partsig.py b/src/ieee754/part/partsig.py index 4a2e611b..ea1fa3a6 100644 --- a/src/ieee754/part/partsig.py +++ b/src/ieee754/part/partsig.py @@ -117,7 +117,8 @@ class PartitionedSignal: return (pa.output, 0) def __lshift__(self, other): - result, _ = self.ls_op(self, other, carry=0) + z = Const(0, self.sig.shape()) + result, _ = self.ls_op(self, other, carry=z) # TODO, carry return result def __rlshift__(self, other): -- 2.30.2