-
Notifications
You must be signed in to change notification settings - Fork 222
ZSTD decoder: cleanups, new sequence executor and fixes for subcomponents #3636
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
Open
magancarz
wants to merge
85
commits into
google:main
Choose a base branch
from
antmicro:zstd_decoder_pr
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
Signed-off-by: Robert Winkler <[email protected]>
Add cocotb testing utilities: - XLSStruct for easier handling and serializing/deserializing XLS structs - XLSChannel that serves as a dummy receiving channel - XLSMonitor that monitors transactions on an XLS channel - XLSDriver that can send data on an XLS channel - LatencyScoreboard that can measure latency between corresponding transactions on input and output buses - File-backed AXI memory python model Add cocotb tests for: - modules/zstd/memory/MemReader - modules/zstd/memory/AxiWriter - modules/zstd/memory/MemWriter Co-authred-by: Pawel Czarnecki <[email protected]> Co-authred-by: Robert Winkler <[email protected]> Co-authred-by: Michal Czyz <[email protected]> Signed-off-by: Michal Czyz <[email protected]> Signed-off-by: Pawel Czarnecki <[email protected]> Signed-off-by: Robert Winkler <[email protected]> Signed-off-by: Krzysztof Obłonczek <[email protected]>
Signed-off-by: Pawel Czarnecki <[email protected]>
This reverts commit 04ad379225b706ddf492d440c673e77348d7a409.
Signed-off-by: Pawel Czarnecki <[email protected]>
Signed-off-by: Pawel Czarnecki <[email protected]>
Co-authored-by: Robert Winkler <[email protected]> Signed-off-by: Robert Winkler <[email protected]> Signed-off-by: Krzysztof Obłonczek <[email protected]>
ZstdDecoder:
* Cocotb tests:
* Move third-party verilog modules (AXI Interconnect) to external directory
* Replace AXI Interconnect with AXI Crossbar that handles simultaneous AXI Read
and Write transactions
* Add reference memory and fill it with expected data for comparison
against testbench memory at the end of the decoding
Internal-tag: [#67272]
Signed-off-by: Pawel Czarnecki <[email protected]>
Adjust cocotb test to: * Removal of Repacketizer proc * Removal of stream-based output channels from * SequenceExecutor * ZstdDecoder Internal-tag: [#67272] Signed-off-by: Pawel Czarnecki <[email protected]>
* Decode multiple ZSTD frames in a single cocotb testbench * Add one cocotb testbench per type of the ZSTD frames: * Frames with RAW blocks only * Frames with RLE blocks only * Frames with Compressed blocks only (disabled) * Frames with mixed blocks (disabled) Internal-tag: [#67272] Signed-off-by: Pawel Czarnecki <[email protected]>
Caused by timeouts after rebase - looks like regression in the performance of codegen Signed-off-by: Pawel Czarnecki <[email protected]>
Signed-off-by: Pawel Czarnecki <[email protected]>
…sources Signed-off-by: Pawel Czarnecki <[email protected]>
Signed-off-by: Pawel Czarnecki <[email protected]>
Improve formatting, wording and fix lint issues Co-authored-by: Pawel Czarnecki <[email protected]> Signed-off-by: Wojciech Sipak <[email protected]>
Co-authored-by: Pawel Czarnecki <[email protected]> Co-authored-by: Krzysztof Oblonczek <[email protected]> Co-authored-by: Wojciech Sipak <[email protected]> Co-authored-by: Dominik Lau <[email protected]> Co-authored-by: Szymon Gizler <[email protected]> Signed-off-by: Robert Winkler <[email protected]>
Signed-off-by: Robert Winkler <[email protected]>
Signed-off-by: Robert Winkler <[email protected]>
Signed-off-by: Robert Winkler <[email protected]>
Signed-off-by: Robert Winkler <[email protected]>
Signed-off-by: Robert Winkler <[email protected]>
Signed-off-by: Robert Winkler <[email protected]>
Signed-off-by: Robert Winkler <[email protected]>
Co-autored-by: Dominik Lau <[email protected]> Signed-off-by: Robert Winkler <[email protected]>
Signed-off-by: Robert Winkler <[email protected]>
Co-autored-by: Dominik Lau <[email protected]> Signed-off-by: Robert Winkler <[email protected]>
Co-autored-by: Dominik Lau <[email protected]> Signed-off-by: Robert Winkler <[email protected]>
Co-autored-by: Dominik Lau <[email protected]> Signed-off-by: Robert Winkler <[email protected]>
cocotb marks all signals as public, siginficantly restricting verilator from doing optimizations - public signal can change anytime and verilator must take it into account Instead of using global public flag, we list individual public signals/modules in verilator config
…rdering First symbol is stored in the most significant nibble of given input byte requiring us to swap each adjecent weights (rfc8878#section-4.2.1.1)
…calculation As defined in https://datatracker.ietf.org/doc/html/rfc8878#section-4.2.1.1 raw weights consume ceil(n_symb/2) bytes. The correct equivalent of that ceiled div is: (n_symb+1)>>1 rather than (n_symb>>1)+1 we previously used
…t weight Previous version did not take into account weight swapping.
Old test reimplemented parts of decoder and compared output of proc against reimplementation. It had very little value (as we are likely to slip same bug into both implementations) and was hard to reason about. New test compares decoder against readable explicit golden prepared to test all recently fixed bugs (swapped weights, bad description size and wrong last weight position)
…iteration if required
Signed-off-by: Robert Winkler <[email protected]>
Co-authored-by: Wojciech Sipak <[email protected]> Signed-off-by: Robert Winkler <[email protected]>
dcab137 to
412ca7f
Compare
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.
Added functionality:
xls_benchmark_irtargets to failSupersedes #3035