| num [, width]) |
This function complements the standard Python conversion functions
hex and oct. A binary string representation is often
useful in hardware design.
| base [, arg ...]) |
The following argument types are supported: intbv objects with a defined bit width, bool objects, signals of the previous objects, and bit strings. All these objects have a defined bit width. The first argument base is special as it doesn't need to have a defined bit width. In addition to the previously mentioned objects, unsized intbv, int and long objects are supported, as well as signals of such objects.
| high [, low=0]) |
This function is modeled after the standard range function, but
works in the downward direction. The returned interval is half-open,
with the high index not included. low is optional and
defaults to zero. This function is especially useful in conjunction
with the intbv class, that also works with downward indexing.
| arg [, arg ...][, encoding='binary']) |
The arguments should be string literals that represent the desired names of the enumeration type attributes. The returned type should be assigned to a type name. For example:
t_EnumType = enum('ATTR_NAME_1', 'ATTR_NAME_2', ...)
t_EnumType.ATTR_NAME_1
The optional keyword argument encoding specifies the encoding
scheme used in Verilog output. The available encodings are 'binary',
'one_hot', and 'one_cold'.
| ) |
About this document