嘉峪关市网站建设_网站建设公司_Banner设计_seo优化
2025/12/28 12:18:24 网站建设 项目流程

Cocotb Tutorials

1. Create a Python Virtual Environment 

python3 -m venv /path/to/new/virtual/environment

2. Start Virtual Environment 

shellcommand
bash/zsh source /bin/activate
csh/tcsh

source /bin/activate.csh

3. Install Requirements #

put whatever python packages you want in a file called requirements.txt

cocotb
numpy
matplotlib

then call pip install -r requirements.txt in your virtual environment

4. Install iverilog and gtkwave #

Most of the tutorials in this book use the icarus simulator and gtkwave to view output waveforms. To follow along you’ll need to install both.

  1. Install icarus verilog simulator for simulating verilog

    • mac (with homebrew installed): brew install icarus-verilog
    • windows: follow this guide
    • linux: sudo apt install iverilog
  2. Install gtkwave for viewing .vcd files

    • mac (with homebrew installed): brew install --cask gtkwave
    • windows: follow instructions on main page
    • linux: sudo apt install gtkwave
    • in browser alternative: vc.drom.io

Github Examples #

All examples in this book can be found at the learncocotb github

 

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询