From eba1feea642b76f9c3cdb224b8130a66259fd602 Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Fri, 14 Feb 2020 04:44:48 -0800 Subject: [PATCH] Add optional buffering for C channel as well in error --- src/main/scala/devices/tilelink/Error.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/devices/tilelink/Error.scala b/src/main/scala/devices/tilelink/Error.scala index 20d836b1494..6931b87175c 100644 --- a/src/main/scala/devices/tilelink/Error.scala +++ b/src/main/scala/devices/tilelink/Error.scala @@ -42,7 +42,7 @@ class TLError(params: DevNullParams, buffer: Boolean = true, beatBytes: Int = 4) da.bits.corrupt := edge.hasData(da.bits) if (params.acquire) { - val c = Queue(in.c, 1) + val c = if (buffer) {Queue(in.c, 1)} else in.c val dc = Wire(in.d) val c_last = edge.last(c)