[funct_cov] Fix GPR assignment bug (#456)

This commit is contained in:
udinator 2019-11-12 10:07:12 -08:00 committed by GitHub
parent 2ee9828a78
commit 7ea79ae366
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

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

View file

@ -64,6 +64,7 @@ def process_ibex_sim_log(ibex_log, csv, full_trace = 1):
# Extract all missing operand values
if full_trace:
gpr[rv_instr_trace.rd] = rv_instr_trace.rd_val
o = re.search(r"(?P<instr_name>[a-z.]*)\s+(?P<operands>.*)", rv_instr_trace.instr_str)
if o:
operands = o.group("operands").split(",")
@ -85,7 +86,6 @@ def process_ibex_sim_log(ibex_log, csv, full_trace = 1):
else:
assign_operand(rv_instr_trace, operands, gpr)
gpr[rv_instr_trace.rd] = rv_instr_trace.rd_val
trace_csv.write_trace_entry(rv_instr_trace)
logging.info("Processed instruction count : %d" % instr_cnt)