JPH07235878A - Variable length decoder - Google Patents

Variable length decoder

Info

Publication number
JPH07235878A
JPH07235878A JP26647594A JP26647594A JPH07235878A JP H07235878 A JPH07235878 A JP H07235878A JP 26647594 A JP26647594 A JP 26647594A JP 26647594 A JP26647594 A JP 26647594A JP H07235878 A JPH07235878 A JP H07235878A
Authority
JP
Japan
Prior art keywords
code
output
pattern
signal
length
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.)
Pending
Application number
JP26647594A
Other languages
Japanese (ja)
Inventor
Eiji Miyakoshi
英司 宮越
Hiroshi Imanishi
浩 今西
Koji Takeno
浩司 竹野
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP26647594A priority Critical patent/JPH07235878A/en
Publication of JPH07235878A publication Critical patent/JPH07235878A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Abstract

PURPOSE:To provide the variable length decoder in which the capacity of a lookup table is made small so as to reduce the hardware scale. CONSTITUTION:A prefix data generating section 17 compares plural bits from a head of a bit string having a prescribed bit number outputted from a barrel shifter 11 with a prescribed pattern and generates a bank address of a small bit number allocated to the prescribed pattern when the both are coincident. The lookup table 14 uses the bank address as a high-order address and uses plural remaining bits resulting from eliminating a prescribed pattern coincident among code bits for a low-order address so as to apply addressing to decoded data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は可変長復号化器の改良に
関し、詳しくは、多数の復号データを高い記憶密度で記
憶して、ルックアップテーブルの小容量化を図ったもの
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improved variable length decoder, and more particularly to a large number of decoded data stored at a high storage density to reduce the capacity of a lookup table.

【0002】[0002]

【従来の技術】可変長復号化は、記憶密度の低減に高い
効果があるので、近年、各種アルゴリズムを用いて、圧
縮された画像データの再生によく用いられる。この可変
長復号化は、多種のデータのうち発生頻度の高いデータ
を符号桁の少ないデータに変換して、多数のデータを総
合した総ビット発生量を低減するものである(例えば、
安田 浩 編著 「マルチメディア符号化の国際基
準」,1991年発行等を参照)。
2. Description of the Related Art Variable-length decoding is highly effective in reducing storage density, and is therefore often used in recent years to reproduce compressed image data using various algorithms. This variable-length decoding is to convert data having a high frequency of occurrence among various types of data into data having a small number of code digits to reduce the total bit generation amount of a large number of data (for example,
See “International Standards for Multimedia Coding”, edited by Hiroshi Yasuda, 1991, etc.).

【0003】以下、従来の可変長復号化器について説明
する。
A conventional variable length decoder will be described below.

【0004】図9は従来の可変長復号化器のブロック図
を示す。31はバレルシフター、32はバレルシフター
のポインター、33は、多数の符号コードが連続するビ
ット列を外部から入力する外部インターフェース、34
はルックアップテーブル、35は復号化されたデータの
処理装置である。ルックアップテーブル34のデータの
フォーマットは、同図に示すように、符号コードを構成
するビット列のビット数(コード長)と、復号化された
データとから成る。
FIG. 9 shows a block diagram of a conventional variable length decoder. Reference numeral 31 is a barrel shifter, 32 is a pointer of the barrel shifter, 33 is an external interface for inputting a bit string in which many code codes are continuous from the outside, 34
Is a lookup table, and 35 is a processing device for decoded data. As shown in the figure, the format of the data of the look-up table 34 is composed of the number of bits (code length) of the bit string forming the code and the decoded data.

【0005】外部インターフェース33から入力された
ビット列はバレルシフター31に入力される。バレルシ
フター31は、入力されるビット列のうち、一定ビット
数(具体的には、最大コード長の可変長符号コードのコ
ード長)のビット列を出力する。この出力されたビット
列は、ルックアップテーブル34のアドレス値となっ
て、そのアドレス値に記憶された復号データ(復号化さ
れたデータ)がルックアップテーブル34から取り出さ
れる。この復号データはデータ処理装置35に入力さ
れ、データ処理装置35は、復号データの処理、及び復
号データ以外の処理等を行う。また、ルックアップテー
ブル34は、バレルシフター31から出力されたビット
列をアドレスとして、復号化の対象となった符号コード
のコード長を示す信号を出力し、このコード長信号はポ
インター32に足し込まれる。バレルシフター31は、
ポインター32の指令を受けて、前記コード長信号が示
すコード長だけビット列をシフトする。その結果、復号
化された符号コードが除外されて、バレルシフター32
から出力される一定ビット数のビット列の先頭には、次
の符号コードが位置する。
The bit string input from the external interface 33 is input to the barrel shifter 31. The barrel shifter 31 outputs a bit string of a fixed number of bits (specifically, the code length of the variable-length code code having the maximum code length) from the input bit string. The output bit string becomes an address value of the lookup table 34, and the decoded data (decoded data) stored at the address value is retrieved from the lookup table 34. This decoded data is input to the data processing device 35, and the data processing device 35 performs processing of the decoded data, processing other than the decoded data, and the like. The lookup table 34 also outputs a signal indicating the code length of the code code to be decoded, using the bit string output from the barrel shifter 31 as an address, and this code length signal is added to the pointer 32. . Barrel shifter 31
In response to the instruction from the pointer 32, the bit string is shifted by the code length indicated by the code length signal. As a result, the decoded code code is excluded and the barrel shifter 32
The following code code is located at the beginning of the bit string of a certain number of bits output from the.

【0006】[0006]

【発明が解決しようとする課題】ところで、近年では、
画像データ等の処理を高周波で行って高速化することが
望まれる。そこで、ルックアップテーブルからのデータ
読み出し時間を短縮するように、ルックアップテーブル
を構成するメモリを外付けせず、チップ内に配置するこ
とが考えられる。
By the way, in recent years,
It is desired to perform processing of image data and the like at a high frequency to speed up the processing. Therefore, in order to reduce the data read time from the look-up table, it is conceivable to arrange the look-up table in the chip without externally attaching the memory.

【0007】しかしながら、上記の従来の構成では、ル
ックアップテーブルのハードウェア規模が大きく、従っ
て、メモリが大型化して、前記処理の高速化を目的とし
てそのメモリをチップ内に配置することができない欠点
があった。
However, in the above-mentioned conventional configuration, the hardware scale of the lookup table is large, and therefore the memory becomes large, and it is not possible to arrange the memory in the chip for the purpose of speeding up the processing. was there.

【0008】以下、従来のルックアップテーブルのハー
ドウェア規模が大きい欠点を詳細に説明する。
The drawback of the conventional lookup table having a large hardware scale will be described in detail below.

【0009】例えば、可変長符号コードのコード長の最
大値が10ビットである場合には、210ワードという大
容量のルックアップテーブルを必要とする。しかし、バ
レルシフターからは常に一定ビット数(例えば10ビッ
ト)のビット列が出力されてルックアップテーブルに入
力される関係上、図6に示すように、例えば、コード長
が『4』の符号コード『0010』と、これに近似する
符号コード『0011』とについては、ルックアップテ
ーブル上の10ビットのアドレス『0010xxxxx
x』(『xxxxxx』は『0010』に続く任意の6
ビットのビット列)と、『0011000000』との
間のテーブル領域には、全て符号コード『0010』に
対する復号データを記憶する必要がある。従って、従来
では、ルックアップテーブルでの多数の復号データの記
憶密度が低い。その結果、可変長符号コードの種類が多
くて可変長符号コードのコード長が多くなる場合には、
ルックアップテーブルの記憶容量は一層大きくなり、ル
ックアップテーブルのハードウェア規模が大きくなる欠
点があった。
For example, when the maximum code length of the variable length code code is 10 bits, a lookup table having a large capacity of 2 10 words is required. However, as shown in FIG. 6, for example, since the barrel shifter always outputs a bit string of a fixed number of bits (for example, 10 bits) and inputs the bit string to the look-up table, a code code “4” is generated. For the code code "0011" and the code code "0011" which is similar to this, a 10-bit address "0010xxxxxxx on the look-up table.
x ”(“ xxxxxx ”is any 6 following“ 0010 ”
In the table area between the bit string of bits) and “0011000000”, it is necessary to store the decoded data for the code code “0010”. Therefore, conventionally, the storage density of a large number of decoded data in the look-up table is low. As a result, when there are many types of variable-length code codes and the code length of variable-length code codes increases,
There is a drawback that the storage capacity of the lookup table is further increased and the hardware scale of the lookup table is increased.

【0010】本発明は、上記従来の欠点を解決するもの
であり、その目的は、従来と同様の多数の復号データを
記憶しながら、ルックアップテーブルのハードウェア規
模を小さくして、小容量のルックアップテーブルを備え
る可変長復号化器を提供することにある。
The present invention solves the above-mentioned conventional drawbacks, and an object thereof is to store a large number of decoded data similar to the conventional one while reducing the hardware scale of the look-up table to achieve a small capacity. It is to provide a variable length decoder having a look-up table.

【0011】[0011]

【課題を解決するための手段】この目的を達成するため
に、本発明では、多数の可変長符号コードの各々におい
て、その各符号コードを構成するビット列を複数に分割
してグループ化し、そのグループ内の複数ビットを、こ
れに対応して予め設定した少ビット数のバンクアドレス
に変換し、このバンクアドレスと符号コードの残り部分
(他のグループ)とによりルックアップテーブルをアド
レッシングする構成とする。
To achieve this object, according to the present invention, in each of a large number of variable-length code codes, the bit string forming each code code is divided into a plurality of groups, and the groups are grouped. Corresponding to this, a plurality of bits are converted into a bank address having a small number of bits set in advance, and the look-up table is addressed by this bank address and the remaining portion (other group) of the code code.

【0012】即ち、請求項1記載の発明の可変長復号化
器は、連続する可変長符号コードを所定ビットだけシフ
トするバレルシフターと、複数ビットから成る所定コー
ド長の複数の所定パターンと、前記各所定パターンのコ
ード長よりもビット数が少なく且つ前記各所定パターン
毎に割付けられた複数のバンクアドレスとを予め内部に
記憶し、前記バレルシフターから出力される可変長符号
コードをその先頭から前記複数の所定パターンと比較
し、その両者が一致するとき、その一致する所定パター
ンのバンクアドレスを発生するプリフィックスデータ発
生部と、多数の可変長符号コードを復号化した多数の復
号データを予め内部に記憶し、前記プリフィックスデー
タ発生部から発生したバンクアドレスと、前記バレルシ
フターから出力される可変長符号コードのうち前記所定
パターン以外の残った符号コードとをアドレスとして、
前記バレルシフターから出力される可変長符号コードに
対応する復号データを出力するルックアップテーブルと
を備えたことを特徴としている。
That is, a variable length decoder according to a first aspect of the present invention comprises a barrel shifter for shifting a continuous variable length code code by a predetermined bit, a plurality of predetermined patterns having a predetermined code length composed of a plurality of bits, and The number of bits is smaller than the code length of each predetermined pattern and a plurality of bank addresses assigned to each of the predetermined patterns are stored in advance in advance, and the variable length code code output from the barrel shifter is recorded from the beginning thereof. When a plurality of predetermined patterns are compared with each other and both of them match, a prefix data generation unit that generates a bank address of the matching predetermined pattern and a large number of decoded data obtained by decoding a large number of variable length code codes are internally stored in advance. Stores the bank address generated from the prefix data generation unit and the output from the barrel shifter. As an address and a remaining code code other than the predetermined pattern of the variable length code encoding,
And a lookup table for outputting decoded data corresponding to the variable length code output from the barrel shifter.

