From 51116e0674032c3d9c6fe960a8cfba17894cee16 Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Sat, 31 Oct 2015 00:00:09 -0700 Subject: [PATCH] add 2 and 4 memory channel configs --- src/main/scala/Configs.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/scala/Configs.scala b/src/main/scala/Configs.scala index e577f79f..89b4c4aa 100644 --- a/src/main/scala/Configs.scala +++ b/src/main/scala/Configs.scala @@ -189,6 +189,17 @@ class With2Banks extends Config(knobValues = { case "NBANKS" => 2 }) class With4Banks extends Config(knobValues = { case "NBANKS" => 4 }) class With8Banks extends Config(knobValues = { case "NBANKS" => 8 }) +class With2MemoryChannels extends Config( + (pname,site,here) => pname match { + case NMemoryChannels => Dump("N_MEM_CHANNELS", 2) + } +) +class With4MemoryChannels extends Config( + (pname,site,here) => pname match { + case NMemoryChannels => Dump("N_MEM_CHANNELS", 4) + } +) + class WithL2Cache extends Config( (pname,site,here) => pname match { case "L2_CAPACITY_IN_KB" => Knob("L2_CAPACITY_IN_KB")