Skip to content

modules/zstd: add raw block decoder#1212

Closed
rw1nkler wants to merge 13 commits intogoogle:mainfrom
antmicro:51343-raw-blocks
Closed

modules/zstd: add raw block decoder#1212
rw1nkler wants to merge 13 commits intogoogle:mainfrom
antmicro:51343-raw-blocks

Conversation

@rw1nkler
Copy link
Contributor

@rw1nkler rw1nkler commented Nov 29, 2023

This PR adds RawBlockDecoder Proc which is responsible for decoding ZSTD Raw Blocks. More information about Raw Block's format can be found in Section 3.1.1.2.2 of RFC8788. The Proc acts as a simple passthrough for the incoming data. It will be a part of the larger decoding pipeline.

NOTE: this is based on #1168 , please ignore commits from that branch when reviewing.

CC @proppy

@lpawelcz lpawelcz force-pushed the 51343-raw-blocks branch 4 times, most recently from 1a12c5e to 8397aea Compare December 19, 2023 11:37
@lpawelcz lpawelcz force-pushed the 51343-raw-blocks branch 3 times, most recently from 4f0cdd2 to 7088e8c Compare January 11, 2024 10:53
@lpawelcz lpawelcz force-pushed the 51343-raw-blocks branch 2 times, most recently from 50b1c5c to 98cd055 Compare January 15, 2024 14:52
rw1nkler and others added 13 commits February 21, 2024 14:57
This commit adds a DSLX Buffer library that provides the Buffer struct,
and helper functions that can be used to operate on it. The Buffer
is meant to be a storage for data coming from the channel. It acts like
a FIFO, allowing data of any length to be put in or popped out of it.
Provided DSLX tests verify the correct behaviour of the library.

Internal-tag: [#50221]
Signed-off-by: Robert Winkler <[email protected]>
This commit adds a simple test that shows, how one can use the Buffer
struct inside a Proc.

Internal-tag: [#50221]
Signed-off-by: Robert Winkler <[email protected]>
This commit adds the library with functions for parsing a magic number and
tests that verify its correctness.

Internal-tag: [#50221]
Signed-off-by: Robert Winkler <[email protected]>
This commit adds the library with functions for parsing a frame header.
The provided tests verify the correcness of the library.

Internal-tag: [#49967]
Co-authored-by: Roman Dobrodii <[email protected]>
Co-authored-by: Pawel Czarnecki <[email protected]>
Signed-off-by: Robert Winkler <[email protected]>
Signed-off-by: Pawel Czarnecki <[email protected]>
Internal-tag: [#53329]
Signed-off-by: Pawel Czarnecki <[email protected]>
Required for expected_status inference in C++ tests for ZSTD decoder
components

Internal-tag: [#53465]
Signed-off-by: Pawel Czarnecki <[email protected]>
Internal-tag: [#50967]
Signed-off-by: Robert Winkler <[email protected]>
This commit adds a binary that calls decoding to generate data and loads
it into a vector of bytes.

Internal-tag: [#50967]
Signed-off-by: Robert Winkler <[email protected]>
Internal-tag: [#50967]
Co-authored-by: Pawel Czarnecki <[email protected]>
Signed-off-by: Robert Winkler <[email protected]>
Signed-off-by: Pawel Czarnecki <[email protected]>
Internal-tag: [#51343]
Signed-off-by: Robert Winkler <[email protected]>
Internal-tag: [#51343]
Signed-off-by: Robert Winkler <[email protected]>
Internal-tag: [#53329]
Signed-off-by: Pawel Czarnecki <[email protected]>
lpawelcz pushed a commit to antmicro/xls that referenced this pull request Feb 21, 2024
google#1212

modules/zstd: Add common zstd definitions

Internal-tag: [#51343]
Signed-off-by: Robert Winkler <[email protected]>

modules/zstd: Add raw block decoder

Internal-tag: [#51343]
Signed-off-by: Robert Winkler <[email protected]>

modules/zstd/raw_block_decoder: Add benchmarking rules

Internal-tag: [#53329]
Signed-off-by: Pawel Czarnecki <[email protected]>
lpawelcz pushed a commit to antmicro/xls that referenced this pull request Mar 7, 2024
google#1212

modules/zstd: Add common zstd definitions

Internal-tag: [#51343]
Signed-off-by: Robert Winkler <[email protected]>

modules/zstd: Add raw block decoder

Internal-tag: [#51343]
Signed-off-by: Robert Winkler <[email protected]>

modules/zstd/raw_block_decoder: Add benchmarking rules

Internal-tag: [#53329]
Signed-off-by: Pawel Czarnecki <[email protected]>
@cdleary cdleary added the app Application level functionality (examples, uses of XLS stack) label Mar 27, 2024
@proppy
Copy link
Member

proppy commented Mar 29, 2024

should we close this and focus on reviewing #1315 ?

@rw1nkler
Copy link
Contributor Author

Closing, as the review will happen in #1315

@rw1nkler rw1nkler closed this Mar 29, 2024
@tmichalak tmichalak deleted the 51343-raw-blocks branch April 29, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app Application level functionality (examples, uses of XLS stack)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants