mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-20 04:07:36 -04:00
Interrupt cov : sample when rvfi.intr is asserted (#2675)
This commit is contained in:
parent
73bae85e0c
commit
b4a037d33b
1 changed files with 4 additions and 4 deletions
8
verif/env/uvme/cov/uvme_interrupt_covg.sv
vendored
8
verif/env/uvme/cov/uvme_interrupt_covg.sv
vendored
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue