增加注释;增加Makefile脚本,用于生成独立的cpu0~cpu3的仿真日志文件
This commit is contained in:
11
Makefile
11
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user