19 lines
255 B
Makefile
19 lines
255 B
Makefile
SOURCES=clock.v clock-tb.v
|
|
VPP=clock.vpp
|
|
|
|
.PHONY: run
|
|
run: ${VPP}
|
|
vvp ${VPP}
|
|
|
|
.PHONY: wave
|
|
wave: ${VPP}
|
|
vvp ${VPP} -lxt2
|
|
gtkwave test.lx2 gtkwave_savefile.gtkw
|
|
|
|
${VPP} : ${SOURCES}
|
|
iverilog -g2012 $^ -o $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f ${VPP} test.lx2
|