From 354abf5e6beee7b0017fb1acc94c9be6634f45a4 Mon Sep 17 00:00:00 2001 From: Sagar Karandikar Date: Wed, 4 Nov 2015 22:15:47 -0800 Subject: [PATCH] fix NSets calculation --- src/main/scala/Configs.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/Configs.scala b/src/main/scala/Configs.scala index 2d5fd6a9..851973b5 100644 --- a/src/main/scala/Configs.scala +++ b/src/main/scala/Configs.scala @@ -206,7 +206,7 @@ class WithL2Cache extends Config( case "L2Bank" => { case NSets => (((here[Int]("L2_CAPACITY_IN_KB")*1024) / site(CacheBlockBytes)) / - site(NBanksPerMemoryChannel)*site(NMemoryChannels)) / + (site(NBanksPerMemoryChannel)*site(NMemoryChannels))) / site(NWays) case NWays => Knob("L2_WAYS") case RowBits => site(TLKey(site(TLId))).dataBitsPerBeat