Added better comment for the exclusion in privdec.sv

This commit is contained in:
Alexa Wright 2023-04-26 16:25:55 -07:00
parent 55a74fd315
commit 79031e3de0

View File

@ -70,7 +70,7 @@ module privdec (
assign WFICountPlus1 = WFICount + 1;
floprc #(`WFI_TIMEOUT_BIT+1) wficountreg(clk, reset, ~wfiM, WFICountPlus1, WFICount); // count while in WFI
// coverage off -item e 1 -fecexprrow 1
// Excluding test case where we need to test WFI in a condition where it will never trap
// WFI Timout trap will not occur when STATUS_TW is low while in supervisor mode, so the system gets stuck waiting for an interrupt and triggers a watchdog timeout.
assign WFITimeoutM = ((STATUS_TW & PrivilegeModeW != `M_MODE) | (`S_SUPPORTED & PrivilegeModeW == `U_MODE)) & WFICount[`WFI_TIMEOUT_BIT];
// coverage on
end else assign WFITimeoutM = 0;