make sure PTE cache is power of 2 in size to satisfy PseudoLRU requirement
This commit is contained in:
parent
dcfcac9530
commit
bf35f980a6
@ -98,7 +98,7 @@ class PTW(n: Int)(implicit p: Parameters) extends CoreModule()(p) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val (pte_cache_hit, pte_cache_data) = {
|
val (pte_cache_hit, pte_cache_data) = {
|
||||||
val size = log2Up(pgLevels * 2)
|
val size = 1 << log2Up(pgLevels * 2)
|
||||||
val plru = new PseudoLRU(size)
|
val plru = new PseudoLRU(size)
|
||||||
val valid = Reg(init = UInt(0, size))
|
val valid = Reg(init = UInt(0, size))
|
||||||
val tags = Reg(Vec(size, UInt(width = paddrBits)))
|
val tags = Reg(Vec(size, UInt(width = paddrBits)))
|
||||||
|
Loading…
Reference in New Issue
Block a user