1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00

and continuing

This commit is contained in:
Josy Boelen 2021-03-06 20:07:55 +01:00
parent 493a7e90d8
commit 989be768a4

View File

@ -1251,6 +1251,7 @@ class _ConvertVisitor(ast.NodeVisitor, _ConversionMixin):
self.write("to_signed(%s, %s)" % (n, node.vhd.size))
else:
self.write('signed\'("%s")' % tobin(n, node.vhd.size))
else:
if n < 0:
self.write("(")