log2ceil
This commit is contained in:
parent
8173695800
commit
4508666d96
@ -11,7 +11,7 @@ case object NTLBEntries extends Field[Int]
|
||||
|
||||
trait HasTLBParameters extends HasAddrMapParameters {
|
||||
val entries = p(NTLBEntries)
|
||||
val camAddrBits = ceil(log(entries)/log(2)).toInt
|
||||
val camAddrBits = log2Ceil(entries)
|
||||
val camTagBits = asIdBits + vpnBits
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user