【0013】また、請求項2記載の発明では、前記請求
項1記載の可変長復号化器において、更に、シフトすべ
き所定ビット数をバレルシフターに指令するポインタ
と、コード長選択回路とが備えられ、プリフィックスデ
ータ発生部は、符号コードの先頭から所定ビット数まで
の部分と所定パターンとが一致するとき一致信号を出力
すると共に、一致した所定パターンのコード長を示すコ
ード長信号を出力するものであり、ルックアップテーブ
ルは、復号される可変長符号コードのコード長から、一
致した所定パターンのコード長を減じたコード長信号を
出力するものであり、前記コード長選択回路は、前記プ
リフィックスデータ発生部からの一致信号の出力時に
は、前記プリフィックスデータ発生部のコード長信号を
選択して出力する一方、前記一致信号の非出力時には、
ルックアップテーブルからのコード長信号を選択して出
力するものであり、前記ポインタは、前記コード長選択
回路から出力されるコード長信号を受け、コード長信号
が示すコード長だけ可変長符号コードをシフトするよう
にバレルシフターを制御するものであることを特徴とす
る。
According to a second aspect of the present invention, the variable length decoder according to the first aspect further comprises a pointer for instructing the barrel shifter a predetermined number of bits to be shifted, and a code length selection circuit. The prefix data generation unit outputs a match signal when the portion from the beginning of the code code up to a predetermined number of bits and the predetermined pattern match, and also outputs a code length signal indicating the code length of the matched predetermined pattern. The look-up table outputs a code length signal obtained by subtracting the code length of the matched predetermined pattern from the code length of the variable length code code to be decoded, and the code length selection circuit is configured to output the prefix data. When the coincidence signal is output from the generator, the code length signal of the prefix data generator is selected and output. During non-output of the coincidence signal,
A code length signal from a lookup table is selected and output, and the pointer receives the code length signal output from the code length selection circuit and outputs a variable length code code for the code length indicated by the code length signal. It is characterized by controlling the barrel shifter so as to shift.

【0014】更に、請求項3記載の発明では、前記請求
項1又は請求項2記載の可変長復号化器において、プリ
フィックスデータ発生部は、複数の所定パターンの各々
を予め記憶する複数のパターン記憶回路と、バレルシフ
ターから出力される可変長符号コードをその先頭から、
前記複数のパターン記憶回路の所定パターンと比較し、
両者が一致するとき、その一致した所定パターンに対応
するパターン一致信号を出力する一致検出回路と、複数
のバンクアドレスの各々を予め記憶し、前記一致検出回
路のパターン一致信号を受けて、その受けたパターン一
致信号に対応するパターンのバンクアドレスを出力する
バンクアドレス出力手段とを備えたことを特徴とする。
Further, in the invention according to claim 3, in the variable length decoder according to claim 1 or 2, the prefix data generating section stores a plurality of pattern memories for storing each of a plurality of predetermined patterns in advance. From the beginning of the circuit and the variable length code output from the barrel shifter,
Compared with a predetermined pattern of the plurality of pattern storage circuits,
When both match, a match detection circuit that outputs a pattern match signal corresponding to the matched predetermined pattern and each of a plurality of bank addresses are stored in advance, the pattern match signal of the match detection circuit is received, and the received match signal is received. And a bank address output means for outputting a bank address of a pattern corresponding to the pattern matching signal.

【0015】加えて、請求項4記載の発明では、前記請
求項3記載の可変長復号化器において、一致検出回路
は、複数のパターン記憶回路と同数設けられ、各一致検
出回路は、バレルシフターから出力される可変長符号コ
ードを、対応するパターン記憶回路の所定パターンと比
較するものであることを特徴とする。
In addition, in the invention according to claim 4, in the variable length decoder according to claim 3, the number of match detection circuits is the same as that of a plurality of pattern storage circuits, and each match detection circuit is a barrel shifter. It is characterized in that the variable-length code code outputted from is compared with a predetermined pattern of a corresponding pattern storage circuit.

【0016】更に加えて、請求項5記載の発明では、前
記請求項3又は請求項4記載の可変長復号化器におい
て、プリフィックスデータ発生部は、一致検出回路のパ
ターン一致信号を受け、その受けたパターン一致信号に
対応する所定パターンのコード長信号を出力するコード
長信号出力手段を備えたことを特徴とする。
Further, in the invention of claim 5, in the variable length decoder according to claim 3 or 4, the prefix data generating section receives the pattern matching signal of the matching detecting circuit and receives it. And a code length signal output means for outputting a code length signal of a predetermined pattern corresponding to the pattern matching signal.

【0017】また、請求項6記載の発明では、前記請求
項3、請求項4又は請求項5記載の可変長復号化器にお
いて、プリフィックスデータ発生部は、一致検出回路の
パターン一致信号の出力を1回毎に禁止する一致信号出
力禁止回路を備え、前記一致信号出力禁止回路を通過し
たパターン一致信号がコード長選択回路に出力され、前
記一致信号出力禁止回路を通過する前のパターン一致信
号がバンクアドレス出力手段に出力されることを特徴と
する。
Further, in the invention according to claim 6, in the variable length decoder according to claim 3, claim 4 or claim 5, the prefix data generating section outputs the pattern match signal of the match detection circuit. A match signal output inhibit circuit that inhibits each time is provided, and the pattern match signal that has passed through the match signal output inhibit circuit is output to the code length selection circuit, and the pattern match signal before passing through the match signal output inhibit circuit It is output to the bank address output means.

【0018】更に、請求項7記載の発明では、前記請求
項6記載の可変長復号化器において、一致信号出力禁止
回路は、クロック信号を2分周する分周器と、一致検出
回路のパターン一致信号、及び前記分周器の出力を入力
とする論理積回路とから成ることを特徴とする。
Further, in the invention according to claim 7, in the variable length decoder according to claim 6, the coincidence signal output prohibition circuit is a frequency divider for dividing the clock signal by 2 and a pattern of the coincidence detection circuit. It is characterized by comprising a coincidence signal and an AND circuit having the output of the frequency divider as an input.

【0019】加えて、請求項8記載の発明の可変長復号
化器は、前記連続する可変長符号コードを所定ビットだ
けシフトするバレルシフターと、複数の符号コードの各
々を複数にグループ化した場合の各グループ別に、複数
ビットから成る所定コード長の複数の所定パターンと、
前記各所定パターンのコード長よりもビット数が少なく
且つ前記各所定パターン毎に割付けられた複数のバンク
アドレスとを予め内部に記憶し、前記バレルシフターか
ら出力される可変長符号コードをその先頭から前記複数
の所定パターンと比較し、その両者が一致するとき、そ
の一致する所定パターンのバンクアドレスを発生する複
数のプリフィックスデータ発生部と、多数の可変長符号
コードを復号化した多数の復号データを予め内部に記憶
し、前記各プリフィックスデータ発生部から発生した複
数のバンクアドレスと、前記バレルシフターから出力さ
れる可変長符号コードのうち、前記一致した複数の所定
パターン以外の残った符号コードとをアドレスとして、
前記バレルシフターから出力される可変長符号コードに
対応する復号データを出力するルックアップテーブルと
を備えたことを特徴とする。
In addition, in the variable length decoder according to the present invention, a barrel shifter for shifting the continuous variable length code code by a predetermined bit and a plurality of code codes are grouped into a plurality of groups. A plurality of predetermined patterns of a predetermined code length consisting of a plurality of bits for each group of
A plurality of bank addresses each having a smaller number of bits than the code length of each of the predetermined patterns and allocated for each of the predetermined patterns are stored in advance in advance, and a variable length code code output from the barrel shifter is read from its head. Compared with the plurality of predetermined patterns, when both match, a plurality of prefix data generators that generate bank addresses of the matching predetermined patterns, and a large number of decoded data obtained by decoding a large number of variable-length code The plurality of bank addresses stored in advance inside each of the prefix data generators, and the variable code codes output from the barrel shifter, among the remaining code codes other than the plurality of matched predetermined patterns, are stored. As an address
And a look-up table for outputting decoded data corresponding to the variable length code output from the barrel shifter.

【0020】更に加えて、請求項9記載の発明では、前
記請求項8記載の可変長復号化器において、シフトすべ
き所定ビット数をバレルシフターに指令するポインタ
と、コード長選択回路とが備えられ、各プリフィックス
データ発生部は、符号コードの先頭から所定ビット数ま
での部分と所定パターンとが一致するとき一致信号を出
力すると共に、一致した所定パターンのコード長を示す
コード長信号を出力するものであり、ルックアップテー
ブルは、復号される可変長符号コードのコード長から、
一致した複数の所定パターンのコード長を合せた合計コ
ード長を減じたコード長信号を出力するものであり、前
記コード長選択回路は、前記プリフィックスデータ発生
部からの一致信号の出力時には、前記プリフィックスデ
ータ発生部のコード長信号を選択して出力する一方、前
記一致信号の非出力時には、ルックアップテーブルから
のコード長信号を選択して出力するものであり、前記ポ
インタは、前記コード長選択回路から出力されるコード
長信号を受け、コード長信号が示すコード長だけ可変長
符号コードをシフトするようにバレルシフターを制御す
るものであることを特徴とする。
Further, in the invention described in claim 9, the variable length decoder according to claim 8 is provided with a pointer for instructing the barrel shifter a predetermined number of bits to be shifted, and a code length selection circuit. Each prefix data generation unit outputs a match signal when the portion from the beginning of the code code up to a predetermined number of bits and the predetermined pattern match, and also outputs a code length signal indicating the code length of the matched predetermined pattern. The lookup table is based on the code length of the variable length code to be decoded,
The code length selection circuit outputs a code length signal obtained by subtracting the total code length of the code lengths of a plurality of matched predetermined patterns, and the code length selection circuit outputs the prefix signal when the match signal is output from the prefix data generation unit. The code length signal of the data generator is selected and outputted, while the code length signal from the look-up table is selected and outputted when the coincidence signal is not outputted, and the pointer is the code length selection circuit. The barrel shifter is controlled so as to receive the code length signal output from the variable length code and shift the variable length code by the code length indicated by the code length signal.

【0021】また、請求項10記載の発明では、前記請
求項8又は請求項9記載の可変長復号化器において、各
プリフィックスデータ発生部は、同一グループ内の複数
の所定パターンの各々を予め記憶する複数のパターン記
憶回路と、バレルシフターから出力される可変長符号コ
ードをその先頭から、前記複数のパターン記憶回路の所
定パターンと比較し、両者が一致するとき、その一致し
た所定パターンに対応するパターン一致信号を出力する
一致検出回路と、複数のバンクアドレスの各々を予め記
憶し、前記一致検出回路のパターン一致信号を受けて、
その受けたパターン一致信号に対応するパターンのバン
クアドレスを出力するバンクアドレス出力手段とを備え
たことを特徴とする。
Further, in the invention of claim 10, in the variable length decoder according to claim 8 or 9, each prefix data generating section stores in advance each of a plurality of predetermined patterns in the same group. The plurality of pattern storage circuits and the variable length code output from the barrel shifter are compared from the beginning with a predetermined pattern of the plurality of pattern storage circuits, and when the two match, they correspond to the matched predetermined pattern. A match detection circuit that outputs a pattern match signal and each of a plurality of bank addresses are stored in advance, and a pattern match signal of the match detection circuit is received,
Bank address output means for outputting a bank address of a pattern corresponding to the received pattern matching signal.

