JPH06276104A - Huffman decoding circuit - Google Patents

Huffman decoding circuit

Info

Publication number
JPH06276104A
JPH06276104A JP8815993A JP8815993A JPH06276104A JP H06276104 A JPH06276104 A JP H06276104A JP 8815993 A JP8815993 A JP 8815993A JP 8815993 A JP8815993 A JP 8815993A JP H06276104 A JPH06276104 A JP H06276104A
Authority
JP
Japan
Prior art keywords
huffman
code
data
filter
codes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP8815993A
Other languages
Japanese (ja)
Other versions
JP3005384B2 (en
Inventor
Hideki Bessho
秀樹 別所
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kanebo Ltd
Original Assignee
Kanebo Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kanebo Ltd filed Critical Kanebo Ltd
Priority to JP5088159A priority Critical patent/JP3005384B2/en
Publication of JPH06276104A publication Critical patent/JPH06276104A/en
Application granted granted Critical
Publication of JP3005384B2 publication Critical patent/JP3005384B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To obtain the Huffman decoding circuit of a small circuit scale, which can operate at high speed. CONSTITUTION:The Huffman decoding circuit includes plural Huffman code registers 21, 22,..., 2n, plural code filter circuits 31, 32,..., 3n and plural coincidence detecting circuits 41, 42,..., 4n in correspondence to plural Huffman codes. The Huffman decoding circuits furthermore includes a Huffman table 10 storing plural pieces of decoding data corresponding to the plural Huffman codes. The respective Huffman coding registers store the corresponding Huffman codes. The respective code filter circuits allow to pass only the part corresponding to the code length of the corresponding Huffman code in given compressed data. The respective coincidence detecting circuits compare output data of the corresponding code filter circuit and that of the corresponding Huffman code register, generate an output signal at the time of coincidence and give the output signal to the Huffman table 10 as an address signal.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、ハフマン符号化方式
により符号化されたハフマン符号を復号するためのハフ
マン復号化回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a Huffman decoding circuit for decoding a Huffman code encoded by the Huffman coding method.

【0002】[0002]

【従来の技術】画像データは非常に多くの情報量を含ん
でいる。そのため、画像データをそのままの形で処理す
るのは、メモリ容量および通信速度の点で実用的ではな
い。そこで、画像データ圧縮技術が重要となる。
2. Description of the Related Art Image data contains a very large amount of information. Therefore, it is not practical to process the image data as it is in terms of memory capacity and communication speed. Therefore, image data compression technology is important.

【0003】画像データ圧縮の国際標準の1つとしてJ
PEG(Joint Photographic Ex
pert Group)がある。非可逆符号化を行なう
DCT(離散コサイン変換)方式と、二次元空間でDP
CM(Differential PCM)を行なう可
逆符号化方式が採用されている。以下、DCT方式の画
像データ圧縮を説明する。
J is one of the international standards for image data compression.
PEG (Joint Photographic Ex)
pert Group). DCT (discrete cosine transform) method for lossy coding and DP in two-dimensional space
A reversible coding method for performing CM (Differential PCM) is adopted. The DCT method image data compression will be described below.

【0004】図4は、DCT方式を実行するためのシス
テムの基本構成を示すブロック図である。
FIG. 4 is a block diagram showing the basic configuration of a system for executing the DCT method.

【0005】符号化側では、DCT装置100が、入力
される原画像データにDCT変換を行ない、DCT係数
を出力する。量子化器200は、量子化テーブル400
を参照してDCT係数に量子化処理を行ない、量子化さ
れたDCT係数(以下、量子化DCT係数と呼ぶ)を出
力する。エントロピー符号化器300は、符号化テーブ
ル500を参照して量子化DCT係数にエントロピー符
号化処理を行ない、圧縮データを出力する。エントロピ
ー符号化の方式としてハフマン符号化方式が用いられ
る。
On the encoding side, the DCT device 100 performs DCT conversion on the input original image data and outputs DCT coefficients. The quantizer 200 has a quantization table 400.
, The DCT coefficient is quantized and a quantized DCT coefficient (hereinafter referred to as a quantized DCT coefficient) is output. The entropy encoder 300 refers to the encoding table 500, performs entropy encoding processing on the quantized DCT coefficient, and outputs compressed data. The Huffman coding method is used as the entropy coding method.

【0006】復号化側では、エントロピー復号器600
が、符号化テーブル500を参照して圧縮データにエン
トロピー復号化処理を行ない、量子化DCT係数を出力
する。逆量子化器700は、量子化テーブル400を参
照して量子化DCT係数に逆量子化処理を行ない、DC
T係数を出力する。逆DCT装置800は、DCT係数
に逆DCT変換を行ない、再生画像データを出力する。
On the decoding side, the entropy decoder 600
Performs entropy decoding processing on the compressed data with reference to the encoding table 500, and outputs the quantized DCT coefficient. The inverse quantizer 700 refers to the quantization table 400 to perform inverse quantization processing on the quantized DCT coefficient,
Output the T coefficient. The inverse DCT device 800 performs inverse DCT conversion on the DCT coefficient and outputs reproduced image data.

【0007】図5に示すように、各圧縮データ(符号デ
ータ)は可変長のハフマン符号および可変長の付加ビッ
トからなる。ハフマン符号の符号長および付加ビットの
符号長は各圧縮データによって異なる。
As shown in FIG. 5, each compressed data (code data) is composed of a variable-length Huffman code and a variable-length additional bit. The code length of the Huffman code and the code length of the additional bits differ depending on each compressed data.

【0008】図6は、従来のハフマン復号化回路の主要
部の構成を示すブロック図である。ハフマンテーブル1
は、2m ワードの記憶容量を有するメモリ回路からな
る。ここで、mはハフマン符号の最大符号長を表す。メ
モリ回路としては、スタティックランダムアクセスメモ
リ(SRAM)、ダイナミックランダムアクセスメモリ
(DRAM)等が用いられる。
FIG. 6 is a block diagram showing the configuration of the main part of a conventional Huffman decoding circuit. Huffman table 1
Consists of a memory circuit having a storage capacity of 2 m words. Here, m represents the maximum code length of the Huffman code. A static random access memory (SRAM), a dynamic random access memory (DRAM), or the like is used as the memory circuit.

【0009】ハフマンテーブル1のアドレス入力端子A
Dには、圧縮データの先頭のmビットがアドレス信号と
して与えられる。ハフマンテーブル1内の各アドレスに
は、そのアドレスが表すハフマン符号に対応する復号デ
ータが格納される。
Address input terminal A of Huffman table 1
The leading m bits of the compressed data are given to D as an address signal. At each address in the Huffman table 1, decoded data corresponding to the Huffman code represented by the address is stored.

【0010】たとえば、ハフマン符号の最大符号長mを
16とすると、16ビット長のハフマン符号“1111
111111110101”に対応する復号データは、
アドレス“1111111111110101”に格納
される。15ビット長のハフマン符号“1111111
11000010”に対応する復号データは、2つのア
ドレス“111111111000010X”に格納さ
れる。ここで、Xは0および1を表す。また、2ビット
長のハフマン符号“01”に対応する復号データは、2
14個のアドレス“01XXXXXXXXXXXXXX”
に格納される。
For example, assuming that the maximum code length m of the Huffman code is 16, the Huffman code "1111" having a 16-bit length.
The decoded data corresponding to "111111110101" is
It is stored at the address “11111111111110101”. 15-bit Huffman code “1111111”
The decoded data corresponding to 11000010 "is stored in two addresses" 111111111000010X ", where X represents 0 and 1. Further, the decoded data corresponding to the 2-bit Huffman code" 01 "is 2
14 addresses "01XXXXXXXXXXXXXXXX"
Stored in.

【0011】このように、ハフマンテーブル1には、最
大符号長に相当する16ビットの圧縮データがアドレス
信号として与えられるので、最大符号長よりも短いハフ
マン符号に対応する復号データは、複数のアドレスに格
納しておく必要がある。
As described above, since the Huffman table 1 is provided with 16-bit compressed data corresponding to the maximum code length as an address signal, the decoded data corresponding to the Huffman code shorter than the maximum code length has a plurality of addresses. Must be stored in.

【0012】たとえば、圧縮データが2ビットのハフマ
ン符号“01”を含む場合には、ハフマンテーブル1に
は、16ビットの圧縮データ“01…”がアドレス信号
として与えられる。それにより、アドレス“01…”に
格納された復号データが読み出され、データ出力端子D
Oから出力される。このようにして、圧縮データに含ま
れるハフマン符号が復号される。
For example, when the compressed data includes a 2-bit Huffman code "01", 16-bit compressed data "01 ..." Is given to the Huffman table 1 as an address signal. As a result, the decoded data stored at the address “01 ...” Is read, and the data output terminal D
It is output from O. In this way, the Huffman code included in the compressed data is decoded.

【0013】[0013]

【発明が解決しようとする課題】上記のように、従来の
ハフマン復号化回路では、ハフマン符号の最大符号長m
に相当するビット数の圧縮データがアドレス信号として
ハフマンテーブル1に与えられるので、ハフマンテーブ
ル1を構成するメモリ回路の記憶容量は2m ワード必要
となる。この場合、最大符号長mよりも短いハフマン符
号に対応する復号データは複数のアドレスに格納され
る。ハフマン符号の数をnとすると、メモリ回路の利用
効率はn/2m となる。
As described above, in the conventional Huffman decoding circuit, the maximum code length m of the Huffman code is m.
Since the compressed data having the number of bits corresponding to is given to the Huffman table 1 as an address signal, the memory capacity of the memory circuit forming the Huffman table 1 requires 2 m words. In this case, the decoded data corresponding to the Huffman code shorter than the maximum code length m is stored at a plurality of addresses. When the number of Huffman codes is n, the utilization efficiency of the memory circuit is n / 2 m .

【0014】このように、従来のハフマン復号化回路で
は、ハフマン符号の数よりもはるかに多くの数のアドレ
スに余分な復号データを書き込む必要があり、メモリ回
路の利用効率が非常に低い。その結果、ハフマン復号化
回路の回路規模が大きくなり、かつ処理の高速化を図る
ことが困難となる。
As described above, in the conventional Huffman decoding circuit, it is necessary to write extra decoded data in a number of addresses much larger than the number of Huffman codes, and the utilization efficiency of the memory circuit is very low. As a result, the circuit scale of the Huffman decoding circuit becomes large, and it becomes difficult to increase the processing speed.

【0015】この発明の目的は、小さい回路規模で高速
にハフマン復号化処理を行なうことができるハフマン復
号化回路を提供することである。
An object of the present invention is to provide a Huffman decoding circuit capable of performing Huffman decoding processing at high speed with a small circuit scale.

【0016】[0016]

【課題を解決するための手段】(1)第1の発明 第1の発明に係るハフマン復号化回路は、各々が任意の
符号長を有する複数のハフマン符号をそれぞれ復号する
ためのハフマン復号化回路であって、復号データ記憶手
段、複数のハフマン符号記憶手段、複数のフィルタ手
段、複数の一致検出手段、および選択手段を備える。
(1) First invention A Huffman decoding circuit according to the first invention is a Huffman decoding circuit for decoding a plurality of Huffman codes each having an arbitrary code length. And includes a decoded data storage means, a plurality of Huffman code storage means, a plurality of filter means, a plurality of match detection means, and a selection means.

【0017】復号データ記憶手段は、複数のハフマン符
号にそれぞれ対応する複数の復号データを記憶する。複
数のハフマン符号記憶手段は、複数のハフマン符号に対
応して設けられ、各々が対応するハフマン符号を記憶す
る。
The decoded data storage means stores a plurality of decoded data respectively corresponding to a plurality of Huffman codes. The plurality of Huffman code storage means are provided corresponding to the plurality of Huffman codes, and store the corresponding Huffman codes.

【0018】複数のフィルタ手段は、複数のハフマン符
号に対応して設けられ、各々が復号されるべきハフマン
符号を含む符号データを受け、符号データのうち対応す
るハフマン符号の符号長に相当する部分を通過させる。
A plurality of filter means are provided corresponding to a plurality of Huffman codes, each receives code data including a Huffman code to be decoded, and a portion of the code data corresponding to the code length of the corresponding Huffman code. Pass through.

【0019】複数の一致検出手段は、複数のハフマン符
号に対応して設けられ、各々が対応するハフマン符号記
憶手段に記憶されるハフマン符号と対応するフィルタ手
段の出力データとの一致を検出する。選択手段は、複数
の一致検出手段の出力信号に応答して復号データ記憶手
段に記憶された複数の復号データのいずれかを選択す
る。
The plurality of coincidence detecting means are provided corresponding to the plurality of Huffman codes, and detect the coincidence between the Huffman code stored in the corresponding Huffman code storage means and the output data of the corresponding filter means. The selecting means selects any of the plurality of decoded data stored in the decoded data storage means in response to the output signals of the plurality of match detecting means.

【0020】(2)第2の発明 第2の発明に係るハフマン復号化回路においては、複数
のフィルタ手段の各々が、フィルタデータ記憶手段およ
び論理ゲート手段を含む。
(2) Second Invention In the Huffman decoding circuit according to the second invention, each of the plurality of filter means includes a filter data storage means and a logic gate means.

【0021】フィルタデータ記憶手段は、対応するハフ
マン符号の符号長に相当するビット長を有するフィルタ
データを記憶する。論理ゲート手段は、符号データおよ
び対応するフィルタデータ記憶手段から出力されるフィ
ルタデータを受け、符号データのうちフィルタデータに
相当する部分を出力する。
The filter data storage means stores filter data having a bit length corresponding to the code length of the corresponding Huffman code. The logic gate means receives the code data and the filter data output from the corresponding filter data storage means, and outputs a portion of the code data corresponding to the filter data.

【0022】(3)第3の発明 第3の発明に係るハフマン復号化回路においては、ハフ
マン符号記憶手段が、複数のハフマン符号に対応する複
数のレジスタを含む。
(3) Third Invention In the Huffman decoding circuit according to the third invention, the Huffman code storage means includes a plurality of registers corresponding to a plurality of Huffman codes.

【0023】[0023]

【作用】第1ないし第3の発明に係るハフマン復号化回
路においては、復号されるべきハフマン符号を含む符号
データが複数のフィルタ手段に与えられる。各フィルタ
手段は、その符号データのうち対応するハフマン符号の
符号長に相当する部分を通過させる。一致検出手段は、
対応するフィルタ手段の出力データを対応するハフマン
符号記憶手段に記憶されるハフマン符号と比較し、それ
らが一致しているか否かを検出する。選択手段は、複数
の一致検出手段の比較結果に基づいて、復号データ記憶
手段に記憶される複数の復号データのいずれかを選択す
る。
In the Huffman decoding circuit according to the first to third inventions, the code data including the Huffman code to be decoded is given to the plurality of filter means. Each filter means passes a portion of the code data corresponding to the code length of the corresponding Huffman code. The match detection means is
The output data of the corresponding filter means is compared with the Huffman code stored in the corresponding Huffman code storage means to detect whether or not they match. The selecting means selects any one of the plurality of pieces of decoded data stored in the decoded data storage means based on the comparison result of the plurality of match detecting means.

【0024】このハフマン復号化回路においては、復号
データ記憶手段は、ハフマン符号の数と同じ数の復号デ
ータを記憶すれば足りるので、復号データ記憶手段の記
憶容量が小さくなる。そのため、復号データ記憶手段を
レジスタにより構成することが可能となる。その結果、
処理速度が高速化される。
In this Huffman decoding circuit, the decoded data storage means needs to store the same number of decoded data as the number of Huffman codes, so that the storage capacity of the decoded data storage means becomes small. Therefore, it becomes possible to configure the decoded data storage means by a register. as a result,
The processing speed is increased.

【0025】[0025]

【実施例】以下、この発明の一実施例によるハフマン復
号化回路を図面を参照しながら詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A Huffman decoding circuit according to an embodiment of the present invention will be described in detail below with reference to the drawings.

【0026】図1は、この実施例のハフマン復号化回路
の構成を示すブロック図である。このハフマン復号化回
路は、例えば、DCハフマン符号を復号するために用い
られる。この実施例では、ハフマン符号の数をnとし、
ハフマン符号の最大符号長をmとする。
FIG. 1 is a block diagram showing the configuration of the Huffman decoding circuit of this embodiment. This Huffman decoding circuit is used for decoding a DC Huffman code, for example. In this embodiment, the number of Huffman codes is n,
The maximum code length of the Huffman code is m.

【0027】図1のハフマン復号化回路は、メモリ回路
からなるハフマンテーブル10、n個のハフマン符号レ
ジスタ21,…,2n、n個のフィルタ回路31,3
2,…,3nおよびn個の一致検出回路41,42,
…,4nを含む。
The Huffman decoding circuit of FIG. 1 includes a Huffman table 10 composed of a memory circuit, n Huffman code registers 21, ..., 2n, and n filter circuits 31, 3.
2, ..., 3n and n match detection circuits 41, 42,
..., including 4n.

【0028】ハフマン符号レジスタ21,22,…,2
nはn個のハフマン符号にそれぞれ対応して設けられ
る。各ハフマン符号レジスタには対応するハフマン符号
が格納される。
Huffman code registers 21, 22, ..., 2
n is provided corresponding to each of the n Huffman codes. A corresponding Huffman code is stored in each Huffman code register.

【0029】n個のフィルタ回路31,32,…,3n
はn個のハフマン符号にそれぞれ対応して設けられる。
フィルタ回路31は符号フィルタレジスタ51およびA
NDゲート61を含む。フィルタ回路32は符号フィル
タレジスタ52およびANDゲート62を含む。同様
に、フィルタ回路3nは符号フィルタレジスタ5nおよ
びANDゲート6nを含む。
N filter circuits 31, 32, ..., 3n
Are provided respectively corresponding to n Huffman codes.
The filter circuit 31 includes a sign filter register 51 and A
It includes an ND gate 61. The filter circuit 32 includes a sign filter register 52 and an AND gate 62. Similarly, the filter circuit 3n includes a sign filter register 5n and an AND gate 6n.

【0030】各符号フィルタレジスタには、対応するハ
フマン符号の符号長に相当するビット長のフィルタデー
タが格納される。ANDゲート61の一方の入力端子に
はmビットの圧縮データ(符号データ)が与えられ、他
方の入力端子には符号フィルタレジスタ51の出力デー
タが与えられる。ANDゲート62の一方の入力端子に
はmビットの圧縮データが与えられ、他方の入力端子に
は符号フィルタレジスタ52の出力データが与えられ
る。同様に、ANDゲート6nの一方の入力端子にはm
ビットの圧縮データが与えられ、他方の入力端子には符
号フィルタレジスタ5nの出力データが与えられる。
Each code filter register stores filter data having a bit length corresponding to the code length of the corresponding Huffman code. One input terminal of the AND gate 61 is supplied with m-bit compressed data (code data), and the other input terminal is supplied with output data of the code filter register 51. One input terminal of the AND gate 62 is supplied with m-bit compressed data, and the other input terminal is supplied with output data of the sign filter register 52. Similarly, one input terminal of the AND gate 6n has m
Bit-compressed data is given, and the output data of the sign filter register 5n is given to the other input terminal.

【0031】ANDゲート61は、mビットの圧縮デー
タのうち符号フィルタレジスタ51に格納されるフィル
タデータに相当する部分を出力する。ANDゲート62
は、mビットの圧縮データのうち符号フィルタレジスタ
52に格納されるフィルタデータに相当する部分を出力
する。同様に、ANDゲート6nは、mビットの圧縮デ
ータのうち符号フィルタレジスタ5nに格納されるフィ
ルタデータに相当する部分を出力する。
The AND gate 61 outputs a portion of the m-bit compressed data corresponding to the filter data stored in the sign filter register 51. AND gate 62
Outputs a portion of the m-bit compressed data corresponding to the filter data stored in the sign filter register 52. Similarly, the AND gate 6n outputs a part of the m-bit compressed data corresponding to the filter data stored in the sign filter register 5n.

【0032】n個の一致検出回路41,42,…,4n
はn個のハフマン符号に対応して設けられる。一致検出
回路41は、ANDゲート61の出力データとハフマン
符号レジスタ21の出力データとを比較し、それらが一
致したときに出力信号A1を発生する。一致検出回路4
2は、ANDゲート62の出力データとハフマン符号レ
ジスタ22の出力データとを比較し、それらが一致した
ときに出力信号A2を発生する。同様に、一致検出回路
4nは、ANDゲート6nの出力データとハフマン符号
レジスタ2nの出力データとを比較し、それらが一致し
たときに出力信号Anを発生する。
N match detection circuits 41, 42, ..., 4n
Are provided corresponding to n Huffman codes. The coincidence detection circuit 41 compares the output data of the AND gate 61 with the output data of the Huffman code register 21, and generates an output signal A1 when they coincide with each other. Match detection circuit 4
2 compares the output data of the AND gate 62 with the output data of the Huffman code register 22, and generates an output signal A2 when they match. Similarly, the match detection circuit 4n compares the output data of the AND gate 6n with the output data of the Huffman code register 2n, and when they match, generates an output signal An.

【0033】一致検出回路41,42,…,4nの出力
信号はアドレス信号としてハフマンテーブル10のアド
レス入力端子ADに与えられる。ハフマンテーブル10
には、n個のハフマン符号にそれぞれ対応するn個の復
号データが格納される。一致検出回路41の出力信号A
1により指定されるアドレスには、ハフマン符号レジス
タ21に格納されるハフマン符号に対応する復号データ
が格納される。一致検出回路42の出力信号A2により
指定されるアドレスには、ハフマン符号レジスタ22に
格納されるハフマン符号に対応する復号データが格納さ
れる。同様に、一致検出回路4nの出力信号Anにより
指定されるアドレスには、ハフマン符号レジスタ2nに
格納されるハフマン符号に対応する復号データが格納さ
れる。
The output signals of the coincidence detection circuits 41, 42, ..., 4n are applied as address signals to the address input terminal AD of the Huffman table 10. Huffman table 10
Stores n pieces of decoded data respectively corresponding to n pieces of Huffman code. Output signal A of the coincidence detection circuit 41
At the address designated by 1, the decoded data corresponding to the Huffman code stored in the Huffman code register 21 is stored. Decoded data corresponding to the Huffman code stored in the Huffman code register 22 is stored at the address designated by the output signal A2 of the match detection circuit 42. Similarly, decoded data corresponding to the Huffman code stored in the Huffman code register 2n is stored at the address designated by the output signal An of the match detection circuit 4n.

【0034】ハフマンテーブル10のアドレス入力端子
ADに出力信号A1,A2,…,Anのいずれかが与え
られると、その出力信号により指定されるアドレスから
復号データが読み出され、データ出力端子DOから出力
される。
When any of the output signals A1, A2, ..., An is given to the address input terminal AD of the Huffman table 10, the decoded data is read from the address designated by the output signal and is output from the data output terminal DO. Is output.

【0035】次に、図2を参照しながら図1のハフマン
復号化回路の動作の一例を説明する。図2には、ハフマ
ン符号レジスタ2i、符号フィルタレジスタ5i、AN
Dゲート6iおよび一致検出回路4iが示される。ここ
で、iは1〜nのいずれかを表す。また、図2の例で
は、ハフマン符号の最大符号長mを16とする。
Next, an example of the operation of the Huffman decoding circuit shown in FIG. 1 will be described with reference to FIG. In FIG. 2, the Huffman code register 2i, code filter register 5i, AN
D-gate 6i and match detection circuit 4i are shown. Here, i represents any one of 1 to n. Further, in the example of FIG. 2, the maximum code length m of the Huffman code is 16.

【0036】この場合、ハフマン符号レジスタ2iは1
6ビット長を有し、符号フィルタレジスタ5iも16ビ
ット長を有する。図2に示すように、ハフマン符号レジ
スタ2iに5ビット長のハフマン符号“11011”が
格納される。ハフマン符号レジスタ2iの残りの11ビ
ットには0が格納される。符号フィルタレジスタ5iに
は5ビット長のフィルタデータ“11111”が格納さ
れる。符号フィルタレジスタ5iの残りの11ビットに
は0が格納される。
In this case, the Huffman code register 2i is 1
It has a 6-bit length, and the code filter register 5i also has a 16-bit length. As shown in FIG. 2, a Huffman code “11011” having a 5-bit length is stored in the Huffman code register 2i. 0 is stored in the remaining 11 bits of the Huffman code register 2i. The code filter register 5i stores 5-bit length filter data "11111". 0 is stored in the remaining 11 bits of the sign filter register 5i.

【0037】ANDゲート6iの一方の入力端子に、5
ビット長のハフマン符号“11011”を含む16ビッ
トの圧縮データが与えられると、ANDゲート6iの出
力データは“1101100000000000”とな
る。一致検出回路4iは、ANDゲート6iの出力デー
タ“1101100000000000”とハフマン符
号レジスタ2iの出力データ“11011000000
00000”とを比較する。
One of the input terminals of the AND gate 6i has 5
When 16-bit compressed data including the bit length Huffman code "11011" is given, the output data of the AND gate 6i becomes "1101100000000". The match detection circuit 4i outputs the output data “1101100000000000000” of the AND gate 6i and the output data “11011000000” of the Huffman code register 2i.
Compare with 00000 ".

【0038】この場合、両者は一致するので、一致検出
回路4iは出力信号Aiを発生する。出力信号Aiは、
図1に示されるハフマンテーブル10のアドレス入力端
子ADに与えられる。その結果、ハフマンテーブル10
において、出力信号Aiにより指定されたアドレスから
復号データが読み出される。
In this case, since the two coincide with each other, the coincidence detection circuit 4i generates the output signal Ai. The output signal Ai is
It is applied to the address input terminal AD of the Huffman table 10 shown in FIG. As a result, Huffman table 10
At, the decoded data is read from the address designated by the output signal Ai.

【0039】図3は、ハフマンテーブル10の構成の一
例を示すブロック図である。このハフマンテーブル10
は、n個のハフマン符号に対応するn個のレジスタ10
1,102,…,10nおよび組合せ回路110を含
む。
FIG. 3 is a block diagram showing an example of the configuration of the Huffman table 10. This Huffman table 10
Is n registers 10 corresponding to n Huffman codes.
, 10n and a combination circuit 110.

【0040】レジスタ101には、図1のハフマン符号
レジスタ21に格納されたハフマン符号に対応する復号
データが格納される。レジスタ102には、図1のハフ
マン符号レジスタ22に格納されたハフマン符号に対応
する復号データが格納される。同様に、レジスタ10n
には、図1のハフマン符号レジスタ2nに格納されたハ
フマン符号に対応する復号データが格納される。
The register 101 stores the decoded data corresponding to the Huffman code stored in the Huffman code register 21 of FIG. The register 102 stores the decoded data corresponding to the Huffman code stored in the Huffman code register 22 of FIG. Similarly, register 10n
Stores the decoded data corresponding to the Huffman code stored in the Huffman code register 2n of FIG.

【0041】組合せ回路110には、アドレス入力端子
ADを介して図1の一致検出回路41,42,…,4n
の出力信号が与えられる。組合せ回路110は、与えら
れる出力信号に応答して、レジスタ101,102,
…,10nのうちいずれか一つを選択する。それによ
り、選択されたレジスタから復号データが出力される。
In the combinational circuit 110, the coincidence detection circuits 41, 42, ..., 4n of FIG.
Output signal is given. The combinational circuit 110 is responsive to the applied output signal to register 101, 102,
, 10n is selected. Thereby, the decoded data is output from the selected register.

【0042】たとえば、組合せ回路110は、図1の出
力信号A1に応答してレジスタ101を選択する。また
図1の出力信号A2に応答してレジスタ102を選択す
る。同様に、図1の出力信号Anに応答してレジスタ1
0nを選択する。
For example, combinational circuit 110 selects register 101 in response to output signal A1 of FIG. Further, the register 102 is selected in response to the output signal A2 of FIG. Similarly, in response to the output signal An of FIG.
Select 0n.

【0043】図1の実施例においては、ハフマンテーブ
ル10にはn個のハフマン符号に対応するn個の復号デ
ータを格納すれば足りるので、ハフマンテーブル10の
記憶容量が小さくなる。また、ハフマンテーブル10の
利用効率が100%に向上される。その結果、ハフマン
テーブル10に要するハードウエア構成が簡素化され、
回路規模も大幅に削減される。
In the embodiment of FIG. 1, it is sufficient to store n pieces of decoded data corresponding to n pieces of Huffman code in the Huffman table 10, so that the storage capacity of the Huffman table 10 becomes small. Further, the utilization efficiency of the Huffman table 10 is improved to 100%. As a result, the hardware configuration required for the Huffman table 10 is simplified,
The circuit scale is also greatly reduced.

【0044】また、図3に示したように、ハフマンテー
ブル10を複数のレジスタおよび組合せ回路によりIC
上に構成することができる。それにより、処理速度の高
速化を容易に実現することができる。
Further, as shown in FIG. 3, the Huffman table 10 is integrated into an IC by a plurality of registers and combination circuits.
Can be configured on. As a result, the processing speed can be easily increased.

