Skip to content

Commit

Permalink
tilelink: SourceShrinker forwards user and echo bits
Browse files Browse the repository at this point in the history
  • Loading branch information
hcook committed May 4, 2020
1 parent d1c507c commit f05147b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/scala/tilelink/SourceShrinker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ class TLSourceShrinker(maxInFlight: Int)(implicit p: Parameters) extends LazyMod
sourceId = IdRange(0, maxInFlight))
val node = TLAdapterNode(
// We erase all client information since we crush the source Ids
clientFn = { cp => TLMasterPortParameters.v1(clients = Seq(client.v1copy(requestFifo = cp.clients.exists(_.requestFifo)))) },
clientFn = { cp => TLMasterPortParameters.v1(
clients = Seq(client.v1copy(requestFifo = cp.clients.exists(_.requestFifo))),
echoFields = cp.echoFields,
requestFields = cp.requestFields,
responseKeys = cp.responseKeys
)},
managerFn = { mp => mp.v1copy(managers = mp.managers.map(m => m.v1copy(fifoId = if (maxInFlight==1) Some(0) else m.fifoId))) })

lazy val module = new LazyModuleImp(this) {
Expand Down

0 comments on commit f05147b

Please sign in to comment.