【0022】更に、請求項11記載の発明では、前記請
求項10記載の可変長復号化器において、各プリフィッ
クスデータ発生部の一致検出回路は、複数のパターン記
憶回路と同数設けられ、各一致検出回路は、バレルシフ
ターから出力される可変長符号コードを、対応するパタ
ーン記憶回路の所定パターンと比較するものであること
を特徴とする。
Further, in the invention according to claim 11, in the variable length decoder according to claim 10, the number of match detection circuits of each prefix data generation unit is the same as that of a plurality of pattern storage circuits, and each match detection circuit is provided. The circuit is characterized in that the variable length code output from the barrel shifter is compared with a predetermined pattern of a corresponding pattern storage circuit.

【0023】加えて、請求項12記載の発明では、前記
請求項10又は請求項11記載の可変長復号化器におい
て、各プリフィックスデータ発生部は、一致検出回路の
パターン一致信号を受け、その受けたパターン一致信号
に対応する所定パターンのコード長信号を出力するコー
ド長信号出力手段を備えたことを特徴とする。
In addition, in the twelfth aspect of the invention, in the variable length decoder according to the tenth or eleventh aspect, each prefix data generating section receives the pattern matching signal of the matching detecting circuit and receives it. And a code length signal output means for outputting a code length signal of a predetermined pattern corresponding to the pattern matching signal.

【0024】更に加えて、請求項13記載の発明では、
前記請求項10、請求項11又は請求項12記載の可変
長復号化器において、各プリフィックスデータ発生部
は、一致検出回路のパターン一致信号の出力を、各符号
コードをグループ化した個数に等しい回数のうち1回の
割合で許容し、他は禁止する一致信号出力禁止回路を備
え、前記一致信号出力禁止回路を通過したパターン一致
信号がコード長選択回路に出力され、前記一致信号出力
禁止回路を通過する前のパターン一致信号が自己のバン
クアドレス出力手段に出力されることを特徴とする。
In addition, according to the invention of claim 13,
13. The variable length decoder according to claim 10, 11 or 12, wherein each prefix data generator outputs the pattern match signal of the match detection circuit a number of times equal to the number of grouped code codes. A match signal output prohibiting circuit that allows the other one and prohibits the other is provided, and the pattern match signal that has passed through the match signal output prohibiting circuit is output to the code length selecting circuit, The pattern matching signal before passing is output to its own bank address output means.

【0025】また、請求項14記載の発明では、前記請
求項13記載の可変長復号化器において、各プリフィッ
クスデータ発生部の一致信号出力禁止回路は、クロック
信号を、プリフィックスデータ発生部の個数に1を加算
した整数倍に分周する分周器と、一致検出回路のパター
ン一致信号、及び前記分周器の出力を入力とする論理積
回路とから成り、各プリフィックスデータ発生部の論理
積の出力は、相互に、クロック信号の1周期づつずれる
ことを特徴とする。
According to a fourteenth aspect of the present invention, in the variable length decoder according to the thirteenth aspect, the coincidence signal output prohibiting circuit of each prefix data generating section sets the clock signal to the number of the prefix data generating sections. It is composed of a frequency divider that divides into an integer multiple by adding 1, and a logical product circuit that receives the pattern matching signal of the coincidence detection circuit and the output of the frequency divider as input. The outputs are characterized in that they deviate from each other by one cycle of the clock signal.

【0026】更に、請求項15記載の発明では、前記請
求項1〜請求項13又は請求項14記載の可変長復号化
器において、ルックアップテーブルは、バレルシフター
及びプリフィックスデータ発生部が配置された1チップ
内に配置されることを特徴とする。
Further, in the invention according to claim 15, in the variable length decoder according to any one of claims 1 to 13 or 14, the lookup table is provided with a barrel shifter and a prefix data generating section. It is characterized in that it is arranged in one chip.

【0027】[0027]

【作用】以上の構成により、請求項1、請求項3及び請
求項4記載の各発明の可変長復号化器では、バレルシフ
ターから一定ビット数のビット列が出力されると、この
ビット列を受けたプリフィックスデータ発生部では、受
けたビット列を、その先頭から、複数の所定パターンと
比較し、何れかの所定パターンと一致するとき、この一
致する所定パターンのコード長よりも小ビット数のバン
クアドレスを出力する。ルックアップテーブルでは、前
記プリフィックスデータ発生部から出力されたバンクア
ドレスと、前記バレルシフターから出力されたビット列
のうち前記バンクアドレスに置換された複数ビット(即
ち、所定パターン)以外の残った部分とをアドレスとし
て、対応する復号データが取り出される。従って、符号
コードよりも少ビット数のビット列でもってルックアッ
プテーブルをアドレッシングできるので、多くの復号デ
ータを従来よりも小領域に記憶できて、復号データの記
憶密度を高くでき、よって、ルックアップテーブルのハ
ードウェア規模を小さくできて、小容量のルックアップ
テーブルを採用することができる。
With the above construction, in the variable length decoder according to each of the first, third and fourth aspects of the invention, when the barrel shifter outputs a bit string of a certain number of bits, it receives this bit string. The prefix data generation unit compares the received bit string with a plurality of predetermined patterns from the beginning, and when it matches any one of the predetermined patterns, a bank address having a number of bits smaller than the code length of the matching predetermined pattern is given. Output. In the look-up table, the bank address output from the prefix data generation unit and the remaining portion of the bit string output from the barrel shifter other than a plurality of bits replaced with the bank address (that is, a predetermined pattern) are stored. As the address, the corresponding decoded data is retrieved. Therefore, since the lookup table can be addressed with a bit string having a smaller number of bits than the code code, a large amount of decoded data can be stored in a smaller area than before, and the storage density of the decoded data can be increased. The hardware scale can be reduced and a small-capacity lookup table can be adopted.

【0028】しかも、バレルシフターから出力されるビ
ット列をその先頭から所定パターンと比較してバンクア
ドレスを出力するので、バレルシフターから出力される
ビット列を先頭から1ビットづつ『1』か『0』かを判
定することを繰返した後にバンクアドレスを出力する場
合に比して、バンクアドレスの出力までに要する時間が
短縮されて、復号データのアドレッシング時間の短縮化
が図られる。
Furthermore, since the bank address is output by comparing the bit string output from the barrel shifter with a predetermined pattern from the beginning, whether the bit string output from the barrel shifter is "1" or "0" bit by bit from the beginning. As compared with the case where the bank address is output after repeating the determination of, the time required until the bank address is output is shortened, and the addressing time of the decoded data is shortened.

【0029】また、請求項2、請求項5、請求項6及び
請求項7記載の各発明の可変長復号化器では、前述の通
りバレルシフターからの一定ビット数のビット列の出力
時に、その先頭からの複数ビットと所定パターンとが一
致するとき、プリフィックスデータ発生部は、その一致
する所定パターンのバンクアドレスの出力と共に、一致
信号と、その一致した所定パターンのコード長信号を出
力する。コード長選択回路は、前記一致信号の出力時に
は、プリフィックスデータ発生部からのコード長信号を
ポインタに出力する。前記ポインタは、受けたコード長
信号が示すコード長だけビット列をシフトするようバレ
ルシフターを制御し、バレルシフターは、ポインタの制
御により、前記一致した所定パターンのコード長だけビ
ット列をシフトする。
Further, in the variable length decoder according to each of the second, fifth, sixth and seventh aspects of the present invention, as described above, at the time of outputting a bit string of a constant number of bits from the barrel shifter, the head thereof is output. When a plurality of bits from 1 and the predetermined pattern match, the prefix data generating section outputs a bank signal of the matching predetermined pattern and a match signal and a code length signal of the matched predetermined pattern. The code length selection circuit outputs the code length signal from the prefix data generator to the pointer when the coincidence signal is output. The pointer controls the barrel shifter so as to shift the bit string by the code length indicated by the received code length signal, and the barrel shifter shifts the bit string by the code length of the matched predetermined pattern under the control of the pointer.

【0030】その後、バレルシフターは、再び、一定ビ
ット数のビット列を出力する。ここで、この出力される
ビット列の先頭には、前回出力した符号コードのうち前
記所定パターンと一致する複数ビットを除いて残った部
分が位置する。従って、ルックアップテーブルは、プリ
フィックスデータ発生部から出力されたバンクアドレス
と、バレルシフターから出力された残る複数ビットとを
アドレスとして、復号データをアドレッシングする。
After that, the barrel shifter again outputs a bit string of a fixed number of bits. Here, at the beginning of the output bit string, the remaining portion of the code code that was output last time except for a plurality of bits that match the predetermined pattern is located. Therefore, the lookup table addresses the decoded data using the bank address output from the prefix data generation unit and the remaining multiple bits output from the barrel shifter as addresses.

【0031】更に、請求項8、請求項10及び請求項1
1記載の各発明の可変長復号化器では、各符号コードを
複数にグループ化した場合のその各グループ別にプリフ
ィックスデータ発生部が備えられるので、バレルシフタ
ーから一定ビット数のビット列が出力される場合には、
そのビット列に含む符号コードの各グループ別にプリフ
ィックスデータ発生部からバンクアドレスが出力され
る。従って、ルックアップテーブルでは、前記各バンク
アドレスと、前記符号コードのうち各バンクアドレスに
置換された複数ビットを除いて残った部分とをアドレス
として、対応する復号データがアドレッシングされるの
で、符号コードよりも少ビット数のビット列でもってル
ックアップテーブルをアドレッシングできて、より一層
にハードウェア規模を小さくすることができ、より小容
量のルックアップテーブルを採用できる。
Further, claim 8, claim 10 and claim 1
In the variable length decoder according to the first aspect of the present invention, when each code code is grouped into a plurality, a prefix data generator is provided for each group, so that when the barrel shifter outputs a bit string of a certain number of bits. Has
A bank address is output from the prefix data generation unit for each group of code codes included in the bit string. Therefore, in the look-up table, the corresponding decoded data is addressed using each bank address and the remaining portion of the code code excluding a plurality of bits replaced by each bank address as an address. The lookup table can be addressed with a bit string having a smaller number of bits than that, the hardware scale can be further reduced, and a lookup table with a smaller capacity can be adopted.

【0032】加えて、請求項9、請求項12、請求項1
3及び請求項14記載の各発明の可変長復号化器では、
プリフィックスデータ発生部からバンクアドレスが出力
される毎に、コード長選択回路は、そのバンクアドレス
に対応する所定パターンのコード長をポインタに送っ
て、パレルシフターが所定パターンと一致する複数ビッ
トを除いて残った部分を先頭とすることを、その符号コ
ードのグループ毎に繰返す。従って、ルックアップテー
ブルは、各プリフィックスデータ発生部から出力された
バンクアドレスと、バレルシフターから出力された符号
コードのうち所定パターンを除いて残った部分とをアド
レスとして、復号データをアドレッシングする。
In addition, claim 9, claim 12, claim 1
3 and the variable length decoder of each invention according to claim 14,
Each time the bank address is output from the prefix data generation unit, the code length selection circuit sends the code length of a predetermined pattern corresponding to the bank address to the pointer, and excludes a plurality of bits in which the parallel shifter matches the predetermined pattern. The beginning of the remaining portion is repeated for each group of code codes. Therefore, the lookup table addresses the decoded data using the bank address output from each prefix data generation unit and the remaining portion of the code code output from the barrel shifter except for the predetermined pattern as an address.

