Update code coverage report for only cva6 pipeline

This commit is contained in:
Ayoub Jalali 2025-02-24 11:11:13 +01:00 committed by JeanRochCoulon
parent 1007cd865c
commit ac0d631f37
2 changed files with 11 additions and 11 deletions

View file

@ -28,7 +28,7 @@ def get_cc_scores(component):
if re.search(r'\b'+component+r'\b', l):
line = l
scores = pattern.findall(line)
return [float(score) for score in scores[0:4]]
return [float(score) for score in scores[0:3]]
def get_fc_scores(component):
for l in fc_log.splitlines():
@ -38,7 +38,7 @@ def get_fc_scores(component):
return [float(scores[0])]
cc_components = [
"i_cva6",
"i_cva6_pipeline",
"commit_stage_i",
"controller_i",
"csr_regfile_i",
@ -55,7 +55,7 @@ fc_components = [
]
cc_score_metric = rb.TableMetric('Coverage results')
cc_score_metric.add_value("COMPONENT", "SCORE", "LINE", "COND", "TOGGLE")
cc_score_metric.add_value("COMPONENT", "SCORE", "LINE", "COND")
for component in cc_components:
cc_scores = get_cc_scores(component)
cc_score_metric.add_value(component, *cc_scores)
@ -66,7 +66,7 @@ for component in fc_components:
fc_scores = get_fc_scores(component)
fc_score_metric.add_value(component, *fc_scores)
coverage_score = int(get_cc_scores("i_cva6")[0])
coverage_score = int(get_cc_scores("i_cva6_pipeline")[0])
report = rb.Report(f'{coverage_score}%')
report.add_metric(cc_score_metric)
report.add_metric(fc_score_metric)

View file

@ -7,10 +7,10 @@
//
// Original Author: Zineb EL KACIMI (zineb.el-kacimi@external.thalesgroup.com)
-tree uvmt_cva6_tb.cva6_dut_wrap.cva6_tb_wrapper_i.i_cva6.instr_tracer_i
-tree uvmt_cva6_tb.cva6_dut_wrap.cva6_tb_wrapper_i.i_cva6.tracer_if
-tree uvmt_cva6_tb.cva6_dut_wrap.cva6_tb_wrapper_i.i_cva6.genblk6.i_cva6_rvfi_combi
-tree uvmt_cva6_tb.cva6_dut_wrap.cva6_tb_wrapper_i.i_cva6.i_cva6_rvfi_probes
-tree uvmt_cva6_tb.cva6_dut_wrap.cva6_tb_wrapper_i.i_cva6.i_frontend.i_instr_queue.i_unread_*
-tree uvmt_cva6_tb.cva6_dut_wrap.cva6_tb_wrapper_i.i_cva6.gen_cache_hpd.i_cache_subsystem
+moduletree cva6_pipeline
-tree *.instr_tracer_i
-tree *.tracer_if
-tree *.i_cva6_rvfi_probes
-tree *.i_frontend.i_instr_queue.i_unread_*
-tree *.ex_stage_i.lsu_i.i_pmp_data_if*
-tree *.issue_stage_i.i_issue_read_operands.gen_sel_clobbers[*].i_sel_gpr_clobbers