COMS30046_2022_TB-2_playground/verilog_iverilog/VPI_example/Makefile

16 lines
223 B
Makefile

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:
rm ${OBJECTS} hello.vpi -f