[funct_cov] Update Makefile options for coverage (#455)

This commit is contained in:
udinator 2019-11-11 15:07:20 -08:00 committed by GitHub
parent 23589f5a91
commit 2a3c6c6430
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 2 deletions

View file

@ -146,7 +146,7 @@ fcov:
--core ibex \
--dir ${OUT}/rtl_sim \
-o ${OUT}/fcov \
${RISCV_DV_OPTS} \
--custom_target ${DV_DIR}/riscv_dv_extension \
# Load verdi to review coverage
cov:

View file

@ -0,0 +1,18 @@
- test: riscv_instr_cov_debug_test
description: >
Functional coverage debug test, this is not a functional test to the core.
iterations: 1
gen_test: riscv_instr_cov_debug_test
no_iss: 1
no_gcc: 1
no_post_compare: 1
- test: riscv_instr_cov_test
description: >
Parse the instruction information from the CSV trace log, sample functional
coverage from the instruction trace.
iterations: 1
gen_test: riscv_instr_cov_test
no_iss: 1
no_gcc: 1
no_post_compare: 1

View file

@ -64,7 +64,6 @@ def process_ibex_sim_log(ibex_log, csv, full_trace = 1):
# Extract all missing operand values
if full_trace:
logging.info("full trace enabled")
o = re.search(r"(?P<instr_name>[a-z.]*)\s+(?P<operands>.*)", rv_instr_trace.instr_str)
if o:
operands = o.group("operands").split(",")