diff --git a/myhdl/conversion/_toVHDL.py b/myhdl/conversion/_toVHDL.py index c72eb868..b1697e17 100644 --- a/myhdl/conversion/_toVHDL.py +++ b/myhdl/conversion/_toVHDL.py @@ -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("(")