Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in udp_checksum_gen #206

Open
SebastianSchelle opened this issue Apr 25, 2024 · 0 comments
Open

Bug in udp_checksum_gen #206

SebastianSchelle opened this issue Apr 25, 2024 · 0 comments

Comments

@SebastianSchelle
Copy link

I am streaming out small packets (about 50 to 60 bytes payload). When hitting the bandwidth limit, in this case 100M, the FIFOs start to fill up and afterwards old payload data is still stuck in the payload FIFO. Thus, when trying to send out new data, stale data is sent to the PHY.

Analysis with the ILA showed, that this happens when the header FIFO inside the udp_checksum_gen is full. The following screencap shows that with a full FIFO, some headers are just dropped (FIFO full, header is not written) even though the logic waits for assertion of hdr_ready. Then, payload and header FIFO are drifting apart as payload is still accepted.
lost_header_udp_checksum_gen

A simple fix on my side is to extend the state machine inside udp_checksum_gen to wait until the FIFO is ready again after STATE_FINISH_SUM before continuing to STATE_IDLE.
wait_for_ready_udp_checksum_gen

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

No branches or pull requests

1 participant