Skip to content

Commit

Permalink
Merge branch '0.9-maintenance'
Browse files Browse the repository at this point in the history
  • Loading branch information
jandecaluwe committed Nov 1, 2015
2 parents 65e6355 + b726eb8 commit 9dffa04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion myhdl/conversion/_toVerilog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9dffa04

Please sign in to comment.