ae3e9b26c1
Signed-off-by: Ian Moffett <ian@mirocom.org>
32 lines
507 B
Makefile
32 lines
507 B
Makefile
#
|
|
# Copyright (c) 2026 Mirocom Laboratories and MSP engineers.
|
|
# All Rights Reserved.
|
|
#
|
|
|
|
TB_BIN = verilator
|
|
TB_FLAGS = \
|
|
-Wall \
|
|
-Wno-UNUSED \
|
|
-DMENSIA_SIM \
|
|
--trace \
|
|
-cc \
|
|
-I../rtl/inc \
|
|
$(SV_FILES) \
|
|
--exe $(TB_FILES) \
|
|
--top-module soc
|
|
|
|
SV_FILES = $(shell find ../rtl/ -name "*.sv")
|
|
TB_FILES = $(shell find . -name "*.cc")
|
|
|
|
.PHONY: all
|
|
all: obj vcd
|
|
|
|
.PHONY: obj
|
|
obj:
|
|
$(TB_BIN) $(TB_FLAGS)
|
|
|
|
.PHONY: vcd
|
|
vcd:
|
|
make -C obj_dir/ -f Vsoc.mk Vsoc
|
|
./obj_dir/Vsoc
|