Skip to content

Commit 4aaf243

Browse files
authored
Merge pull request #4 from meiniKi/dev
Fixes verification-related bugs
2 parents 270519a + 21b5dfe commit 4aaf243

8 files changed

Lines changed: 288 additions & 202 deletions

File tree

Makefile

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,9 @@ riscof.run.%: $(SRC_DESIGN) $(SRC_SYNTH)
162162
@echo "RF: $(RF)"
163163
mkdir -p $(WORK_DIR_RISCOF)
164164
mkdir -p $(SUMMARY_DIR_RISCOF)
165-
export RISCOF_CHUNKSIZE=$(CHUNKSIZE)
166-
export RISCOF_CONF=$(CONF)
167-
export RISCOF_RFTYPE=$(RF)
168165
riscof testlist --config=dv/config.ini --suite=riscv-arch-test/riscv-test-suite/ --env=riscv-arch-test/riscv-test-suite/env
169-
riscof run --no-browser --config=dv/config.ini --suite=riscv-arch-test/riscv-test-suite/ --env=riscv-arch-test/riscv-test-suite/env 2>&1 | tee $(SUMMARY_DIR_RISCOF)/tmp.txt
166+
RISCOF_CHUNKSIZE=$(CHUNKSIZE) RISCOF_CONF=$(CONF) RISCOF_RFTYPE=$(RF) \
167+
riscof run --no-browser --config=dv/config.ini --suite=riscv-arch-test/riscv-test-suite/ --env=riscv-arch-test/riscv-test-suite/env 2>&1 | tee $(SUMMARY_DIR_RISCOF)/tmp.txt
170168
@ ! grep -q -e "Failed" -e "ERROR" $(SUMMARY_DIR_RISCOF)/tmp.txt
171169
@echo $$? > $(SUMMARY_DIR_RISCOF)/$*.log
172170
@rm $(SUMMARY_DIR_RISCOF)/tmp.txt
@@ -230,21 +228,21 @@ fv.rvformal.cov.insn.%: _fv.rvformal.prepare
230228

231229
# param: <CHUNKSIZE>
232230
fv.rvformal.cov.reg.%: _fv.rvformal.prepare
233-
sed -E -i 's/(`define CHUNKSIZE )\S+/\1 $*/' riscv-formal/cores/fazyrv/checks_cov_insn.cfg
234-
sed -i -E "s/<INSERT_DEPTH>/$(call get_depth_value, $*)/" riscv-formal/cores/fazyrv/checks_cov_insn.cfg
235-
cd riscv-formal/cores/fazyrv && $(PYTHON) ../../checks/genchecks.py checks_cov_insn
236-
$(MAKE) -C riscv-formal/cores/fazyrv/checks_cov_insn
237-
cd riscv-formal/cores/fazyrv && ./stats.sh checks_cov_insn
231+
sed -E -i 's/(`define CHUNKSIZE )\S+/\1 $*/' riscv-formal/cores/fazyrv/checks_cov_reg.cfg
232+
sed -i -E "s/<INSERT_DEPTH>/$(call get_depth_value, $*)/" riscv-formal/cores/fazyrv/checks_cov_reg.cfg
233+
cd riscv-formal/cores/fazyrv && $(PYTHON) ../../checks/genchecks.py checks_cov_reg
234+
$(MAKE) -C riscv-formal/cores/fazyrv/checks_cov_reg
235+
cd riscv-formal/cores/fazyrv && ./stats.sh checks_cov_reg
238236
cd riscv-formal/cores/fazyrv && rm -vrf checks
239237

240238

241-
fv.rvformal.bmc.insn.all: $(addprefix fv.rvformal.bmc.insn.%, $(RVF_CHUNKSIZES))
239+
fv.rvformal.bmc.insn.all: $(addprefix fv.rvformal.bmc.insn., $(RVF_CHUNKSIZES))
242240

243-
fv.rvformal.bmc.reg.all: $(addprefix fv.rvformal.bmc.reg.%, $(RVF_CHUNKSIZES))
241+
fv.rvformal.bmc.reg.all: $(addprefix fv.rvformal.bmc.reg., $(RVF_CHUNKSIZES))
244242

245-
fv.rvformal.cov.insn.all: $(addprefix fv.rvformal.cov.insn.%, $(RVF_CHUNKSIZES))
243+
fv.rvformal.cov.insn.all: $(addprefix fv.rvformal.cov.insn., $(RVF_CHUNKSIZES))
246244

247-
fv.rvformal.cov.reg.all: $(addprefix fv.rvformal.cov.reg.%, $(RVF_CHUNKSIZES))
245+
fv.rvformal.cov.reg.all: $(addprefix fv.rvformal.cov.reg., $(RVF_CHUNKSIZES))
248246

249247
################
250248
# Embench

0 commit comments

Comments
 (0)