Skip to content

Commit 9a07e2b

Browse files
Update README.md with installation instructions (#14)
* Upstream my workaround of running this on my Macbook (#2) * Update Makefile * Update README.md * Update README.md * Update README.md --------- Co-authored-by: Tiezhen WANG <[email protected]>
1 parent 60d9de7 commit 9a07e2b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ compile_%:
2222
# TODO: Get gtkwave visualizaiton
2323

2424
show_%: %.vcd %.gtkw
25-
gtkwave $^
25+
gtkwave $^

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,11 @@ RET ; end of kernel
313313

314314
# Simulation
315315

316-
tiny-gpu is setup to simulate the execution of both of the above kernels. Before simulating, you'll need to install [iverilog](https://steveicarus.github.io/iverilog/usage/installation.html) and [cocotb](https://docs.cocotb.org/en/stable/install.html).
316+
tiny-gpu is setup to simulate the execution of both of the above kernels. Before simulating, you'll need to install [iverilog](https://steveicarus.github.io/iverilog/usage/installation.html) and [cocotb](https://docs.cocotb.org/en/stable/install.html):
317+
318+
- Install Verilog compilers with `brew install icarus-verilog` and `pip3 install cocotb`
319+
- Download the latest version of sv2v from https://github.com/zachjs/sv2v/releases, unzip it and put the binary in $PATH.
320+
- Run `mkdir build` in the root directory of this repository.
317321

318322
Once you've installed the pre-requisites, you can run the kernel simulations with `make test_matadd` and `make test_matmul`.
319323

0 commit comments

Comments
 (0)