fix missing ZCMP condition in commit stage to increasse Code Coverage (#2459)

This commit is contained in:
Côme 2024-08-24 11:48:36 +02:00 committed by GitHub
parent 4c36aafaf0
commit 064cec2066
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -321,7 +321,7 @@ module commit_stage
if (!exception_o.valid && !commit_instr_i[1].ex.valid
&& (commit_instr_i[1].fu inside {ALU, LOAD, CTRL_FLOW, MULT, FPU, FPU_VEC})) begin
if (commit_instr_i[1].is_macro_instr && commit_instr_i[1].is_last_macro_instr)
if (CVA6Cfg.RVZCMP && commit_instr_i[1].is_macro_instr && commit_instr_i[1].is_last_macro_instr)
commit_macro_ack[1] = 1'b1;
else commit_macro_ack[1] = 1'b0;