Skip to content

Commit

Permalink
Merge pull request #3557 from Kevin99214/master
Browse files Browse the repository at this point in the history
Update ECC SRAM to improve throughput on full write
  • Loading branch information
jerryz123 authored Jan 18, 2024
2 parents 1850695 + 166a95b commit 2fd1d1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/tilelink/SRAM.scala
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,9 @@ class TLRAM(
val r_ready = !d_wb && !r_replay && (!d_full || d_ready) && (!r_respond || (!d_win && in.d.ready))
in.a.ready := !(d_full && d_wb) && (!r_full || r_ready) && (!r_full || !(r_atomic || r_sublane))

// ignore sublane if mask is all set
val a_sublane = if (eccBytes == 1) false.B else
in.a.bits.opcode === TLMessages.PutPartialData ||
((in.a.bits.opcode === TLMessages.PutPartialData) && (~in.a.bits.mask.andR)) ||
in.a.bits.size < log2Ceil(eccBytes).U
val a_atomic = if (!atomics) false.B else
in.a.bits.opcode === TLMessages.ArithmeticData ||
Expand Down

0 comments on commit 2fd1d1f

Please sign in to comment.