Split from soc.mk to soc_sim.mk and soc_top.mk
This commit is contained in:
parent
1f222dd1e3
commit
8e190efed0
|
@ -39,7 +39,8 @@ verilator-build: swerv_define
|
||||||
$(BUILD_DIR)/common_defines.vh \
|
$(BUILD_DIR)/common_defines.vh \
|
||||||
-I${BUILD_DIR} \
|
-I${BUILD_DIR} \
|
||||||
-Wno-UNOPTFLAT \
|
-Wno-UNOPTFLAT \
|
||||||
-F ${RV_SOC}/soc.mk \
|
-F ${RV_SOC}/soc_top.mk \
|
||||||
|
-F ${RV_SOC}/soc_sim.mk \
|
||||||
$(RV_SOC)/soc_sim.sv \
|
$(RV_SOC)/soc_sim.sv \
|
||||||
--top-module soc_sim -exe test_soc_sim.cpp --autoflush $(VERILATOR_DEBUG)
|
--top-module soc_sim -exe test_soc_sim.cpp --autoflush $(VERILATOR_DEBUG)
|
||||||
cp ${DEMODIR}/test_soc_sim.cpp obj_dir
|
cp ${DEMODIR}/test_soc_sim.cpp obj_dir
|
||||||
|
|
|
@ -42,7 +42,8 @@ verilator-build: swerv_define
|
||||||
$(BUILD_DIR)/common_defines.vh \
|
$(BUILD_DIR)/common_defines.vh \
|
||||||
-I${BUILD_DIR} \
|
-I${BUILD_DIR} \
|
||||||
-Wno-UNOPTFLAT \
|
-Wno-UNOPTFLAT \
|
||||||
-F ${RV_SOC}/soc.mk \
|
-F ${RV_SOC}/soc_top.mk \
|
||||||
|
-F ${RV_SOC}/soc_sim.mk \
|
||||||
$(RV_SOC)/soc_sim.sv \
|
$(RV_SOC)/soc_sim.sv \
|
||||||
--top-module soc_sim -exe test_soc_sim.cpp --autoflush $(VERILATOR_DEBUG)
|
--top-module soc_sim -exe test_soc_sim.cpp --autoflush $(VERILATOR_DEBUG)
|
||||||
cp ${DEMODIR}/test_soc_sim.cpp obj_dir
|
cp ${DEMODIR}/test_soc_sim.cpp obj_dir
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
-I../design/include
|
||||||
|
-I./
|
||||||
|
|
||||||
|
-CFLAGS -lpthread
|
||||||
|
-LDFLAGS -lpthread
|
||||||
|
|
||||||
|
./dpi/common/tcp_server.c
|
||||||
|
./dpi/jtagdpi/jtagdpi.sv
|
||||||
|
./dpi/jtagdpi/jtagdpi.c
|
|
@ -38,20 +38,10 @@
|
||||||
../design/dmi/dmi_wrapper.v
|
../design/dmi/dmi_wrapper.v
|
||||||
../design/dmi/dmi_jtag_to_core_sync.v
|
../design/dmi/dmi_jtag_to_core_sync.v
|
||||||
../design/dmi/rvjtag_tap.sv
|
../design/dmi/rvjtag_tap.sv
|
||||||
-v ../design/lib/beh_lib.sv
|
../design/lib/beh_lib.sv
|
||||||
-v ../design/lib/mem_lib.sv
|
../design/lib/mem_lib.sv
|
||||||
-v ../design/lib/ahb_to_axi4.sv
|
../design/lib/ahb_to_axi4.sv
|
||||||
-v ../design/lib/axi4_to_ahb.sv
|
../design/lib/axi4_to_ahb.sv
|
||||||
|
|
||||||
./ahb_sif.sv
|
./ahb_sif.sv
|
||||||
./soc_top.sv
|
./soc_top.sv
|
||||||
|
|
||||||
-I../design/include
|
|
||||||
-I./
|
|
||||||
|
|
||||||
-CFLAGS -lpthread
|
|
||||||
-LDFLAGS -lpthread
|
|
||||||
|
|
||||||
./dpi/common/tcp_server.c
|
|
||||||
./dpi/jtagdpi/jtagdpi.sv
|
|
||||||
./dpi/jtagdpi/jtagdpi.c
|
|
Loading…
Reference in New Issue