mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl/verilog: fix signed constant conversion
This commit is contained in:
parent
0a23cadd38
commit
90184b22d2
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ def _printexpr(ns, node):
|
|||
if node.n >= 0:
|
||||
return str(node.bv) + str(node.n)
|
||||
else:
|
||||
return "-" + str(node.bv) + str(-self.n)
|
||||
return "-" + str(node.bv) + str(-node.n)
|
||||
elif isinstance(node, Signal):
|
||||
return ns.get_name(node)
|
||||
elif isinstance(node, _Operator):
|
||||
|
|
Loading…
Reference in a new issue