18 lines
344 B
Makefile
18 lines
344 B
Makefile
|
# Default target
|
||
|
all: run
|
||
|
|
||
|
# Run the simulation
|
||
|
run:
|
||
|
cd ./tools/sim && vsim -c -do run.do && cd ../..
|
||
|
|
||
|
# Clean the build files
|
||
|
clean:
|
||
|
rm -rf ./tools/sim/work ./tools/sim/transcript ./tools/sim/vsim.wlf ./tools/sim/waveform.vcd
|
||
|
rm -rf transcript
|
||
|
|
||
|
# View the waveform
|
||
|
view:
|
||
|
vsim -view ./tools/sim/vsim.wlf
|
||
|
|
||
|
.PHONY: all compile run clean view
|