zstdCompressStreaming - 2024.2 English

Vitis Libraries

Release Date
2024-11-29
Version
2024.2 English
#include "zstd_compress.hpp"
template <
    int IN_DWIDTH,
    int OUT_DWIDTH,
    int BLOCK_SIZE,
    int LZWINDOW_SIZE,
    int MIN_BLCK_SIZE = 1020
    >
void zstdCompressStreaming (
    hls::stream <ap_axiu <IN_DWIDTH, 0, 0, 0>>& inStream,
    hls::stream <ap_axiu <OUT_DWIDTH, 0, 0, 0>>& outStream
    )

This module is top level wrapper for zstd compression core module It compresses the input file read from input axi stream. It produces the ZSTD compressed data at the output axi stream.

Parameters:

IN_DWIDTH Input stream data bit-width
OUT_DWIDTH Output stream data bit-width
BLOCK_SIZE ZStd block size
LZWINDOW_SIZE LZ77 history size or Window size
MIN_BLCK_SIZE Minimum block size, less than that will be considered stored block
inStream input stream
outStream output stream