fhdl/verilog: Fix regression introduced in to_signed function.
This commit is contained in:
parent
942d3165bd
commit
306bdcaed8
|
@ -117,7 +117,7 @@ def _print_operator(ns, node):
|
||||||
assert arity in [UNARY, BINARY, TERNARY]
|
assert arity in [UNARY, BINARY, TERNARY]
|
||||||
|
|
||||||
def to_signed(r):
|
def to_signed(r):
|
||||||
return f"$signed({{1'd0 {r}}}))"
|
return f"$signed({{1'd0, {r}}})"
|
||||||
|
|
||||||
# Unary Operator.
|
# Unary Operator.
|
||||||
if arity == UNARY:
|
if arity == UNARY:
|
||||||
|
|
Loading…
Reference in New Issue