make rocc build independent from parameter structure
This commit is contained in:
parent
e76dfa55f7
commit
3f8f726296
@ -71,10 +71,9 @@ class RocketTile(resetSignal: Bool = null)(implicit p: Parameters) extends Tile(
|
||||
val cmdRouter = Module(new RoccCommandRouter(roccOpcodes))
|
||||
cmdRouter.io.in <> core.io.rocc.cmd
|
||||
|
||||
val roccs = buildRocc.zipWithIndex.map {
|
||||
case (RoccParameters(_, generator, nchannels), i) =>
|
||||
val accelParams = p.alterPartial({ case RoccNMemChannels => nchannels })
|
||||
val rocc = generator(accelParams)
|
||||
val roccs = buildRocc.zipWithIndex.map { case (accelParams, i) =>
|
||||
val rocc = accelParams.generator(
|
||||
p.alterPartial({ case RoccNMemChannels => accelParams.nMemChannels }))
|
||||
val dcIF = Module(new SimpleHellaCacheIF()(dcacheParams))
|
||||
rocc.io.cmd <> cmdRouter.io.out(i)
|
||||
rocc.io.s := core.io.rocc.s
|
||||
|
Loading…
Reference in New Issue
Block a user