【0033】加えて、請求項15記載の発明の可変長復
号化器では、ルックアップテーブルが小容量化されるの
で、このテーブルをバレルシフター及びプリフィックス
データ発生部の配置されたチップ内に配置できるので、
ルックアップテーブルに至る配線長さが短縮されて、ル
ックアップテーブルからの復号データの読み出し時間が
短かくなり、復号データの読み出しが高速化される。
In addition, in the variable length decoder according to the fifteenth aspect of the present invention, since the capacity of the look-up table is reduced, this table can be arranged in the chip where the barrel shifter and the prefix data generator are arranged. So
The wiring length to the look-up table is shortened, the read time of the decoded data from the look-up table is shortened, and the read of the decoded data is speeded up.

【0034】[0034]

【実施例】以下、本発明の実施例を図面を参照しながら
説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0035】(第1の実施例)図4は、画像の圧縮/伸
張LSI(A)の全体構成を示す。図4に示す1チップ
上において、1…は主に動き補償及び量子化を行う4個
のベクトルパイプライン器、2は画像の圧縮/伸張LS
I(A)の全体をマイクロコードに従って制御する第1
の制御回路RISCCONT.A、3は主に可変長符号化(VL
C)及び可変長復号化(VLD)を制御する第2の制御
回路RISCCONT.B、4は離散コサイン変換(DCT)及び
逆離散コサイン変換(IDCT)を行う回路、5は可変
長符号化及び可変長復号化のコード等を格納するルック
アップテーブル、6は可変長符号化及び可変長復号化の
ロジック演算を行う回路、7は外部DRAMの制御を行
うDRAMコントローラである。
(First Embodiment) FIG. 4 shows the overall structure of an image compression / expansion LSI (A). On one chip shown in FIG. 4, 1 ... Four vector pipelines mainly for motion compensation and quantization, and 2 are image compression / expansion LS.
First to control the entire I (A) according to microcode
The control circuits RISCCONT.A and 3 are mainly variable length coding (VL
C) and second control circuit RISCCONT.B for controlling variable length decoding (VLD), 4 is a circuit for performing discrete cosine transform (DCT) and inverse discrete cosine transform (IDCT), and 5 is variable length coding and variable A lookup table for storing codes for long decoding and the like, 6 is a circuit for performing logic operation of variable length coding and variable length decoding, and 7 is a DRAM controller for controlling an external DRAM.

【0036】前記図4において、画像信号の符号化時に
は、次の動作が行われる。即ち、DRAMコントローラ
7がその内部に外部の画像データを取り込んだ後、4個
のベクトルパイプライン器1がその取り込んだ画像デー
タの動き補償及び量子化の両処理を行い、その後、DC
T/IDCT回路4が前記両処理後の画像データのDC
T処理を行う。以上の動作は、第1の制御回路RISCCON
T.A(2) により制御される。次いで、VLC/VLDロ
ジック回路6及びルックアップテーブル5により、前記
DCT処理後の画像データに対して可変長符号化が行わ
れる。この可変長符号化の動作は第2の制御回路RISCCO
NT.B(3) により制御される。
In FIG. 4, the following operation is performed when the image signal is encoded. That is, after the DRAM controller 7 fetches the external image data therein, the four vector pipeline units 1 perform both motion compensation and quantization processing of the fetched image data, and then the DC vector
The T / IDCT circuit 4 outputs the DC of the image data after both the above processes.
T processing is performed. The above operation is performed by the first control circuit RISCCON
Controlled by TA (2). Then, the VLC / VLD logic circuit 6 and the look-up table 5 perform variable length coding on the image data after the DCT processing. The operation of this variable length coding is the second control circuit RISCCO.
Controlled by NT.B (3).

【0037】これに対し、符号化された画像信号の復号
化時には、次の動作が行われる。即ち、連続する符号化
された画像信号を取り込んだ後、VLC/VLDロジッ
ク回路6及びルックアップテーブル5により、符号化さ
れた画像データに対して可変長復号化が行われる。この
可変長復号化の動作は第2の制御回路RISCCONT.B(3) に
より制御される。次いで、4個のベクトルパイプライン
器1がその復号化された画像データの逆量子化処理を行
い、その後、DCT/IDCT回路4が前記逆量子化処
理後の画像データのIDCT処理を行った後、DRAM
コントローラ7が外部のDRAMに前記IDCT処理後
の画像データを書き込む。以上の3動作は、第1の制御
回路RISCCONT.A(2) により制御される。
On the other hand, at the time of decoding the encoded image signal, the following operation is performed. That is, after the continuous encoded image signal is captured, the VLC / VLD logic circuit 6 and the look-up table 5 perform variable length decoding on the encoded image data. This variable length decoding operation is controlled by the second control circuit RISCCONT.B (3). Next, after the four vector pipelines 1 perform inverse quantization processing on the decoded image data, and then the DCT / IDCT circuit 4 performs IDCT processing on the image data after the inverse quantization processing. , DRAM
The controller 7 writes the image data after the IDCT processing in the external DRAM. The above three operations are controlled by the first control circuit RISCCONT.A (2).

【0038】図1は、前記画像の圧縮/伸張LSI
(A)のVLC/VLDロジック回路6のうち、可変長
復号を行う可変長復号化器としての構成のブロック図を
示す。
FIG. 1 shows the image compression / expansion LSI.
A block diagram of a configuration as a variable length decoder for performing variable length decoding in the VLC / VLD logic circuit 6 of (A) is shown.

【0039】同図において、11は連続する可変長符号
コードを所定ビット数(例えば10ビット)だけシフト
するバレルシフター、12は、前記バレルシフターがシ
フトする所定ビット数を例えば10ビットであると指定
するバレルシフターのポインター、13は符号コードを
外部から入力するための外部インターフェース、14は
復号データ等が予め記憶されたルックアップテーブル
(以下、LUTと略す)、15は前記LUT14から取
り出された復号データを処理するデータ処理装置であ
る。
In the figure, reference numeral 11 designates a barrel shifter for shifting a continuous variable length code code by a predetermined number of bits (for example, 10 bits), and 12 designates a predetermined number of bits for shifting by the barrel shifter, for example, 10 bits. A barrel shifter pointer, 13 is an external interface for inputting a code code from the outside, 14 is a look-up table (hereinafter abbreviated as LUT) in which decoded data and the like are stored in advance, and 15 is a decoding extracted from the LUT 14. A data processing device for processing data.

【0040】次に、本発明の特徴部分を説明する。16
はコード長選択回路、17はプリフィックスデータ発生
部である。
Next, the characteristic part of the present invention will be described. 16
Is a code length selection circuit, and 17 is a prefix data generator.

【0041】前記プリフィックスデータ発生部17の詳
細を図2に示す。
The details of the prefix data generator 17 are shown in FIG.

【0042】図2において、21-0、21-1〜21-N
は、各々、パターン記憶回路である。これ等のパターン
記憶回路21-0〜21-Nは、表1に一例として示した本
実施例の符号コード(尚、符号コードの最大コード長は
10ビットとしている)に対して、その符号コードの先
頭からの複数ビットに一致する下記の表2に示す複数ビ
ットから成るプリフィックスパターン(所定パターン)
(同表ではプリフィックスパターンの種類NはN=7)
を記憶する。
In FIG. 2, 21-0, 21-1 to 21-N
Are pattern storage circuits, respectively. These pattern storage circuits 21-0 to 21-N are different from the code code of this embodiment shown in Table 1 as an example (note that the maximum code length of the code code is 10 bits). Prefix pattern (predetermined pattern) consisting of multiple bits shown in Table 2 below that matches multiple bits from the beginning of the
(In the table, the number N of prefix patterns is N = 7)
Memorize

【0043】[0043]

【表1】 [Table 1]

【表2】 尚、表1では、コード番号(符号コードの種類)を『1
5』とし、最大コード長を『10ビット』としている
が、具体的に、画像処理上の規格MPEG2では、コー
ド番号は約390であり、最大コード長は『17ビッ
ト』前後である。
[Table 2] In Table 1, the code number (type of code) is "1.
5 ”and the maximum code length is“ 10 bits ”. Specifically, in the MPEG2 standard for image processing, the code number is about 390 and the maximum code length is around“ 17 bits ”.

【0044】また、前記表2では、各所定パターンは互
いに異なるコード長であるが、実際には、複数の所定パ
ターンが同一のコード長を有する場合があるので、これ
等の同一コード長を有する複数の所定パターン相互間で
は、異なるバンクアドレスを割り付ける必要がある。
In Table 2, the predetermined patterns have different code lengths from each other. However, in practice, a plurality of predetermined patterns may have the same code length, and thus have the same code length. It is necessary to allocate different bank addresses between a plurality of predetermined patterns.

【0045】更に、前記表1では、符号コードとして、
1個又は複数個の『0』の後に『1』が続き、その後に
2ビットのコード『00』、『01』、『10』又は
『11』が続く符号コードを例として挙げたので、前記
表2のプリフィックスパターンは、1個又は複数個の
『0』とこれに続く1個の『1』とを1つのグループと
したパターンとしている。即ち、これ等の符号コード
は、前記表2のプリフィックスパターンと、その後の2
ビットを他のグループとして分類した2グループから構
成される。実際のプリフィックスパターンは、表3に示
すように、『0』と『1』とを複雑に組合せた種々のパ
ターンである。
Further, in Table 1 above, as the code code,
As an example, a code code in which one or more "0" is followed by "1", followed by a 2-bit code "00", "01", "10" or "11" is described above. The prefix pattern in Table 2 is a pattern in which one or a plurality of "0" s and one "1" following the one are grouped together. That is, these code codes are the prefix pattern of Table 2 and the subsequent 2
It is composed of two groups in which bits are classified as other groups. Actual prefix patterns are various patterns in which "0" and "1" are complicatedly combined, as shown in Table 3.

【0046】[0046]

【表3】 図2において、20-0、20-1〜20-Nは、各々、一致
検出回路である。これ等の一致検出回路20-0〜20-N
は、図1のバレルシフター11から出力される一定ビッ
ト数のビット列を、その先頭から、対応するパターン記
憶回路21- 0〜21-Nに記憶したプリフィックスパタ
ーンと比較して、この両者が一致するか否かを検出し、
一致するとき、その一致したプリフィックスパターンk
(k=1、2…又はN)に対応したパターン一致信号k
を出力する機能を有する。
[Table 3] In FIG. 2, 20-0 and 20-1 to 20-N are coincidence detection circuits. These match detection circuits 20-0 to 20-N
Compares a bit string of a fixed number of bits output from the barrel shifter 11 of FIG. 1 from its head with the prefix pattern stored in the corresponding pattern storage circuits 21-0 to 21-N, and the two match. Detect whether or not
When matched, the matched prefix pattern k
Pattern matching signal k corresponding to (k = 1, 2, ... Or N)
Has the function of outputting.

