ZSTD decoder: cocotb utils and decoder testcases, verilog helper modules#3035
Closed
rw1nkler wants to merge 31 commits intogoogle:mainfrom
Closed
ZSTD decoder: cocotb utils and decoder testcases, verilog helper modules#3035rw1nkler wants to merge 31 commits intogoogle:mainfrom
rw1nkler wants to merge 31 commits intogoogle:mainfrom
Conversation
Contributor
Author
|
@proppy Please let us know if there’s anything else we can do to move this forward |
proppy
reviewed
Sep 16, 2025
| @@ -0,0 +1,15 @@ | |||
| # Copyright 2025 The XLS Authors | |||
Member
There was a problem hiding this comment.
I don't think there is a precedent for our project to import SystemVerilog third_party dependency, I'll have to figure out how to make this work.
Member
There was a problem hiding this comment.
as we discussed, it might be worth exploring landing the verilog dependency in a separate PR (and merge first the cocotb tests that don't depend on it)
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
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 <pczarnecki@antmicro.com> Co-authred-by: Robert Winkler <rwinkler@antmicro.com> Co-authred-by: Michal Czyz <mczyz@antmicro.com> Signed-off-by: Michal Czyz <mczyz@antmicro.com> Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com> Signed-off-by: Robert Winkler <rwinkler@antmicro.com> Signed-off-by: Krzysztof Obłonczek <koblonczek@antmicro.com>
Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
This reverts commit 04ad379225b706ddf492d440c673e77348d7a409.
Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
Co-authored-by: Robert Winkler <rwinkler@antmicro.com> Signed-off-by: Robert Winkler <rwinkler@antmicro.com> Signed-off-by: Krzysztof Obłonczek <koblonczek@antmicro.com>
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 <pczarnecki@antmicro.com>
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 <pczarnecki@antmicro.com>
* 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 <pczarnecki@antmicro.com>
Caused by timeouts after rebase - looks like regression in the performance of codegen Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
…sources Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
Improve formatting, wording and fix lint issues Co-authored-by: Pawel Czarnecki <pczarnecki@antmicro.com> Signed-off-by: Wojciech Sipak <wsipak@antmicro.com>
Co-authored-by: Pawel Czarnecki <pczarnecki@antmicro.com> Co-authored-by: Krzysztof Oblonczek <koblonczek@antmicro.com> Co-authored-by: Wojciech Sipak <wsipak@antmicro.com> Co-authored-by: Dominik Lau <dlau@antmicro.com> Co-authored-by: Szymon Gizler <sgizler@antmicro.com> Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Co-autored-by: Dominik Lau <dlau@antmicro.com> Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Co-autored-by: Dominik Lau <dlau@antmicro.com> Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Co-autored-by: Dominik Lau <dlau@antmicro.com> Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Co-autored-by: Dominik Lau <dlau@antmicro.com> Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
Signed-off-by: Robert Winkler <rwinkler@antmicro.com>
2b62dd2 to
acf0ffd
Compare
Member
|
Marking this as draft until it's ready to review again. |
Contributor
Author
|
Superseded by #3636 |
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.
Added functionality:
Supersedes #2717