1
0

change Rocc parameterization

This commit is contained in:
Howard Mao 2015-12-01 17:55:07 -08:00
parent e0d849fec5
commit cdc476a370
2 changed files with 12 additions and 11 deletions

2
rocket

@ -1 +1 @@
Subproject commit 7be550b4f6cbf73514019712fd8505e7106e4f39
Subproject commit 9ac1e842d9fb0a5048a92f3461c7c614b4793358

View File

@ -133,9 +133,7 @@ class DefaultConfig extends Config (
}
}
case BuildRoCC => Nil
case RoccAcceleratorMemChannels => site(BuildRoCC).map(_ => 1)
case RoccOpcodes => site(BuildRoCC).map(_ => OpcodeSet.all)
case RoccNMemChannels => site(RoccAcceleratorMemChannels).fold(0)(_ + _)
case RoccNMemChannels => site(BuildRoCC).map(_.nMemChannels).foldLeft(0)(_ + _)
//Rocket Core Constants
case FetchWidth => 1
case RetireWidth => 1
@ -389,14 +387,17 @@ class FancyMemtestConfig extends Config(
class WithRoccExample extends Config(
(pname, site, here) => pname match {
case BuildRoCC => Seq(
(p: Parameters) => Module(new AccumulatorExample()(p)),
(p: Parameters) => Module(new TranslatorExample()(p)),
(p: Parameters) => Module(new CharacterCountExample()(p)))
RoccParameters(
opcodes = OpcodeSet.custom0,
generator = (p: Parameters) => Module(new AccumulatorExample()(p))),
RoccParameters(
opcodes = OpcodeSet.custom1,
generator = (p: Parameters) => Module(new TranslatorExample()(p))),
RoccParameters(
opcodes = OpcodeSet.custom2,
generator = (p: Parameters) => Module(new CharacterCountExample()(p))))
case RoccMaxTaggedMemXacts => 1
case RoccOpcodes => Seq(
OpcodeSet.custom0,
OpcodeSet.custom1,
OpcodeSet.custom2)
})
class RoccExampleConfig extends Config(new WithRoccExample ++ new DefaultConfig)