【0047】更に、図2において、22はプリフィック
スパターンバンクアドレスセレクター(バンクアドレス
出力手段)である。このバンクアドレスセレクター22
は、予め、前記表2に示すように、各プリフィックスパ
ターン0〜N(N=7)に対応して割付けられたバンク
アドレス0〜N(N=7)を記憶しており、前記一致検
出回路20- 0〜20-Nの何れかから出力されたパター
ン一致信号kに対応するプリフィックスパターンkのバ
ンクアドレスkを選択して、出力する。前記バンクアド
レス0〜Nは、対応するプリフィックスパターン0〜N
のコード長よりもビット数が少なく設定されている。こ
のバンクアドレスセレクター22から出力されるバンク
アドレスは図1のLUT14に入力される。
Further, in FIG. 2, reference numeral 22 is a prefix pattern bank address selector (bank address output means). This bank address selector 22
Stores, in advance, bank addresses 0 to N (N = 7) assigned corresponding to each prefix pattern 0 to N (N = 7) as shown in Table 2 above. The bank address k of the prefix pattern k corresponding to the pattern matching signal k output from any of 20-0 to 20-N is selected and output. The bank addresses 0 to N have corresponding prefix patterns 0 to N.
The number of bits is set smaller than the code length of. The bank address output from the bank address selector 22 is input to the LUT 14 of FIG.

【0048】加えて、23はプリフィックスパターンレ
ングスセレクター(コード長信号出力手段)である。こ
のパターンレングスセレクター23は、前記表2に示す
ように、プリフィックスパターン0〜Nのレングス(コ
ード長)0〜Nを記憶しており、前記一致検出回路20
-0〜20-Nの何れかからパターン一致信号kが出力され
たとき、その一致信号kを受けて、その一致信号kに対
応するプリフィックスパターンkのレングス(コード
長)kを選択して、コード長信号を出力する機能を有す
る。
In addition, 23 is a prefix pattern length selector (code length signal output means). As shown in Table 2, the pattern length selector 23 stores the lengths (code lengths) 0 to N of the prefix patterns 0 to N and the match detection circuit 20.
When the pattern matching signal k is output from any of -0 to 20-N, the matching signal k is received, and the length (code length) k of the prefix pattern k corresponding to the matching signal k is selected, It has a function of outputting a code length signal.

【0049】加えて、24は前記一致検出回路20- 0
〜20-Nのパターン一致信号0〜Nの論理和を演算する
論理和回路、25はパターン一致信号出力禁止回路であ
って、このパターン一致信号出力禁止回路25は、前記
論理和回路24を経たパターン一致信号kの外部出力を
1回毎に(2回に1回の割合で)禁止する回路であっ
て、図3に示すようにシステムクロック信号(クロック
信号)を2分周する分周器25aを備えると共に、この
分周器25aの出力と前記論理和回路24の出力とが入
力される論理積回路25bとから成る。
In addition, 24 is the coincidence detection circuit 20-0.
.About.20-N pattern matching signals 0 to N are operated by a logical sum circuit, 25 is a pattern matching signal output prohibiting circuit, and the pattern matching signal output prohibiting circuit 25 passes through the logical sum circuit 24. A frequency divider that inhibits the external output of the pattern matching signal k every one time (every two times), and divides the system clock signal (clock signal) by two as shown in FIG. 25 a, and an AND circuit 25 b to which the output of the frequency divider 25 a and the output of the OR circuit 24 are input.

【0050】図1において、LUT14は、多数の可変
長符号コードを復号化した多数の復号データを予め内部
に記憶する。これ等の復号データは、バレルシフター1
1から出力される符号コードに対応する復号データを出
力するように、前記プリフィックスデータ発生部17の
プリフィックスパターンレングスセレクター23からの
バンクアドレスkと、バレルシフター11から出力され
る符号コードのうち前記バンクアドレスkに対応するプ
リフィックスパターンkを除いて残った複数ビットとに
応じて記憶されている。LUT14には、前記プリフィ
ックスデータ発生部17のプリフィックスパターンレン
グスセレクター23からのバンクアドレスk、及びバレ
ルシフター11からのビット列が入力され、バレルシフ
ター11から出力される符号コードにおいて、そのバン
クアドレスkと、残る複数ビットとが入力された時、こ
れ等をアドレスとして復号データがアドレッシングされ
ると共に、図1に示すように、符号コードのうちプリフ
ィックパターンに一致するビット列を除いて残った複数
ビットのコード長を示すコード長信号を出力する機能を
有する。
In FIG. 1, the LUT 14 internally stores in advance a large number of decoded data obtained by decoding a large number of variable length code codes. Decoded data of these is barrel shifter 1
The bank address k from the prefix pattern length selector 23 of the prefix data generation unit 17 and the bank of the code codes output from the barrel shifter 11 so as to output the decoded data corresponding to the code code output from 1 It is stored according to the remaining bits except the prefix pattern k corresponding to the address k. The bank address k from the prefix pattern length selector 23 of the prefix data generator 17 and the bit string from the barrel shifter 11 are input to the LUT 14, and the bank address k in the code code output from the barrel shifter 11 is When the remaining plural bits are input, the decoded data is addressed using these as an address, and as shown in FIG. 1, the code of the plural bits remaining excluding the bit string that matches the prefix pattern in the code code. It has a function of outputting a code length signal indicating the length.

【0051】前記図1に示したコード長選択回路16
は、前記プリフィックスデータ発生部17のパターン一
致信号出力禁止回路25を経たプリフィックスパターン
一致信号を受けたときには、プリフィックスデータ発生
部17からのプリフィックスレングス(一致したプリフ
ィックスパターンkのコード長)を選択して出力し、プ
リフィックスパターン一致信号を受けないときには、前
記LUT14から出力される符号コードの残る複数ビッ
トのコード長を示すコード長信号を選択して出力する。
The code length selection circuit 16 shown in FIG.
When the prefix pattern matching signal from the pattern matching signal output prohibiting circuit 25 of the prefix data generating unit 17 is received, the prefix length (code length of the matching prefix pattern k) from the prefix data generating unit 17 is selected. If the prefix pattern matching signal is not output, the code length signal indicating the code length of the remaining plural bits of the code output from the LUT 14 is selected and output.

【0052】次に、本実施例の可変長復号化器の動作を
説明する。
Next, the operation of the variable length decoder of this embodiment will be described.

【0053】外部インターフェース13からバレルシフ
ター11に入力されたビット列は、バレルシフター11
から、一定ビット数(10ビット)だけ出力され、この
出力されたビット列は、図2のプリフィックスデータ発
生部17の入力となる。
The bit string input from the external interface 13 to the barrel shifter 11 is the barrel shifter 11.
A fixed number of bits (10 bits) are output, and the output bit string is input to the prefix data generating unit 17 in FIG.

【0054】今、例えば、バレルシフター11の出力が
『00101xxxxx』(『xxxxx』は『001
01』に続く任意の5ビットのビット列)であるとすれ
ば、表2を参照してパターン1に一致するので、一致検
出回路20-1からパターン一致信号1がイネーブルとな
って、論理和回路24及びパターン一致信号出力禁止回
路25を経てパターン一致信号1が出力される。
Now, for example, the output of the barrel shifter 11 is "00101xxxx"("xxxxxx" is "001".
01 ”and an arbitrary 5-bit bit string), the pattern 1 is matched with reference to Table 2. Therefore, the pattern match signal 1 is enabled from the match detection circuit 20-1 and the logical sum circuit is enabled. The pattern matching signal 1 is output via 24 and the pattern matching signal output inhibiting circuit 25.

【0055】また、パターン一致信号1の出力と同時
に、プリフィックスパターンレングスセレクター23が
プリフィックスレングス3を出力すると共に、プリフィ
ックスパターンバンクアドレスセレクター22がプリフ
ィックスパターンバンクアドレス1を出力する。
Simultaneously with the output of the pattern matching signal 1, the prefix pattern length selector 23 outputs the prefix length 3 and the prefix pattern bank address selector 22 outputs the prefix pattern bank address 1.

【0056】図1のコード長選択回路16は、前記パタ
ーン一致信号1がイネーブルであるので、プリフィック
スレングス3を選択して出力する。この出力されたプリ
フィックスレングス3はポインター12に足し込まれ、
このポインタ12により、バレルシフター11は、ビッ
ト列の先頭からプリフィックスレングス3だけビットを
シフトする。従って、次に、バレルシフター11から出
力される一定ビット数(10ビット)のビット列の先頭
には、前記符号コード『00101』からプリフィック
スパターン『001』を除いて残った部分『01』が位
置する(すなわち、バレルシフター11からは、『01
xxxxxxxx』のビット列が出力される)。
Since the pattern matching signal 1 is enabled, the code length selection circuit 16 of FIG. 1 selects and outputs the prefix length 3. The outputted prefix length 3 is added to the pointer 12,
With this pointer 12, the barrel shifter 11 shifts the bits by the prefix length 3 from the beginning of the bit string. Therefore, next, at the beginning of the constant bit number (10 bits) bit string output from the barrel shifter 11, the part "01" remaining after removing the prefix pattern "001" from the code code "00101" is located. (That is, from the barrel shifter 11, "01
The bit string of “xxxxxxxxx” is output).

【0057】LUT14では、前記プリフィックスパタ
ーンバンクアドレス『001』を上位アドレスとし、前
記バレルシフター11から出力されたビット列のうち先
頭の2ビットである『01』を下位アドレスとして、復
号データがアドレッシングされる。
In the LUT 14, the prefix pattern bank address "001" is used as an upper address, and the first two bits "01" of the bit string output from the barrel shifter 11 is used as a lower address to address the decoded data. .

【0058】その結果、LUT14は、復号化されたデ
ータを出力し、この復号データはデータ処理装置15に
入力され、このデータ処理装置15で画像データの処理
及び画像データ以外の処理等が行われる。
As a result, the LUT 14 outputs the decoded data, and this decoded data is input to the data processing device 15, and the data processing device 15 performs the processing of the image data and the processing other than the image data. .

【0059】従って、本実施例では、バンクアドレスの
最大値が7(即ち、3ビット)、プリフィックスパター
ンを除いた符号コードの最大コード長が2ビットである
ので、合計5ビットでアドレッシングできることにな
る。
Therefore, in this embodiment, since the maximum value of the bank address is 7 (that is, 3 bits) and the maximum code length of the code code excluding the prefix pattern is 2 bits, it is possible to perform addressing with a total of 5 bits. .

【0060】前記バレルシフター11の出力『01xx
xxxxxx』は、表2から、パターンナンバー0と一
致するが、図2に示したパターン一致信号出力禁止回路
25の論理積回路25bが、パターン一致信号0の出力
を防ぐ。LUT14には、前述の通り、符号コードを可
変長復号した復号データと共に、符号コードのうちプリ
ッフィクスパターンを除いて残った部分のコード長が格
納されているので、LUT14は、前記符号コードのう
ちプリッフィクスパターンを除いて残った部分のコード
長を示す信号を出力する。コード長選択回路16は、プ
リッフィクスデータ発生部17からパターン一致信号が
出力されていないので、前記LUT14からのコード長
信号を選択して出力する。
Output of the barrel shifter 11 "01xx
“Xxxxxxx” matches the pattern number 0 from Table 2, but the logical product circuit 25b of the pattern matching signal output inhibiting circuit 25 shown in FIG. 2 prevents the output of the pattern matching signal 0. As described above, the LUT 14 stores the decoded data obtained by variable-length decoding the code code and the code length of the remaining portion of the code code excluding the prefix pattern. A signal indicating the code length of the remaining portion excluding the prefix pattern is output. The code length selection circuit 16 selects and outputs the code length signal from the LUT 14 because the pattern matching signal is not output from the prefix data generation unit 17.