【0045】なお、上記実施例では、各フィルタ回路を
符号フィルタレジスタおよびANDゲートにより構成し
ているが、各フィルタ回路は、与えられるmビットの圧
縮データのうち対応するハフマン符号の符号長に相当す
るビットのみを通過させる機能を有すれば、他の回路構
成を用いてもよい。
In the above embodiment, each filter circuit is composed of the code filter register and the AND gate, but each filter circuit corresponds to the code length of the corresponding Huffman code in the given m-bit compressed data. Other circuit configurations may be used as long as they have a function of passing only the bit to be passed.

【0046】また、上記実施例では、ハフマンテーブル
をレジスタおよび組合せ回路により構成しているが、ハ
フマンテーブルはメモリセル選択回路を含むメモリで構
成してもよい。
Further, in the above embodiment, the Huffman table is composed of the register and the combinational circuit, but the Huffman table may be composed of the memory including the memory cell selection circuit.

【0047】[0047]

【発明の効果】以上のように、この発明によれば、復号
データ記憶手段にはハフマン符号の数と同じ数の復号デ
ータを格納すれば足りるので、復号データ記憶手段の記
憶容量および回路規模が小さくなる。
As described above, according to the present invention, since it is sufficient to store the same number of decoded data as the number of Huffman codes in the decoded data storage means, the storage capacity and the circuit scale of the decoded data storage means can be increased. Get smaller.

【0048】また、復号データ記憶手段の記憶容量が小
さくてよいので、復号データ記憶手段をレジスタにより
構成することが可能となる。それにより、処理速度が高
速化される。
Further, since the storage capacity of the decoded data storage means may be small, the decoded data storage means can be constituted by a register. Thereby, the processing speed is increased.

【0049】その結果、高速動作が可能で、かつ回路規
模が小さいハフマン復号化回路が得られる。
As a result, a Huffman decoding circuit that can operate at high speed and has a small circuit scale can be obtained.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明の一実施例のハフマン復号化回路の構
成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a Huffman decoding circuit according to an embodiment of the present invention.

【図2】図1のハフマン復号化回路の動作の一例を説明
するための図である。
FIG. 2 is a diagram for explaining an example of the operation of the Huffman decoding circuit in FIG.

【図3】図1のハフマン復号化回路に含まれるハフマン
テーブルの構成の一例を示すブロック図である。
3 is a block diagram showing an example of a configuration of a Huffman table included in the Huffman decoding circuit of FIG.

【図4】DCT方式の画像データ圧縮システムの基本構
成を示すブロック図である。
FIG. 4 is a block diagram showing a basic configuration of a DCT image data compression system.

【図5】圧縮データの構成を示す図である。FIG. 5 is a diagram showing a structure of compressed data.

【図6】従来のハフマン復号化回路の主要部の構成を示
すブロック図である。
FIG. 6 is a block diagram showing a configuration of a main part of a conventional Huffman decoding circuit.

【符号の説明】[Explanation of symbols]

