zstdDecompressStream - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
#include "zstd_decompress.hpp"
template <
    int IN_BYTES = 4,
    int OUT_BYTES = 8,
    int BLOCK_SIZE_KB,
    int LZ_MAX_OFFSET,
    int LMO_WIDTH,
    bool SEQ_LOW_LATENCY = false,
    bool LOW_LATENCY = false
    >
void zstdDecompressStream (
    hls::stream <ap_uint <IN_BYTES*8>>& inStream,
    hls::stream <ap_uint <4>>& inStrobe,
    hls::stream <ap_uint < (OUT_BYTES*8)+OUT_BYTES>>& outStream
    )

This module decompresses the ZStd compressed file read from input stream. It reads the input stream till valid strobe input is provided. It produces the decompressed data at the output stream.

Parameters:

PARALLEL_BYTE Data stream width in bytes
BLOCK_SIZE_KB ZStd block size
LZ_MAX_OFFSET LZ history size or Window size
LMO_WIDTH data width for offset data
inStream input stream
inStrobe valid input strobe stream
outStream output stream