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:
commit
9dffa04130
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user