Internal Implementation Details¶
The following are mostly internal implementation details, but end up in the user-facing API.
- class torii_ila._bits.bits(value=0, length: int | None = None)¶
An immutable bit sequence, like
bytes
but for bits.This bit sequence is ordered from LSB to MSB; this is the direction in which it is converted to and from iterators, and to and from bytes. Note, however, that it is converted to and from strings (which should be only used where a human-readable form is required) from MSB to LSB; this matches the way integer literals are written, as well as values in datasheets and other documentation.