Skip to main content

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.

Metadata

Release files for cohdl-sim 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cohdl-sim 0.2.4
File Size Uploaded
cohdl_sim-0.2.4.tar.gz 21.5 kB Details

Release files / cohdl_sim-0.2.4.tar.gz

Download URL cohdl_sim-0.2.4.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f738e417a129ba112b83e87831e6a738652036e50973470691e8e254ce2b68c8
BLAKE2b-256 checksum
How to use checksums
ae17be1f01f85d2ca086139d9cc44447500d0d445ba31425b9d718b4108ed182
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.2.4 This release

1 release file

0.2.3

1 release file

0.2.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page