Fix CsrPlugin dcsr.stepie

This commit is contained in:
Dolu1990 2022-11-21 11:55:05 +01:00
parent 4ae7386904
commit 5a8cdee884
1 changed files with 1 additions and 1 deletions

View File

@ -1231,7 +1231,7 @@ class CsrPlugin(val config: CsrPluginConfig) extends Plugin[VexRiscv] with Excep
code.addTag(Verilator.public)
if(withPrivilegedDebug) {
valid clearWhen(!debug.dcsr.stepie)
valid clearWhen(debug.dcsr.step && !debug.dcsr.stepie)
valid setWhen(debug.doHalt)
}
}