add carry (not zeros, a Const of correct width)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 22 Feb 2020 17:11:47 +0000 (17:11 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 22 Feb 2020 17:11:47 +0000 (17:11 +0000)
src/ieee754/part/partsig.py

index 4a2e611baa8ba2cdbc1995dee9eb002442d474e2..ea1fa3a6572ad64089fd2fdec77fcf29a90d571c 100644 (file)
@@ -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):