fix NSets calculation
This commit is contained in:
parent
dcef020ca0
commit
354abf5e6b
@ -206,7 +206,7 @@ class WithL2Cache extends Config(
|
|||||||
case "L2Bank" => {
|
case "L2Bank" => {
|
||||||
case NSets => (((here[Int]("L2_CAPACITY_IN_KB")*1024) /
|
case NSets => (((here[Int]("L2_CAPACITY_IN_KB")*1024) /
|
||||||
site(CacheBlockBytes)) /
|
site(CacheBlockBytes)) /
|
||||||
site(NBanksPerMemoryChannel)*site(NMemoryChannels)) /
|
(site(NBanksPerMemoryChannel)*site(NMemoryChannels))) /
|
||||||
site(NWays)
|
site(NWays)
|
||||||
case NWays => Knob("L2_WAYS")
|
case NWays => Knob("L2_WAYS")
|
||||||
case RowBits => site(TLKey(site(TLId))).dataBitsPerBeat
|
case RowBits => site(TLKey(site(TLId))).dataBitsPerBeat
|
||||||
|
Loading…
Reference in New Issue
Block a user