The present invention relates to the technical field of FPGA
bitstream compression, and a method and
system for fast compression of FPGA bitstreams, including: traversing line numbers in a target multi-layer index structure, identifying a data
block group, a feature value group, and the number of data blocks corresponding to the line numbers, determining whether the number of data blocks is a preset number, if it is the preset number, then determining whether there is a subsequent single data
block group set, if there is, then merging the data
block group with the subsequent single data block group set to obtain a merged data block group, if not, then using the data block group as the
original data block group, if it is not the preset number, then determining whether there are the same feature values in the feature value group, if there are, then compressing the data block group to obtain a compressed data block group, if not, then using the data block group as the
original data block group, and performing
bitstream recombination on the merged data block group set, the compressed data block group set, and the
original data block group set. The present invention can solve the problems of poor overall compression effect of FPGA
bitstream data and relatively large consumption of computing resources.