【0061】前記コード長選択回路16から出力された
コード長信号は、バレルシフター11のポインター12
に累算される。これにより、バレルシフター11は、ビ
ット列の先頭の2ビットをシフトする。従って、バレル
シフター11が次回に出力するビット列の先頭には、前
記符号コード『00101』に続く次の符号コードが位
置することになる。
The code length signal output from the code length selection circuit 16 is supplied to the pointer 12 of the barrel shifter 11.
Is accumulated. As a result, the barrel shifter 11 shifts the first 2 bits of the bit string. Therefore, the next code code following the code code "00101" is located at the head of the bit string output next time by the barrel shifter 11.

【0062】このように、本実施例では、符号コードの
先頭からの一部をこれより短いビット数のバンクアドレ
スに置換し、このバンクアドレスと前記符号コードの一
部を除いた残り部分とをアドレスとして、LUT14を
アドレッシングできる。具体的には、従来例で符号コー
ド長が10ビットの場合には、図6に示すように210
ードのルックアップテーブルを必要としていたのに対
し、本実施例では、5ビットのアドレスでアドレッシン
グできるので、図5に示すように、従来と同一量の復号
データを、その記憶密度が高い状態で記憶できて、LU
Tを25 ワードの小容量のもので構成でき、画像の圧縮
/伸張LSI(A)の1チップ上に配置できる。
As described above, in this embodiment, a part from the beginning of the code code is replaced with a bank address having a shorter number of bits, and this bank address and the remaining part excluding the part of the code code are replaced. The LUT 14 can be addressed as an address. Specifically, when the sign code length is 10 bits in the conventional example, while we needed a lookup table 2 10 words as shown in FIG. 6, in this embodiment, by the 5-bit address Since the addressing can be performed, as shown in FIG. 5, the same amount of decoded data as in the conventional case can be stored in a state where the storage density is high, and the LU can be stored.
T can be composed of a small capacity of 25 words and can be arranged on one chip of the image compression / expansion LSI (A).

【0063】(第2の実施例)図7は本発明の第2の実
施例を示す。
(Second Embodiment) FIG. 7 shows a second embodiment of the present invention.

【0064】前記第1の実施例では、各々の符号コード
において、各符号コードを2グループに分割したのに代
え、3グループ以上の複数に分割して、復号データをア
ドレッシングするようにしたものである。
In the first embodiment, each code code is divided into two or more groups instead of being divided into two groups, and the decoded data is addressed. is there.

【0065】すなわち、同図に示す可変長復号化器は、
前記図1に示した第1の実施例の可変長復号化器のプリ
フィックスデータ発生部17を複数個備えた構成である
点で異なり、その他の構成は図1の可変長復号化器と同
様である。
That is, the variable length decoder shown in FIG.
1 is different from the variable length decoder of the first embodiment shown in FIG. 1 in that it has a plurality of prefix data generators 17, and other configurations are similar to those of the variable length decoder of FIG. is there.

【0066】図7に示す複数個のプリフィックスデータ
発生部17-1、17-2…17-N-1、17-Nは、各々、同
図に示すように、自己が発生したバンクアドレスをLU
T14に出力すると共に、自己が発生したプリフィック
スレングス及びプリフィックス一致信号をコード長選択
回路16に出力する。
Each of the plurality of prefix data generators 17-1, 17-2 ... 17-N-1, 17-N shown in FIG. 7 uses the bank address generated by itself as an LU, as shown in FIG.
At the same time as outputting to T14, the prefix length and the prefix matching signal generated by itself are output to the code length selecting circuit 16.

【0067】また、前記複数個のプリフィックスデータ
発生部17-1、17-2…17-N-1、17-Nは、符号コー
ドを3グループに分割する場合には2個、符号コードを
4グループに分割する場合には3個設けられ、一般に、
符号コードをNグループに分割する場合にはN−1個設
けられる。
The plurality of prefix data generators 17-1, 17-2 ... 17-N-1, 17-N divide the code code into three groups and use two code codes. When divided into groups, three are provided, and generally,
When the code code is divided into N groups, N-1 pieces are provided.

【0068】前記各プリフィックスデータ発生部17-
1、17-2…17-N-1、17-Nは、各々、第1の実施例
の図2に示したパターン一致信号出力禁止回路25と同
様に、分周器(図示せず)を有する。この分周器は、シ
ステムクロック信号を分周するものであり、プリフィッ
クスデータ発生部の個数が2個の場合にはシステムクロ
ック信号を図8(a)に示すように3分周し、プリフィ
ックスデータ発生部の個数が3個の場合にはシステムク
ロック信号を同図(b)に示すように4分周するもので
あり、一般に、プリフィックスデータ発生部の個数をN
として、システムクロック信号をN+1分周する機能を
有する。
Each prefix data generator 17-
1, 17-2 ... 17-N-1, 17-N are each provided with a frequency divider (not shown), like the pattern matching signal output inhibiting circuit 25 shown in FIG. 2 of the first embodiment. Have. This frequency divider divides the system clock signal. When the number of prefix data generators is two, the system clock signal is divided by three as shown in FIG. When the number of generating units is three, the system clock signal is divided into four as shown in FIG. 7B, and in general, the number of prefix data generating units is N.
, It has a function of dividing the system clock signal by N + 1.

【0069】上記各分周器の出力は、図8(a)及び
(b)から判るように、相互に、システムクロック信号
の1周期分づつずれている。
As can be seen from FIGS. 8 (a) and 8 (b), the outputs of the above frequency dividers are deviated from each other by one cycle of the system clock signal.

【0070】図7のLUT14は、全てのプリフィック
スデータ発生部17-1〜17-Nからのバンクアドレスを
受けた後、最終期間(システムクロック信号を分周器で
3分周する場合には3クロック目、4分周する場合には
4クロック目)において、これ等のバンクアドレスと、
復号される符号コードのうち各プリフィックスパターン
に一致する部分を除いた複数ビットとをアドレスとし
て、その符号コードの複号データを出力する。
The LUT 14 of FIG. 7 receives the bank addresses from all the prefix data generators 17-1 to 17-N, and then receives the bank address for the final period (3 when the system clock signal is divided by 3 by the frequency divider). At the clock, at the 4th clock when the frequency is divided by 4, the bank addresses of these are
A plurality of bits of the code code to be decoded excluding a portion matching each prefix pattern is used as an address, and the decryption data of the code code is output.

【0071】したがって、本実施例においては、各符号
コードをN(N≧3)グループに分割するので、LUT
14では、N−1個のバンクアドレスと、残り1個のグ
ループを構成する複数ビットとにより、復号データをア
ドレッシングでき、符号コードを2グループに分割する
第1の実施例に比して、LUT14の回路規模をより一
層小規模にできる。
Therefore, in this embodiment, since each code code is divided into N (N ≧ 3) groups, the LUT
14, the decoded data can be addressed by N-1 bank addresses and a plurality of bits forming the remaining one group, and the LUT 14 is different from the first embodiment in which the code code is divided into two groups. The circuit scale of can be further reduced.

【0072】[0072]

【発明の効果】以上説明したように、請求項1〜請求項
7記載の各発明の可変長符号化器によれば、符号コード
の先頭からの複数ビットが所定パターンと一致すると
き、その所定パターンのコード長よりもコード長の短い
バンクアドレスをプリフィックスデータ発生部から出力
し、そのバンクアドレスと、符号コードのうち一致した
所定パターンを除いて残った複数ビットとをアドレスと
して、ルックアップテーブルから、対応する復号データ
をアドレッシングする構成としたので、復号データの読
み出し時間の短縮化を図りつつ、テーブルの小領域に多
くの復号データを記憶させて復号データの記憶密度を高
くでき、よって、ルックアップテーブルのハードウェア
規模を小さくして、小容量のルックアップテーブルを採
用できる。
As described above, according to the variable length encoders of the first to seventh aspects of the present invention, when a plurality of bits from the head of the code code match a predetermined pattern, the predetermined code is determined. A bank address having a code length shorter than the code length of the pattern is output from the prefix data generation unit, and the bank address and a plurality of bits remaining in the code code except the matching predetermined pattern are used as an address from the lookup table. Since the corresponding decoded data is addressed, it is possible to store a large amount of decoded data in a small area of the table and increase the storage density of the decoded data while shortening the read time of the decoded data. The look-up table with a small capacity can be adopted by reducing the hardware scale of the look-up table.

【0073】また、請求項8〜請求項14記載の各発明
の可変長符号化器によれば、前記プリフィックスデータ
発生部を複数設けて、複数のバンクアドレスと、符号コ
ードのうち一致した複数の所定パターンを除いて残った
複数ビットとをアドレスとして、ルックアップテーブル
から復号データをアドレッシングする構成としたので、
復号データの記憶密度を極めて高くして、ルックアップ
テーブルのハードウェア規模を効果的に小さくすること
ができ、より一層小容量のルックアップテーブルを採用
できる。
According to the variable length encoder of each of the inventions described in claims 8 to 14, a plurality of the prefix data generators are provided, and a plurality of bank addresses and a plurality of coincident code codes are matched. Since the configuration is such that the decoded data is addressed from the lookup table using the remaining bits excluding the predetermined pattern as an address,
The storage density of the decoded data can be made extremely high to effectively reduce the hardware scale of the look-up table, and a look-up table having a smaller capacity can be adopted.

【0074】加えて、請求項15記載の発明の可変長復
号化器によれば、前記小容量化できる構成のルックアッ
プテーブルを、バレルシフター及びプリフィックスデー
タ発生部を設けたチップ内に配置できるので、ルックア
ップテーブルに至る配線の長さを有効に短縮して、ルッ
クアップテーブルからの復号データの読み出し時間を短
かくでき、復号データの読み出しの高速化を図ることが
できる。
In addition, according to the variable length decoder of the invention as set forth in claim 15, the look-up table having the structure capable of reducing the capacity can be arranged in the chip provided with the barrel shifter and the prefix data generating section. , The length of the wiring to the lookup table can be effectively shortened, the time for reading the decoded data from the lookup table can be shortened, and the speed of reading the decoded data can be increased.

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

【図1】本発明の第1の実施例における可変長復号化器
のブロック図である。
FIG. 1 is a block diagram of a variable length decoder according to a first embodiment of the present invention.

【図2】本発明の第1の実施例における可変長復号化器
のプリフィックスデータ発生部のブロック図である。
FIG. 2 is a block diagram of a prefix data generation unit of the variable length decoder in the first exemplary embodiment of the present invention.

【図3】同実施例における分周器の動作の説明図であ
る。
FIG. 3 is an explanatory diagram of an operation of the frequency divider in the embodiment.

【図4】画像の圧縮/伸張LSIの全体構成を示す図で
ある。
FIG. 4 is a diagram showing an overall configuration of an image compression / expansion LSI.

