Skip to content
Coroutine Co-simulation Test Bench
Python C++ C VHDL Makefile Verilog Other
Branch: master
Clone or download
themperek Merge pull request #1075 from cmarqu/add-vhdl93-flag
Add flag to compile as VHDL93 for IUS/Xcelium for some designs
Latest commit ddcd4b2 Aug 19, 2019

cocotb is a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python.

Documentation Status Build Status PyPI


Cocotb can be installed by running pip install cocotb.


# Install pre-requisites (waveform viewer optional)
sudo yum install -y iverilog python-devel gtkwave

# Checkout git repositories
git clone

# Install cocotb
pip install ./cocotb

# Run the tests...
cd cocotb/examples/endian_swapper/tests

# View the waveform
gtkwave waveform.vcd

Tutorials and examples

You can’t perform that action at this time.