修改测试方案

This commit is contained in:
2025-09-07 07:37:34 +08:00
parent 3678b24318
commit 1958f196f5
12 changed files with 75 additions and 50 deletions

View File

@@ -1,6 +1,7 @@
.PHONY:com sim clean
OUTPUT = shin_test
CPU_COUNT := $(shell nproc)
VCS = vcs -sverilog +v2k -timescale=1ns/1ps \
-full64 \
@@ -8,6 +9,7 @@ VCS = vcs -sverilog +v2k -timescale=1ns/1ps \
-l compile.log \
-debug_access+none \
+define+VCS_COMPILE \
-fastpartcomp=j$(nproc) \
SIM = ./${OUTPUT} -l run.log
@@ -15,10 +17,12 @@ testShin_vcs:
python3 ./shinTest/gen_pkt.py
mkdir -p generated/log
rm -rf generated/log/*
@echo "Available CPUs: ${CPU_COUNT}"
${VCS} -f ./shinTest_vcs.f
${SIM}
python3 ./shinTest/check_testcase.py
testShinClk_vcs:
python3 ./shinTest/gen_pkt_clk.py
mkdir -p generated/log