change Rocc parameterization
This commit is contained in:
parent
e0d849fec5
commit
cdc476a370
2
rocket
2
rocket
@ -1 +1 @@
|
||||
Subproject commit 7be550b4f6cbf73514019712fd8505e7106e4f39
|
||||
Subproject commit 9ac1e842d9fb0a5048a92f3461c7c614b4793358
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user