1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00

Merge branch '0.9-maintenance'

This commit is contained in:
Jan Decaluwe 2015-11-01 21:02:07 +01:00
commit 9dffa04130

View File

@ -328,7 +328,9 @@ def _writeSigDecls(f, intf, siglist, memlist):
c = int(s.val)
else:
raise ToVerilogError("Unexpected type for constant signal", s._name)
print("assign %s = %s;" % (s._name, c), file=f)
c_len = s._nrbits
c_str = "%s"%c
print("assign %s = %s'd%s;" % (s._name, c_len, c_str), file=f)
print(file=f)
# shadow signal assignments
for s in siglist: