1
0

fix NSets calculation

This commit is contained in:
Sagar Karandikar 2015-11-04 22:15:47 -08:00 committed by Howard Mao
parent dcef020ca0
commit 354abf5e6b

View File

@ -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