mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
and continuing
This commit is contained in:
parent
493a7e90d8
commit
989be768a4
@ -1251,6 +1251,7 @@ class _ConvertVisitor(ast.NodeVisitor, _ConversionMixin):
|
|||||||
self.write("to_signed(%s, %s)" % (n, node.vhd.size))
|
self.write("to_signed(%s, %s)" % (n, node.vhd.size))
|
||||||
else:
|
else:
|
||||||
self.write('signed\'("%s")' % tobin(n, node.vhd.size))
|
self.write('signed\'("%s")' % tobin(n, node.vhd.size))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if n < 0:
|
if n < 0:
|
||||||
self.write("(")
|
self.write("(")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user