Skip to content

Commit

Permalink
#28 fix debug trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolu1990 committed Sep 23, 2024
1 parent 13da151 commit eec2859
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/scala/vexiiriscv/misc/PrivilegedPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,7 @@ class PrivilegedPlugin(val p : PrivilegedParam, val hartIds : Seq[Int]) extends
// when(tdata1.matcher === 4 || tdata1.matcher === 5) {
// cpuMasked(15 downto 0) := cpu.subdivideIn(2 slices)(U(tdata1.matcher.lsb)) & value(31 downto 16)
// }
val maskHits = (~((B(cpuMasked) & mask) ^ (value & mask))).subdivideIn(2 slices).map(_.andR)
val maskHit = maskHits.andR
val maskHit = (~((B(cpuMasked) & mask) ^ (value & mask))).andR

val ok = tdata1.matcher.mux(
0 -> maskHit,
Expand Down

0 comments on commit eec2859

Please sign in to comment.