diff --git a/myhdl/intbv.py b/myhdl/intbv.py index b05491de..27bf08f7 100644 --- a/myhdl/intbv.py +++ b/myhdl/intbv.py @@ -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()