Skip to content

Commit 8136e7a

Browse files
committed
Merge branch 'fix_stream_op_tree' into develop
2 parents 267f05c + 389b483 commit 8136e7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

veriloggen/stream/stypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,7 +1854,7 @@ def op_tree(op, initval, latency, *args):
18541854
def PlusN(*args):
18551855
for arg in args:
18561856
if isinstance(arg, _Numeric) and arg.point != 0:
1857-
ret = op_tree(Plus, 0, 0, *args)
1857+
ret = op_tree(Plus, vtypes.Int(0, signed=True), 0, *args)
18581858
ret.latency = 1
18591859
return ret
18601860

@@ -1866,7 +1866,7 @@ def AddN(*args):
18661866

18671867

18681868
def AddTree(*args):
1869-
return op_tree(Plus, 0, None, *args)
1869+
return op_tree(Plus, vtypes.Int(0, signed=True), None, *args)
18701870

18711871

18721872
def Max(*args):

0 commit comments

Comments
 (0)