大部分测试用例通过

This commit is contained in:
2025-09-22 13:12:28 +08:00
parent 2c1627b215
commit 9530ede4e1
12 changed files with 52 additions and 256 deletions

View File

@@ -3,6 +3,7 @@
OUTPUT = shin_test
CPU_COUNT := $(shell nproc)
SPI_TYPE ?= -spi 0
TRANS_CODE ?=
VCS = vcs -sverilog +v2k -timescale=1ns/1ps \
-full64 \
@@ -15,7 +16,7 @@ VCS = vcs -sverilog +v2k -timescale=1ns/1ps \
SIM = ./${OUTPUT} -l run.log
testShin_vcs:
python3 ./shinTest/gen_pkt.py ${SPI_TYPE}
python3 ./shinTest/gen_pkt.py ${SPI_TYPE} ${TRANS_CODE}
mkdir -p generated/log
rm -rf generated/log/*
@echo "Available CPUs: ${CPU_COUNT}"
@@ -23,17 +24,6 @@ testShin_vcs:
${SIM}
python3 ./shinTest/check_testcase.py
testShin8b10b_vcs:
python3 ./shinTest/gen_pkt.py -8b10b
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 --dev1 0 90 --dev2 0 -90
mkdir -p generated/log