JP2537551B2 - Variable length code decoding circuit - Google Patents

Variable length code decoding circuit

Info

Publication number
JP2537551B2
JP2537551B2 JP18075889A JP18075889A JP2537551B2 JP 2537551 B2 JP2537551 B2 JP 2537551B2 JP 18075889 A JP18075889 A JP 18075889A JP 18075889 A JP18075889 A JP 18075889A JP 2537551 B2 JP2537551 B2 JP 2537551B2
Authority
JP
Japan
Prior art keywords
node number
code
input
information source
decoding
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.)
Expired - Fee Related
Application number
JP18075889A
Other languages
Japanese (ja)
Other versions
JPH0345093A (en
Inventor
慶一 日比
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP18075889A priority Critical patent/JP2537551B2/en
Publication of JPH0345093A publication Critical patent/JPH0345093A/en
Application granted granted Critical
Publication of JP2537551B2 publication Critical patent/JP2537551B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 <産業上の利用分野> 本発明は、各情報源シンボル毎に長さが異なる符号で
表わされた可変長符号列を復号するための可変長復号回
路に関する。
The present invention relates to a variable length decoding circuit for decoding a variable length code string represented by a code having a different length for each information source symbol.

<従来の技術> 一般に、入力情報が非常に大きき画像符号化伝送装置
などにおいて、処理効率,伝送効率を向上させるための
情報の圧縮符号化が行なわれる。例えば、ハフマン符号
化方式は、各情報源シンボルの生起確率がシンボル毎に
異なっていることに着目し、各情報源シンボルの情報量
(生語確率)の逆数と略等しい符号長を持った符号表を
作成し、この符号表に基づいて情報源から入力されるシ
ンボルを符号語に置き換えていき、符号長の圧縮により
情報源の冗長度を抑圧した符号列を得るものである。
<Prior Art> Generally, in an image encoding / transmission apparatus in which input information is extremely large, information is compression-encoded to improve processing efficiency and transmission efficiency. For example, in the Huffman coding method, attention is paid to the fact that the occurrence probabilities of the respective information source symbols are different for each symbol, and a code having a code length approximately equal to the reciprocal of the information amount (native word probability) of each information source symbol. A table is created, symbols input from the information source are replaced with code words based on the code table, and a code string in which the redundancy of the information source is suppressed by compressing the code length is obtained.

上記ハフマン方式による符号化回路は、情報源シンボ
ルをアドレスとしてROMに格納した符号表から符号語お
よび符号長を読み出すようにして構成される。一方、復
号化回路は、符号語を、ルートの0番ノードから1番,2
番,3番,…と枝端に向かって“0",“1"によって放射状
に分岐する第3図に示すように2進符号木で表わす、こ
の2進符号木を復号しようとする“0",“1"からなる符
号列に従ってルートから探索して、枝端に復号結果たる
情報源シンボルの情報源シンボルテーブルにおける格納
番地A,B,…を得るようにした順序論理回路で構成でき
る。
The Huffman coding circuit is configured to read a code word and a code length from a code table stored in a ROM using an information source symbol as an address. On the other hand, the decoding circuit sends the codeword from the 0th node of the root to the 1st and 2nd nodes.
No. 3, No. 3, ... Radial branching by “0”, “1” toward the branch ends. Represented by a binary code tree as shown in FIG. 3, an attempt is made to decode this binary code tree “0”. The sequential logic circuit can be configured to obtain a storage address A, B, ... In an information source symbol table of an information source symbol which is a decoding result at a branch end by searching from a root according to a code string composed of "," 1 ".

従来、この種の可変長符号復号回路として、例えば第
5図に示す復号シーケンサ回路11がある。この復号シー
ケンサ回路11は、復号結果たる情報源シンボルを夫々の
格納番地に格納した情報源シンボルテーブル2と,入力
される可変長符号列Diの1ビットずつを逐次アドレス信
号とし、その“0",“1"によって分岐方向が決まる2進
符号木(第3図参照)を構成する状態遷移テーブル13と
を有する復号テーブルROM14と、上記2進符号木の現在
進行中のノード番号を格納するとともに、このノード番
号を上記状態遷移テーブル13に次に移行すべきノードを
求めるためのアドレス信号として出力する状態レジスタ
5と、2進符号木が枝端に達したとき、枝端の格納番地
A,B,…(第3図参照)に基づき第2図の左列に示す情報
源シンボルテーブル2から出力される復号結果たる情報
源シンボルD0をラッチして出力するシンボルレジスタ6
を備え、タイミング制御回路10からのタイミング信号St
を受けて動作するようになっている。
Conventionally, as a variable length code decoding circuit of this type, for example, there is a decoding sequencer circuit 11 shown in FIG. The decoding sequencer circuit 11 uses an information source symbol table 2 in which information source symbols, which are decoding results, are stored in respective storage addresses, and one bit of a variable-length code string Di to be input, as a sequential address signal, and outputs "0". , A decoding table ROM 14 having a state transition table 13 forming a binary code tree (see FIG. 3) whose branch direction is determined by "1", and a node number of the above-mentioned binary code tree which is currently in progress. , The state register 5 which outputs this node number to the state transition table 13 as an address signal for obtaining the node to be transferred next, and the storage address of the branch end when the binary code tree reaches the branch end.
Symbol register 6 for latching and outputting the information source symbol D 0 which is the decoding result output from the information source symbol table 2 shown in the left column of FIG. 2 based on A, B, ... (See FIG. 3)
Timing signal St from the timing control circuit 10
It is designed to operate in response to this.

そして、例えば第4図(a)に示す“0110…”の可変
長符号列Diが状態遷移テーブル13に入力されると、第3
図の2進符号木のルート(0番ノード)を指している上
記テーブル13からは、入力符号列の最初のビットが“0"
なので、2番ノードが次のノードとして状態レジスタ5
に出力され、ラッチされる。次に、上記テーブルには、
ラッチされたノード番号2と次とビット“1"が入力され
るので、これにより2進符号木が1ノード進行して3番
ノードが読み出されてラッチされる。さらに、ラッチさ
れたノード番号3と次の入力ビット“1"により2進符号
木は枝端Cに達し、この格納番地Cに基づいて情報源シ
ンボルテーブル2(第2図の左列参照)から復号結果た
る“0010"が情報源シンボルD0として読み出されて、シ
ンボルレジスタ6にラッチされ、出力されるとともに、
復号が終了したことを表わす復号終了信号Sfが出力され
る。このとき、状態レジスタ5は0番ノード番号にリセ
ットされ、状態遷移テーブル13は再び進符号木のルート
を指す。このような処理をビットシリアルに入力される
1ビット毎に繰り返すことによって、入力符号列が順次
復号されていくのである。
Then, for example, when the variable length code sequence Di of “0110 ...” Shown in FIG.
From the table 13 pointing to the root (node 0) of the binary code tree in the figure, the first bit of the input code string is "0".
Therefore, the second node is the next node and the status register 5
Is output to and latched. Then, in the table above,
Since the latched node number 2 and the next bit "1" are input, the binary code tree advances by one node and the third node is read and latched. Further, the binary code tree reaches the branch end C by the latched node number 3 and the next input bit “1”, and based on this storage address C, the information source symbol table 2 (see the left column in FIG. 2) is read. The decoding result “0010” is read as the information source symbol D 0 , latched in the symbol register 6 and output, and
A decoding end signal Sf indicating that the decoding is completed is output. At this time, the state register 5 is reset to the node number 0, and the state transition table 13 again points to the root of the binary code tree. The input code sequence is sequentially decoded by repeating such processing for each bit input in bit serial.

<発明が解決しようとする課題> さて、実際の可変長符号列を構成する符号語のうち符
号長の長いものは、初めの数ビットが可変長部分,大部
分を占める残りのビットが所定ビット数の固定長部分で
構成されている場合が多い。
<Problems to be Solved by the Invention> Among the code words forming the actual variable-length code string, those having a long code length have a variable length part in the first few bits, and the remaining bits occupying most of them are predetermined bits. Often consists of a fixed number of parts.

ところが、上記従来の復号シーケンサ回路11は、入力
される可変長符号列を1ビットずつビットシリアルに処
理するように構成されているため、上記符号長の長い符
号語を復号する場合、ビット数の多い固定長部分をも1
ビットずつ処理することになり、復号に長時間を要する
という欠点がある。加えて、短い符号語との間で復号時
間に大きな差が生じ、復号結果の出力が時間的にバラつ
いて次段での処理負荷が増大し、復号シーケンサ回路11
自身の復号効率が著しく低下するのみならず、これを用
いた画像符号化伝送装置等の処理効率までもが低下する
という欠点がある。
However, since the conventional decoding sequencer circuit 11 is configured to process the input variable length code string bit by bit serially, when decoding a code word with a long code length, 1 for many fixed length parts
Since it is processed bit by bit, there is a disadvantage that decoding takes a long time. In addition, a large difference occurs in the decoding time with the short code word, the output of the decoding result varies temporally, and the processing load in the next stage increases, and the decoding sequencer circuit 11
There is a drawback in that not only the decoding efficiency of itself decreases, but also the processing efficiency of an image coding and transmitting apparatus using the same decreases.

そこで、本発明の目的は、復号回路に1ビットずつシ
リアルに復号する機能に加えて数ビットをパラレルに復
号する機能を付与することによって、長,短符号語間の
復号時間の差を小さくし、復号高率ならびにこの復号回
路を用いたデータ処理装置の処理効率を向上させること
ができる可変長符号復号回路を提供することにある。
Therefore, an object of the present invention is to reduce the difference in decoding time between long and short code words by providing a decoding circuit with a function of decoding several bits in parallel in addition to a function of serially decoding each bit. It is to provide a variable length code decoding circuit capable of improving the decoding high rate and the processing efficiency of a data processing device using this decoding circuit.

<課題を解決するための手段> 上記目的を達成するため、本発明の可変長符号復号回
路は、各情報源シンボルが異なった長さの符号で符号化
されている入力可変長符号列を、順次復号して原情報源
シンボルを出力するものにおいて、上記情報源シンボル
を夫々の格納番地に格納した情報源シンボルテーブル
と、入力されるルート側のノード番号と入力される符号
の1ビットにより指定されるアドレスに、次に移行すべ
き枝端側のノード番号を格納し、枝端が復号結果たる情
報源シンボルの上記情報源シンボルテーブルにおける格
納番地になっており、特定のノード番号以下を、可変長
データに所定ビットの固定長データを付加した入力符号
のために割り付けた2進符号木を構成する状態遷移テー
ブルと、上記2進符号木の現在進行中のノード番号を格
納するとともに、このノード番号を上記状態遷移テーブ
ルにルート側のノード番号として出力する状態レジスタ
と、上記状態レジスタに格納されたノード番号が上記特
定のノード番号に達しないとき、ビットシリアルに入力
される可変長符号列を上記状態遷移テーブルにシリアル
に出力する一方、上記ノード番号が上記特定のノード番
号に達したとき、ビットシリアルに入力される可変長符
号列を上記所定ビットずつパラレル変換して上記状態遷
移テーブルに出力するシフトレジスタを備えたことを特
徴とする。
<Means for Solving the Problem> In order to achieve the above object, the variable-length code decoding circuit of the present invention uses an input variable-length code sequence in which each information source symbol is coded with a code of a different length, In the one which sequentially decodes and outputs the original information source symbol, the information source symbol table storing the above information source symbols in the respective storage addresses, and the node number on the route side to be inputted and 1 bit of the inputted code are designated. The node number on the branch end side to be moved next is stored in the address to be transferred, and the branch end is the storage address in the information source symbol table of the information source symbol that is the decoding result. A state transition table forming a binary code tree allocated for an input code in which fixed length data of a predetermined bit is added to variable length data, and a node currently in progress of the binary code tree A state register that stores the number and outputs this node number to the state transition table as the root side node number, and when the node number stored in the state register does not reach the specific node number, bit serially The variable-length code string input is serially output to the state transition table, and when the node number reaches the specific node number, the variable-length code string input bit serially is parallel-converted by the predetermined bits. Then, a shift register for outputting to the above state transition table is provided.

<作用> 状態レジスタから入力された現在進行中のノード番号
と入力符号列の1ビットにより指定されるアドレスに、
次に移行すべき枝端側のノード番号を格納し、枝端が復
号結果たる情報源シンボルの情報源シンボルテーブルに
おける格納番地になっている2進符号木は、その特定の
ノード番号以下が可変長データに固定長データ(所定ビ
ット)を付加した入力符号語のために割り付けられてお
り、状態遷移テーブルによって構成されている。いま、
上記可変長データと固定長データからなる符号語が、状
態遷移テーブルに入力されたとする。すると、2進符号
木のルート(0番ノード)を指していた状態遷移テーブ
ルは、上記符号語の最初の1ビット“0"または“1"が指
定するアドレスから枝端側の次のノード番号を読み出し
て、これを状態レジスタに出力してラッチさせる。次
に、状態遷移テーブルは、符号語の次の1ビット“0"ま
たは“1"および状態レジスタにラッチされた上記次のノ
ード番号によって指定されるアドレスからさらに枝端側
の次のノード番号を読み出し、これを状態レジスタに出
力してラッチさせる。このような動作を入力符号語の可
変長データについて繰り返すと、2進符号木は上記特定
のノード番号に達し、このノード番号が状態レジスタに
ラッチされる。すると、それまで入力符号語をそのまま
ビットシリアルに出力していたシフトレジスタは、その
後入力される所定ビットの固定長データを一括パラレル
変換して状態遷移テーブルに出力する。パラレル入力さ
れたアドレスデータは、上記特定のノード番号と共に10
進デコーダ等で変換され、直ちに2進符号木の枝端を指
定し、枝端の格納番地に応じて情報源シンボルテーブル
から復号結果たる情報源シンボルが読み出され、直ちに
出力される。そして、状態レジスタは、2進符号木のル
ートを指す0番ノードにリセットされ、状態遷移テーブ
ルは、続く符号語の復号処理に移る。なお、符号語が可
変長データのみからなる場合は、2進符号木が1ビット
ずつ枝端に向かって辿られることになる。
<Operation> At the address specified by the node number currently in progress input from the status register and 1 bit of the input code string,
The binary code tree that stores the node number on the side of the branch end to be moved next and the branch end is the storage address in the information source symbol table of the information source symbol that is the decoding result is variable below that specific node number. It is allocated for an input code word in which fixed length data (predetermined bit) is added to long data, and is configured by a state transition table. Now
It is assumed that the codeword including the variable length data and the fixed length data is input to the state transition table. Then, the state transition table pointing to the root (node 0) of the binary code tree has the next node number on the branch end side from the address designated by the first 1 bit “0” or “1” of the code word. Is read and output to the status register for latching. Next, the state transition table stores the next 1-bit “0” or “1” of the code word and the next node number on the branch end side from the address specified by the next node number latched in the state register. Read and output this to the status register for latching. When such an operation is repeated for the variable length data of the input code word, the binary code tree reaches the above specific node number, and this node number is latched in the status register. Then, the shift register, which has been outputting the input codeword as it is in bit-serial fashion, batch-parallel-converts the fixed-length data of a predetermined bit, which is input thereafter, and outputs it to the state transition table. The address data input in parallel is 10 with the above specified node number.
It is converted by a binary decoder or the like, the branch end of the binary code tree is immediately specified, the information source symbol as the decoding result is read from the information source symbol table according to the storage address of the branch end, and it is immediately output. Then, the state register is reset to the 0th node indicating the root of the binary code tree, and the state transition table shifts to the decoding process of the subsequent code word. When the codeword is composed of only variable length data, the binary code tree is traced bit by bit toward the branch end.

<実施例> 以下、本発明を図示の実施例により詳細に説明する。<Examples> Hereinafter, the present invention will be described in detail with reference to illustrated examples.

第1図は、本発明の可変長符号復号回路の一実施例を
示すブロック図である。この復号回路1は、第5図で述
べた回路の状態遷移テーブル13を第3図のような2進符
号木を構成する新たな状態遷移テーブル3にするととも
に、ビットシリアルに入力される符号列Diを3ビットず
つパラレル変換しうるシフトレジスタ7と、2進符号木
が特定のノード番号(この場合5番ノード)に達したと
き状態遷移テーブル3から出力される制御信号Scを受け
て上記シフトレジスタ7をパラレル変換動作に切り換え
るシフトレジスタ制御回路8と、上記シフトレジスタ7
からビットシリアルあるいは3ビットパラレルに入力さ
れるデータと状態レジスタ5から入力される現在のノー
ド番号をデコードして、状態遷移テーブル3に次に移行
すべき2進符号木のノード番号の格納場所を表わすアド
レス信号を出力するアドレスコンバータ9を追加してな
り、第5図と同じブロックには同一番号を付してその説
明を省略する。
FIG. 1 is a block diagram showing an embodiment of a variable length code decoding circuit of the present invention. This decoding circuit 1 uses the state transition table 13 of the circuit described in FIG. 5 as a new state transition table 3 forming a binary code tree as shown in FIG. The shift register 7 capable of converting Di into parallel by 3 bits, and the shift signal receiving the control signal Sc output from the state transition table 3 when the binary code tree reaches a specific node number (node 5 in this case) A shift register control circuit 8 for switching the register 7 to a parallel conversion operation, and the shift register 7
From the bit serial or 3-bit parallel data and the current node number input from the state register 5 are decoded, and the storage location of the node number of the binary code tree to be transferred next is stored in the state transition table 3. An address converter 9 for outputting an address signal to be expressed is added, and the same blocks as those in FIG. 5 are denoted by the same reference numerals and the description thereof will be omitted.

上記状態遷移テーブル3が構成する2進符号木は、第
3図に示すように、5番ノード以下が2ビットの可変長
データ“00"とこれに続く3ビットの固定長データ“00
0"〜111"からなる符号長5ビットの入力符号語(第2図
参照)のために割り付けられており、5番ノードから放
射状に分岐する枝端F〜Mは、可変長データと固定長デ
ータからなる各入力符号Diに対応する復号結果たる情報
源シンボルD0を格納する情報源シンボルテーブル2の格
納番地となっている。なお、2進符号木の他の枝端A〜
Eは、可変長データのみから入力符号語Diに対する復号
結果D0の格納番地となる。
As shown in FIG. 3, the binary code tree formed by the state transition table 3 has variable length data “00” of 2 bits in the fifth node and below and fixed length data “00” of 3 bits following the variable length data “00”.
Branch ends F to M, which are allocated for an input codeword (see FIG. 2) consisting of 0 "to 111" and having a code length of 5 bits, are variable length data and a fixed length. It is the storage address of the information source symbol table 2 which stores the information source symbol D 0 which is the decoding result corresponding to each input code Di made of data. In addition, the other branch ends A of the binary code tree
E is the storage address of the decoding result D 0 for the input codeword Di from only the variable length data.

上記構成の復号回路1の動作について、次に述べる。 The operation of the decoding circuit 1 having the above configuration will be described next.

いま、シフトレジスタ7に第4図(b)に示す可変長
符号列Di“0001010…”が入力されたとする。状態遷移
テーブル3の2進符号木(第3図参照)は最初ルートの
0番ノードを指しており、テーブル3からは制御信号Sc
が出力されないので、シフトレジスタ7は、入力符号列
をそのままビットシリアルでアドレスコンバータ9に出
力する。入力符号列Diの最初のビット“0"によりアドレ
スコンバータ9から出力されるアドレス信号で、状態遷
移テーブル3から上記2進符号木に従って2番ノードが
読み出されて状態レジスタ5にラッチされ、続いてこの
ラッチされたノード番号2と次の入力ビット“0"により
同様に出力されるアドレス信号で、さらに枝端側の5番
ノードが読み出されて同様にラッチされる。このとき、
2進符号木が特定のノード番号たる5番ノードに達した
ので、状態遷移テーブル3は制御信号Scを出力し、これ
を受けたシフトレジスタ制御回路8はシフトレジスタ7
をパラレル変換動作に切り換える。すると、シフトレジ
スタ7は、続いて入力される3ビットの固定長データ
“010"を一括パラレル変換してアドレスコンバータ9に
出力する。アドレスコンバータ9は、パラレルデータ
“010"と状態レジスタ5にラッチされているノード番号
5に基づいて、対応する枝端Fを6番,8番ノードを介さ
ず直接指定するアドレス信号を状態遷移テーブル3に出
力し、これによってテーブル3から読み出された格納番
地Fに基づいて情報源シンボルテーブル2から復号結果
たる情報源シンボルD0“0111"が読み出される。かく
て、復号テーブルROM4は、復号終了信号Sfと共に入力符
号語Di“00010"の復号結果である情報源シンボルD0“01
11"をシンボルレジスタ6に出力し、これをラッチさせ
るとともに外部へ出力させる。その後、状態レジスタ5
は、2進符号木のルートを指す0番ノードにリセットさ
れ、状態遷移テーブル3は、上記制御信号Scの出力を停
止して、続く入力符号列“10…”の復号処理に移行す
る。
Now, it is assumed that the variable length code string Di "0001010 ..." As shown in FIG. 4 (b) is input to the shift register 7. The binary code tree (see FIG. 3) of the state transition table 3 points to the 0th node of the first root, and the control signal Sc
Is not output, the shift register 7 outputs the input code string as it is to the address converter 9 in bit serial. With the address signal output from the address converter 9 by the first bit "0" of the input code string Di, the second node is read from the state transition table 3 according to the binary code tree and latched in the state register 5, By the address signal similarly output by the latched node number 2 and the next input bit "0", the fifth node on the branch end side is further read and similarly latched. At this time,
Since the binary code tree has reached the specific node number, node 5, the state transition table 3 outputs the control signal Sc, and the shift register control circuit 8 receiving this outputs the shift register 7
To parallel conversion operation. Then, the shift register 7 batch-parallel-converts the 3-bit fixed-length data “010” that is subsequently input and outputs it to the address converter 9. The address converter 9 uses the parallel data “010” and the node number 5 latched in the state register 5 to directly specify the corresponding branch end F without passing through the 6th and 8th nodes. 3 and the information source symbol D 0 “0111” as a decoding result is read from the information source symbol table 2 based on the storage address F read from the table 3. Thus, the decoding table ROM4, together with the decoding end signal Sf, is the information source symbol D 0 “01” which is the decoding result of the input codeword Di “00010”.
11 "is output to the symbol register 6, which is latched and output to the outside.
Is reset to the 0th node indicating the root of the binary code tree, the state transition table 3 stops the output of the control signal Sc, and shifts to the decoding process of the subsequent input code string “10 ...”.

なお、入力符号語Diが可変長データのみからなる場合
は、第3図の2進符号木が1ビットずつA〜Eのいずれ
かの枝端に向かって辿られて、復号が行なわれることに
なる。
When the input code word Di consists of only variable length data, the binary code tree of FIG. 3 is traced bit by bit toward any one of the branches A to E to perform decoding. Become.

このように、上記実施例によれば、実際の可変長符号
列に多数含まれる可変長データと固定長データからなる
符号語Diを復号する際、ビット数の比較的多い固定長デ
ータ部については、シフトレジスタ7による一括パラレ
ル変換と、アドレスコンバータ9による状態遷移テーブ
ル3における2進符号木の枝端アドレスの直接指定によ
り、即座に対応する復号結果たる情報源シンボルD0を得
て、復号時間を大幅に短縮でき、可変長符号列に含まれ
る長,短符号語間の復号時間の差を小さくできて、復号
回路の復号効率ならびにこれを用いたデータ処理装置の
処理効率を著しく向上させることができる。
As described above, according to the above-described embodiment, when decoding the code word Di composed of variable-length data and fixed-length data included in the actual variable-length code sequence, , The parallel conversion by the shift register 7 and the direct designation of the branch end address of the binary code tree in the state transition table 3 by the address converter 9 immediately obtains the corresponding information source symbol D 0 as the decoding result, and the decoding time To significantly reduce the decoding time difference between the long and short code words included in the variable-length code string, thereby significantly improving the decoding efficiency of the decoding circuit and the processing efficiency of the data processing device using the decoding circuit. You can

なお、本発明が図示の実施例に限られないのは言うま
でもない。
Needless to say, the present invention is not limited to the illustrated embodiment.

<発明の効果> 以上の説明で明らかなように、本発明の可変長符号復
号回路は、可変長データと固定長データからなる入力符
号語に特定のノード番号以下を割り付けた2進符号木を
状態遷移テーブルにより構成し、可変長データの1ビッ
トずつの復号化が2進符号木のこの特定のノード番号に
達したとき、シフトレジスタをして続く固定長データを
一括パラレル変換させ、このパラレルデータと状態レジ
スタに格納されたノード番号で状態遷移テーブルの2進
符号木の枝端のアドレスを直接指定し、このアドレスに
格納された格納番地に基づいて情報源シンボルテーブル
から直ちに復号結果たる情報源シンボルを読み出して出
力するようにしているので、実際の可変長符号列に多数
含まれる可変長データと固定長データからなる比較的長
い符号語の復号時間を大幅短縮でき、長,短符号語間の
復号時間の差を小さくできて、復号回路の復号効率なら
びにこれらを用いたデータ処理装置の処理効率を著しく
向上させることができる。
<Effects of the Invention> As is apparent from the above description, the variable-length code decoding circuit of the present invention generates a binary code tree in which an input codeword composed of variable-length data and fixed-length data is assigned a specific node number or less. It is composed of a state transition table, and when the decoding of the variable length data bit by bit reaches this specific node number of the binary code tree, the shift register is used to batch-parallel convert the fixed length data and The data and the node number stored in the state register directly specify the address of the branch end of the binary code tree of the state transition table, and the information that is the decoding result immediately from the information source symbol table based on the storage address stored at this address. Since the source symbol is read and output, a comparatively long code consisting of variable-length data and fixed-length data included in many actual variable-length code strings is used. It is possible to significantly reduce the decoding time of the code word, reduce the difference in the decoding time between the long and short code words, and significantly improve the decoding efficiency of the decoding circuit and the processing efficiency of the data processing device using these.

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

第1図は本発明の可変長符号復号回路の一実施例を示す
ブロック図、第2図は上記実施例の符号表を示す図、第
3図は上記実施例の2進符号木を示す図、第4図は入力
される可変長符号列の一例を示す図、第5図は従来の可
変長符号復号回路を示す図である。 1……復号回路、2……情報源シンボルテーブル、 3……状態遷移テーブル、 4……復号テーブルROM、5……状態レジスタ、 7……シフトレジスタ、9……アドレスコンバータ、 Di……入力符号列、D0……情報源シンボル、 Sc……制御信号。
FIG. 1 is a block diagram showing an embodiment of a variable length code decoding circuit of the present invention, FIG. 2 is a diagram showing a code table of the above embodiment, and FIG. 3 is a diagram showing a binary code tree of the above embodiment. FIG. 4 is a diagram showing an example of an input variable length code sequence, and FIG. 5 is a diagram showing a conventional variable length code decoding circuit. 1 ... Decoding circuit, 2 ... Information source symbol table, 3 ... State transition table, 4 ... Decoding table ROM, 5 ... Status register, 7 ... Shift register, 9 ... Address converter, Di ... Input Code string, D 0 …… Source symbol, Sc …… Control signal.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】各情報源シンボルが異なった長さの符号で
符号化されている入力可変長符号列を、順次復号して原
情報源シンボルを出力する可変長符号復号回路におい
て、 上記情報源シンボルを夫々の格納番地に格納した情報源
シンボルテーブルと、 入力されるルート側のノード番号と入力される符号の1
ビットにより指定されるアドレスに、次に移行すべき枝
端側のノード番号を格納し、枝端が復号結果たる情報源
シンボルの上記情報源シンボルテーブルにおける格納番
地になっており、特定のノード番号以下を、可変長デー
タに所定ビットの固定長データを付加した入力符号のた
めに割り付けた2進符号木を構成する状態遷移テーブル
と、 上記2進符号木の現在進行中のノード番号を格納すると
ともに、このノード番号を上記状態遷移テーブルにルー
ト側のノード番号として出力する状態レジスタと、 上記状態レジスタに格納されたノード番号が上記特定の
ノード番号に達しないとき、ビットシリアルに入力され
る可変長符号列を上記状態遷移テーブルにシリアルに出
力する一方、上記ノード番号が上記特定のノード番号に
達したとき、ビットシリアルに入力される可変長符号列
を上記所定ビットずつパラレル変換して上記状態遷移テ
ーブルに出力するシフトレジスタを備えたことを特徴と
する可変長符号復号回路。
1. A variable length code decoding circuit for sequentially decoding an input variable length code sequence in which each information source symbol is coded with a code having a different length, and outputting an original information source symbol, An information source symbol table that stores symbols in each storage address, and the input node number on the root side and the input code 1
The address specified by the bit stores the node number on the branch end side to be moved next, and the branch end is the storage address in the information source symbol table of the information source symbol that is the decoding result, and the specific node number The following stores a state transition table that constitutes a binary code tree allocated for an input code in which fixed-length data of a predetermined bit is added to variable-length data, and a node number of the binary code tree currently in progress. Along with this, a state register that outputs this node number to the state transition table as a node number on the root side, and a variable that is input in bit serial when the node number stored in the state register does not reach the specific node number The long code string is serially output to the state transition table, while when the node number reaches the specific node number, Variable length code decoding circuit of the variable-length code sequence to parallel conversion by the predetermined bits comprising the shift register output to the state transition table which is input to Toshiriaru.
JP18075889A 1989-07-13 1989-07-13 Variable length code decoding circuit Expired - Fee Related JP2537551B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18075889A JP2537551B2 (en) 1989-07-13 1989-07-13 Variable length code decoding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18075889A JP2537551B2 (en) 1989-07-13 1989-07-13 Variable length code decoding circuit

Publications (2)

Publication Number Publication Date
JPH0345093A JPH0345093A (en) 1991-02-26
JP2537551B2 true JP2537551B2 (en) 1996-09-25

Family

ID=16088806

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18075889A Expired - Fee Related JP2537551B2 (en) 1989-07-13 1989-07-13 Variable length code decoding circuit

Country Status (1)

Country Link
JP (1) JP2537551B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2800942A1 (en) * 1999-11-09 2001-05-11 France Telecom METHOD FOR DECODING ENCODED DATA USING AN ENTROPY CODE, DECODING DEVICE AND CORRESPONDING TRANSMISSION SYSTEM
JP2002256729A (en) * 2001-02-28 2002-09-11 T I S & Partners:Kk Rotating building with base-isolation function
JP4819445B2 (en) * 2005-09-02 2011-11-24 国立大学法人東京工業大学 Ultrasonic levitation equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63250221A (en) * 1987-04-06 1988-10-18 Mitsubishi Electric Corp Huffman decoder

Also Published As

Publication number Publication date
JPH0345093A (en) 1991-02-26

Similar Documents

Publication Publication Date Title
JP3294026B2 (en) High-speed variable-length decoding device
US5703581A (en) Method and apparatus for data compression and decompression
US6563439B1 (en) Method of performing Huffman decoding
JPH03274920A (en) Signal encoder
JP4098187B2 (en) Variable length code decoding apparatus and method
JP2746109B2 (en) Huffman code decoding circuit
US5394144A (en) Variable length code decoding apparatus
JPH08265166A (en) High-speed variable-length code decoder
JPH05183443A (en) Code conversion method
US5648775A (en) High speed variable length code decoding apparatus
JP2537551B2 (en) Variable length code decoding circuit
US5736946A (en) High speed apparatus and method for decoding variable length code
US6778107B2 (en) Method and apparatus for huffman decoding technique
JP3429623B2 (en) High-speed variable-length code decoding device
JP5413161B2 (en) Table device, encoding device, decoding device, and encoding / decoding device
JP3346626B2 (en) Data compression device
JP3332630B2 (en) Decoding device and decoding table generation method
KR960016012B1 (en) Variable length coding
JP3648944B2 (en) Data encoding method, data encoding device, data decoding method, and data decoding device
JP2999561B2 (en) Data compression and decompression device
JPH03209924A (en) Information signal decoder
JPH08223056A (en) Variable-length cord decoder
JPH0470125A (en) Method for coding sound signal
JPH066237A (en) Variable length code decoder
GB2402584A (en) Method of performing Huffman decoding

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070708

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20080708

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees