2023-02-08 11:57:22 +00:00
|
|
|
SOURCES=processor.v testbench.v memory.v
|
2023-02-08 09:18:00 +00:00
|
|
|
VVP=processor.vvp
|
|
|
|
|
|
|
|
.PHONY: run
|
|
|
|
run: ${VVP}
|
|
|
|
vvp ${VVP}
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build: ${VVP}
|
|
|
|
|
|
|
|
.PHONY: wave
|
|
|
|
wave: ${VVP}
|
|
|
|
vvp ${VVP} -lxt2
|
|
|
|
gtkwave test.lx2 gtkwave_savefile.gtkw
|
|
|
|
|
|
|
|
${VVP} : ${SOURCES}
|
|
|
|
iverilog -g2012 $^ -o $@
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f ${VVP} test.lx2
|