Skip to content

Commit

Permalink
Relax TrapPlugin commit timings
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Sep 11, 2024
1 parent 9228641 commit 74ae80e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/vexiiriscv/misc/TrapPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class TrapPlugin(trapAt : Int) extends FiberPlugin with TrapService {

val trigger = new Area {
val lanes = host.list[ExecuteLanePlugin] //TODO AREA filter the ones which may trap
csr.commitMask := B(for (self <- lanes; sn = self.execute(trapAt).down) yield sn.isFiring && sn(COMMIT))
csr.commitMask := B(for (self <- lanes; sn = self.execute(trapAt+1).down) yield sn.isFiring && sn(COMMIT))
val oh = B(for (self <- lanes; sn = self.execute(trapAt).down) yield sn.isFiring && sn(TRAP))
val valid = oh.orR
val reader = lanes.map(_.execute(trapAt).down).reader(oh, true)
Expand Down

0 comments on commit 74ae80e

Please sign in to comment.