Bit vector variable type.
This is for the various non-scalar and non-real variable types including
integer, register, wire, etc.
Definition at line 542 of file writer.py.
def format_value |
( |
|
self, |
|
|
|
value, |
|
|
|
check = True |
|
) |
| |
Format value change for VCD stream.
:param value: New value for the variable.
:types value: int, str, or None
:raises ValueError: for *some* invalid values.
A *value* of `None` is the same as `'z'`.
.. Warning::
If *value* is of type :py:class:`str`, all characters must be one
of `'01xzXZ'`. For the sake of performance, checking **is not**
done to ensure value strings only contain conforming characters.
Thus it is possible to produce invalid VCD streams with invalid
string values.
Reimplemented from Variable.
Definition at line 553 of file writer.py.