【図5】本発明の第1の実施例でのルックアップテーブ
ルを示す図である。
FIG. 5 is a diagram showing a look-up table in the first embodiment of the present invention.

【図6】従来例でのルックアップテーブルを示す図であ
る。
FIG. 6 is a diagram showing a lookup table in a conventional example.

【図7】本発明の第2の実施例における可変長復号化器
のブロック図である。
FIG. 7 is a block diagram of a variable length decoder in the second exemplary embodiment of the present invention.

【図8】同実施例における各分周器の動作の説明図であ
る。
FIG. 8 is an explanatory diagram of the operation of each frequency divider in the embodiment.

【図9】従来の可変長復号化器のブロック図である。FIG. 9 is a block diagram of a conventional variable length decoder.

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

11 バレルシフター 12 バレルシフターのポインター 14 ルックアップテーブル 16 コード長選択回路 17 プリフィックスデータ発生部 20-0〜20-N 一致検出回路 21-0〜21-N パターン記憶回路 22 プリフィックスパターンバンク
アドレスセレクター (バンクアドレス出力手段) 23 プリフィックスパターンレング
スセレクター (コード長信号出力手段) 25 パターン一致信号出力禁止回路 25a 分周器 25b 論理積回路
11 Barrel shifter 12 Barrel shifter pointer 14 Look-up table 16 Code length selection circuit 17 Prefix data generator 20-0 to 20-N Match detection circuit 21-0 to 21-N Pattern storage circuit 22 Prefix pattern bank Address selector (bank Address output means) 23 Prefix pattern length selector (code length signal output means) 25 Pattern match signal output prohibition circuit 25a Frequency divider 25b AND circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 // G06F 5/00 H ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI technical display location // G06F 5/00 H

Claims (15)

【特許請求の範囲】[Claims] 【請求項1】 連続する可変長符号コードを所定ビット
数だけシフトするバレルシフターと、 複数ビットから成る所定コード長の複数の所定パターン
と、前記各所定パターンのコード長よりもビット数が少
なく且つ前記各所定パターン毎に割付けられた複数のバ
ンクアドレスとを予め内部に記憶し、前記バレルシフタ
ーから出力される可変長符号コードをその先頭から前記
複数の所定パターンと比較し、その両者が一致すると
き、その一致する所定パターンのバンクアドレスを発生
するプリフィックスデータ発生部と、 多数の可変長符号コードを復号化した多数の復号データ
を予め内部に記憶し、前記プリフィックスデータ発生部
から発生したバンクアドレスと、前記バレルシフターか
ら出力される可変長符号コードのうち前記所定パターン
以外の残った符号コードとをアドレスとして、前記バレ
ルシフターから出力される可変長符号コードに対応する
復号データを出力するルックアップテーブルとを備えた
ことを特徴とする可変長復号化器。
1. A barrel shifter for shifting a continuous variable length code code by a predetermined number of bits, a plurality of predetermined patterns having a predetermined code length composed of a plurality of bits, and a bit number smaller than the code length of each of the predetermined patterns. A plurality of bank addresses assigned to each of the predetermined patterns are stored in advance in advance, the variable length code code output from the barrel shifter is compared with the plurality of predetermined patterns from the beginning, and both match. At this time, a prefix data generator that generates a bank address of the matching predetermined pattern and a large number of decoded data obtained by decoding a large number of variable-length code codes are stored in advance, and the bank address generated from the prefix data generator is stored. And the predetermined pattern of the variable length code output from the barrel shifter. As addresses and codes code outside the remaining variable length decoder, characterized in that a look-up table for outputting decoded data corresponding to the variable length coding code output from the barrel shifter.
【請求項2】 シフトすべき所定ビット数をバレルシフ
ターに指令するポインタと、 コード長選択回路とが備えられ、 プリフィックスデータ発生部は、符号コードの先頭から
所定ビット数までの部分と所定パターンとが一致すると
き一致信号を出力すると共に、一致した所定パターンの
コード長を示すコード長信号を出力するものであり、 ルックアップテーブルは、復号される可変長符号コード
のコード長から、一致した所定パターンのコード長を減
じたコード長信号を出力するものであり、 前記コード長選択回路は、前記プリフィックスデータ発
生部からの一致信号の出力時には、前記プリフィックス
データ発生部のコード長信号を選択して出力する一方、
前記一致信号の非出力時には、ルックアップテーブルか
らのコード長信号を選択して出力するものであり、 前記ポインタは、前記コード長選択回路から出力される
コード長信号を受け、コード長信号が示すコード長だけ
可変長符号コードをシフトするようにバレルシフターを
制御するものであることを特徴とする請求項1記載の可
変長復号化器。
2. A pointer for instructing a barrel shifter a predetermined number of bits to be shifted, and a code length selection circuit are provided, and the prefix data generating section includes a portion from a head of the code code to a predetermined number of bits and a predetermined pattern. When the two match, the match signal is output, and the code length signal indicating the code length of the predetermined pattern that matched is output.The lookup table is based on the code length of the variable-length code code to be decoded. The code length signal is output by subtracting the code length of the pattern, and the code length selection circuit selects the code length signal of the prefix data generation unit at the time of outputting a match signal from the prefix data generation unit. While outputting
When the match signal is not output, the code length signal from the look-up table is selected and output, and the pointer receives the code length signal output from the code length selection circuit and indicates the code length signal. 2. The variable length decoder according to claim 1, wherein the barrel shifter is controlled so as to shift the variable length code code by the code length.
【請求項3】 プリフィックスデータ発生部は、 複数の所定パターンの各々を予め記憶する複数のパター
ン記憶回路と、 バレルシフターから出力される可変長符号コードをその
先頭から、前記複数のパターン記憶回路の所定パターン
と比較し、両者が一致するとき、その一致した所定パタ
ーンに対応するパターン一致信号を出力する一致検出回
路と、 複数のバンクアドレスの各々を予め記憶し、前記一致検
出回路のパターン一致信号を受けて、その受けたパター
ン一致信号に対応するパターンのバンクアドレスを出力
するバンクアドレス出力手段とを備えたことを特徴とす
る請求項1又は請求項2記載の可変長復号化器。
3. The prefix data generation unit includes a plurality of pattern storage circuits that store in advance each of a plurality of predetermined patterns, and a variable length code code output from a barrel shifter from the beginning of the plurality of pattern storage circuits. A match detection circuit that outputs a pattern match signal corresponding to the matched predetermined pattern when compared with a predetermined pattern, and a plurality of bank addresses are stored in advance, and the pattern match signal of the match detection circuit is stored. 3. The variable length decoder according to claim 1, further comprising: a bank address output unit that receives and outputs a bank address of a pattern corresponding to the received pattern matching signal.
【請求項4】 一致検出回路は、複数のパターン記憶回
路と同数設けられ、 各一致検出回路は、バレルシフターから出力される可変
長符号コードを、対応するパターン記憶回路の所定パタ
ーンと比較するものであることを特徴とする請求項3記
載の可変長復号化器。
4. The coincidence detection circuit is provided in the same number as a plurality of pattern storage circuits, and each coincidence detection circuit compares a variable length code code output from a barrel shifter with a predetermined pattern of a corresponding pattern storage circuit. 4. The variable length decoder according to claim 3, wherein
【請求項5】 プリフィックスデータ発生部は、 一致検出回路のパターン一致信号を受け、その受けたパ
ターン一致信号に対応する所定パターンのコード長信号
を出力するコード長信号出力手段を備えたことを特徴と
する請求項3又は請求項4記載の可変長復号化器。
5. The prefix data generator includes a code length signal output means for receiving a pattern match signal of the match detection circuit and outputting a code length signal of a predetermined pattern corresponding to the received pattern match signal. The variable length decoder according to claim 3 or 4.
【請求項6】 プリフィックスデータ発生部は、 一致検出回路のパターン一致信号の出力を1回毎に禁止
する一致信号出力禁止回路を備え、 前記一致信号出力禁止回路を通過したパターン一致信号
がコード長選択回路に出力され、前記一致信号出力禁止
回路を通過する前のパターン一致信号がバンクアドレス
出力手段に出力されることを特徴とする請求項3、請求
項4又は請求項5記載の可変長復号化器。
6. The prefix data generator includes a match signal output prohibition circuit for prohibiting the output of the pattern match signal of the match detection circuit every time, and the pattern match signal passed through the match signal output prohibition circuit has a code length. 6. The variable length decoding according to claim 3, 4 or 5, wherein the pattern match signal output to the selection circuit and before passing through the match signal output prohibition circuit is output to the bank address output means. Chemist.
【請求項7】 一致信号出力禁止回路は、 クロック信号を2分周する分周器と、 一致検出回路のパターン一致信号、及び前記分周器の出
力を入力とする論理積回路とから成ることを特徴とする
請求項6記載の可変長復号化器。
7. The coincidence signal output inhibiting circuit comprises a frequency divider that divides the clock signal by two, a pattern coincidence signal of the coincidence detection circuit, and a logical product circuit that receives the output of the divider. 7. The variable length decoder according to claim 6, wherein.
【請求項8】 連続する可変長符号コードを所定ビット
数だけシフトするバレルシフターと、 複数の符号コードの各々を複数にグループ化した場合の
各グループ別に、複数ビットから成る所定コード長の複
数の所定パターンと、前記各所定パターンのコード長よ
りもビット数が少なく且つ前記各所定パターン毎に割付
けられた複数のバンクアドレスとを予め内部に記憶し、
前記バレルシフターから出力される可変長符号コードを
その先頭から前記複数の所定パターンと比較し、その両
者が一致するとき、その一致する所定パターンのバンク
アドレスを発生する複数のプリフィックスデータ発生部
と、 多数の可変長符号コードを復号化した多数の復号データ
を予め内部に記憶し、前記各プリフィックスデータ発生
部から発生した複数のバンクアドレスと、前記バレルシ
フターから出力される可変長符号コードのうち、前記一
致した複数の所定パターン以外の残った符号コードとを
アドレスとして、前記バレルシフターから出力される可
変長符号コードに対応する復号データを出力するルック
アップテーブルとを備えたことを特徴とする可変長復号
化器。
8. A barrel shifter for shifting a continuous variable length code code by a predetermined number of bits, and a plurality of code codes each having a predetermined code length of a plurality of bits for each group when a plurality of code codes are grouped into a plurality of groups. A predetermined pattern and a plurality of bank addresses having a smaller number of bits than the code length of each of the predetermined patterns and allocated for each of the predetermined patterns are stored in advance in advance.
A variable length code code output from the barrel shifter is compared with the plurality of predetermined patterns from the beginning, and when the two match, a plurality of prefix data generating units that generate bank addresses of the matching predetermined patterns, A large number of decoded data obtained by decoding a large number of variable length code codes are stored in advance inside, and a plurality of bank addresses generated from each of the prefix data generation units, and a variable length code code output from the barrel shifter, A variable comprising a lookup table for outputting decoded data corresponding to the variable length code output from the barrel shifter, using the remaining code codes other than the plurality of matched predetermined patterns as addresses. Long decoder.
【請求項9】 シフトすべき所定ビット数をバレルシフ
ターに指令するポインタと、 コード長選択回路とが備えられ、 各プリフィックスデータ発生部は、符号コードの先頭か
ら所定ビット数までの部分と所定パターンとが一致する
とき一致信号を出力すると共に、一致した所定パターン
のコード長を示すコード長信号を出力するものであり、 ルックアップテーブルは、復号される可変長符号コード
のコード長から、一致した複数の所定パターンのコード
長を合せた合計コード長を減じたコード長信号を出力す
るものであり、 前記コード長選択回路は、前記プリフィックスデータ発
生部からの一致信号の出力時には、前記プリフィックス
データ発生部のコード長信号を選択して出力する一方、
前記一致信号の非出力時には、ルックアップテーブルか
らのコード長信号を選択して出力するものであり、 前記ポインタは、前記コード長選択回路から出力される
コード長信号を受け、コード長信号が示すコード長だけ
可変長符号コードをシフトするようにバレルシフターを
制御するものであることを特徴とする請求項8記載の可
変長復号化器。
9. A pointer for instructing a barrel shifter of a predetermined number of bits to be shifted, and a code length selection circuit, wherein each prefix data generating section has a predetermined pattern and a portion from the head of the code code to the predetermined number of bits. When and match, the match signal is output, and the code length signal indicating the code length of the matched predetermined pattern is output. The lookup table matches the code length of the variable-length code code to be decoded. A code length signal that is obtained by subtracting the total code length of the code lengths of a plurality of predetermined patterns is output, and the code length selection circuit generates the prefix data when the match signal is output from the prefix data generation unit. While selecting and outputting the code length signal of the part,
When the match signal is not output, the code length signal from the look-up table is selected and output, and the pointer receives the code length signal output from the code length selection circuit and indicates the code length signal. 9. The variable length decoder according to claim 8, wherein the barrel shifter is controlled so as to shift the variable length code code by the code length.
【請求項10】 各プリフィックスデータ発生部は、 同一グループ内の複数の所定パターンの各々を予め記憶
する複数のパターン記憶回路と、 バレルシフターから出力される可変長符号コードをその
先頭から、前記複数のパターン記憶回路の所定パターン
と比較し、両者が一致するとき、その一致した所定パタ
ーンに対応するパターン一致信号を出力する一致検出回
路と、 複数のバンクアドレスの各々を予め記憶し、前記一致検
出回路のパターン一致信号を受けて、その受けたパター
ン一致信号に対応するパターンのバンクアドレスを出力
するバンクアドレス出力手段とを備えたことを特徴とす
る請求項8又は請求項9記載の可変長復号化器。
10. Each of the prefix data generators includes a plurality of pattern storage circuits that store in advance each of a plurality of predetermined patterns in the same group, and a plurality of variable length code codes output from a barrel shifter from the top of the plurality of pattern storage circuits. Of the plurality of bank addresses are stored in advance, and a match detection circuit that outputs a pattern match signal corresponding to the matched predetermined pattern is stored in advance. 10. The variable length decoding according to claim 8 or 9, further comprising: a bank address output means for receiving a pattern matching signal of the circuit and outputting a bank address of a pattern corresponding to the received pattern matching signal. Chemist.
【請求項11】 各プリフィックスデータ発生部におい
て、 一致検出回路は、複数のパターン記憶回路と同数設けら
れ、 各一致検出回路は、バレルシフターから出力される可変
長符号コードを、対応するパターン記憶回路の所定パタ
ーンと比較するものであることを特徴とする請求項10
記載の可変長復号化器。
11. In each prefix data generation section, the match detection circuits are provided in the same number as the plurality of pattern storage circuits, and each match detection circuit outputs the variable length code output from the barrel shifter to the corresponding pattern storage circuit. 11. The predetermined pattern is compared with a predetermined pattern.
Variable length decoder as described.
【請求項12】 各プリフィックスデータ発生部は、 一致検出回路のパターン一致信号を受け、その受けたパ
ターン一致信号に対応する所定パターンのコード長信号
を出力するコード長信号出力手段を備えたことを特徴と
する請求項10又は請求項11記載の可変長復号化器。
12. Each of the prefix data generators comprises code length signal output means for receiving a pattern match signal of the match detection circuit and outputting a code length signal of a predetermined pattern corresponding to the received pattern match signal. The variable length decoder according to claim 10 or 11, characterized in that.
【請求項13】 各プリフィックスデータ発生部は、 一致検出回路のパターン一致信号の出力を、各符号コー
ドをグループ化した個数に等しい回数のうち1回の割合
で許容し、他は禁止する一致信号出力禁止回路を備え、 前記一致信号出力禁止回路を通過したパターン一致信号
がコード長選択回路に出力され、前記一致信号出力禁止
回路を通過する前のパターン一致信号が自己のバンクア
ドレス出力手段に出力されることを特徴とする請求項1
0、請求項11又は請求項12記載の可変長復号化器。
13. The prefix signal generator allows the output of the pattern match signal of the match detection circuit at a rate of once out of the number of times each code code is grouped, and prohibits the others. An output inhibit circuit is provided, the pattern match signal passing through the match signal output inhibit circuit is output to the code length selection circuit, and the pattern match signal before passing through the match signal output inhibit circuit is output to its own bank address output means. The method according to claim 1, wherein
0, the variable length decoder according to claim 11 or claim 12.
【請求項14】 各プリフィックスデータ発生部の一致
信号出力禁止回路は、 クロック信号を、プリフィックスデータ発生部の個数に
1を加算した整数倍に分周する分周器と、 一致検出回路のパターン一致信号、及び前記分周器の出
力を入力とする論理積回路とから成り、 各プリフィックスデータ発生部の論理積の出力は、相互
に、クロック信号の1周期づつずれることを特徴とする
請求項13記載の可変長復号化器。
14. The match signal output prohibiting circuit of each prefix data generating section divides a clock signal by an integer multiple of 1 by adding the number of prefix data generating sections, and a pattern matching circuit of a match detecting circuit. 14. A signal and a logical product circuit having the output of the frequency divider as an input, and the outputs of the logical products of the respective prefix data generation units are mutually shifted by one cycle of the clock signal. Variable length decoder as described.
【請求項15】 ルックアップテーブルは、バレルシフ
ター及びプリフィックスデータ発生部が配置された1チ
ップ内に配置されることを特徴とする請求項1〜請求項
13又は請求項14記載の可変長復号化器。
15. The variable length decoding according to claim 1, wherein the look-up table is arranged in one chip in which the barrel shifter and the prefix data generator are arranged. vessel.
JP26647594A 1993-12-28 1994-10-31 Variable length decoder Pending JPH07235878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26647594A JPH07235878A (en) 1993-12-28 1994-10-31 Variable length decoder

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP5-337280 1993-12-28
JP33728093 1993-12-28
JP26647594A JPH07235878A (en) 1993-12-28 1994-10-31 Variable length decoder

