Unlock instant, AI-driven research and patent intelligence for your innovation.

A Static Huffman Parallel Full Coding Implementation Method

An implementation method and a technology of full encoding, applied in the field of static Huffman parallel full encoding, can solve the problems of increasing the maximum clock frequency, reducing the utilization rate of hardware resources, and the static Huffman encoding encoding cycle is not fixed, so as to improve the clock frequency and reduce the utilization rate. Effect

Active Publication Date: 2020-06-12
TONGJI UNIV
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention aims at the problems that the coding cycle is not fixed in static Huffman coding, the coding efficiency is not high, the utilization rate of hardware resources needs to be reduced and the highest clock frequency needs to be improved, etc., and a static Huffman parallel full coding method based on FPGA is proposed. This method is fully utilized The parallelism and pipeline technology of FPGA can get the coding value while sorting the weights, and no matter how the weights of the input variables change, the whole coding process only needs a fixed clock cycle

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A Static Huffman Parallel Full Coding Implementation Method
  • A Static Huffman Parallel Full Coding Implementation Method
  • A Static Huffman Parallel Full Coding Implementation Method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] The present invention obtains the code length and encoding value corresponding to the weight while sorting, and encodes all variables within one clock cycle, and can obtain the code length and encoding of all variables (or called data) when the sorting ends value. Regardless of how the weight of the input variable changes, the clock cycle required for the entire static Huffman coding process is fixed. The whole process fully considers the parallel processing of FPGA, adopts the optimized parallel full comparison algorithm, and only needs one clock cycle to get the sorting of all variable weights. This algorithm is based on the parallel comparison of any two numbers in the sequence. The greater than or equal comparator is uniformly used for pairwise comparison between any two numbers. Only one comparison is required between any two numbers, so that the comparison results ('0' or '1') obtained by the two numbers are opposite numbers. The module that starts to input data ...

Embodiment 2

[0063] Based on embodiment 1, embodiment 2 is provided again.

[0064] as attached figure 1 Shown is the overall structure of the static Huffman code. At the beginning, there is a module for inputting data and counting weights. After the input is over, the input data is optimized for parallel full comparison and sorting. When the sorting result is obtained, static Huffman coding can be performed on it. These two main processes execute in parallel. The entire process can determine the entire running cycle according to the number of input variables. Assuming that static Huffman coding needs to be performed on N variables, the clock cycle occupied by the entire process is (N-1)*6+2. That is, it takes (N-1)*6+2 clock cycles from the end of the input data to the output result. Among them, the input of the static Huffman coding value adopts the method of pipeline, which can make the output process uninterrupted. In the entire process of the invention of Static Huffman (Static Hu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A static state Huffman parallel full coding realization method comprises the following steps: ranking so as to obtain a code length and a coding value matched with a weight, coding all variables in aclock period, and obtaining code lengths and coding values of all variables when the ranking is over; the method fully considers the FPGA parallel processing property in the whole process, and uses anoptimized parallel full comparison algorithm to obtain the ranking of all variable weights in only one clock period; the algorithm is realized by parallel comparison of two random numbers in the sequence; a more than or equal to comparator is uniformly employed to compare every two data items; two random numbers only need to be compared for one time, the obtained comparison result contains mutualopposite numbers. A module firstly inputs data and records weight values; when the input is over, the inputted data is optimized, and parallel full comparison ranking is carried out, thus obtaining the ranking result while coding the inputted data; finally, the coding value is outputted in a streamline mode, so the output process is not interrupted.

Description

technical field [0001] The invention relates to FPGA and data and image compression technology, in particular to a static Huffman parallel full encoding method based on FPGA. Background technique [0002] Since 1952, when David A. Huffman was studying for a doctorate at MIT, he proposed to construct the codeword with the shortest average length of different prefixes based on the probability of character appearance, which can be called the best encoding, generally known as static Huffman encoding. The steps are to gradually construct a static Huffman tree by comparing weights, and then encode and decode the static Huffman tree. Generally, static Huffman encoding needs to build a static Huffman tree, and then encode one by one from the root to the leaves. Such encoding efficiency is not only very low, but also requires more hardware resources, and the obtained clock frequency is not high. [0003] In order to achieve a higher clock frequency with less hardware resources, a ne...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H03M7/40
Inventor 万国春陈怡夏子为唐令怡
Owner TONGJI UNIV