Skip to content

Commit

Permalink
Merge pull request #306 from lschuermann/dev/csr-plugin-formal-halt
Browse files Browse the repository at this point in the history
CsrPlugin: insert FORMAL_HALT := False
  • Loading branch information
Dolu1990 committed Feb 27, 2023
2 parents c655abb + 49246e7 commit b29eb54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/scala/vexriscv/plugin/CsrPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,10 @@ class CsrPlugin(val config: CsrPluginConfig) extends Plugin[VexRiscv] with Excep
}
}

// The CSR plugin will invoke a trap handler on exception, which does not
// count as halt-state by the RVFI spec, and neither do other instructions
// such as `wfi`, etc. Hence statically drive the output:
pipeline.stages.head.insert(FORMAL_HALT) := False

case class Xtvec() extends Bundle {
val mode = Bits(2 bits)
Expand Down

0 comments on commit b29eb54

Please sign in to comment.