Hardware LZMA (Lempel-Ziv-Markov chain-Algorithm) compression system and method

The invention discloses a hardware LZMA (Lempel-Ziv-Markov chain-Algorithm) compression system. The hardware LZMA compression system comprises a PCIE (peripheral component interface express) interface module, a direct entry data access module DMA (direct memory access), a data read-in cache module, an LZ77 compression encoding module, a section encoding module, a data read-out control module and a direct outgoing data access module DMA, wherein the PCIE interface module is connected and communicated with an upper computer, the direct entry data access module DMA is used for directly accessing data, the data read-in cache module is used for caching data to be compressed, the LZ77 compression encoding module is used for compressing and encoding the data to be compressed by the LZ77 algorithm and generating correlation control signals of the data read-in cache module and the section encoding module, the section encoding module is used for encoding sections and compressing the LZ77 compressed data again, the data read-out control module is used for connecting the compressed data outputted by the section encoding module into data types more suitable for external high-speed buses and caching the connected data, and the direct outgoing data access module DMA is used for directly accessing data. By the hardware LZMA compression system, processing speed of the LZMA compression algorithm on the basis of software is effectively increased, and a CPU is disengaged from compression of massive data.