tiny-gpu icon indicating copy to clipboard operation
tiny-gpu copied to clipboard

Updated Makefile based on suggestions from the issues till now

Open muditbhargava66 opened this issue 1 year ago • 1 comments

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!

muditbhargava66 avatar Apr 27 '24 06:04 muditbhargava66

Thanks! Will update tomorrow

adam-maj avatar Apr 27 '24 08:04 adam-maj

Thanks @muditbhargava66, should be fixed now with https://github.com/adam-maj/tiny-gpu/tree/84467faed24d2615f1aa24d97c149f97122eed31

adam-maj avatar Apr 27 '24 22:04 adam-maj