Skip to content

chanum/cocotb_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cocotb_examples (Cocotb + Icarus Verilog/GHDL + GTKWave)

Setup

Cocotb Installation Guide

sudo apt-get install make gcc g++ python3 python3-dev python3-pip pip install cocotb

Compilador & simulador verilog: Icarus Verilog

sudo apt install iverilog

Compilador & simulador VHDL: GHDL

sudo apt install ghdl

Simulators Cocotb notes

Waveform viewer: gtkwave

sudo apt install gtkwave

Run Test

cd cocotb_examples/adder/tests

make

Change the RTL source language and compiler in Makefile:

VERILOG

  • TOPLEVEL_LANG: verilog
  • SIM : icarus

VHDL

  • TOPLEVEL_LANG: vhdl
  • SIM : ghdl

Open the waveform

gtkwave -f dump.vcd

About

Examples with cocotb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors