We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e4049b commit 232be1bCopy full SHA for 232be1b
veriloggen/stream/stypes.py
@@ -1,7 +1,6 @@
1
from __future__ import absolute_import
2
from __future__ import print_function
3
4
-from functools import partial
5
from collections import OrderedDict
6
from math import log
7
@@ -1630,7 +1629,14 @@ class PlusN(_SpecialOperator):
1630
1629
1631
def __init__(self, *vars):
1632
_SpecialOperator.__init__(self, *vars)
1633
- self.op = partial(op_tree, vtypes.Plus, 0)
+
+ def func(*args):
1634
+ ret = args[0]
1635
+ for arg in args[1:]:
1636
+ ret += arg
1637
+ return ret
1638
1639
+ self.op = func
1640
1641
1642
def AddN(*vars):
0 commit comments