1
0
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:
Jan Decaluwe 2014-04-11 15:32:04 +02:00
commit ec61ef61e1

View File

@ -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()