Skip to content

Commit c63eee5

Browse files
authored
update tb readme, cleanup default template
1 parent 6915c42 commit c63eee5

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

test/README.md

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1 @@
1-
# Sample testbench for a Tiny Tapeout project
2-
3-
This is a sample testbench for a Tiny Tapeout project. It uses [cocotb](https://docs.cocotb.org/en/stable/) to drive the DUT and check the outputs.
4-
See below to get started or for more information, check the [website](https://tinytapeout.com/hdl/testing/).
5-
6-
## Setting up
7-
8-
1. Edit [Makefile](Makefile) and modify `PROJECT_SOURCES` to point to your Verilog files.
9-
2. Edit [tb.v](tb.v) and replace `tt_um_example` with your module name.
10-
11-
## How to run
12-
13-
To run the RTL simulation:
14-
15-
```sh
16-
make -B
17-
```
18-
19-
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`.
20-
21-
Then run:
22-
23-
```sh
24-
make -B GATES=yes
25-
```
26-
27-
## How to view the VCD file
28-
29-
Using GTKWave
30-
```sh
31-
gtkwave tb.vcd tb.gtkw
32-
```
33-
34-
Using Surfer
35-
```sh
36-
surfer tb.vcd
37-
```
1+
# RTL Simulation using cocotb

0 commit comments

Comments
 (0)