mirror of
https://gitlab.com/brendanhaines/cpu.git
synced 2025-01-30 12:17:28 -07:00
20 lines
263 B
Makefile
20 lines
263 B
Makefile
# SOURCE_V = $(wildcard *.v)
|
|
# TESTBENCH_V = $(wildcard tb/*.v)
|
|
|
|
SOURCE_V = core.v
|
|
TESTBENCH_V = tb/core_tb.v
|
|
|
|
all: sim
|
|
|
|
tb.out: $(SOURCE_V) $(TESTBENCH_V)
|
|
iverilog $^ -o $@
|
|
|
|
sim: tb.out
|
|
./tb.out
|
|
|
|
clean:
|
|
rm -rf tb.out tb.vcd
|
|
|
|
.SECONDARY:
|
|
.PHONY: all clean sim
|