Relax assertion in Debug.scala, allow dmactive to be used to exit from busy state in DM (#1782)

This commit is contained in:
Gleb Gagarin 2019-01-17 10:19:13 -08:00 committed by GitHub
parent 68380eb9c3
commit 4b37841872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1181,7 +1181,7 @@ class TLDebugModuleInner(device: Device, getNComponents: () => Int, beatBytes: I
}.otherwise {
ctrlStateReg := ctrlStateNxt
}
assert ((!hartExceptionWrEn || ctrlStateReg === CtrlState(Exec)),
assert ((!io.dmactive || !hartExceptionWrEn || ctrlStateReg === CtrlState(Exec)),
"Unexpected EXCEPTION write: should only get it in Debug Module EXEC state")
}
}