COMS30046_2022_TB-2_playground/verilog_iverilog/VPI_example/Makefile

16 lines
223 B
Makefile
Raw Permalink Normal View History

2023-02-06 15:42:39 +00:00
OBJECTS= hello.vvp hello.o
CFLAGS = -Wall -O $(CFLAGS_$@)
simulate: ${OBJECTS}
vvp -M. -mhello hello.vvp
%.o:%.c
iverilog-vpi $< --name $(subst .o,,$@)
%.vvp:%.v
iverilog $^ -o $@
clean:
2023-02-07 17:52:02 +00:00
rm ${OBJECTS} hello.vpi -f