pulp-platform / snitch_cluster

An energy-efficient RISC-V floating-point compute cluster.
https://pulp-platform.github.io/snitch_cluster/
Apache License 2.0
52 stars 55 forks source link

hw: Mask TCDM write data stability check on reads #125

Closed paulsc96 closed 6 months ago

paulsc96 commented 8 months ago

https://github.com/pulp-platform/common_cells/pull/200, recently included by a dependency update, may trigger false-positive TCDM stability assertion errors in some cases when using SSRs.

This is because SSR write data is hardwired to the bidirectional data FIFO output. Therefore, on reads, the write data bits may change irrespective of when a read request is pending. This instability is benign, but causes the payload-wide assertion to fail.

This PR, together with https://github.com/pulp-platform/common_cells/pull/219, fixes this issue by masking stability assertion on the write data and mask inside stream_xbar and stream_omega_net and then conditionally asserting write data and mask stability on reads and atomics in snitch_tcdm_interconnect.

A more general discussion is maybe in order on whether SSRs should invest additional logic to instead mask write data on reads, but we should first fix the bug and then ponder design improvements.

TODO: