To run Cocotb, you need three main components:
- Python 3.6+: The programming language.
- HDL Simulator: To simulate the Verilog/SystemVerilog code (e.g., Icarus Verilog, Verilator).
- Cocotb Library: The bridge between Python and the simulator.
Get your system ready for Python-based verification. We'll install a simulator, a waveform viewer, and the Cocotb library.
To run Cocotb, you need three main components:
The easiest free simulator for Windows is Icarus Verilog.
iverilog -v
If you see version information, it is installed correctly.
Cocotb is a standard Python package. Open your terminal or command prompt and run:
pip install cocotb
Verify the installation:
cocotb-config --version
To debug your digital designs, you need to see the waveforms.
gtkwave in your terminal.
Cocotb typically uses Makefiles to automate the simulation flow. On
Windows,
you might need to install make.
Easy way: If you have Git Bash installed, you likely have `make`. Alternatively, install it via Chocolatey (`choco install make`).