Packtype
Packtype is used to define constants and packed data structures using a syntax similar to Python dataclasses, these definitions can then be interrogated, rendered into various output formats, or used natively in Python. The project originated from a need to sample and drive structs and union ports on the boundary of SystemVerilog designs from cocotb in non-commercial simulators.
Installation
The easiest way to install Packtype is to use PyPI:
Alternatively, you can install the development branch directly from the repository: