tiny-gpu
tiny-gpu copied to clipboard
Updated Makefile based on suggestions from the issues till now
I have updated the Makefile considering the suggestions made in the following issues:
- #3
- #6
- #5
.PHONY: test compile
export LIBPYTHON_LOC=$(shell cocotb-config --libpython)
test_%:
make compile
iverilog -o build/sim.vvp -s gpu -g2012 build/gpu.v
MODULE=test.test_$* vvp -M $$(cocotb-config --prefix)/cocotb/libs -m libcocotbvpi_icarus build/sim.vvp
compile:
make compile_alu
sv2v -I src/* -w build/gpu.v
cat build/alu.v >> build/gpu.v
echo '`timescale 1ns/1ns' > build/temp.v
cat build/gpu.v >> build/temp.v
mv build/temp.v build/gpu.v
compile_%:
sv2v -w build/$*.v src/$*.sv
# TODO: Get gtkwave visualizaiton
show_%: %.vcd %.gtkw
gtkwave $^
Please review the updated Makefile and provide any additional feedback or suggestions.
Thanks!
Thanks! Will update tomorrow
Thanks @muditbhargava66, should be fixed now with https://github.com/adam-maj/tiny-gpu/tree/84467faed24d2615f1aa24d97c149f97122eed31