JPH0661870A - Variable length coder decoder - Google Patents

Variable length coder decoder

Info

Publication number
JPH0661870A
JPH0661870A JP23770092A JP23770092A JPH0661870A JP H0661870 A JPH0661870 A JP H0661870A JP 23770092 A JP23770092 A JP 23770092A JP 23770092 A JP23770092 A JP 23770092A JP H0661870 A JPH0661870 A JP H0661870A
Authority
JP
Japan
Prior art keywords
variable
length code
group
memory
bits
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
JP23770092A
Other languages
Japanese (ja)
Inventor
Satoru Kumaki
哲 熊木
Shinichi Nakagawa
伸一 中川
Kazuya Ishihara
和哉 石原
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP23770092A priority Critical patent/JPH0661870A/en
Publication of JPH0661870A publication Critical patent/JPH0661870A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the memory capacity by grouping a variable length code group while taking notice of a consecutive number of bits and using plural memories for each group to form a decoding table. CONSTITUTION:High-order 8-bits of an address input 9 are inputted to a chip select signal generating circuit 10. Simultaneously the input 9 is connected respectively to the address of semiconductor memories 1-8 forming a decoding table. In this case, the addresses of each memory are connected so that bits less than the code length bits required for group recognition are most significant bits for the memories. The circuit 10 discriminates 0s included in an input signal sequentially from the MSB of the input signal 9. Then one of chip select signals 11-18 is inputted to one chip select in semiconductor memories 1-8. Thus, the variable length code is inputted as the address to obtain a prescribed decoding result.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、可変長符号復号器に
関し、特にその可変長符号復号テーブルを半導体メモリ
を用いて構成する際のメモリ容量削減に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a variable length code decoder, and more particularly to reduction of memory capacity when the variable length code decoding table is constructed using a semiconductor memory.

【0002】[0002]

【従来の技術】可変長符号群を復号する方式の1つに、
半導体メモリで可変長符号テーブルを構成し、入力デー
タに対応して、可変長符号復号テーブルに記憶された復
号結果を読み出す、いわゆるテーブルルックアップ方式
がある。図10は、従来の半導体メモリを用いた可変長
符号復号テーブルを有する可変長符号復号器の構成図で
ある。図において、200は可変長符号群の最大符号長
のビット幅と同等、もしくはそれ以上のビット幅のアド
レス空間を有するメモリである。
2. Description of the Related Art As one of the methods for decoding a variable length code group,
There is a so-called table lookup method in which a variable-length code table is configured by a semiconductor memory and the decoding result stored in the variable-length code decoding table is read according to input data. FIG. 10 is a block diagram of a variable length code decoder having a variable length code decoding table using a conventional semiconductor memory. In the figure, 200 is a memory having an address space with a bit width equal to or larger than the bit width of the maximum code length of the variable length code group.

【0003】このテーブルは、可変長符号をアドレス9
として入力すると復号結果が得られる様に構成されてい
る。今、入力アドレスとなる各可変長符号を可変長符号
群に含まれる符号の最大符号長と等しい長さの等長の符
号と考える。等長の入力アドレスの上位に最大符号長未
満の符号長の符号が存在する場合には、下位にいかなる
パターンがあっても上位の可変長符号に対応した復号結
果が得られる様に構成されている。例えば、最大符号長
が16ビットの可変長符号群で6ビット長の可変長符号
は、入力アドレス16ビット中の上位6ビットが有効と
なり、下位10ビットがいかなる値となった場合でも、
上位の6ビット長の可変長符号の復号結果が得られる様
に構成されている。すなわち予め下位10ビットで表現
可能なすべてのアドレスに対して同一の復号結果を書き
込んでおき、いずれのアドレスを入力しても、同一の結
果が得られる構成となっている。
This table uses variable length codes at address 9
When input as, the decoding result is obtained. Now, each variable-length code serving as an input address is considered as an equal-length code having a length equal to the maximum code length of the codes included in the variable-length code group. When there is a code with a code length less than the maximum code length in the upper part of the equal-length input address, the decoding result corresponding to the upper variable-length code is obtained regardless of any pattern in the lower part. There is. For example, in a variable-length code having a maximum code length of 16 bits and a 6-bit variable length code, even if the upper 6 bits of the input address 16 bits are valid and the lower 10 bits are any value,
It is configured so that the decoding result of the variable length code of the upper 6-bit length can be obtained. That is, the same decoding result is written in advance for all addresses that can be expressed by the lower 10 bits, and the same result can be obtained no matter which address is input.

【0004】このように、従来の可変長符号復号テーブ
ルは入力アドレスとして、可変長符号を可変長符号群に
含まれる符号の最大符号長の等長の符号と考えているの
で、構成する復号テーブルのアドレス空間として可変長
符号群に含まれる符号の最大符号長のビット幅と同等、
もしくはそれ以上のビット幅が必要となり、半導体メモ
リを用いて該可変長符号復号テーブルを構成する場合
は、前記アドレス空間を有するメモリを必要としてい
た。
As described above, the conventional variable-length code decoding table considers the variable-length code as an input address to be an equal-length code of the maximum code length of the codes included in the variable-length code group. Equivalent to the bit width of the maximum code length of the code included in the variable-length code group as the address space of
Alternatively, a bit width of more than that is required, and when the variable length code decoding table is configured using a semiconductor memory, a memory having the address space is required.

【0005】[0005]

【発明が解決しようとする課題】従来の可変長符号復号
器の可変長符号復号テーブルは以上のように構成されて
おり、可変長符号群に含まれる符号数が、実際には符号
の最大符号長のビット幅のアドレス空間と比べて、はる
かに小さい値であっても、各可変長符号の復号結果の記
憶に必要となる最低限の容量以上のメモリをもって可変
長符号復号テーブルを構成する必要があり、可変長符号
復号テーブルを構成するメモリの面積が大きくなる等の
問題点があった。
The variable length code decoding table of the conventional variable length code decoder is configured as described above, and the number of codes included in the variable length code group is actually the maximum code of the codes. Even if the value is much smaller than the long bit width address space, it is necessary to configure the variable length code decoding table with a memory having a minimum capacity or more necessary for storing the decoding result of each variable length code. However, there is a problem that the area of the memory forming the variable length code decoding table becomes large.

【0006】この発明は上記のような問題点を解決する
ためになされたもので、最大符号長に満たない可変長符
号に対する余分なメモリ容量を削減することができる可
変長符号復号テーブルを備えた可変長符号復号器を得る
ことを目的とする。
The present invention has been made in order to solve the above problems, and has a variable length code decoding table capable of reducing an extra memory capacity for a variable length code which is less than the maximum code length. The purpose is to obtain a variable length code decoder.

【0007】[0007]

【課題を解決するための手段】本件発明者等は上記目的
を達成するために鋭意研究を重ねた結果、可変長符号
を、その先頭から引き続く0もしくは1の連続する個数
でグループ分け出来ることに着目し、可変長符号復号テ
ーブルを前記グループごとに構成することで、可変長符
号復号テーブル構成時のメモリ容量削減を図ることがで
きるという事実を見出した。
Means for Solving the Problems As a result of intensive studies to achieve the above-mentioned object, the inventors of the present invention have found that variable-length codes can be grouped by the number of consecutive 0s or 1s from the beginning. Focusing attention, the present inventors have found that by configuring the variable length code decoding table for each group, it is possible to reduce the memory capacity when the variable length code decoding table is configured.

【0008】すなわち本発明に係る可変長符号復号器
は、可変長符号の先頭から引き続く同一符号の連続個数
に応じてグループ分けを行った可変長符号復号テーブル
に対してそれぞれに最適なアドレス空間を持つメモリを
割当て、可変長符号復号テーブルを複数のメモリで構成
するようにしたものである。
That is, the variable-length code decoder according to the present invention provides an optimum address space for each variable-length code decoding table in which the variable-length code decoding table is divided into groups according to the number of consecutive identical codes continuing from the head of the variable-length code. The memory to be possessed is allocated, and the variable length code decoding table is constituted by a plurality of memories.

【0009】[0009]

【作用】この発明においては、可変長符号群をグループ
分けし、各グループごとに含まれる最大符号長のビット
幅を等長ビット幅のアドレス空間とする複数の半導体メ
モリを用いて復号テーブルを構成するようにしたから、
復号テーブルの必要とするアドレス空間を大幅に削減で
き、復号テーブルを構成する半導体メモリの容量を低減
できる。
According to the present invention, the decoding table is configured by using a plurality of semiconductor memories in which the variable-length code groups are divided into groups and the bit width of the maximum code length included in each group is used as the address space of the equal-length bit width. I decided to do so,
The address space required by the decoding table can be significantly reduced, and the capacity of the semiconductor memory forming the decoding table can be reduced.

【0010】[0010]