10 ハフマンテーブル 21,22,2n ハフマン符号レジスタ 31,32,3n フィルタ回路 41,42,4n 一致検出回路 51,52,5n 符号フィルタレジスタ 61,62,6n ANDゲート 101,102,10n レジスタ 110 組合せ回路 A1,A2,An 出力信号 AD アドレス入力端子 DO データ出力端子 なお、各図中同一符号は同一または相当部分を示す。 10 Huffman Table 21, 22, 2n Huffman Code Register 31, 32, 3n Filter Circuit 41, 42, 4n Match Detection Circuit 51, 52, 5n Code Filter Register 61, 62, 6n AND Gate 101, 102, 10n Register 110 Combination Circuit A1, A2, An output signal AD address input terminal DO data output terminal In the drawings, the same reference numerals indicate the same or corresponding portions.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 各々が任意の符号長を有する複数のハフ
マン符号をそれぞれ復号するためのハフマン復号化回路
であって、 前記複数のハフマン符号にそれぞれ対応する複数の復号
データを記憶する復号データ記憶手段と、 前記複数のハフマン符号に対応して設けられ、各々が対
応するハフマン符号を記憶する複数のハフマン符号記憶
手段と、 前記複数のハフマン符号に対応して設けられ、各々が復
号されるべきハフマン符号を含む符号データを受け、前
記符号データのうち対応するハフマン符号の符号長に相
当する部分を通過させる複数のフィルタ手段と、 前記複数のハフマン符号に対応して設けられ、各々が対
応するハフマン符号記憶手段に記憶されるハフマン符号
と対応するフィルタ手段の出力データとの一致を検出す
る複数の一致検出手段と、 前記複数の一致検出手段の出力信号に応答して前記復号
データ記憶手段に記憶された前記複数の復号データのい
ずれかを選択する選択手段とを備えた、ハフマン復号化
回路。
1. A Huffman decoding circuit for decoding a plurality of Huffman codes each having an arbitrary code length, the decoded data storage storing a plurality of decoded data respectively corresponding to the plurality of Huffman codes. Means, a plurality of Huffman code storage means provided corresponding to the plurality of Huffman codes, each storing a corresponding Huffman code, and provided corresponding to the plurality of Huffman codes, each should be decoded A plurality of filter means for receiving code data including a Huffman code and passing a portion of the code data corresponding to the code length of the corresponding Huffman code, and provided corresponding to the plurality of Huffman codes, each corresponding A plurality of match detections for detecting a match between the Huffman code stored in the Huffman code storage means and the output data of the corresponding filter means. Comprising means, and selection means for selecting one of the plurality of decoded data stored in the decoded data storage means in response to an output signal of said plurality of coincidence detecting means, Huffman decoding circuit.
【請求項2】 前記複数のフィルタ手段の各々は、 対応するハフマン符号の符号長に相当するビット長を有
するフィルタデータを記憶するフィルタデータ記憶手段
と、 前記符号データおよび対応するフィルタデータ記憶手段
から出力されるフィルタデータを受け、前記符号データ
のうち前記フィルタデータに相当する部分を出力する論
理ゲート手段とを含む、請求項1に記載のハフマン復号
化回路。
2. Each of the plurality of filter means includes a filter data storage means for storing filter data having a bit length corresponding to the code length of a corresponding Huffman code, and the code data and the corresponding filter data storage means. The Huffman decoding circuit according to claim 1, further comprising a logic gate unit that receives the output filter data and outputs a portion of the code data corresponding to the filter data.
【請求項3】 前記ハフマン符号記憶手段は、前記複数
のハフマン符号に対応する複数のレジスタを含む、請求
項1に記載のハフマン復号化回路。
3. The Huffman decoding circuit according to claim 1, wherein the Huffman code storage unit includes a plurality of registers corresponding to the plurality of Huffman codes.
JP5088159A 1993-03-22 1993-03-22 Huffman decoding circuit Expired - Lifetime JP3005384B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5088159A JP3005384B2 (en) 1993-03-22 1993-03-22 Huffman decoding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5088159A JP3005384B2 (en) 1993-03-22 1993-03-22 Huffman decoding circuit

Publications (2)

Publication Number Publication Date
JPH06276104A true JPH06276104A (en) 1994-09-30
JP3005384B2 JP3005384B2 (en) 2000-01-31

Family

ID=13935150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5088159A Expired - Lifetime JP3005384B2 (en) 1993-03-22 1993-03-22 Huffman decoding circuit

Country Status (1)

Country Link
JP (1) JP3005384B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016058966A (en) * 2014-09-11 2016-04-21 富士ゼロックス株式会社 Decoding processor and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0537398A (en) * 1991-02-01 1993-02-12 Seiko Epson Corp Decoder for variable length code

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0537398A (en) * 1991-02-01 1993-02-12 Seiko Epson Corp Decoder for variable length code

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016058966A (en) * 2014-09-11 2016-04-21 富士ゼロックス株式会社 Decoding processor and program

Also Published As

Publication number Publication date
JP3005384B2 (en) 2000-01-31

Similar Documents

Publication Publication Date Title
KR100321437B1 (en) Mp3 player for vehicles
US5625355A (en) Apparatus and method for decoding variable-length code
US7113115B2 (en) Variable length code table look ups
US7389007B2 (en) Semiconductor memory apparatus
JPH08213916A (en) Variable-length decoder using relative address
JP3005385B2 (en) Huffman decoding circuit
WO1999044368A1 (en) Image data processing device and processing method
JP3005384B2 (en) Huffman decoding circuit
JP3277425B2 (en) Digital signal encoding method, encoding table generation method, encoding apparatus, and encoding method
JP3009993B2 (en) Huffman decoding device
JPH0486930A (en) Address generating circuit
KR100255062B1 (en) Circuit for zero-run developing run/level sets and method for zero-run developing the same
JP3015001B2 (en) Huffman decoding device
JPH10105672A (en) Computer and memory integrated circuit with operation function to be used in this computer
JP2842094B2 (en) Huffman decoding circuit
JP2556160B2 (en) Compression code decompression device
CN116258781A (en) Image data DNA storage method, system, electronic device and storage medium
JPH05152973A (en) Variable length code decoder
JP3087488B2 (en) Data restoration circuit
JPH04186984A (en) Image encoding device
JP3270665B2 (en) Encoding / decoding apparatus and method
JPH05103209A (en) Decoder for compression-coded data
JP3142911B2 (en) Processing method of encoding / decoding device
JP2007104155A (en) Image decoding apparatus
JP2000244752A (en) Decoder

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071119

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20081119

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20081119

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091119

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20091119

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101119

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111119

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20111119

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 13

Free format text: PAYMENT UNTIL: 20121119

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121119

Year of fee payment: 13

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 13

Free format text: PAYMENT UNTIL: 20121119

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 14

Free format text: PAYMENT UNTIL: 20131119