mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
[dv] fixed uvm check for mstatus.MPIE when interrupt is nmi
Signed-off-by: Saad Khalid <saad.khalid@lowrisc.org>
This commit is contained in:
parent
1c720e51b2
commit
94f9517287
1 changed files with 2 additions and 2 deletions
|
@ -679,8 +679,8 @@ class core_ibex_debug_intr_basic_test extends core_ibex_base_test;
|
|||
mstatus = signature_data;
|
||||
`DV_CHECK_EQ_FATAL(mstatus[12:11], select_mode(), "Incorrect mstatus.mpp")
|
||||
// mstatus.MPIE must be 1 when trap from M mode otherwise not necessarily be 1
|
||||
// as lower priv modes could trap when mstatus.MPIE is 0
|
||||
`DV_CHECK_EQ_FATAL(mstatus[7] | ~&mstatus[12:11], 1'b1,
|
||||
// as lower priv modes could trap when mstatus.MPIE is 0, or even nmi interrupt
|
||||
`DV_CHECK_EQ_FATAL(mstatus[7] | ~&mstatus[12:11] | (irq_id == ExcCauseIrqNm.lower_cause), 1'b1,
|
||||
"mstatus.mpie was not set to 1'b1 after entering handler")
|
||||
`DV_CHECK_EQ_FATAL(mstatus[3], 1'b0, "mstatus.mie was not set to 1'b0 after entering handler")
|
||||
// check mcause against the interrupt id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue