@@ -0,0 +1,31 @@
|
||||
#
|
||||
# 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
|
||||
Reference in New Issue
Block a user