Skip to content

Commit 6185c60

Browse files
committed
chore: add dynamic var val in template gen
1 parent b644e25 commit 6185c60

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rtl/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ setup:
8888

8989
###### project template target ######
9090
template:
91-
@./scripts/template.sh -t tc_l1
91+
@./scripts/template.sh -t $(CHIP_TARGET)
9292

9393
###### chisel target ######
9494
millTest:
@@ -239,7 +239,7 @@ $(cpuTestLogFile):
239239
$(shell echo 0 > $(CPUTEST_HOME)/build/log/passcasenum-log.txt)
240240

241241
$(cpuTestCaseName): cputest-%: $(CPUTEST_HOME)/build/%-riscv64-mycpu.bin
242-
$(call getRecursiveTestRes, $(CPUTEST_HOME), 34)
242+
$(call getRecursiveTestRes, $(CPUTEST_HOME), 33)
243243

244244
unit-test: simBuild riscvRecursiveTest cpuRecursiveTest
245245

rtl/scripts/template.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ configTemplate() {
7070

7171
configTarget() {
7272
# HACK: need to make one check statement
73+
# now dont receive 'tc_l2' as parameter
7374
if [[ -n $1 && $1 == "tc_l3" ]]; then
7475
configTemplate $1
7576
elif [[ -n $1 && $1 == "tc_l4" ]]; then

0 commit comments

Comments
 (0)