File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Verification tool configuration
22VERILATOR = verilator
33CXX = g++
4- FLAGS = -Wall -Wno-fatal --trace --cc -CFLAGS "-I../../tb -I../../src"
4+ FLAGS = -Wall -Wno-fatal --trace --cc
55
66# Project directories
77SRC_DIR = src
88TB_DIR = tb
99SIM_DIR = sim
1010
11- # Default target
1211.PHONY : all compile run view clean
1312
1413all : run
1514
1615compile :
1716 @mkdir -p $(SIM_DIR )
1817 $(VERILATOR ) $(FLAGS ) \
18+ -I$(SRC_DIR ) \
19+ -I$(TB_DIR ) \
20+ -CFLAGS " -I$( PWD) /$( TB_DIR) -I$( PWD) /$( SRC_DIR) " \
1921 $(SRC_DIR ) /top_accelerator.sv \
2022 $(SRC_DIR ) /mac_unit.sv \
2123 $(SRC_DIR ) /sync_fifo.sv \
2224 --exe $(TB_DIR ) /tb_top.cpp \
2325 --Mdir $(SIM_DIR ) /obj_dir
24- $(MAKE ) -C $(SIM_DIR ) /obj_dir -f Vtop_accelerator.mk
26+ $(MAKE ) -C $(SIM_DIR ) /obj_dir -f Vtop_accelerator.mk Vtop_accelerator
2527
2628run : compile
2729 @echo " --- Running Simulation ---"
You can’t perform that action at this time.
0 commit comments