【実施例】実施例1.図1はこの発明の第1の実施例に
よる可変長符号復号器の可変長符号復号テーブルのメモ
リ構成図である。図1において、100は可変長符号復
号テーブルであり、1〜8は後述する規則に従ってグル
ープ分割した半導体メモリ、10は入力アドレス9を受
け、その情報に応じて上記半導体メモリ1〜8の中から
1つのものを選択するためのチップセレクト信号11〜
18を出力するチップセレクト信号生成回路である。ま
た上記入力アドレス9は上記各半導体メモリ1〜8にそ
れぞれ所定のビットで供給可能なように接続されてい
る。
EXAMPLES Example 1. 1 is a memory block diagram of a variable length code decoding table of a variable length code decoder according to a first embodiment of the present invention. In FIG. 1, reference numeral 100 is a variable length code decoding table, 1 to 8 are semiconductor memories divided into groups according to a rule to be described later, 10 receives an input address 9, and one of the semiconductor memories 1 to 8 is selected according to the information. Chip select signals 11 to 11 for selecting one
18 is a chip select signal generation circuit for outputting 18. The input address 9 is connected to each of the semiconductor memories 1 to 8 so that it can be supplied by a predetermined bit.

【0011】図2は上記チップセレクト生成回路10の
一構成例を示す図であり、11ビットのアドレス入力9
のうち、上位8ビットを端子A3 〜A10にて受け、これ
に応じた所定のグループ識別信号が出力されるように論
理が組まれている。
FIG. 2 is a diagram showing an example of the configuration of the chip select generation circuit 10 described above. An 11-bit address input 9 is shown.
Among them, the logic is constructed so that the upper 8 bits are received at the terminals A3 to A10 and a predetermined group identification signal corresponding thereto is output.

【0012】図3は上記11ビットのアドレス入力9を
可変長符号群とし、その先頭から引き続く零(0)の連
続個数に応じて、入力アドレス9を8つのグループに分
割したときの可変長符号とグループ分類との対応を示す
図である。この図から分かるように各グループの復号テ
ーブルの入力アドレスは、グループ分割に使用した先頭
から引き続く0以降の符号を用いて行われる。
In FIG. 3, the 11-bit address input 9 is used as a variable length code group, and the input address 9 is divided into eight groups according to the number of consecutive zeros (0) from the beginning of the variable length code group. It is a figure which shows the correspondence of and a group classification. As can be seen from this figure, the input address of the decoding table of each group is performed by using the code of 0 and subsequent ones continuing from the head used for group division.

【0013】このように可変長符号群(入力アドレス
9)をその先頭から引き続く零(0)の連続する個数に
着目して8つのグループに分類し、該分類した各グルー
プ単位で上記8つの半導体メモリ1〜8が使用されるよ
うに割り当てを決める。例えば、半導体メモリ1に図3
のグループ分類”1”の可変長符号の復号テーブルを割
当て、半導体メモリ2に図3のグループ分類”0”の可
変長符号の復号テーブルを割り当てるといった順序で各
半導体メモリ1〜8上に復号テーブルを構成する。
In this way, the variable length code group (input address 9) is classified into eight groups by paying attention to the number of consecutive zeros (0) continuing from the head thereof, and the above eight semiconductors are grouped into each group. The allocation is decided so that the memories 1 to 8 are used. For example, the semiconductor memory 1 shown in FIG.
3 is assigned to the decoding table of the variable length code of the group classification “1” and the decoding table of the variable length code of the group classification “0” of FIG. Make up.

【0014】次に動作について説明する。アドレス入力
9は対象となる可変長符号群に含まれる最大符号長であ
る11ビットのビット幅を有しており、アドレス入力9
の上位8ビットがチップセレクト信号生成回路10に入
力される。
Next, the operation will be described. The address input 9 has a bit width of 11 bits which is the maximum code length included in the target variable length code group.
The upper 8 bits of are input to the chip select signal generation circuit 10.

【0015】同時にアドレス入力9は復号テーブルを構
成する半導体メモリ1〜8のアドレス入力にそれぞれ接
続される。この際、各メモリに対して、グループ認識に
必要となる符号長分以降のビットが各メモリの最上位ビ
ット(以下、MSB)となるようにアドレスを接続す
る。例えば図3のグループ分類”000”の復号テーブ
ルを構成している半導体メモリ4に対しては、入力アド
レス9のMSBより4ビット以降を半導体メモリ4のア
ドレス入力に接続する。
At the same time, the address input 9 is connected to the address inputs of the semiconductor memories 1 to 8 forming the decoding table, respectively. At this time, an address is connected to each memory so that the bits after the code length necessary for group recognition become the most significant bit (hereinafter, MSB) of each memory. For example, for the semiconductor memory 4 forming the decoding table of the group classification “000” in FIG. 3, 4 bits or more from the MSB of the input address 9 are connected to the address input of the semiconductor memory 4.

【0016】上記チップセレクト生成回路10は、入力
信号に含まれる零(0)を入力信号9のMSBより順次
判定を行い、判定結果を出力する。このときの真理値表
を図4に示す。図4に示すように、入力アドレス9の先
頭から引き続く零の個数でチップセレクト信号11〜1
8の内の1つが選択され出力される。そしてこのチップ
セレクト信号11〜18の1つが対応する復号テーブル
を構成している半導体メモリ1〜8のなかの1つのチッ
プセレクトに入力する。
The chip select generation circuit 10 sequentially determines zero (0) contained in the input signal from the MSB of the input signal 9 and outputs the determination result. The truth table at this time is shown in FIG. As shown in FIG. 4, the chip select signals 11 to 1 are generated by the number of zeros continuing from the head of the input address 9.
One of the eight is selected and output. Then, one of the chip select signals 11 to 18 is input to one chip select of the semiconductor memories 1 to 8 forming the corresponding decoding table.

【0017】この結果、復号テーブルを構成している半
導体メモリ1〜8の内、入力した可変長符号の復号テー
ブルを有するただ1つのメモリが選択されることとな
る。すなわち、入力アドレス9は復号テーブルを構成す
るすべての半導体メモリ1〜8に対して供給されている
が、該アドレスによって実際にアクセスされるのは、チ
ップセレクト信号が入力されるただ1つのメモリとな
る。以上のようにして、アドレスとして可変長符号を入
力し、所定の復号結果が得られるようになっている。
As a result, of the semiconductor memories 1 to 8 forming the decoding table, only one memory having the decoding table of the input variable length code is selected. That is, the input address 9 is supplied to all of the semiconductor memories 1 to 8 constituting the decoding table, but the address actually accessed is only the memory to which the chip select signal is input. Become. As described above, a variable length code is input as an address and a predetermined decoding result can be obtained.

【0018】本実施例の図3に示した可変長符号群の復
号テーブルを従来例の様に単一のメモリを用いて構成す
ると、可変長符号群に含まれる最大符号長が11ビット
であることから、211=2048ワードのアドレス空間
が必要となる。これに対して本実施例では、可変長符号
群を8つのグループに分割し、1グループ当たり最大2
6 =64ワードのアドレス空間でよいので、64×8=
512ワードとなり、従来例と比較して1/4のアドレ
ス空間で復号テーブルを構成でき、必要となる半導体メ
モリの容量を低減できる。
When the decoding table of the variable length code group shown in FIG. 3 of the present embodiment is constructed by using a single memory as in the conventional example, the maximum code length included in the variable length code group is 11 bits. Therefore, an address space of 2 11 = 2048 words is required. On the other hand, in this embodiment, the variable-length code group is divided into eight groups, and each group has a maximum of 2
6 = 64 word address space, so 64 x 8 =
Since the number of words is 512 words, the decoding table can be configured with a 1/4 address space as compared with the conventional example, and the required capacity of the semiconductor memory can be reduced.

【0019】このように本実施例によれば、符号復合テ
ーブルを8つの半導体メモリ1〜8を用いて構成し、チ
ップセレクト信号生成回路11にて11ビットのアドレ
ス入力9をその先頭から引き続く零(0)の個数に着目
して判別し、判別されたグループ分類に相当する唯一の
セレクト信号をその対応する半導体メモリに出力して、
該半導体メモリがアクセス可能となるように構成したか
ら、上記グループ分類の認識に必要な符号長以降のビッ
トパターンを最長ビット幅とするアドレス空間が得ら
れ、1つの復号テーブルの必要とするアドレス空間を大
幅に削減でき、従って復号テーブルを構成するのに要す
る半導体メモリの容量を小さくできる。
As described above, according to this embodiment, the code decoding table is constructed by using the eight semiconductor memories 1 to 8, and the chip select signal generating circuit 11 inputs the 11-bit address input 9 from the beginning to zero. The determination is made by focusing on the number of (0), and the only select signal corresponding to the determined group classification is output to the corresponding semiconductor memory,
Since the semiconductor memory is configured to be accessible, an address space having a maximum bit width of a bit pattern after the code length necessary for recognizing the group classification is obtained, and an address space required by one decoding table is obtained. Therefore, the capacity of the semiconductor memory required for constructing the decoding table can be reduced.

【0020】実施例2.上記実施例では可変長符号群の
先頭から引き続く零(0)の連続個数に基づいて可変長
復号テーブルをグループ分けし、それぞれ最適なアドレ
ス空間を有する半導体メモリを割り当てるようにした
が、この実施例では可変長符号群を先頭から引き続く1
の個数で可変長復号テーブルをグループ分けするように
したものである。即ち図5は、上記11ビットのアドレ
ス入力9を可変長符号群とし、その先頭から引き続く1
の連続個数に応じて、入力アドレス9を8つのグループ
に分割したときの可変長符号とグループ分類との対応を
示す図である。各グループの復号テーブルの入力アドレ
スは、グループ分割に使用した先頭から引き続く1以降
の符号を用いて行われる。
Example 2. In the above embodiment, the variable length decoding tables are divided into groups based on the number of consecutive zeros (0) continuing from the head of the variable length code group, and the semiconductor memories having the optimum address spaces are assigned respectively. Then, the variable length code group is continued from the beginning 1
The variable length decoding tables are grouped according to the number of. That is, in FIG. 5, the 11-bit address input 9 is used as a variable length code group, and 1
It is a figure which shows the correspondence of the variable-length code and group classification when the input address 9 is divided into eight groups according to the continuous number of. The input address of the decoding table of each group is performed by using the code of 1 and subsequent ones continuing from the head used for the group division.

【0021】このような方法で可変長符号復号テーブル
を分割する場合には、基本的には図1のような構成を用
いるが、チップセレクト生成回路10に代えて図6に示
すチップセレクト回路10aを用いることで実現でき
る。このようにすることで上記実施例と同様の効果を奏
することができる。
When the variable length code decoding table is divided by such a method, the configuration shown in FIG. 1 is basically used, but the chip select generation circuit 10 is replaced with the chip select circuit 10a shown in FIG. Can be realized by using. By doing so, the same effect as that of the above-described embodiment can be obtained.

【0022】実施例3.次に本発明の第3の実施例によ
る可変長符号復号テーブルのメモリ構成を図7及び図8
を用いて説明する。この実施例は、11ビットの可変長
符号群である入力アドレス9をセレクタを介して、分割
された8つの半導体メモリ1〜8に入力するようにした
ものである。図において、19はセレクタであり、11
ビットの入力アドレス9が入力されるとともに、チップ
セレクト信号11〜18が入力されるようになってい
る。また図8は上記セレクタ19の詳細な構成図であ
り、該セレクタ19はチップセレクト信号11〜18を
受けてシフト量を決定するシフト量決定回路21と、該
シフト量決定回路21の出力に基づいて入力アドレス9
の中から、グループ分類の認識に必要な符号長以降のビ
ットパターンを出力するシフタ20とから構成されてい
る。
Example 3. Next, the memory configuration of the variable length code decoding table according to the third embodiment of the present invention will be described with reference to FIGS.
Will be explained. In this embodiment, an input address 9 which is an 11-bit variable length code group is input to eight divided semiconductor memories 1 to 8 via a selector. In the figure, 19 is a selector, and 11
The bit input address 9 and the chip select signals 11 to 18 are input. 8 is a detailed configuration diagram of the selector 19. The selector 19 is based on a shift amount determining circuit 21 that receives the chip select signals 11 to 18 and determines a shift amount, and an output of the shift amount determining circuit 21. Input address 9
, And a shifter 20 for outputting a bit pattern having a code length after the code length required for recognition of the group classification.

【0023】次に動作について説明する。上記各実施例
と同様にアドレス入力9の上位8ビットは、チップセレ
クト信号生成回路10に入力する。また同時にアドレス
入力9の全ビットはセレクタ19にも入力される。チッ
プセレクト信号生成回路10では、入力アドレス9を、
その先頭から引き続く零(0)あるいは1の個数に着目
して判別し、判別されたグループ分類に相当する唯一の
セレクト信号をその対応する復号テーブルを構成してい
る半導体メモリ1〜8に入力するとともに、セレクタ1
9に対しても出力する。
Next, the operation will be described. Similar to each of the above-described embodiments, the upper 8 bits of the address input 9 are input to the chip select signal generation circuit 10. At the same time, all bits of the address input 9 are also input to the selector 19. In the chip select signal generation circuit 10, the input address 9 is
The determination is made by paying attention to the number of zeros (0) or 1s continuing from the head, and the only select signal corresponding to the determined group classification is input to the semiconductor memories 1 to 8 forming the corresponding decoding table. With selector 1
It also outputs to 9.

【0024】セレクタ19では、入力されたチップセレ
クト信号11〜18を受けて、シフト量決定回路21に
よって入力アドレス9の内、上位何ビットが0あるいは
1の連続であったかを識別して入力アドレスの0あるい
は1の連続以降のビットをMSBとして出力するための
シフト量を算出し、その結果をシフタ20に出力する。
シフタ20はこの情報を受けて入力アドレス9の内、グ
ループ認識に必要な所定上位ビットを切り捨てた下位ビ
ットが出力されるようにシフト動作を行い、これを復号
テーブルアドレスとして各半導体メモリ1〜8に対して
出力する。この復号テーブルアドレスは各半導体メモリ
1〜8に対して同様に供給されるが、実際にアクセスさ
れるのは、唯一のチップセレクト信号が入力されたただ
1つのメモリである。このように構成することで上記実
施例と同様の効果を奏することができる。
In the selector 19, the input chip select signals 11 to 18 are received, and the shift amount determining circuit 21 discriminates how many high-order bits of the input address 9 are consecutive 0s or 1s. The shift amount for outputting the bits after 0 or 1 in succession as the MSB is calculated, and the result is output to the shifter 20.
Upon receiving this information, the shifter 20 performs a shift operation so that the lower bits of the input address 9 that are obtained by discarding the predetermined upper bits necessary for group recognition are output, and this is used as a decoding table address for each of the semiconductor memories 1 to 8. Output to. This decoding table address is supplied to each of the semiconductor memories 1 to 8 in the same manner, but the only memory actually accessed is the one memory to which only one chip select signal is input. With this configuration, the same effect as that of the above-described embodiment can be obtained.

【0025】実施例4.上記実施例では、入力アドレス
9の先頭から引き続く0あるいは1の連続個数でグルー
プ分割したが、図9に示すように、スイッチ回路22を
設けたチップセレクト生成回路10bを用いることによ
り、先頭から引き続く0または1の個数でグループ分割
できる可変長符号のいずれに対しても対応することがで
きる。
Example 4. In the above-described embodiment, the input address 9 is divided into groups by the number of consecutive 0s or 1s, but as shown in FIG. 9, the chip select generation circuit 10b provided with the switch circuit 22 is used to continue the division from the head. Any variable length code that can be divided into groups of 0 or 1 can be used.

【0026】以上のように、可変長符号群をグループ分
割して各グループ毎に復号テーブルを備えたメモリ構成
を用いることで、例えば、デジタルシグナルプロセッサ
のような比較的小さい内部メモリを有するLSIのに復
号テーブルを組み込んで内蔵することができ、外部デバ
イスへのアクセスが不要となり、画像符号化処理LSI
の集積度の向上を図ることができる。
As described above, by using the memory configuration in which the variable length code group is divided into groups and the decoding table is provided for each group, for example, in an LSI having a relatively small internal memory such as a digital signal processor. A decoding table can be built in and built in, and access to an external device is not required.
The degree of integration can be improved.

【0027】[0027]

【発明の効果】以上のように、この発明に係る可変長符
号復号器によれば、可変長符号群を先頭から引き続く0
もしくは1の連続する個数に着目してグループ分けする
とともに、これらグループ毎に対応した複数の半導体メ
モリを用いて可変長符号復号テーブルを構成するように
したので、グループ分けした後のグループ内の可変長符
号の識別は、先頭から引き続く0もしくは1以降のパタ
ーンにのみ着目すればよいことになり、各グループ内で
復号テーブルを構成する際は、アドレス空間を、各グル
ープに含まれる可変長符号の内、先頭から引き続く0も
しくは1以降のパターンが最長のビット幅となるものと
することができ、大幅にアドレス空間を削減することが
でき、その結果、可変長符号復号テーブルを構成する際
に必要となるメモリ容量を低減でき、可変長符号復号器
を構成する際のコスト及び可変長符号復号テーブル用メ
モリの占める面積を低減できるという効果がある。
As described above, according to the variable-length code decoder according to the present invention, the variable-length code group is set to 0 from the beginning.
Alternatively, since the variable length code decoding table is configured by using a plurality of semiconductor memories corresponding to each group while paying attention to the number of consecutive 1's, the variable in the group after the grouping is changed. In order to identify the long code, it suffices to focus only on the pattern of 0 or 1 and subsequent ones from the beginning. When configuring the decoding table in each group, the address space is set to the variable length code of each group. Among them, the pattern of 0 or 1 following from the beginning can have the longest bit width, and the address space can be significantly reduced. As a result, it is necessary when configuring the variable length code decoding table. It is possible to reduce the memory capacity and the cost for configuring the variable length code decoder and the area occupied by the memory for the variable length code decoding table. There is an effect that can be reduced.

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

【図1】この発明の第1の実施例による可変長符号復号
器のブロック構成図。
FIG. 1 is a block diagram of a variable length code decoder according to a first embodiment of the present invention.

【図2】上記可変長符号復号器のチップセレクト信号生
成回路の構成図。
FIG. 2 is a configuration diagram of a chip select signal generation circuit of the variable length code decoder.

【図3】上記可変長符号復号器の可変長符号群を先頭か
ら引き続く0の個数でグループ分割した際のグループ構
成を示す図。
FIG. 3 is a diagram showing a group configuration when the variable length code group of the variable length code decoder is divided into groups by the number of 0s continuing from the head.

【図4】上記チップセレクト信号生成回路の真理値表を
示す図。
FIG. 4 is a diagram showing a truth table of the chip select signal generation circuit.

【図5】この発明の第2の実施例による可変長符号復号
器を用いて可変長符号復号器の可変長符号群を先頭から
引き続く1の個数でグループ分割した際のグループ構成
を示す図。
FIG. 5 is a diagram showing a group configuration when the variable-length code decoder according to the second embodiment of the present invention is used to divide a variable-length code group of the variable-length code decoder into groups of 1 from the beginning.

【図6】上記実施例で用いられるチップセレクト信号生
成回路の構成図。
FIG. 6 is a configuration diagram of a chip select signal generation circuit used in the above embodiment.

【図7】この発明の第3の実施例による可変長符号復号
器のブロック構成図。
FIG. 7 is a block diagram of a variable length code decoder according to a third embodiment of the present invention.

【図8】上記実施例のセレクタの詳細な構成図。FIG. 8 is a detailed configuration diagram of the selector of the above embodiment.

【図9】この発明の第4の実施例による可変長符号復号
器のチップセレクト信号生成回路の構成図。
FIG. 9 is a configuration diagram of a chip select signal generation circuit of a variable length code decoder according to a fourth embodiment of the present invention.

【図10】従来の可変長符号復号器のブロック構成図。FIG. 10 is a block diagram of a conventional variable length code decoder.

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

1〜8 半導体メモリ 9 入力アドレス 10,10a,10b チップセレクト信号生成回路 11〜18 チップセレクト信号 19 セレクタ 20 シフタ 21 シフト量決定回路 22 スイッチ回路 100,101 可変長符号復号器 1-8 Semiconductor memory 9 Input address 10, 10a, 10b Chip select signal generation circuit 11-18 Chip select signal 19 Selector 20 Shifter 21 Shift amount determination circuit 22 Switch circuit 100, 101 Variable length code decoder

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 半導体メモリを用いて構成された可変長
符号復号テーブルを有し、該可変長符号復号テーブルを
用いて可変長符号群をテーブルルックアップ方式で復号
する可変長符号復号器において、 上記可変長符号復号テーブルは、 上記可変長符号群の先頭から引き続く同一符号の連続個
数に応じてグループ分けした各グループに対応して設け
られ、当該グループの可変長符号の上記連続する同一符
号からなる上位共通ビット以外のビットをアドレス情報
とするメモリ空間に、その復号結果情報が記憶されてい
る複数のテーブルメモリと、 入力された可変長符号の上記先頭から引き続く同一符号
の連続個数に応じて上記複数のテーブルメモリの中から
これに応じた唯一のテーブルメモリを選択するメモリ選
択手段とを有し、 入力された可変長符号に対応するグループのテーブルメ
モリからの出力を、入力された可変長符号に対応する復
号結果とするものであることを特徴とする可変長符号復
号器。
1. A variable-length code decoder having a variable-length code decoding table configured by using a semiconductor memory, and decoding a variable-length code group by a table lookup method using the variable-length code decoding table, The variable length code decoding table is provided corresponding to each group that is divided into groups according to the number of consecutive same codes continuing from the head of the variable length code group, and from the consecutive same codes of the variable length codes of the group. Depending on the number of consecutive consecutive same-codes from the beginning of the input variable-length code above, the table space stores the decoding result information in the memory space whose bits are bits other than the upper common bits. It has a memory selection means for selecting the only table memory corresponding to the table memory from the plurality of table memories, The variable length code decoder, wherein the output from the table memory groups corresponding to the long code, it is an decoding result corresponding to the input variable length code.
【請求項2】 請求項1記載の可変長符号復号器におい
て、 上記可変長符号復号テーブルを構成する複数のテーブル
メモリには、 入力される可変長符号の中から、当該テーブルメモリの
グループ分けに用いられる上位共通ビットを除いた残り
のビットの、該テーブルメモリの有するメモリ空間に相
当する上位ビットが接続されていることを特徴とする可
変長符号復号器。
2. The variable-length code decoder according to claim 1, wherein a plurality of table memories forming the variable-length code decoding table are grouped into the table memories from the input variable-length codes. A variable-length code decoder, characterized in that the upper bits corresponding to the memory space of the table memory, other than the upper common bits used, are connected.
【請求項3】 請求項1記載の可変長符号復号器におい
て、 上記メモリ選択手段出力を受け、上記可変長符号復号テ
ーブルを構成する複数のテーブルメモリが有するそれぞ
れのメモリ空間の大きさに相当する、上位共通ビットを
除くビットが得られるように、上記入力される可変長符
号のビットをシフト処理する可変長符号シフト手段を有
し、 該シフト手段出力が各上記各テーブルメモリに接続され
ていることを特徴とする可変長符号復号器。
3. The variable-length code decoder according to claim 1, which corresponds to the size of each memory space included in a plurality of table memories constituting the variable-length code decoding table, which receives the output of the memory selection means. , Variable-length code shift means for shifting the bits of the variable-length code to be input so that bits other than the upper common bits can be obtained, and the shift means output is connected to each of the table memories. A variable length code decoder characterized by the above.
【請求項4】 請求項1記載の可変長符号復号器におい
て、 可変長符号復号テーブルは、 上記可変長符号群の符号の先頭から引き続く0もしくは
1の連続個数に応じてグループ分けした各グループに対
応して設けられたものであることを特徴とする可変長符
号復号器。
4. The variable length code decoder according to claim 1, wherein the variable length code decoding table is divided into groups according to the number of consecutive 0s or 1s from the head of the code of the variable length code group. A variable-length code decoder characterized in that it is provided correspondingly.
【請求項5】 請求項4記載の可変長符号復号器におい
て、 上記メモリ選択手段は、 上記可変長符号群の符号の先頭から引き続く0の連続個
数または、上記可変長符号群の符号の先頭から引き続く
1の連続個数のいずれかに応じて上記唯一のテーブルメ
モリを選択するためのモード切替えスイッチを有するこ
とを特徴とする可変長符号復号器。
5. The variable-length code decoder according to claim 4, wherein the memory selection means starts from the head of the code of the variable-length code group and continues from 0 or from the head of the code of the variable-length code group. A variable-length code decoder having a mode changeover switch for selecting the only table memory according to any one of the number of consecutive 1's.
JP23770092A 1992-08-12 1992-08-12 Variable length coder decoder Pending JPH0661870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23770092A JPH0661870A (en) 1992-08-12 1992-08-12 Variable length coder decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23770092A JPH0661870A (en) 1992-08-12 1992-08-12 Variable length coder decoder

Publications (1)

Publication Number Publication Date
JPH0661870A true JPH0661870A (en) 1994-03-04

Family

ID=17019215

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23770092A Pending JPH0661870A (en) 1992-08-12 1992-08-12 Variable length coder decoder

Country Status (1)

Country Link
JP (1) JPH0661870A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100451256B1 (en) * 2001-10-17 2004-10-06 (주)씨앤에스 테크놀로지 MPEG-4 Reversible Variable Length Code Decoding Method and Circuit
US7148820B2 (en) 2002-04-15 2006-12-12 Fujitsu Limited Variable-length encoded data decoding apparatus and decoding method
JP2010136417A (en) * 2004-12-28 2010-06-17 Casio Electronics Co Ltd Data compression device and data decompression device
JP2013088879A (en) * 2011-10-13 2013-05-13 Kyocera Document Solutions Inc Information processor
JP2015061123A (en) * 2013-09-17 2015-03-30 株式会社東芝 Encoding device, decoding device, and data processing system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100451256B1 (en) * 2001-10-17 2004-10-06 (주)씨앤에스 테크놀로지 MPEG-4 Reversible Variable Length Code Decoding Method and Circuit
US7148820B2 (en) 2002-04-15 2006-12-12 Fujitsu Limited Variable-length encoded data decoding apparatus and decoding method
JP2010136417A (en) * 2004-12-28 2010-06-17 Casio Electronics Co Ltd Data compression device and data decompression device
JP2013088879A (en) * 2011-10-13 2013-05-13 Kyocera Document Solutions Inc Information processor
JP2015061123A (en) * 2013-09-17 2015-03-30 株式会社東芝 Encoding device, decoding device, and data processing system

Similar Documents

Publication Publication Date Title
US7406561B2 (en) Data coding system and method
US7334093B2 (en) Block programmable priority encoder in a CAM
US4825105A (en) Circuit for generation of logic variables, using multiplexes and inverters
US6611445B2 (en) Content addressable memory having redundant circuit
US6718433B1 (en) Match and priority encoding logic circuit
JPH0661870A (en) Variable length coder decoder
JP2003331584A (en) Associative memory device
US6122702A (en) Memory cells matrix for a semiconductor integrated microcontroller
JP4343377B2 (en) Associative memory
JP3078048B2 (en) Memory module
US6742077B1 (en) System for accessing a memory comprising interleaved memory modules having different capacities
JP2002279792A (en) Semiconductor integrated circuit device
US20040105318A1 (en) Content addressable memory device that can be saved by reduction of memory capacity
EP0632458A2 (en) Parallel data outputting storage circuit
JPH0583143A (en) Data converter
JP3168717B2 (en) Memory access circuit
US5909185A (en) Lookup table device and signal conversion method
JP3183167B2 (en) Semiconductor storage device
JP3251265B2 (en) Memory output control circuit
JPH0512119A (en) Cache memory circuit
JPH0686376A (en) Digital tone generating circuit
JPH06275079A (en) Semiconductor storage
JPH0950695A (en) Method for storing matrix data and its device
JP2757716B2 (en) Huffman code decoding circuit
JPH05289938A (en) Memory access device