mirror of
https://github.com/myhdl/myhdl.git
synced 2025-01-24 21:52:56 +08:00
merge from default
--HG-- branch : 0.9-dev
This commit is contained in:
commit
ec61ef61e1
@ -1272,7 +1272,7 @@ def _convertInitVal(reg, init):
|
||||
if tipe is bool:
|
||||
v = '1' if init else '0'
|
||||
elif tipe is intbv:
|
||||
v = "%s" % init
|
||||
v = "%s" % init if init is not None else "'bz"
|
||||
else:
|
||||
assert isinstance(init, EnumItemType)
|
||||
v = init._toVerilog()
|
||||
|
Loading…
x
Reference in New Issue
Block a user