Harden RSSI core buffering and backpressure#1461
Open
bengineerd wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Harden the RSSI core buffering path and enable the core-level integration regressions that exercise full RSSI endpoint behavior.
This updates
RssiCoreso the transmit and receive segment buffers explicitly instantiate the RAM implementation that matchesSYNTH_MODE_G(xpm,altera_mf, orinferred) instead of passing that mode through the genericSimpleDualPortRamwrapper. It also clamps the application FIFO pause threshold so very small segment-buffer configurations do not create an invalid threshold, and extends local busy detection to include downstream application backpressure.Details
This was necessary because the core-level RSSI regressions exercise combinations that are more aggressive than the historical defaults: small segment buffers, wrapper backpressure, packetizer paths, and multi-stream packetizer2 routing. Those cases exposed three core-level issues:
SEGMENT_ADDR_SIZE_Gvalues could make(2**SEGMENT_ADDR_SIZE_G) - 16non-positive even though the FIFO pause threshold generic is positive;SimpleDualPortRam, which is less robust for this core because the RSSI buffer ports use write-enable shapes that differ between inferred and vendor-specific implementations.This has usually worked until now because common RSSI builds use larger segment buffers, valid default timing/window settings, and do not hold the application sink in sustained backpressure during connection negotiation and data transfer. The bug shows up when tests intentionally reduce buffer sizes or force downstream pressure to pin the protocol-visible busy behavior.
Protocol-wise, the local RSSI endpoint must not advertise that it can accept more traffic when its application path is unable to receive data. The existing RSSI documentation also defines
SEGMENT_ADDR_SIZE_Gas segment-buffer capacity in 64-bit RSSI words, so the FIFO threshold needs to remain valid across the supported generic range.Dependency Note
This PR is intentionally draft and depends on the preceding RSSI fix PRs:
The direct diff for this PR is one commit and four files. However, the ungated integration tests require the earlier FSM/monitor/register fixes to be present. Against
rssi-regression-foundationalone, these tests fail first in the oldRssiConnFsmpath before this core change is meaningfully exercised.Validation
On the isolated branch:
./.venv/bin/vsg -c vsg-linter.yml -f protocols/rssi/v1/rtl/RssiCore.vhdgit diff --checkOn a temporary stacked validation branch containing #1454 through #1458 plus this patch:
./.venv/bin/python -B -m pytest -q -p no:cacheprovider tests/protocols/rssi/test_RssiCore.py-> 6 passed./.venv/bin/python -B -m pytest -q -p no:cacheprovider tests/protocols/rssi/test_RssiCoreWrapper.py-> 5 passed./.venv/bin/python -B -m pytest -q -p no:cacheprovider tests/protocols/rssi/test_RssiCoreWrapperMultiStream.py-> 1 passed, 2 skippedRelated
Part of the RSSI regression split after the regression foundation PR.