Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
.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
echo "" >> 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 $^
02b6c2ce2This file is pinned to the selected release. Download the original to open it in your design tool.