Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Latest commit

 

History

History
37 lines (25 loc) · 853 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 853 Bytes

Sample testbench for a Tiny Tapeout project

This is a sample testbench for a Tiny Tapeout project. It uses cocotb to drive the DUT and check the outputs. See below to get started or for more information, check the website.

Setting up

  1. Edit Makefile and modify PROJECT_SOURCES to point to your Verilog files.
  2. Edit tb.v and replace tt_um_example with your module name.

How to run

To run the RTL simulation:

make -B

To run gatelevel simulation, first harden your project and copy ../runs/wokwi/results/final/verilog/gl/{your_module_name}.v to gate_level_netlist.v.

Then run:

make -B GATES=yes

How to view the VCD file

Using GTKWave

gtkwave tb.vcd tb.gtkw

Using Surfer

surfer tb.vcd