From 3106a4cbcc79760219fc840bfff677702fd1426f Mon Sep 17 00:00:00 2001 From: Hansung Kim Date: Sat, 9 Nov 2024 22:59:37 -0800 Subject: [PATCH] Increase scratchpad write queue size to 32 temporary workaround of the queue backpressure problem for the flash attention kernel --- src/main/scala/gemmini/Scratchpad.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/gemmini/Scratchpad.scala b/src/main/scala/gemmini/Scratchpad.scala index 8a9f5465..d00dec08 100644 --- a/src/main/scala/gemmini/Scratchpad.scala +++ b/src/main/scala/gemmini/Scratchpad.scala @@ -144,7 +144,7 @@ class ScratchpadBank(n: Int, w: Int, aligned_to: Int, single_ported: Boolean, us ext_mem.read_resp.ready := q.io.enq.ready /* WRITE */ - val wq = Module(new Queue(ext_mem.write_req.bits.cloneType, 4, pipe=true, flow=true)) + val wq = Module(new Queue(ext_mem.write_req.bits.cloneType, 32, pipe=true, flow=true)) ext_mem.write_req <> wq.io.deq wq.io.enq.valid := io.write.en