Skip to content

Commit

Permalink
Increase scratchpad write queue size to 32
Browse files Browse the repository at this point in the history
temporary workaround of the queue backpressure problem for the flash
attention kernel
  • Loading branch information
hansungk committed Nov 10, 2024
1 parent dd8b74e commit 3106a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/gemmini/Scratchpad.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3106a4c

Please sign in to comment.