1
0

add 2 and 4 memory channel configs

This commit is contained in:
Yunsup Lee 2015-10-31 00:00:09 -07:00 committed by Howard Mao
parent 0d245741bc
commit 51116e0674

View File

@ -189,6 +189,17 @@ class With2Banks extends Config(knobValues = { case "NBANKS" => 2 })
class With4Banks extends Config(knobValues = { case "NBANKS" => 4 }) class With4Banks extends Config(knobValues = { case "NBANKS" => 4 })
class With8Banks extends Config(knobValues = { case "NBANKS" => 8 }) 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( class WithL2Cache extends Config(
(pname,site,here) => pname match { (pname,site,here) => pname match {
case "L2_CAPACITY_IN_KB" => Knob("L2_CAPACITY_IN_KB") case "L2_CAPACITY_IN_KB" => Knob("L2_CAPACITY_IN_KB")