摘要 |
A Huffman decoder includes a first latch for storing the current variable-length-encoded data, a second latch for storing the previous variable-length-encoded data, a single decoder for receiving the word size and outputting a selection signal, a data requirement signal generator for generating a data requirement signal when the added word size is over a predetermined size after summing the word sizes, a multiplexer for receiving the outputs of the first and second latches to select a predetermined bit according to the selection signal, a data rotator for cyclic-shifting the output of the multiplexer according to the word size to form a reconstructed data and outputting the reconstructed data, an addressing portion for comparing the reconstructed data with a predetermined value and decoding the data, and a memory for storing the size of the variable-length-encoded word and the fixed-length code corresponding thereto which are output according to the output of the addressing portion.
|