Simulation support library for CoHDL, based on cocotb
Project description
cohdl_sim
cohdl_sim is a simulation support library for CoHDL. It is based on cocotb and works by turning CoHDL designs into VHDL and passing that code to cocotb test benches.
In addition cohdl_sim defines an abstraction layer so test code looks like CoHDL instead of cocotb.
getting started
cohdl_sim requires Python3.11 or higher. You can install it by running
python3 -m pip install cohdl_sim
Since cohdl_sim is just a wrapper around cocotb you will also need one of the supported VHDL simulators. So far I have only used GHDL.
direct GHDL support
In addition to the cocotb abstraction, this simulation library provides a custom backend that directly invokes GHDL via the VPI interface. This is only supported under Linux and requires GHDL (with the GCC backend).
The main advantage over the cocotb simulator is, that it runs in the same context as the Python code starting it. The Python debugger can therefor be used to step through testbench code. It is also possible to run tests inside Jupyter notebooks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cohdl_sim-0.2.4.tar.gz.
File metadata
- Download URL: cohdl_sim-0.2.4.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f738e417a129ba112b83e87831e6a738652036e50973470691e8e254ce2b68c8
|
|
| MD5 |
6bbdee204202bc743d530cb8aead45af
|
|
| BLAKE2b-256 |
ae17be1f01f85d2ca086139d9cc44447500d0d445ba31425b9d718b4108ed182
|