mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
[funct_cov] Fix GPR assignment bug (#456)
This commit is contained in:
parent
2ee9828a78
commit
7ea79ae366
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue