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:
parent
ce606bbaad
commit
509a57a82c
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user