20 lines
455 B
Makefile
20 lines
455 B
Makefile
# Makefile for tests and hardware verification.
|
|
|
|
.PHONY: test clean
|
|
|
|
test: obj_dir/Vbram_interface
|
|
|
|
bram_SRC= bram_interface.v bram_interface_sim.cpp
|
|
|
|
obj_dir/Vbram_interface.mk: $(bram_SRC)
|
|
verilator --cc --exe -Wall --trace --trace-fst \
|
|
-CFLAGS -DWORD_AMNT=2048 \
|
|
-CFLAGS -DRAM_WID=32 \
|
|
$(bram_SRC)
|
|
obj_dir/Vbram_interface: obj_dir/Vbram_interface.mk
|
|
cd obj_dir && make -f Vbram_interface.mk
|
|
./obj_dir/Vbram_interface
|
|
|
|
clean:
|
|
rm -rf obj_dir/
|