Skip to content

Commit 80cd3b9

Browse files
committed
chore: add print debug code
1 parent ffa9b59 commit 80cd3b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rtl/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export NOOP_HOME := $(ROOT_PATH)
6666
export DRAMSIM3_HOME := $(DRAMSIM3_HOME)
6767

6868
define getRecursiveTestRes
69+
@echo "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
6970
@printf "[%2d/%d]" $$(echo $$(cat $(1)/build/log/allcasenum-log.txt) + 1 | bc) $(2)
7071
@echo $$(echo $$(cat $(1)/build/log/allcasenum-log.txt) + 1 | bc) > $(1)/build/log/allcasenum-log.txt
7172
-@$(BUILD_DIR)/emu -i $< &> $(1)/build/log/$@-log.txt
@@ -213,13 +214,15 @@ riscvRecursiveTest: $(riscvTestLogFile) $(riscvTestCaseName)
213214
@echo -e "[\033[0;33mAll: $$(cat $(RISCVTEST_HOME)/build/log/allcasenum-log.txt) \033[0;32mPASS: $$(cat $(RISCVTEST_HOME)/build/log/passcasenum-log.txt) \033[0;31mFAIL: $$(echo $$(echo $$(cat $(RISCVTEST_HOME)/build/log/allcasenum-log.txt) - $$(cat $(RISCVTEST_HOME)/build/log/passcasenum-log.txt) | bc))\033[0m]";
214215

215216
$(riscvTestLogFile):
217+
@echo "=====HELLO======"
216218
$(shell touch $(RISCVTEST_HOME)/build/log/$@)
217219
$(shell touch $(RISCVTEST_HOME)/build/log/allcasenum-log.txt)
218220
$(shell touch $(RISCVTEST_HOME)/build/log/passcasenum-log.txt)
219221
$(shell echo 0 > $(RISCVTEST_HOME)/build/log/allcasenum-log.txt)
220222
$(shell echo 0 > $(RISCVTEST_HOME)/build/log/passcasenum-log.txt)
221223

222224
$(riscvTestCaseName): riscvtest-%: $(RISCVTEST_HOME)/build/%-riscv64-mycpu.bin
225+
@echo "TTTTTTTTTTTTTTTTTTTT"
223226
$(call getRecursiveTestRes, $(RISCVTEST_HOME), $(riscvNum))
224227

225228

0 commit comments

Comments
 (0)