Skip to content

Fix snitch verilator tests#146

Merged
DanielKellerM merged 2 commits into
develfrom
gb/fix-snitch-vlt-tests
Jul 7, 2026
Merged

Fix snitch verilator tests#146
DanielKellerM merged 2 commits into
develfrom
gb/fix-snitch-vlt-tests

Conversation

@gbellocchi

@gbellocchi gbellocchi commented Jul 3, 2026

Copy link
Copy Markdown

This PR fixes two bugs found after running verilator tests in Snitch:

  • Fix latch warning due to partial assignment of read/write obi responses;
  • Extend idma busy condition with AXI4 write completion (receipt of B response). This ensures that, once Snitch polls on the busy signal, it will wait until the receipt of the AXI4 B response before launching new transactions.

Fix verilator latch warning due to partial assignment of rw obi responses.
The per-channel `busy` signal deasserted once the last AXI write beat was
*issued*, not once its `B` response was received. Since a subset of Snitch API
polls this `busy` signal, Snitch could proceed before the write had actually
completed at its destination.

Extend the condition so a channel is busy while: (i) the iDMA backend or ND
midend are busy, or (ii) at least one issued AXI write is still awaiting its `B`
response. A per-channel counter tracks outstanding writes and increments on
each `AW` handshake and decrements on each `B` handshake.
@gbellocchi gbellocchi requested a review from DanielKellerM July 3, 2026 12:06
@gbellocchi gbellocchi self-assigned this Jul 3, 2026
@gbellocchi gbellocchi requested a review from micprog as a code owner July 3, 2026 12:06
@DanielKellerM DanielKellerM merged commit 1070970 into devel Jul 7, 2026
13 checks passed
@DanielKellerM DanielKellerM deleted the gb/fix-snitch-vlt-tests branch July 7, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants