mv flist to soc folder
This commit is contained in:
parent
1437f0fcf3
commit
9174bfe249
|
@ -8,8 +8,8 @@ ABI = -mabi=ilp32 -march=rv32imc
|
||||||
|
|
||||||
# Allow tool override
|
# Allow tool override
|
||||||
VERILATOR = verilator
|
VERILATOR = verilator
|
||||||
TESTDIR = ${PWD}
|
DEMODIR = ${PWD}
|
||||||
BUILD_DIR = ${TESTDIR}/build
|
BUILD_DIR = ${DEMODIR}/build
|
||||||
RV_DESIGN = ${RV_ROOT}/design
|
RV_DESIGN = ${RV_ROOT}/design
|
||||||
RV_SOC = ${RV_ROOT}/soc
|
RV_SOC = ${RV_ROOT}/soc
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ ifdef debug
|
||||||
VERILATOR_DEBUG = --trace
|
VERILATOR_DEBUG = --trace
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LINK = $(TESTDIR)/link.ld
|
LINK = $(DEMODIR)/link.ld
|
||||||
|
|
||||||
OFILES = $(TEST).o
|
OFILES = $(TEST).o
|
||||||
OUTFILES = $(TEST).out
|
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
|
echo '`undef ASSERT_ON' >> ${BUILD_DIR}/common_defines.vh
|
||||||
$(VERILATOR) --cc -CFLAGS ${CFLAGS} $(defines) $(includes) \
|
$(VERILATOR) --cc -CFLAGS ${CFLAGS} $(defines) $(includes) \
|
||||||
-Wno-UNOPTFLAT \
|
-Wno-UNOPTFLAT \
|
||||||
-I${TESTDIR} \
|
-I${DEMODIR} \
|
||||||
-I${RV_SOC} \
|
-I${RV_SOC} \
|
||||||
-f ${TESTDIR}/flist \
|
-f ${RV_SOC}/flist \
|
||||||
${SOCFILES} \
|
${SOCFILES} \
|
||||||
--top-module soc_top -exe test_soc_top.cpp --autoflush $(VERILATOR_DEBUG)
|
--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)
|
$(MAKE) -j -C obj_dir/ -f Vsoc_top.mk $(VERILATOR_MAKE_FLAGS)
|
||||||
|
|
||||||
##################### Simulation Runs #####################################
|
##################### Simulation Runs #####################################
|
||||||
|
|
Loading…
Reference in New Issue