Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 850 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 850 Bytes

Testbench for a Tiny Tapeout project

This is a testbench for a Tiny Tapeout project. It uses cocotb to drive the DUT and check the output assertions. 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 correct Verilog files.
  2. Edit tb.v and replace tt_um_example with your module name.
  3. Ensure the test.py contains apt testcases

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

gtkwave tb.vcd tb.gtkw