pmp perm: revert to mux for priority

This commit is contained in:
occheung 2021-10-19 11:40:39 +08:00
parent df03c99ab2
commit a3807660e3
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ class PmpPlugin(regions : Int, granularity : Int, ioRange : UInt => Bool) extend
} }
def getPermission(hits : IndexedSeq[Bool], bit : Int) = { def getPermission(hits : IndexedSeq[Bool], bit : Int) = {
(hits zip state.pmpcfg).map({ case (i, cfg) => i & cfg(bit) }).orR MuxOH(OHMasking.first(hits), state.pmpcfg.map(_(bit)))
} }
val dGuard = new Area { val dGuard = new Area {