增加注释;增加Makefile脚本,用于生成独立的cpu0~cpu3的仿真日志文件

This commit is contained in:
2025-02-03 10:10:40 +08:00
parent ab506a0e37
commit 8b7dd6d9ff
2 changed files with 10 additions and 7 deletions

View File

@@ -62,10 +62,13 @@ VSimTop:
# +define+RANDOMIZE_MEM_INIT
test:
./tb/build/VSimTop -w -l -f ./tb/sw/build/mstTest
-./tb/build/VSimTop -w -l -f ./tb/sw/build/mstTest >./tb/sw/build/log.txt 2>&1
@echo "Processing simulation log..."
@cat ./tb/sw/build/log.txt | grep '^\[\ \ 0\]' 1>./tb/sw/build/cpu0_log.txt
@cat ./tb/sw/build/log.txt | grep '^\[\ \ 1\]' 1>./tb/sw/build/cpu1_log.txt
@cat ./tb/sw/build/log.txt | grep '^\[\ \ 2\]' 1>./tb/sw/build/cpu2_log.txt
@cat ./tb/sw/build/log.txt | grep '^\[\ \ 3\]' 1>./tb/sw/build/cpu3_log.txt
@echo "done!"
sw:
rm ./tb/sw/build/* -f