mv flist to soc folder

This commit is contained in:
Colin 2022-01-17 12:18:33 +00:00
parent 1437f0fcf3
commit 9174bfe249
2 changed files with 6 additions and 6 deletions

View File

@ -8,8 +8,8 @@ ABI = -mabi=ilp32 -march=rv32imc
# Allow tool override
VERILATOR = verilator
TESTDIR = ${PWD}
BUILD_DIR = ${TESTDIR}/build
DEMODIR = ${PWD}
BUILD_DIR = ${DEMODIR}/build
RV_DESIGN = ${RV_ROOT}/design
RV_SOC = ${RV_ROOT}/soc
@ -20,7 +20,7 @@ ifdef debug
VERILATOR_DEBUG = --trace
endif
LINK = $(TESTDIR)/link.ld
LINK = $(DEMODIR)/link.ld
OFILES = $(TEST).o
OUTFILES = $(TEST).out
@ -51,12 +51,12 @@ verilator-build: ${SOCFILES} ${BUILD_DIR}/defines.h test_soc_top.cpp
echo '`undef ASSERT_ON' >> ${BUILD_DIR}/common_defines.vh
$(VERILATOR) --cc -CFLAGS ${CFLAGS} $(defines) $(includes) \
-Wno-UNOPTFLAT \
-I${TESTDIR} \
-I${DEMODIR} \
-I${RV_SOC} \
-f ${TESTDIR}/flist \
-f ${RV_SOC}/flist \
${SOCFILES} \
--top-module soc_top -exe test_soc_top.cpp --autoflush $(VERILATOR_DEBUG)
cp ${TESTDIR}/test_soc_top.cpp obj_dir
cp ${DEMODIR}/test_soc_top.cpp obj_dir
$(MAKE) -j -C obj_dir/ -f Vsoc_top.mk $(VERILATOR_MAKE_FLAGS)
##################### Simulation Runs #####################################