-
Notifications
You must be signed in to change notification settings - Fork 17
Simulation
Jens Janssen edited this page Sep 8, 2015
·
31 revisions
Download and extract cocotb. Export cocotb path:
export COCOTB=/path/to/cocotb
Install Icarus Verilog via package manager (Ubuntu strongly recommended):
sudo add-apt-repository -y ppa:team-electronics/ppa
sudo apt-get update
sudo apt-get install iverilog-daily
Install GTKWave via package manager:
sudo apt-get install gtkwave
Export path to folder containing unisims folder (Xilinx Simulation Library):
export XILINX=/path/to/folder/containing/unisims/folder
Cd into firmware/mio/cosim
and run:
make -f Makefile results.xml
sim_build
directory and and move the sim_build.zip
into tests/test_interface
.
Cd into tests
and run:
python test_interface.py
Opening waveform with:
gtkwave tb.vcd
http://gtkwave.sourceforge.net
- Q: The following error occurs:
vvp: symbol lookup error: /home/jens/miniconda/lib/libreadline.so.6: undefined symbol: PC
A: Uninstall readline package:
or remove library:conda uninstall readline
rm -f /path/to/miniconda/envs/test-environment/lib/libreadline.so.6