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

resupported None val

This commit is contained in:
jand 2003-07-19 13:07:09 +00:00
parent ce606bbaad
commit 509a57a82c

View File

@ -58,6 +58,8 @@ class intbv(object):
self._len = len(val)
elif isinstance(val, intbv):
self._val = val._val
elif val is None:
self._val = None # for Cosimulation and X, Z support perhaps
else:
raise TypeError("intbv constructor arg should be int or string")
self._checkBounds()