projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71b1f65
)
add carry (not zeros, a Const of correct width)
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 22 Feb 2020 17:11:47 +0000
(17:11 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 22 Feb 2020 17:11:47 +0000
(17:11 +0000)
src/ieee754/part/partsig.py
patch
|
blob
|
history
diff --git
a/src/ieee754/part/partsig.py
b/src/ieee754/part/partsig.py
index 4a2e611baa8ba2cdbc1995dee9eb002442d474e2..ea1fa3a6572ad64089fd2fdec77fcf29a90d571c 100644
(file)
--- 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):