mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
verilog: fix unary operator conversion
This commit is contained in:
parent
78f18ad593
commit
bf021efa2b
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ def _printexpr(ns, node):
|
||||||
elif isinstance(node, Operator):
|
elif isinstance(node, Operator):
|
||||||
arity = len(node.operands)
|
arity = len(node.operands)
|
||||||
if arity == 1:
|
if arity == 1:
|
||||||
r = self.op + _printexpr(ns, node.operands[0])
|
r = node.op + _printexpr(ns, node.operands[0])
|
||||||
elif arity == 2:
|
elif arity == 2:
|
||||||
r = _printexpr(ns, node.operands[0]) + " " + node.op + " " + _printexpr(ns, node.operands[1])
|
r = _printexpr(ns, node.operands[0]) + " " + node.op + " " + _printexpr(ns, node.operands[1])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue