Skip to content

Commit

Permalink
Interrupt cov : sample when rvfi.intr is asserted
Browse files Browse the repository at this point in the history
  • Loading branch information
AyoubJalali committed Dec 17, 2024
1 parent f4355fa commit bbea827
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions verif/env/uvme/cov/uvme_interrupt_covg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ covergroup cg_interrupt(
option.name = name;

cp_interrupt: coverpoint instr.rvfi.name_csrs["mcause"].wdata {
bins NO_INTERRUPT = {0} iff (!instr.trap);
bins NO_INTERRUPT = {0} iff (!instr.rvfi.intr);

ignore_bins IGN_SOFTWARE_INTERRUPT = {32'h80000003} iff (!sw_int_supported);
bins MACHINE_MODE_EXTERNAL_INTERRUPT = {32'h8000000b} iff (instr.trap);
bins MACHINE_MODE_SOFTWARE_INTERRUPT = {32'h80000003} iff (instr.trap);
bins MACHINE_MODE_TIMER_INTERRUPT = {32'h80000007} iff (instr.trap);
bins MACHINE_MODE_EXTERNAL_INTERRUPT = {32'h8000000b} iff (instr.rvfi.intr));
bins MACHINE_MODE_SOFTWARE_INTERRUPT = {32'h80000003} iff (instr.rvfi.intr));
bins MACHINE_MODE_TIMER_INTERRUPT = {32'h80000007} iff (instr.rvfi.intr));

}

Expand Down

0 comments on commit bbea827

Please sign in to comment.