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

README.md

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

Documentation Status Build Status PyPI

Installation

Cocotb can be installed by running pip install cocotb.

Quickstart

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

# Checkout git repositories
git clone https://github.com/cocotb/cocotb.git

# Install cocotb
pip install ./cocotb

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

# View the waveform
gtkwave waveform.vcd

Tutorials and examples

You can’t perform that action at this time.