From 329a5c35d426c1d48634f3dbc854686fae6e666a Mon Sep 17 00:00:00 2001 From: Henry Cook Date: Wed, 11 Oct 2017 00:30:51 -0700 Subject: [PATCH] tilelink: unsafe cache cork discards outer d.sink --- src/main/scala/tilelink/CacheCork.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/scala/tilelink/CacheCork.scala b/src/main/scala/tilelink/CacheCork.scala index 063c58a4..3ee2aa18 100644 --- a/src/main/scala/tilelink/CacheCork.scala +++ b/src/main/scala/tilelink/CacheCork.scala @@ -98,6 +98,7 @@ class TLCacheCork(unsafe: Boolean = false)(implicit p: Parameters) extends LazyM val d_d = Wire(in.d) d_d <> out.d d_d.bits.source := out.d.bits.source >> 1 + if (unsafe) { d_d.bits.sink := UInt(0) } when (out.d.bits.opcode === AccessAckData && out.d.bits.source(0)) { d_d.bits.opcode := GrantData