Fix an embarrassing typo in the PMPHeterogeneityChecker
This commit is contained in:
parent
10c39cb8d6
commit
8d7f1d777e
@ -89,8 +89,8 @@ class PMP(implicit p: Parameters) extends PMPReg {
|
||||
private def rangeHomogeneous(x: UInt, pgLevel: UInt, prev: PMP) = {
|
||||
val beginsAfterLower = !(x < prev.comparand)
|
||||
val beginsAfterUpper = !(x < comparand)
|
||||
val endsBeforeLower = pgLevelMap { idxBits => (x >> idxBits) < (prev.comparand << idxBits) } (pgLevel)
|
||||
val endsBeforeUpper = pgLevelMap { idxBits => (x >> idxBits) < (comparand << idxBits) } (pgLevel)
|
||||
val endsBeforeLower = pgLevelMap { idxBits => (x >> idxBits) < (prev.comparand >> idxBits) } (pgLevel)
|
||||
val endsBeforeUpper = pgLevelMap { idxBits => (x >> idxBits) < (comparand >> idxBits) } (pgLevel)
|
||||
endsBeforeLower || beginsAfterUpper || (beginsAfterLower && endsBeforeUpper)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user