Publications (1)

Publication Number Publication Date
JPH07235878A true JPH07235878A (en) 1995-09-05

Family

ID=26547463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26647594A Pending JPH07235878A (en) 1993-12-28 1994-10-31 Variable length decoder

Country Status (1)

Country Link
JP (1) JPH07235878A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0855671A2 (en) * 1997-01-27 1998-07-29 Canon Kabushiki Kaisha Image processing method and apparatus, and image forming apparatus
WO2005006562A1 (en) * 2003-07-15 2005-01-20 Intel, Zakrytoe Aktsionernoe Obschestvo A method of decoding variable length prefix codes
JP2006254225A (en) * 2005-03-11 2006-09-21 Toshiba Corp Apparatus and method for decoding variable length code
JP2007537626A (en) * 2004-04-19 2007-12-20 ザ・リージェンツ・オブ・ザ・ユニバーシティ・オブ・カリフォルニア Programmable hardware for deep packet filtering
US7924179B2 (en) 2006-03-23 2011-04-12 Nec Corporation Variable-length code determining device and variable-length code decoding method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01185026A (en) * 1988-01-19 1989-07-24 Fujitsu Ltd Data compressing system
JPH04133522A (en) * 1990-09-26 1992-05-07 Ricoh Co Ltd Variable-length code decoding circuit
JPH05183443A (en) * 1991-12-27 1993-07-23 Pfu Ltd Code conversion method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01185026A (en) * 1988-01-19 1989-07-24 Fujitsu Ltd Data compressing system
JPH04133522A (en) * 1990-09-26 1992-05-07 Ricoh Co Ltd Variable-length code decoding circuit
JPH05183443A (en) * 1991-12-27 1993-07-23 Pfu Ltd Code conversion method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0855671A2 (en) * 1997-01-27 1998-07-29 Canon Kabushiki Kaisha Image processing method and apparatus, and image forming apparatus
EP0855671A3 (en) * 1997-01-27 1999-09-22 Canon Kabushiki Kaisha Image processing method and apparatus, and image forming apparatus
US6108102A (en) * 1997-01-27 2000-08-22 Canon Kabushiki Kaisha Image processing method and apparatus, and image forming apparatus
WO2005006562A1 (en) * 2003-07-15 2005-01-20 Intel, Zakrytoe Aktsionernoe Obschestvo A method of decoding variable length prefix codes
JP2007537626A (en) * 2004-04-19 2007-12-20 ザ・リージェンツ・オブ・ザ・ユニバーシティ・オブ・カリフォルニア Programmable hardware for deep packet filtering
JP4755175B2 (en) * 2004-04-19 2011-08-24 ザ・リージェンツ・オブ・ザ・ユニバーシティ・オブ・カリフォルニア Programmable hardware for deep packet filtering
JP2006254225A (en) * 2005-03-11 2006-09-21 Toshiba Corp Apparatus and method for decoding variable length code
US7924179B2 (en) 2006-03-23 2011-04-12 Nec Corporation Variable-length code determining device and variable-length code decoding method

Similar Documents

Publication Publication Date Title
US5604499A (en) Variable-length decoding apparatus
US5254991A (en) Method and apparatus for decoding Huffman codes
US5801650A (en) Decoding apparatus and method
US20040042675A1 (en) Image coding and decoding apparatus, method of image coding and decoding, and recording medium for recording program for image coding and decoding
US5675331A (en) Decoding device for decoding a variety of code signals
JPH0879092A (en) Mevhod for compressing and compression-releasing data and device therefor
US5550542A (en) Variable length code look-up table having separate code length determination
EP1237123A2 (en) Decoding apparatus and method
JPH05276052A (en) Method for decoding huffman code word and device therefor
US6301389B1 (en) Video image color encoding
US6809665B2 (en) Apparatus and method for decoding variable length code
GB2268667A (en) Serial data decoding using state machine with plural decoding tables
US6313767B1 (en) Decoding apparatus and method
JPH07235878A (en) Variable length decoder
US6961474B1 (en) Huffman encoder for encoding/decoding DCT coefficients
JP3005385B2 (en) Huffman decoding circuit
JPH01138867A (en) Apparatus and method for coding a set of digits
JP3242788B2 (en) Signal processing device and signal processing method
JPH06343168A (en) Encoding method for digital signal, method for generating table for encoding, encoding device and encoding method
JP2918360B2 (en) Inverse quantization method and image data restoration device
JP2002125228A (en) System and method for expanding digital data
JP3015001B2 (en) Huffman decoding device
US20070154102A1 (en) Image decompression system, method and program
US5694178A (en) Start and end address generating circuit for performing motion compensation during moving picture compression coding
JP2842045B2 (en) Data compression device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970722