Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "dut/CoupledL2"]
path = dut/CoupledL2
url = https://github.com/OpenXiangShan/CoupledL2.git
[submodule "dut/OpenLLC"]
path = dut/OpenLLC
url = https://github.com/OpenXiangShan/OpenLLC.git
29 changes: 14 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ endif
init:
git submodule update --init --recursive
$(MAKE) -C ./dut/CoupledL2 init
$(MAKE) -C ./dut/OpenLLC init

FORCE:

Expand Down Expand Up @@ -39,15 +38,15 @@ tltest-prepare-v3-coupledL2:

tltest-prepare-all-openLLC:
cmake ./main -B ./main/build -DBUILD_DPI=ON -DBUILD_V3=ON $(CMAKE_CXX_COMPILER) \
-DDUT_PATH="${PWD}/dut/OpenLLC"
-DDUT_PATH="${PWD}/dut/CoupledL2"

tltest-prepare-dpi-openLLC:
cmake ./main -B ./main/build -DBUILD_DPI=ON -DBUILD_V3=OFF $(CMAKE_CXX_COMPILER) \
-DDUT_PATH="${PWD}/dut/OpenLLC"
-DDUT_PATH="${PWD}/dut/CoupledL2"

tltest-prepare-v3-openLLC:
cmake ./main -B ./main/build -DBUILD_V3=ON -DBUILD_DPI=OFF $(CMAKE_CXX_COMPILER) \
-DDUT_PATH="${PWD}/dut/OpenLLC"
-DDUT_PATH="${PWD}/dut/CoupledL2"


tltest-portgen:
Expand Down Expand Up @@ -107,40 +106,40 @@ tltest-build-v3-openLLC: tltest-prepare-v3-openLLC tltest-build


coupledL2-compile:
$(MAKE) -C ./dut/CoupledL2 compile
$(MAKE) -C ./dut/CoupledL2 compile-coupledl2

coupledL2-verilog-test-top-l2l3:
$(MAKE) -C ./dut/CoupledL2 test-top-l2l3
$(MAKE) -C ./dut/CoupledL2 test-top-l2l3-huancun

coupledL2-verilog-test-top-l2l3l2:
$(MAKE) -C ./dut/CoupledL2 test-top-l2l3l2
$(MAKE) -C ./dut/CoupledL2 test-top-l2l3l2-huancun

coupledL2-verilog-clean:
$(MAKE) -C ./dut/CoupledL2 clean

openLLC-compile:
$(MAKE) -C ./dut/OpenLLC compile
$(MAKE) -C ./dut/CoupledL2 compile-openllc

openLLC-verilog-test-top-l2l3:
$(MAKE) -C ./dut/OpenLLC test-top-l2l3
$(MAKE) -C ./dut/CoupledL2 test-top-l2l3-openllc

openLLC-verilog-test-top-l2l3l2:
$(MAKE) -C ./dut/OpenLLC test-top-l2l3l2
$(MAKE) -C ./dut/CoupledL2 test-top-l2l3l2-openllc

openLLC-verilog-clean:
$(MAKE) -C ./dut/OpenLLC clean
$(MAKE) -C ./dut/CoupledL2 clean


VERILATOR := verilator
VERILATOR_COMMON_ARGS_COUPLEDL2 := ./dut/CoupledL2/build/*.*v \
VERILATOR_COMMON_ARGS_COUPLEDL2 := ./dut/CoupledL2/build/coupledl2/*.*v \
--Mdir ./verilated \
-O3 \
--trace-fst \
--top TestTop \
--build-jobs $(THREADS_BUILD) --verilate-jobs $(THREADS_BUILD) \
-DSIM_TOP_MODULE_NAME=TestTop \
-Wno-fatal
VERILATOR_COMMON_ARGS_OPENLLC := ./dut/OpenLLC/build/*.*v \
VERILATOR_COMMON_ARGS_OPENLLC := ./dut/CoupledL2/build/openllc/*.*v \
--Mdir ./verilated \
-O3 \
--trace-fst \
Expand All @@ -162,7 +161,7 @@ coupledL2-verilate-build:
coupledL2-verilate:
rm -rf verilated
mkdir verilated
verilator --trace-fst --cc --build --lib-create vltdut --Mdir ./verilated ./dut/CoupledL2/build/*.*v -Wno-fatal \
verilator --trace-fst --cc --build --lib-create vltdut --Mdir ./verilated ./dut/CoupledL2/build/coupledl2/*.*v -Wno-fatal \
--top TestTop --build-jobs $(THREADS_BUILD) --verilate-jobs $(THREADS_BUILD) -DSIM_TOP_MODULE_NAME=TestTop

coupledL2-verilate-clean:
Expand All @@ -181,7 +180,7 @@ openLLC-verilate-build:
openLLC-verilate:
rm -rf verilated
mkdir verilated
verilator --trace-fst --cc --build --lib-create vltdut --Mdir ./verilated ./dut/OpenLLC/build/*.*v -Wno-fatal \
verilator --trace-fst --cc --build --lib-create vltdut --Mdir ./verilated ./dut/CoupledL2/build/openllc/*.*v -Wno-fatal \
--top TestTop --build-jobs $(THREADS_BUILD) --verilate-jobs $(THREADS_BUILD) -DSIM_TOP_MODULE_NAME=TestTop

openLLC-verilate-clean:
Expand Down
2 changes: 1 addition & 1 deletion dut/CoupledL2
Submodule CoupledL2 updated 108 files
1 change: 0 additions & 1 deletion dut/OpenLLC
Submodule OpenLLC deleted from 484d1a
Loading