[go: up one dir, main page]

JPH06291678A - Address generating circuit for two-dimensional encoding table - Google Patents

Address generating circuit for two-dimensional encoding table

Info

Publication number
JPH06291678A
JPH06291678A JP31861693A JP31861693A JPH06291678A JP H06291678 A JPH06291678 A JP H06291678A JP 31861693 A JP31861693 A JP 31861693A JP 31861693 A JP31861693 A JP 31861693A JP H06291678 A JPH06291678 A JP H06291678A
Authority
JP
Japan
Prior art keywords
address
signal
integer
active level
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP31861693A
Other languages
Japanese (ja)
Other versions
JP2998532B2 (en
Inventor
Hideo Ishida
英男 石田
Yasushi Oi
康 大井
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP31861693A priority Critical patent/JP2998532B2/en
Publication of JPH06291678A publication Critical patent/JPH06291678A/en
Application granted granted Critical
Publication of JP2998532B2 publication Critical patent/JP2998532B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To decrease the circuit scale and the capacity of a memory for the two-dimensional encoding table and to increase the processing speed. CONSTITUTION:This circuit is provided with coincidence detectors 1a-1f which output coincidence detection signals which vary to an active level when inputted (x) and (y) are equal to integers of 1-3. Further, the circuit is provided with large/small comparators 2a-2f which output comparison result signals which varied to the active level when (x) and (y) are below 32, 16, and 8. The circuit is provided with an escape signal generating circuit 3 which varies to the active level when there is no pair of a coincidence detection signal and a comparison result signal which are both at the active level. Furthermore, the circuit is provided with an address generation part 5 which generates address signals AD by combining discrimination addresses ADi of 1-3 of (x) and (y) with the inputted corresponding (y) and (x).

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、二次元符号化テーブル
のアドレス生成回路に関し、特に符号語が2つの事象の
所定の範囲の値に偏って分布する場合の二次元符号化テ
ーブルのアドレス生成回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an address generation circuit for a two-dimensional encoding table, and more particularly to an address generation circuit for a two-dimensional encoding table when codewords are biased to values in a predetermined range of two events. Regarding the circuit.

【0002】[0002]

【従来の技術】発生頻度に偏りのある時系列信号を符号
化する場合、発生頻度の高い信号に短い符号を与え、発
生頻度の低い信号に長い符号を与えるという不等長符号
を用いることで圧縮符号化ができることが知られてい
る。このような符号化をエントロピー符号化と呼ぶ(ハ
フマン符号は、エントロピー符号の一種である)。エン
トロピー符号化は、音声信号や画像信号の符号化など多
岐に渡って応用されている。
2. Description of the Related Art When encoding a time-series signal with a biased occurrence frequency, a unequal length code is used, in which a short code is given to a signal with a high occurrence frequency and a long code is given to a signal with a low occurrence frequency. It is known that compression encoding is possible. Such coding is called entropy coding (Huffman code is a kind of entropy code). Entropy coding has been applied in various fields such as coding of audio signals and image signals.

【0003】可変長符号化復号化においては、各符号の
出現頻度の逆数の対数(2を底とする)に相当するビッ
ト長に符号化することで、平均符号長を最小にすること
ができる。
In variable length coding / decoding, the average code length can be minimized by coding to a bit length corresponding to the logarithm (base 2) of the reciprocal of the appearance frequency of each code. .

【0004】特に、大量のデータ伝送や蓄積を行なう場
合、データの生起確率に著しい偏りがある場合は、エン
トロピー符号化によるデータ圧縮が有効である。例え
ば、過去100年間の毎日の風向を記録する場合、1:
北、01:北東、001:南、0001:西、等として
おけば、北風の多い地方ではデータ圧縮上有利である。
西の風の多い地方では、別な符号割り当てのほうが有利
になることは自明である。同様に、過去100年間の毎
日の風速の記録をする場合にも、データの生起確率の高
い順番に、1:10m、01:30m、001:5m、
0001:20m、等と符号化することが出来る。
In particular, when a large amount of data is transmitted or stored, and if the occurrence probability of data is significantly biased, data compression by entropy coding is effective. For example, if you want to record the wind direction every day for the past 100 years:
If north, 01: northeast, 001: south, 0001: west, etc. are set, it is advantageous in data compression in a region with a lot of north winds.
It is self-evident that different code assignments will be more advantageous in the west windy regions. Similarly, when recording daily wind speeds for the past 100 years, in order of highest occurrence probability of data, 1: 10m, 01: 30m, 001: 5m,
It can be encoded as 0001: 20 m, etc.

【0005】上記の符号割当てでは、風向もしくは風速
という一次元的なパラメータによる符号化を行なったも
のであるが、これとは別にパラメータを2つ持つ符号化
(二次元符号化)を考えることが出来る。これは、風向
の状態と風速の強度の両方の組合せで生起確率の高いも
のから順番に短い符号を割り付けるものであり、例え
ば、1:北の風10m、01:南の風30m、10:北
東の風10m、001:西の風10m、等という符号化
を行なう事が出来る。
In the above-mentioned code assignment, coding is performed by using a one-dimensional parameter such as wind direction or wind speed. In addition to this, coding having two parameters (two-dimensional coding) may be considered. I can. This is to assign short codes in descending order of occurrence probability based on the combination of both wind direction and wind speed intensity. For example, 1: north wind 10m, 01: south wind 30m, 10: northeast. It can be encoded as wind of 10 m, wind of 001: wind of 10 m, and so on.

【0006】一般に、エントロピー符号化において、符
号の集合が大きいほどエントロピー符号の割り当てが複
雑になる(特に、二次元符号では、符号の集合が2つの
符号集合の直積になる)。このような場合に対応するた
め十分発生確率の低い符号については「エスケープ符
号」を用いることがある。このエスケープ符号は、エン
トロピー符号としてのエスケープ識別部に引続いて、2
つの符号の値(2進固定長符号)を連結した形をとるも
のである。このエスケープ符号の定義により、発生確率
の高い組合せについてはエントロピー符号を、そうでな
いものにはエスケープ符号を割り当てることにより符号
化テーブルの大きさを小さくすることが出来る。エスケ
ープ符号の例として、風向のコードを北:0000、南
0001、東:0010、西:0011、北東:010
0、北西:0101、と4ビットを用いて16風向を符
号化し、風速は6ビットを用いて10m毎に、0m:0
00000、10m:000001、20m:0000
10、30m:000011、と符号化する。上位4ビ
ットを風向、下位6ビットを風速の2つのコードを連結
して低い状態も符号化することができる。
Generally, in entropy coding, the larger the code set, the more complicated the entropy code allocation (particularly in a two-dimensional code, the code set is a direct product of two code sets). In order to deal with such a case, an "escape code" may be used for a code having a sufficiently low occurrence probability. This escape code is followed by an escape identifier as an entropy code,
It takes the form of concatenating the values of two codes (binary fixed length codes). According to the definition of this escape code, the size of the encoding table can be reduced by assigning an entropy code to a combination having a high occurrence probability and an escape code to a combination that does not occur. As an example of the escape code, the wind direction code is north: 0000, south 0001, east: 0010, west: 0011, northeast: 010.
0, northwest: 0101, and 16 wind directions are encoded using 4 bits, and wind speed is 0 m: 0 every 10 m using 6 bits.
00000, 10m: 000001, 20m: 0000
It is encoded as 10, 30 m: 000011. A low state can be encoded by connecting two codes in which the upper 4 bits are the wind direction and the lower 6 bits are the wind speed.

【0007】また、エスケープ符号の他に特別な意味を
持つ符号語としてEOB符号語がある。EOB符号と
は、符号化単位となるNxN個の画素を1つの処理単位
(ブロック)として、そのブロック内において符号化の
終わりを示すものである。特に、ブロックの終わりまで
連続して零なるデータが続く場合には、符号化を行わな
いで、その代わりEOB符号語をおく。これにより、符
号化データをさらに減らすことができる。
In addition to the escape code, there is an EOB code word as a code word having a special meaning. The EOB code indicates the end of encoding within a block, with N × N pixels serving as an encoding unit being one processing unit (block). In particular, when zero data continues to the end of the block, no coding is performed and the EOB code word is set instead. Thereby, the encoded data can be further reduced.

【0008】図7は、一般的な2つの事象、風向Aと風
速Bに対する二次元符号における符号語の分布状況で、
Aの値が小さくかつBの値が小さい領域に発生確率の高
い符号語が偏っている。エントロピー符号の領域は、図
7の斜線で示す範囲となり、それ以外の領域はエスケー
プ符号と見なしている。
FIG. 7 shows the distribution of code words in a two-dimensional code for two general events, wind direction A and wind speed B.
Codewords with a high probability of occurrence are biased to areas where the value of A is small and the value of B is small. The area of the entropy code is the range shown by the diagonal lines in FIG. 7, and the other areas are regarded as the escape code.

【0009】符号化テーブルは、一般にメモリ上の各ア
ドレスにそれぞれの符号語を割り当てる。対応する符号
語を参照するには、割り当てられたアドレスを求めなく
てはならない。特に、二次元符号化テーブルにおいて
は、2つの事象の値からその符号化テーブルのアドレス
を算出することになる。従来、このような二次元符号化
テーブルのアドレス生成回路としては次のような例が考
えられている。
The encoding table generally assigns each code word to each address on the memory. To reference the corresponding codeword, the assigned address must be determined. Particularly, in the two-dimensional coding table, the address of the coding table is calculated from the values of two events. Conventionally, the following example has been considered as an address generation circuit for such a two-dimensional encoding table.

【0010】1つは、プログラムにより2つの事象の値
に対応する符号語を符号化テーブルより読み出す回路で
ある。この例の構成として、プログラムを処理するCP
Uが必要であり、また、プログラムを記憶しておく命令
メモリが必要となる。全符号語に対して、メモリ上に適
当なアドレスを割り当てておく。プログラムは、事象A
と事象Bの値とを検出し、この2つのパラメータに対応
するアドレスを出力する。例えば、北の風10mの符号
語のアドレスを読み出す場合、A=0001でB=00
0001であり、符号語の記憶されているアドレスを0
010番地の場合で考えると、(A=0001)かつ
(B=000001)の条件判定でアドレス0010番
地を読み出すようにプログラム化する。全符号語に対し
て、事象A,Bの値から条件判断して符号化テーブルの
アドレスを生成する。
One is a circuit for reading a code word corresponding to two event values from a coding table by a program. As the configuration of this example, a CP that processes a program
U is required, and an instruction memory for storing the program is required. Appropriate addresses are allocated on the memory for all code words. Program is Event A
And the value of event B are detected, and the addresses corresponding to these two parameters are output. For example, when reading the address of the code word of the north wind 10 m, A = 0001 and B = 00
0001, and the stored address of the codeword is 0
Considering the case of address 010, it is programmed to read address 0010 by the condition judgment of (A = 0001) and (B = 000001). For all code words, conditions are judged from the values of the events A and B to generate the addresses of the coding table.

【0011】また、2つの事象A,Bの値を比較器もし
くは検出器などのハードウェア手段に入力し、これによ
って符号化テーブルのアドレスを出力させることも考え
られる。すなわち、専用のデコーダを用いてハードウェ
ア的に符号語のアドレスを生成させる方法である。
It is also conceivable to input the values of the two events A and B into a hardware means such as a comparator or a detector to output the address of the coding table. That is, it is a method of generating the address of the codeword by hardware using a dedicated decoder.

【0012】更に、最も単純な回路は、2つの事象A,
Bの値をアドレスとして見なす方法である。事象Aの値
をアドレスの上位、事象Bの値をアドレスの下位とし
て、これらA,Bの値を連結することにより符号化テー
ブルのアドレスを生成することが出来る。構成は専用ハ
ードウェアを追加する必要は無く、簡単にアドレス生成
が可能であるが、反対に符号化テーブルのメモリ容量が
大きくなる。例えば、前述の例では10ビットのアドレ
スに対応して1Kワードのメモリが必要になる。
Furthermore, the simplest circuit is two events A,
In this method, the value of B is regarded as an address. It is possible to generate the address of the encoding table by connecting the values of A and B with the value of the event A as the upper address and the value of the event B as the lower address. In the configuration, it is not necessary to add dedicated hardware and the address can be easily generated, but on the contrary, the memory capacity of the encoding table becomes large. For example, in the above example, a 1K word memory is required to correspond to a 10-bit address.

【0013】[0013]

【発明が解決しようとする課題】上述した従来の二次元
符号化テーブルのアドレス生成回路において、第1の例
のプログラムによる回路では、2つの事象A,Bの値を
プログラム上で順次比較してアドレスを出力するため、
比較演算処理時間を必要とし、リアルタイムの画像処理
等の高速処理に用いることは出来ず、また、CPUを含
み、プログラムを記憶する命令メモリなどのアドレス生
成用のシステムが必要となるなどの問題点を有する。
In the address generating circuit of the conventional two-dimensional encoding table described above, in the circuit according to the program of the first example, the values of two events A and B are sequentially compared on the program. To output the address,
It requires a comparative calculation processing time, cannot be used for high-speed processing such as real-time image processing, and requires a system for address generation such as an instruction memory for storing programs including a CPU. Have.

【0014】また、第2の例の検出手段をハードウェア
的に行なう場合では、2つの事象A,Bの値に対応する
符号化テーブルのアドレスを検出する専用のハードウェ
アが必要となり、また、100語以上に及ぶ符号語に対
し検出回路を必要とするため回路規模が大きくなるとい
う問題点がある。
When the detecting means of the second example is implemented by hardware, dedicated hardware for detecting the address of the encoding table corresponding to the values of the two events A and B is required, and There is a problem in that the circuit scale becomes large because a detection circuit is required for code words of more than 100 words.

【0015】更に、第3の例の2つのパラメータA,B
の値を実アドレスと見なし、これら2つの値の結合から
アドレスを生成する最も単純な回路では、メモリ容量が
大きくなると言う問題点がある。仮に、A,Bの値をそ
れぞれ5ビットとした場合には、計10ビットで1Kワ
ードのメモリ容量を必要とする。しかし、エントロピー
符号では図のようにコード分布が偏っているため、1K
ワードのメモリのうち実際に有効な符号語が存在してい
るのは112語程度の約一割と少なく、無駄が多い。
Furthermore, the two parameters A and B of the third example.
There is a problem that the memory capacity becomes large in the simplest circuit in which the value of is regarded as a real address and the address is generated from the combination of these two values. If the values of A and B are 5 bits, a total of 10 bits requires a memory capacity of 1K words. However, in the entropy code, the code distribution is biased as shown in the figure, so 1K
About 10% of about 112 words actually have valid codewords in the word memory, which is wasteful.

【0016】本発明の目的は、動作速度が速く、メモリ
容量及び回路規模を小さくすることができる二次元符号
化テーブルのアドレス生成回路を提供することにある。
An object of the present invention is to provide an address generation circuit for a two-dimensional encoding table, which has a high operation speed and can reduce the memory capacity and the circuit scale.

【0017】[0017]

【課題を解決するための手段】第1の発明の二次元符号
化テーブルのアドレス生成回路は、事象Aの値をx、事
象Bの値をy(x,yは正の整数)とし、前記xの1か
らS(SはS+log2 S<Pを満足する最大の整数、
Pは正の整数)までの各整数に対しx+log2 y≦
P、前記yの1から前記Sまでの各整数に対しy+lo
2 x≦Pをそれぞれ満足する範囲の前記x及びyの各
組とそれぞれ対応する符号語をそれぞれ対応するアドレ
スに記憶する二次元符号化テーブルのアドレス生成回路
であって、入力されたx,yそれぞれが1から前記Sま
での整数と一致したときアクティブレベルとなる一致検
出信号をその整数と対応してそれぞれ出力する複数の一
致検出器と、入力されたyが前記xの1から前記Sまで
の各整数に対しそれぞれx+log2 y≦Pを満足する
ときアクティブレベルとなる比較結果信号を前記xの1
から前記Sまでの各整数と対応してそれぞれ出力する複
数の第1の比較器と、入力されたxが前記yの1から前
記Sまでの各整数に対しそれぞれy+log2 x≦Pを
満足するときアクティブレベルとなる比較結果信号を前
記yの1から前記Sまでの各整数と対応してそれぞれ出
力する複数の第2の比較器と、前記一致検出信号のそれ
ぞれと対応する前記比較結果信号との組のうちに共にア
クティブレベルのものが1組も含まれないときアクティ
ブレベルのエスケープ信号を出力するエスケープ信号発
生部と、前記x,yの1から前記Sまでの各整数をそれ
ぞれ識別するための識別アドレスを発生する識別アドレ
ス発生回路を備え前記xの各識別アドレスと入力された
yの所定のビット、及び前記yの各識別アドレスと入力
されたxの所定のビットとを前記P+1ビットに結合し
てそれぞれアドレス信号として出力するアドレス発生部
と、前記一致検出信号のx側及びy側の両方にアクティ
ブレベルのものがあるときは何れか一方をマスクして他
方をそのまま出力しそれ以外のときは両方をそのまま出
力する優先順位制御部と、この優先順位制御部からのア
クティブレベルの一致検出信号により対応する前記識別
アドレスを含むアドレス信号を選択し出力するマルチプ
レクサとを有している。
Two-dimensional code of the first invention
The conversion table address generation circuit sets the value of event A to x,
The value of the elephant B is y (x, y is a positive integer), and the value of x is 1
S (S is S + log2Maximum integer satisfying S <P,
X + log for each integer up to P)2y ≦
P, y + lo for each integer from 1 to S of y
g2Each of the above-mentioned x and y in the range satisfying x ≦ P
The code word corresponding to each pair and the corresponding address
Address generation circuit for two-dimensional encoding table stored in memory
And the input x and y are each from 1 to the above S.
Match detection that becomes the active level when it matches the integer in
A plurality of ones that respectively output the output signal corresponding to the integer
Matching detector and input y is from 1 of x to S
X + log for each integer of2satisfies y ≦ P
When the comparison result signal which becomes the active level is 1 of x
To each of the integers from S to S
Number of first comparators and the input x is from 1 of the y
Y + log for each integer up to S2 x ≦ P
When it is satisfied, the comparison result signal that becomes active level
Corresponding to each integer from 1 to S in the above y
A plurality of second comparators, and one of the coincidence detection signals
Both of them are paired with the corresponding comparison result signal.
Acti when none of the active levels are included
Escape signal output that outputs a level escape signal
Raw part and each integer from 1 of x and y to S
An identification address that generates an identification address for identifying each
Inputting each identification address of the x
Input a predetermined bit of y and each identification address of y
Combine the predetermined bits of x that have been generated with the P + 1 bits
Address generator that outputs each as an address signal
And both the x and y sides of the coincidence detection signal
If there is a blank level, mask one of them and
One is output as is, otherwise both are output as is.
Priority control unit to control
The corresponding identification based on the active level coincidence detection signal
Multiplex that selects and outputs address signals including addresses
I have a lexa.

【0018】第2の発明の二次元符号化テーブルのアド
レス生成回路は、事象Aの値をx、事象Bの値をy
(x,yは正の整数)とし、前記xの1からS(Sは2
(P-S) −1≧Q−log2 Sを満足する最大の整数、
P,Qは正の整数)までの各整数に対しx+log2
≦P、及び前記yの1からR(Rは2(Q-R) −1≧P−
log2 Rを満足する最大の整数)までの各整数に対し
y+log2 x≦Qをそれぞれ満足する範囲の前記x及
びyの各組とそれぞれ対応する符号語をそれぞれ対応す
るアドレスに記憶する二次元符号化テーブルのアドレス
生成回路であって、入力されたxが1から前記Sまでの
整数と一致したとき、及び入力されたyが1から前記R
までの整数と一致したときアクティブレベルとなる一致
検出信号をそれら整数と対応してそれぞれ出力する複数
の一致検出器と、入力されたyが前記xの1から前記S
までの各整数に対しそれぞれx+log2 y≦Pを満足
するときアクティブレベルとなる比較結果信号を前記x
の1から前記Sまでの各整数と対応してそれぞれ出力す
る複数の第1の比較器と、入力されたxが前記yの1か
ら前記Rまでの各整数に対しそれぞれy+log2 x≦
Qを満足するときアクティブレベルとなる比較結果信号
を前記yの1から前記Rまでの各整数と対応してそれぞ
れ出力する複数の第2の比較器と、前記一致検出信号の
それぞれと対応する前記比較結果信号との組のうちに共
にアクティブレベルのものが1組も含まれないときアク
ティブレベルのエスケープ信号を出力するエスケープ信
号発生回路と、前記xの1から前記Sまで及び前記yの
1から前記Rまでの各整数をそれぞれ識別するための識
別アドレスを発生する識別アドレス発生回路を備え前記
xの各識別アドレスと入力されたyの所定のビット、及
び前記yの各識別アドレスと入力されたxの所定のビッ
トとを前記P,Qの少なくとも大きい方+1ビットに結
合してアドレス信号として出力するアドレス発生部と、
前記一致検出信号のx側及びy側の両方にアクティブレ
ベルのものがあるときは何れか一方をマスクして他方を
そのまま出力しそれ以外のときは両方をそのまま出力す
る優先順位制御部と、この優先順位制御部からのアクテ
ィブレベルの一致検出信号により対応する前記識別アド
レスを含むアドレス信号を選択し出力するマルチプレク
サとを有している。
In the address generating circuit of the two-dimensional encoding table of the second invention, the value of event A is x and the value of event B is y.
(X and y are positive integers), and 1 to S of x (S is 2)
(PS) -1 ≧ Q-log 2 S, the maximum integer that satisfies S,
X + log 2 y for each integer up to P and Q)
≤P, and 1 to R of y (R is 2 (QR) -1 ≥P-
2D for storing code words corresponding respectively to the respective groups of x and y in the range satisfying y + log 2 x ≦ Q for each integer up to the maximum integer satisfying log 2 R) An address generation circuit of an encoding table, wherein when input x matches an integer from 1 to S, and when input y is 1 to R
A plurality of coincidence detectors that output a coincidence detection signal that becomes an active level when they coincide with integers up to, and the input y is from 1 of x to S
For each integer up to, the comparison result signal that becomes an active level when x + log 2 y ≦ P is satisfied
A plurality of first comparators that respectively output corresponding integers from 1 to S of the above, and input x is y + log 2 x ≦ for each integer from 1 to R of y above.
A plurality of second comparators that respectively output a comparison result signal that becomes an active level when Q is satisfied in correspondence with each integer of 1 to R of y, and the second comparators that respectively correspond to the coincidence detection signals. An escape signal generating circuit which outputs an active level escape signal when none of the groups having an active level is included in the pair with the comparison result signal, and 1 from x to S and 1 from y. An identification address generating circuit for generating an identification address for identifying each integer up to R is provided, and each identification address of x and a predetermined bit of y input and each identification address of y are input. an address generator that combines a predetermined bit of x with at least the larger +1 bit of P and Q and outputs as an address signal;
When there is an active level on both the x side and the y side of the coincidence detection signal, one of them is masked and the other is output as it is, and otherwise, both are output as they are, A multiplexer for selecting and outputting an address signal including the corresponding identification address according to an active level match detection signal from the priority control section.

【0019】また、符号化処理単位の最終のブロックを
検出したときアクティブレベルの最終ブロック検出信号
を出力する最終ブロック検出部と、最終のブロックと対
応する符号語を二次元符号化テーブルに記憶するための
アドレス信号を発生する最終ブロック符号用アドレス生
成部と、前記最終ブロック検出信号がアクティブレベル
のときは前記最終ブロック符号用アドレス生成部からの
アドレス信号を、インアクティブレベルのときはマルチ
プレクサからのアドレス信号を選択して出力する選択回
路とを設け、更に、エスケープ信号と対応する符号語を
二次元符号化テーブルに記憶するためのアドレス信号を
発生するエスケープ符号用アドレス生成部と、前記エス
ケープ信号がアクティブレベルのときは前記エスケープ
信号用アドレス生成部からのアドレス信号を、インアク
ティブレベルのときはマルチプレクサからのアドレス信
号を選択して出力する選択回路とを設けた構成を有して
いる。
Further, a final block detecting section for outputting an active level final block detection signal when the final block of the encoding processing unit is detected, and a code word corresponding to the final block are stored in the two-dimensional encoding table. For generating an address signal for the final block code, and an address signal from the final block code address generator when the final block detection signal is at the active level, and from the multiplexer when the inactive level. An escape code address generator for generating an address signal for storing a code word corresponding to the escape signal in a two-dimensional encoding table, and the escape signal. When is an active level, the escape signal address The address signal from the parts, when the inactive level and has a structure provided with a selection circuit for selecting and outputting the address signal from the multiplexer.

【0020】[0020]

【実施例】次に本発明の実施例について図面を参照して
説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0021】図1は本発明の第1の実施例を示す回路図
である。
FIG. 1 is a circuit diagram showing a first embodiment of the present invention.

【0022】この実施例は、「請求項1」において、P
=6、S=3としたときの例であり、「従来の技術」で
説明した図7に相当する符号語分布状態の二次元符号化
テーブルに本発明を適用したものである。
This embodiment is based on P in "Claim 1".
= 6, S = 3, and the present invention is applied to the two-dimensional coding table of the code word distribution state corresponding to FIG. 7 described in "Prior Art".

【0023】この図7の符号語の分布状態から、事象A
の値xがBの値yの有効範囲のビット数を決定し、ま
た、事象Bの値yがAの値xの有効範囲のビット数を決
定することが分かる。例えば、x=1の時はyの5ビッ
トで表せる範囲に符号語が分布している。また、x=2
の時はyの4ビットで表せる範囲に、x=3の時はyの
3ビットの範囲に分布している。一方、y=1の時はx
の5ビット、y=2の時はxの4ビット、y=3の時は
xの3ビットでその分布領域を表せる。これは、一般に
は、x=1〜3のときx+log2 y≦P,y=1〜3
のときy+log2 x≦P,P=6を満たす領域であ
る。この領域以外はエスケープ符号の領域である。この
符号語の偏った分布状況を考慮に入れて符号語と対応す
るアドレスを割り当てる。
From the distribution state of the code words in FIG. 7, the event A
It can be seen that the value x of B determines the number of valid range bits of the value B of B, and the value y of the event B determines the number of valid range bits of the value x of A. For example, when x = 1, codewords are distributed in a range that can be represented by 5 bits of y. Also, x = 2
When x = 3, it is distributed in the range that can be represented by 4 bits of y, and when x = 3, it is distributed in the range of 3 bits of y. On the other hand, when y = 1, x
The distribution area can be represented by 4 bits of x when y = 2, and 3 bits of x when y = 3. This is generally x + log 2 y ≦ P, when x = 1 to 3, y = 1 to 3
Is a region that satisfies y + log 2 x ≦ P and P = 6. Areas other than this area are escape code areas. The address corresponding to the code word is assigned in consideration of the uneven distribution of the code words.

【0024】また、x,yの上記1〜3の3という値
は、S=log2 S<P,P=6を満足する最大の整数
である。
Further, the above-mentioned values 1 to 3 of x and y are maximum integers satisfying S = log 2 S <P and P = 6.

【0025】上記符号語の分布状態をまとめると次のと
おりとなる。
The distribution states of the code words are summarized as follows.

【0026】 x=1のとき、yが1〜32の32ワード x=2のとき、yが1〜16の16ワード x=3のとき、yが1〜8の8ワード y=1のとき、xが1〜32の32ワード y=2のとき、xが1〜16の16ワード y=23のとき、xが1〜8の8ワード このような分布状態の符号語の全てと対応するアドレス
を、上記範囲のx,yの組と対応ずけて表示するには、
x=1〜3に対し(1+log2 32)ビット,y=1
〜3に対し同様に(1+log2 32)ビット必要であ
るので、x,yの1〜3に対しては、(2+log2
2)ビット、すなわち、P+1=6ビット必要となる。
When x = 1, y is 32 words of 1 to 32, when x = 2, 16 words of y is 1 to 16 When x = 3, 8 words of y is 1 to 8 When y = 1 , X is 1 to 32, 32 words y = 2, x is 1 to 16 16 words, y = 23, x is 1 to 8 8 words Corresponds to all the code words in such a distribution state. To display addresses in correspondence with the x, y pairs in the above range,
(1 + log 2 32) bits for x = 1 to 3, y = 1
Similarly, since (1 + log 2 32) bits are required for ~ 3, (2 + log 2 3) for 1 to 3 of x and y.
2) bits, that is, P + 1 = 6 bits are required.

【0027】このような分布状態の符号語を、上記x,
yの各組とそれぞれ対応するアドレスをもつメモリエン
トロピー符号として記憶する二次元符号化テーブルを対
象とするこの実施例の構成について説明する。
The code word having such a distribution state is defined as x,
The configuration of this embodiment for a two-dimensional coding table stored as a memory entropy code having an address corresponding to each set of y will be described.

【0028】この実施例は、入力されたx,yそれぞれ
が1から3までの整数と一致したときアクティブレベル
となる一致検出信号をその整数と対応してそれぞれ出力
する複数の一致検出器1a〜1fと、入力されたyが、
xの1から3までの各整数に対しそれぞれx+log2
y≦6を満足するときアクティブレベルとなる比較結果
信号をxの1から3までの各整数と対応してそれぞれ出
力する大小比較器2a〜2cと、入力されたxが、yの
1から3までの各整数に対しそれぞれy+log2 x≦
6を満足するときアクティブレベルとなる比較結果信号
をyの1から3までの各整数と対応してそれぞれ出力す
る大小比較器2d〜2fと、AND型の論理ゲートG3
1〜G36及びNOR型の論理ゲートG37を備え上記
一致信号のそれぞれと対応する上記比較結果信号との組
のうちに共にアクティブレベルのものが1組も含まれな
いときアクティブレベルのエスケープ信号ESを出力す
るエスケープ信号発生部3と、x,yの1から3までの
各整数をそれぞれ識別するための識別アドレスADiを
発生する識別アドレス発生回路51を備えxの各識別ア
ドレスADi(11,101,1001)と入力された
yの下位側の所定のビット、及びyの各識別アドレスA
Di(01,001,0001)と入力されたxの下位
側の所定のビットとを7ビットに結合してそれぞれアド
レス信号として出力するアドレス発生部5と、NOR型
の論理ゲートG41及びAND型の論理ゲートG42〜
G44を備え上記一致検出信号のx側及びy側の両方に
アクティブレベルのものがあるときはy側をマスクして
x側をそのまま出力しそれ以外のとき両方をそのまま出
力する優先順位制御部4と、この優先順位制御部4から
のアクティブレベルの一致検出信号により対応する上記
識別アドレスを含むアドレス信号ADを選択し出力する
マルチプレクサ6と、アクティブレベルのエスケープ信
号ESによりマルチプレクサ6の出力信号の二次元符号
化テーブルへの供給を停止する出力停止回路7とを有す
る構成となっている。
In this embodiment, a plurality of coincidence detectors 1a to 1a which output a coincidence detection signal which becomes an active level when each of the input x and y coincides with an integer of 1 to 3 in correspondence with the integer. 1f and the input y are
x + log 2 for each integer from 1 to 3 of x
Large and small comparators 2a to 2c that respectively output a comparison result signal that becomes an active level when y ≦ 6 is satisfied corresponding to each integer of 1 to 3 of x, and the input x is 1 to 3 of y. For each integer up to y + log 2 x ≦
AND-type logic gate G3, and magnitude comparators 2d to 2f which respectively output a comparison result signal which becomes an active level when 6 is satisfied corresponding to each integer of 1 to 3 of y.
1 to G36 and a NOR type logic gate G37, and when none of the pairs of the coincidence signal and the corresponding comparison result signal include an active level, the active level escape signal ES is output. The escape signal generating section 3 for outputting and an identification address generating circuit 51 for generating an identification address ADi for identifying each integer of 1 to 3 of x and y are provided, and each identification address ADi of x (11, 101, 1001), the predetermined bits on the lower side of y input, and each identification address A of y
Di (01,001,0001) and a predetermined bit on the lower side of the input x are combined into 7 bits and output as an address signal, respectively, a NOR type logic gate G41 and an AND type AND gate. Logic gate G42-
A priority control unit 4 provided with G44, which masks the y side when both the x side and the y side of the coincidence detection signal have active levels and outputs the x side as it is, and otherwise outputs both as it is. A multiplexer 6 which selects and outputs an address signal AD including the corresponding identification address according to an active level coincidence detection signal from the priority control section 4, and an output signal of the multiplexer 6 according to an active level escape signal ES. The output stop circuit 7 stops the supply to the dimension encoding table.

【0029】この実施例により出力されるアドレス信号
ADのデータフォーマット図を図2に示す。
A data format diagram of the address signal AD output by this embodiment is shown in FIG.

【0030】アドレス信号ADは、x,yの1〜3を識
別する識別アドレスADiと、対応するy,xの下位側
の所定のビットとで構成される。この識別アドレスAD
iは、x側(1),y側(0)を表す最上位ビットと、
これに続く1,2,3を表わす1〜3ビット(1,0
1,001)とから成る。識別アドレスADiと対応す
るy,xの下位側の所定のビットは、x,yが1のとき
は32ワード,2のときは16ワード、3のときは8ワ
ードをそれぞれ識別すればよいので、それぞれy,xの
下位側の5ビット,4ビット,3ビットとそればよい。
これを実現したいハードウェアがアドレス発生部5であ
る。
The address signal AD is composed of an identification address ADi for identifying 1 to 3 of x and y and a corresponding predetermined bit on the lower side of y and x. This identification address AD
i is the most significant bit representing the x side (1) and the y side (0),
1 to 3 bits (1,0) representing 1,2,3 following this
1,001) and. The predetermined bits on the lower side of y and x corresponding to the identification address ADi can identify 32 words when x and y are 1, 16 words when x and y are 3, and 8 words when they are 3. 5 bits, 4 bits, and 3 bits on the lower side of y and x, respectively.
The hardware for realizing this is the address generator 5.

【0031】このアドレス発生部5から出力されるアド
レス信号ADを、一致検出器1a〜1fのアクティブレ
ベルの一致検出信号によりマルチプレクサ6で選択し出
力する。この際、x,yとも1〜3の整数と一致するこ
とがあり、このときには、1つのアドレス信号ADを正
確に選択することができなくなるので、x側のアクティ
ブレベルの一致検出信号でy側の一致検出信号をマスク
し、x側を優先させる。これが優先順位制御部4であ
る。
The address signal AD output from the address generator 5 is selected by the multiplexer 6 according to the active level match detection signals of the match detectors 1a to 1f and output. At this time, both x and y may match an integer of 1 to 3, and at this time, one address signal AD cannot be accurately selected. Therefore, the match detection signal of the active level on the x side is the y side. The coincidence detection signal of is masked and the x side is prioritized. This is the priority control unit 4.

【0032】一方、x=1〜3のときそれぞれx+lo
2 y≦6、及びy=1〜3のときそれぞれy+log
2 x≦6を共に満足しないx,yを含むx,yの組と対
応する符号語はエスケープ符号として処理する。これが
大小比較器2a〜2f及びエスケープ信号発生回路3で
ある。
On the other hand, when x = 1 to 3, x + lo
When g 2 y ≦ 6, and y = 1 to 3, y + log
A codeword corresponding to a set of x and y including x and y that do not satisfy 2 x ≦ 6 is processed as an escape code. These are the magnitude comparators 2a to 2f and the escape signal generating circuit 3.

【0033】この実施例においては、一致検出器,大小
比較器等はS+log2 S<Pを満足する整数Sの最大
数だけで済むので、回路規模を小さくすることができ、
また、二次元符号化テーブル用のメモリの容量も(P+
1)ビットによるアドレス数で済む。更にハードウェア
により直接処理するので、リアルタイムの高速処理が可
能である。
In this embodiment, since the coincidence detector, the size comparator, etc. need only the maximum number of integers S that satisfy S + log 2 S <P, the circuit scale can be reduced.
Also, the capacity of the memory for the two-dimensional encoding table is (P +
1) The number of addresses in bits is sufficient. Furthermore, since the processing is performed directly by hardware, high-speed processing in real time is possible.

【0034】図3は本発明の第2の実施例を示す回路図
である。
FIG. 3 is a circuit diagram showing a second embodiment of the present invention.

【0035】第1の実施例は、符号語の分布状態がx,
yに対して対称となっているのに対し、この第2の実施
例は非対称の場合に本発明を適用したものである。図3
には、「請求項2」において、P=6,Q=5,S=
4,R=2としたときの実施例の回路が示されている。
また、この実施例の対象二次元符号化テーブルの符号語
の分布状態は図4のとおりである。
In the first embodiment, the distribution state of code words is x,
In contrast to the symmetry with respect to y, this second embodiment applies the present invention to the case of asymmetry. Figure 3
In the "claim 2", P = 6, Q = 5, S =
4, the circuit of the embodiment when R = 2 is shown.
The distribution state of the code words in the target two-dimensional coding table of this embodiment is as shown in FIG.

【0036】この実施例の対象二次元符号化テーブル
は、xの1から4(Aは2(6-S) −1≧5−log2
を満足する最大の整数までの各整数に対しx+log2
y≦6、及びyの1から2(2は2(5-R) −1≧6−l
og2 Rを満足する最大の整数)までの各整数に対しy
+log2 x≦5をそれぞれ満足する範囲のx及びyの
各組とそれぞれ対応する符号語をそれぞれ対応するアド
レスに記憶する。
The target two-dimensional encoding table of this embodiment is 1 to 4 of x (A is 2 (6-S) -1≥5-log 2 S).
X + log 2 for each integer up to the maximum integer that satisfies
y ≦ 6, and 1 to 2 of y (2 is 2 (5-R) −1 ≧ 6-1 )
y for each integer up to the maximum integer satisfying og 2 R)
Codewords respectively corresponding to each set of x and y in the range satisfying + log 2 x ≦ 5 are stored at corresponding addresses.

【0037】上記二次元符号化テーブルに対する符号語
の分布状態をまとめると次のとおりとなる。
The distribution of code words for the above two-dimensional coding table is summarized as follows.

【0038】 x=1のとき、yが1〜32の32ワード x=2のとき、yが1〜16の16ワード x=3のとき、yが1〜8の8ワード x=4のとき、yが1〜4の4ワード x=1のとき、xが1〜16の16ワード y=2のとき、xが1〜8の8ワード このような分布状態の符号語の全てと対応するアドレス
を、上述の範囲のx,yの組と対応ずけて表示するに
は、P,Qの大きい方に1をプラスしたビット数、すな
わち、7ビット必要となる。
When x = 1, y is 32 words of 1 to 32, when x = 2, 16 words of y is 1 to 16 When x = 3, 8 words of y is 1 to 8 When x = 4 , Y is 1 to 4 4 words x = 1, x is 1 to 16 16 words y = 2 is x 1 to 8 8 words Corresponds to all the code words in such a distribution state. To display the address in correspondence with the set of x and y in the above range, the number of bits obtained by adding 1 to the larger P and Q, that is, 7 bits are required.

【0039】次にこの実施例の回路構成について説明す
る。
Next, the circuit configuration of this embodiment will be described.

【0040】この実施例は、入力されたxが1から4ま
での整数と一致したとき、及び入力されたyが1から2
までの整数を一致したときアクティブレベルとなる一致
検出信号をそれら整数と対応してそれぞれ出力する複数
の一致検出器1a〜1c,1d,1e,1gと、入力さ
れたyがxの1から4までの各整数に対しそれぞれx+
log2 y≦6を満足するときアクティブレベルとなる
比較結果信号をxの1から4までの各整数と対応してそ
れぞれ出力する複数の第1の大小比較器2a〜2c,2
gと、入力されたxがyの1から2までの各整数に対し
それぞれy+log2 x≦5を満足するときアクティブ
レベルとなる比較結果信号をyの1から2までの各整数
と対応してそれぞれ出力する複数の第2の大小比較器2
e,2fと、AND型の論理ゲートG31〜G36及び
NOR型の論理ゲートG37を備え上記一致検出信号の
それぞれと対応する上記比較結果信号との組のうちに共
にアクティブレベルのものが1組も含まれないときアク
ティブレベルのエスケープ信号ESを出力するエスケー
プ信号発生回路3と、xの1から4まで及びyの1から
2までの各整数をそれぞれ識別するための識別アドレス
ADiを発生する識別アドレス発生回路51aを備えx
の各識別アドレスと入力されたyの下位側の所定のビッ
ト、及びyの各識別アドレスと入力されたxの下位側の
所定のビットとを7ビットに結合してアドレス信号AD
として出力するアドレス発生部5aと、NOR型の論理
ゲートG46及びAND型の論理ゲートG42〜G45
を備え上記一致検出信号のx側及びy側の両方にアクテ
ィブレベルのものがあるときは何れか一方をマスクして
他方をそのまま出力しそれ以外のときは両方をそのまま
出力する優先順位制御部4aと、この優先順位制御部4
aからのアクティブレベルの一致検出信号により対応す
る上記識別アドレスを含むアドレス信号ADを選択し出
力するマルチプレクサ6と、アクティブレベルのエスケ
ープ信号ESによりマルチプレクサ6の出力信号の上記
二次元符号化テーブルへの供給を停止する出力停止回路
7とを有する構成となっている。
In this embodiment, when the input x matches an integer of 1 to 4, and the input y is 1 to 2
A plurality of coincidence detectors 1a to 1c, 1d, 1e and 1g which respectively output the coincidence detection signal which becomes an active level when the integers up to are coincident with the integers, and the input y is 1 to 4 of x. X + for each integer up to
A plurality of first magnitude comparators 2a to 2c, 2 which respectively output a comparison result signal which becomes an active level when log 2 y ≦ 6 is satisfied in correspondence with each integer of 1 to 4 of x.
g and the input result x are the active level comparison result signals corresponding to the integers 1 to 2 of y and y + log 2 x ≦ 5. A plurality of second magnitude comparators 2 for outputting respectively
e and 2f, AND-type logic gates G31 to G36 and NOR-type logic gate G37, each of which has an active level among the pairs of the match detection signal and the corresponding comparison result signal. When not included, an escape signal generating circuit 3 that outputs an active level escape signal ES, and an identification address that generates an identification address ADi for identifying each integer of 1 to 4 of x and 1 to 2 of y The generator circuit 51a is provided x
Of the input address signal AD and a predetermined bit on the lower side of the input y, and each identification address of y and the predetermined bit on the lower side of the input x are combined into 7 bits.
Address generating section 5a for outputting as a NOR logic gate G46 and AND logic gates G42 to G45.
When there is an active level on both the x side and the y side of the coincidence detection signal, one of them is masked and the other is output as it is, otherwise both are output as it is. And this priority control unit 4
A multiplexer 6 which selects and outputs an address signal AD including the corresponding identification address by the active level coincidence detection signal from a, and an output signal of the multiplexer 6 by the active level escape signal ES to the two-dimensional encoding table. An output stop circuit 7 for stopping the supply is provided.

【0041】この実施例により出力されるアドレス信号
ADのデータフォーマット図を図5に示す。
A data format diagram of the address signal AD output by this embodiment is shown in FIG.

【0042】この実施例においては、その構成、アドレ
ス信号ADの内容等が第1の実施例と多少異なるところ
があるが、基本的な動作及び効果は第1の実施例と同様
であるので、これ以上の説明は省略する。
In this embodiment, there are some differences in the configuration, contents of the address signal AD, etc. from the first embodiment, but since the basic operation and effect are the same as in the first embodiment, this is the case. The above description is omitted.

【0043】図6は本発明の第3の実施例を示す回路図
である。
FIG. 6 is a circuit diagram showing a third embodiment of the present invention.

【0044】この実施例は、エスケープ識別のための符
号語及びEOB(End Of Block)の符号語
などの特別な意味をもつ符号語を、二次元符号化テーブ
ル100の特定領域に記憶し、これらそれぞれのアドレ
ス生成部を追加することにより、二次元符号化テーブル
100から同一経路で符号化出力を得るようにしたもの
である。
In this embodiment, code words having a special meaning such as a code word for escape identification and a code word of EOB (End Of Block) are stored in a specific area of the two-dimensional coding table 100, and By adding each address generation unit, the encoded output can be obtained from the two-dimensional encoding table 100 through the same path.

【0045】第1の実施例の場合においては、図2に示
すように符号化テーブルメモリには112ワードを記録
しており、仮にアドレスが7ビットのテーブルメモリを
使用した場合、16ワード分の領域が未使用となってい
る。すなわち、アドレスの上位5ビットが(1000
1)のとき下位2ビットで表せる4ワード、上位6ビッ
トが(100001)のとき下位1ビットで表せる2ワ
ード、上位6ビットが(100000)のとき下位1ビ
ットで表せる2ワード、さらに、上位5ビットが(00
001)のとき下位2ビットで表せる2ワード、及び上
位6ビットが(000000)のとき下位1ビットで表
せる2ワードの合計16ワードである。
In the case of the first embodiment, as shown in FIG. 2, 112 words are recorded in the encoding table memory, and if a table memory with an address of 7 bits is used, 16 words worth are stored. The area is unused. That is, the upper 5 bits of the address are (1000
In the case of 1), 4 words can be represented by the lower 2 bits, 2 words can be represented by the lower 1 bit when the upper 6 bits are (100001), 2 words can be represented by the lower 1 bit when the upper 6 bits are (100000), and further the upper 5 Bit is (00
In the case of 001), 2 words can be represented by the lower 2 bits, and when the upper 6 bits are (000000), 2 words can be represented by the lower 1 bit, for a total of 16 words.

【0046】同じく、第2の実施例の場合においては、
図5に示すように符号化テーブルメモリには84ワード
を記録しており、仮にアドレスが7ビットのテーブルメ
モリを使用した場合、44ワード分の領域が未使用とな
っている。すなわち、アドレスの上位2ビットが(1
1)のとき下位5ビットで表せる32ワード、アドレス
の上位5ビットが(10001)のとき下位2ビットで
表せる4ワード、アドレスの上位6ビットが(0000
00)のとき下位1ビットで表せる2ワード、及びアド
レスの上位6ビットが(000001)のとき下位1ビ
ットで表せる2ワードの合計44ワードである。
Similarly, in the case of the second embodiment,
As shown in FIG. 5, 84 words are recorded in the encoding table memory, and if a table memory with an address of 7 bits is used, an area for 44 words is unused. That is, the upper 2 bits of the address are (1
In the case of 1), 32 words can be represented by the lower 5 bits, when the upper 5 bits of the address are (10001), 4 words can be represented by the lower 2 bits, and the upper 6 bits of the address are (0000
The total of 44 words is 2 words that can be represented by the lower 1 bit when it is 00) and 2 words that can be represented by the lower 1 bit when the upper 6 bits of the address are (000001).

【0047】この未使用の領域にエスケープ識別の符号
語(以下、エスケープ符号語という)や符号化単位の終
わりを表すEOBの符号語など特別な意味を持つ符号語
を割り当てる。
A code word having a special meaning such as an escape identification code word (hereinafter referred to as an escape code word) or an EOB code word indicating the end of a coding unit is assigned to this unused area.

【0048】次にこの実施例の回路構成について説明す
る。
Next, the circuit configuration of this embodiment will be described.

【0049】この実施例は、図1及び図3に示された第
1及び第2の実施例に加え、符号化処理単位の最終ブロ
ックを検出したときアクティブレベルの最終ブロック検
出信号EOBを出力するEOB検出部8と、最終のブロ
ックと対応する符号語を二次元符号化テーブル100に
記憶するためのアドレス信号ADeobを発生するEO
B符号用アドレス生成部10と、エスケープ信号ESと
対応する符号語を二次元符号化テーブル100に記憶す
るためのアドレス信号ADesを発生するエスケープ符
号用アドレス生成部10と、エスケープ信号ESがアク
ティブレベルのときはエスケープ符号用アドレス生成部
10からのアドレス信号ADesを、最終ブロック検出
信号EOBがアクティブレベルのときは符号用アドレス
生成部9からのアドレス信号ADeobを、エスケープ
信号ES及び最終ブロック検出信号EOBが共にインア
クティブレベルのときはマルチプレクサ6からのアドレ
ス信号ADを選択して出力する選択回路11とを設けた
構成となっている。
In addition to the first and second embodiments shown in FIGS. 1 and 3, this embodiment outputs an active level final block detection signal EOB when the final block of the encoding processing unit is detected. EOB detecting unit 8 and EO for generating an address signal ADeob for storing the code word corresponding to the final block in the two-dimensional encoding table 100.
The B code address generation unit 10, the escape code address generation unit 10 for generating the address signal ADes for storing the code word corresponding to the escape signal ES in the two-dimensional encoding table 100, and the escape signal ES are at the active level. , The address signal ADes from the escape code address generation unit 10 and the address signal ADeob from the code address generation unit 9 when the final block detection signal EOB is at the active level, the escape signal ES and the final block detection signal EOB. When both are at the inactive level, a selection circuit 11 for selecting and outputting the address signal AD from the multiplexer 6 is provided.

【0050】例えば、第1の実施例及び第2の実施例に
おいて、二次元符号化テーブル100の未使用領域であ
る(0000010)番地にエスケープ符号語”000
001”を記憶し、同様に、未使用領域の(00000
11)番地にEOB符号語”10”を記憶する。エスケ
ープ符号用アドレス生成部10は、このエスケープ符号
語を記憶するアドレス”0000010”を出力する回
路であり、また、EOB符号用アドレス生成部9は、E
OB符号語を記憶するアドレス”0000011”を出
力する回路である。
For example, in the first and second embodiments, the escape code word "000" is assigned to the unused area (0000010) of the two-dimensional encoding table 100.
001 ”is stored, and similarly, the unused area (000000
11) The EOB code word "10" is stored in the address. The escape code address generation unit 10 is a circuit that outputs an address “0000010” that stores this escape code word, and the EOB code address generation unit 9 is E
This is a circuit that outputs an address "0000011" that stores an OB code word.

【0051】エスケープ信号ESがアクティブレベルの
ときは、エスケープ符号用アドレス生成部10から出力
されるアドレス”0000010”のアドレス信号AD
esが選択回路11により選択され出力される。これに
より、二次元符号化テーブル100よりエスケープ符号
語”00001”を読み出すことができる。また、最終
ブロック検出信号EOBがアクティブレベルのときは、
EOB符号用アドレス生成部9から出力されるアドレ
ス”0000011”のアドレス信号ADeobが選択
回路11により選択され出力される。これより、二次元
符号化テーブル100よりEOB符号語”10”を読み
出すことができる。さらにエスケープ信号ES及び最終
ブロック検出信号EOBがインアクティブレベルの場合
は、第1の実施例または第2の実施例で説明したマルチ
プレクサ6からのアドレス信号ADが選択回路11から
出力される。
When the escape signal ES is at the active level, the address signal AD of the address "0000010" output from the escape code address generator 10 is output.
es is selected by the selection circuit 11 and output. As a result, the escape code word “00001” can be read from the two-dimensional encoding table 100. When the final block detection signal EOB is at the active level,
The address signal ADeob of the address “0000011” output from the EOB code address generation unit 9 is selected by the selection circuit 11 and output. As a result, the EOB codeword “10” can be read from the two-dimensional encoding table 100. Further, when the escape signal ES and the final block detection signal EOB are at the inactive level, the address signal AD from the multiplexer 6 described in the first embodiment or the second embodiment is output from the selection circuit 11.

【0052】この第3の実施例において、第1または第
2の実施例におけるアドレス空間の未使用領域のアドレ
スに特別な意味をもつ符号語を割り振ることで、更に二
次元符号化テーブル100のメモリ領域を有効に使用で
き、特別な意味の符号語に対するハードウェア量を最小
限に抑えることができる利点がある。また、第1または
第2の実施例と同じ経路でこれら符号化のアドレスが生
成できるので、これら符号化のタイミングを同じにする
ことができる利点がある。
In the third embodiment, by assigning a code word having a special meaning to the address of the unused area of the address space in the first or second embodiment, the memory of the two-dimensional encoding table 100 is further increased. There is an advantage that the area can be effectively used and the amount of hardware for a code word having a special meaning can be minimized. Further, since the addresses of these encodings can be generated through the same route as in the first or second embodiment, there is an advantage that the timings of these encodings can be the same.

【0053】[0053]

【発明の効果】以上説明したように本発明は、符号の分
布状態から導き出された必要,十分な個数の一致検出器
及び比較器と、同様に導き出された必要,十分なアドレ
ス数のアドレス信号を発生する手段とを備え、上記一致
検出器の出力信号によりアドレス信号を選択し、上記一
致検出器及び比較器の出力信号によりエスケープ信号を
発生する構成としたので、回路規模及び二次元符号化テ
ーブルのメモリ容量を小さくすることができ、かつハー
ドウェアにより直接処理できるので、リアルタイムの高
速処理ができる効果がある。
As described above, according to the present invention, the necessary and sufficient number of coincidence detectors and comparators derived from the distribution state of codes and the address signals of the necessary and sufficient number of addresses similarly derived are provided. And a means for generating an output signal of the coincidence detector, and an escape signal is generated by the output signals of the coincidence detector and the comparator. Since the memory capacity of the table can be reduced and the processing can be performed directly by hardware, there is an effect that high-speed processing in real time can be performed.

【0054】また、エスケープ符号語やEOB符号語等
の特定の符号語を二次元符号化テーブルの空き領域に記
憶するためのアドレス信号を成生して選択出力すること
により、二次元符号化テーブルのメモリ領域を更に有効
利用することができ、かつ特定の符号語も同一の経路で
出力することができるので、これら符号語に対するハー
ドウェア量を最小限に抑えることができるという効果も
ある。
Further, by generating and selecting and outputting an address signal for storing a specific code word such as an escape code word or an EOB code word in an empty area of the two-dimensional coding table, the two-dimensional coding table is generated. Since the memory area can be further effectively used and a specific code word can be output through the same path, there is an effect that the amount of hardware for these code words can be minimized.

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

【図1】本発明の第1の実施例を示す回路図である。FIG. 1 is a circuit diagram showing a first embodiment of the present invention.

【図2】図1の実施例の出力アドレス信号のデータフォ
ーマット図である。
FIG. 2 is a data format diagram of an output address signal of the embodiment of FIG.

【図3】本発明の第2の実施例を示す回路図である。FIG. 3 is a circuit diagram showing a second embodiment of the present invention.

【図4】図3に示された実施例の対象となる二次元符号
化テーブルの符号語の分布状態図である。
FIG. 4 is a distribution diagram of code words of a two-dimensional encoding table which is a target of the embodiment shown in FIG.

【図5】図3に示された実施例の出力アドレス信号のデ
ータフォーマット図である。
5 is a data format diagram of an output address signal of the embodiment shown in FIG.

【図6】本発明の第3の実施例を示すブロック図であ
る。
FIG. 6 is a block diagram showing a third embodiment of the present invention.

【図7】従来の二次元符号化テーブルのアドレス生成回
路を説明するための対象符号語の分布状態図である。
FIG. 7 is a distribution state diagram of target codewords for explaining an address generation circuit of a conventional two-dimensional encoding table.

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

1a〜1g 一致検出器 2a〜2g 大小比較器 3 エスケープ信号発生回路 4,4a 優先順位制御回路 5,5a アドレス発生部 6 マルチプレクサ 7 出力停止回路 8 EOB検出部 9 EOB符号用アドレス生成部 10 エスケープ符号用アドレス生成部 11 選択回路 100 二次元符号化テーブル 51,51a 識別アドレス発生回路 G31〜G37,G41〜G46 論理ゲート 1a to 1g Match detector 2a to 2g Large / small comparator 3 Escape signal generating circuit 4, 4a Priority control circuit 5, 5a Address generating unit 6 Multiplexer 7 Output stop circuit 8 EOB detecting unit 9 EOB code address generating unit 10 Escape code Address generation unit 11 selection circuit 100 two-dimensional encoding table 51, 51a identification address generation circuit G31 to G37, G41 to G46 logic gate

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 事象Aの値をx、事象Bの値をy(x,
yは正の整数)とし、前記xの1からS(SはS+lo
2 S<Pを満足する最大の整数、Pは正の整数)まで
の各整数に対しx+log2 y≦P、前記yの1から前
記Sまでの各整数に対しy+log2 x≦Pをそれぞれ
満足する範囲の前記x及びyの各組とそれぞれ対応する
符号語をそれぞれ対応するアドレスに記憶する二次元符
号化テーブルのアドレス生成回路であって、入力された
x,yそれぞれが1から前記Sまでの整数と一致したと
きアクティブレベルとなる一致検出信号をその整数と対
応してそれぞれ出力する複数の一致検出器と、入力され
たyが前記xの1から前記Sまでの各整数に対しそれぞ
れx+log2 y≦Pを満足するときアクティブレベル
となる比較結果信号を前記xの1から前記Sまでの各整
数と対応してそれぞれ出力する複数の第1の比較器と、
入力されたxが前記yの1から前記Sまでの各整数に対
しそれぞれy+log2 x≦Pを満足するときアクティ
ブレベルとなる比較結果信号を前記yの1から前記Sま
での各整数と対応してそれぞれ出力する複数の第2の比
較器と、前記一致検出信号のそれぞれと対応する前記比
較結果信号との組のうちに共にアクティブレベルのもの
が1組も含まれないときアクティブレベルのエスケープ
信号を出力するエスケープ信号発生部と、前記x,yの
1から前記Sまでの各整数をそれぞれ識別するための識
別アドレスを発生する識別アドレス発生回路を備え前記
xの各識別アドレスと入力されたyの所定のビット、及
び前記yの各識別アドレスと入力されたxの所定のビッ
トとを前記P+1ビットに結合してそれぞれアドレス信
号として出力するアドレス発生部と、前記一致検出信号
のx側及びy側の両方にアクティブレベルのものがある
ときは何れか一方をマスクして他方をそのまま出力しそ
れ以外のときは両方をそのまま出力する優先順位制御部
と、この優先順位制御部からのアクティブレベルの一致
検出信号により対応する前記識別アドレスを含むアドレ
ス信号を選択し出力するマルチプレクサとを有すること
を特徴とする二次元符号化テーブルのアドレス生成回
路。
1. The value of event A is x, and the value of event B is y (x,
y is a positive integer, and 1 to S of x (S is S + lo)
g 2 S <P is a maximum integer, P is a positive integer, x + log 2 y ≦ P for each integer, and y + log 2 x ≦ P for each integer from 1 to S of y above. An address generation circuit of a two-dimensional encoding table for storing codewords respectively corresponding to the respective sets of x and y in a satisfying range at corresponding addresses, wherein each of x and y inputted is from 1 to S. To a plurality of coincidence detectors that output a coincidence detection signal that becomes an active level when they coincide with an integer of up to, and the input y is for each integer from 1 to S of the above x. a plurality of first comparators that respectively output a comparison result signal that becomes an active level when x + log 2 y ≦ P is satisfied, corresponding to each integer from 1 to S of x;
When the input x satisfies y + log 2 x ≦ P for each integer from 1 to S of the above y, the comparison result signal which becomes an active level corresponds to each integer from 1 to the above S of y. Of the plurality of second comparators that respectively output each of the coincidence detection signals and the comparison result signal corresponding to each of the coincidence detection signals do not include any one of the active level, the active level escape signal. And an identification address generation circuit for generating an identification address for identifying each integer from 1 to S of x and y and an escape signal generator for outputting y Predetermined bits of x, and each identification address of y and the input predetermined bits of x are combined with the P + 1 bit and output as address signals. When there is an active level on both the dress generation section and the x side and the y side of the coincidence detection signal, one of them is masked and the other is output as it is, and otherwise, both are output as they are. An address generation circuit for a two-dimensional encoding table, comprising a control unit and a multiplexer for selecting and outputting an address signal including the corresponding identification address in response to an active level coincidence detection signal from the priority control unit. .
【請求項2】 事象Aの値をx、事象Bの値をy(x,
yは正の整数)とし、前記xの1からS(Sは2(P-S)
−1≧Q−log2 Sを満足する最大の整数、P,Qは
正の整数)までの各整数に対しx+log2 y≦P、及
び前記yの1からR(Rは2(Q-R) −1≧P−log2
Rを満足する最大の整数)までの各整数に対しy+lo
2 x≦Qをそれぞれ満足する範囲の前記x及びyの各
組とそれぞれ対応する符号語をそれぞれ対応するアドレ
スに記憶する二次元符号化テーブルのアドレス生成回路
であって、入力されたxが1から前記Sまでの整数と一
致したとき、及び入力されたyが1から前記Rまでの整
数と一致したときアクティブレベルとなる一致検出信号
をそれら整数と対応してそれぞれ出力する複数の一致検
出器と、入力されたyが前記xの1から前記Sまでの各
整数に対しそれぞれx+log2 y≦Pを満足するとき
アクティブレベルとなる比較結果信号を前記xの1から
前記Sまでの各整数と対応してそれぞれ出力する複数の
第1の比較器と、入力されたxが前記yの1から前記R
までの各整数に対しそれぞれy+log2 x≦Qを満足
するときアクティブレベルとなる比較結果信号を前記y
の1から前記Rまでの各整数と対応してそれぞれ出力す
る複数の第2の比較器と、前記一致検出信号のそれぞれ
と対応する前記比較結果信号との組のうちに共にアクテ
ィブレベルのものが1組も含まれないときアクティブレ
ベルのエスケープ信号を出力するエスケープ信号発生回
路と、前記xの1から前記Sまで及び前記yの1から前
記Rまでの各整数をそれぞれ識別するための識別アドレ
スを発生する識別アドレス発生回路を備え前記xの各識
別アドレスと入力されたyの所定のビット、及び前記y
の各識別アドレスと入力されたxの所定のビットとを前
記P,Qの少なくとも大きい方+1ビットに結合してア
ドレス信号として出力するアドレス発生部と、前記一致
検出信号のx側及びy側の両方にアクティブレベルのも
のがあるときは何れか一方をマスクして他方をそのまま
出力しそれ以外のときは両方をそのまま出力する優先順
位制御部と、この優先順位制御部からのアクティブレベ
ルの一致検出信号により対応する前記識別アドレスを含
むアドレス信号を選択し出力するマルチプレクサとを有
することを特徴とする二次元符号化テーブルのアドレス
生成回路。
2. The value of event A is x, the value of event B is y (x,
y is a positive integer, and x is 1 to S (S is 2 (PS)
X + log 2 y ≦ P for each integer up to the maximum integer satisfying −1 ≧ Q−log 2 S, P and Q are positive integers, and 1 to R of y (R is 2 (QR) − 1 ≧ P-log 2
Y + lo for each integer up to the maximum integer that satisfies R)
An address generation circuit of a two-dimensional encoding table, which stores codewords corresponding respectively to the respective pairs of x and y in the range satisfying g 2 x ≦ Q at corresponding addresses, wherein the input x is A plurality of match detections that respectively output a match detection signal that becomes an active level when the input y matches the integers from 1 to S and when the input y matches the integers from 1 to R. And a comparison result signal that becomes an active level when the input y satisfies x + log 2 y ≦ P for each integer from 1 to S of the above x, and each integer from 1 to the above S of the above x A plurality of first comparators which respectively output in correspondence with the above, and the input x is from 1 of the y to the R
For each integer up to y + log 2 x ≦ Q, the comparison result signal that becomes the active level is y
Of the plurality of second comparators respectively corresponding to the respective integers from 1 to R and the comparison result signal corresponding to each of the coincidence detection signals, the one having the active level is selected. An escape signal generation circuit that outputs an active level escape signal when no set is included, and an identification address for identifying each integer from 1 of x to S and 1 of R to y And an identification address generating circuit for generating each identification address of x, a predetermined bit of y input, and y
An address generator for combining each identification address and the input predetermined bit of x with at least the larger one of P and Q + 1 and outputting as an address signal, and an x-side and a y-side of the coincidence detection signal. When both have active levels, one of them is masked and the other is output as it is. Otherwise, both are output as is. An address generation circuit for a two-dimensional encoding table, comprising: a multiplexer that selects and outputs an address signal including the corresponding identification address according to a signal.
【請求項3】 アクティブレベルのエスケープ信号によ
りマルチプレクサの出力信号の前記二次元符号化テーブ
ルへの供給を停止する出力停止回路を設けた請求項1ま
たは2記載の二次元符号化テーブルのアドレス生成回
路。
3. The address generation circuit of the two-dimensional encoding table according to claim 1, further comprising an output stop circuit for stopping the supply of the output signal of the multiplexer to the two-dimensional encoding table by the escape signal of the active level. .
【請求項4】 符号化処理単位の最終のブロックを検出
したときアクティブレベルの最終ブロック検出信号を出
力する最終ブロック検出部と、最終のブロックと対応す
る符号語を二次元符号化テーブルに記憶するためのアド
レス信号を発生する最終ブロック符号用アドレス生成部
と、前記最終ブロック検出信号がアクティブレベルのと
きは前記最終ブロック符号用アドレス生成部からのアド
レス信号を、インアクティブレベルのときはマルチプレ
クサからのアドレス信号を選択して出力する選択回路と
を設けた請求項1または2記載の二次元符号化テーブル
のアドレス生成回路。
4. A final block detector that outputs an active level final block detection signal when a final block of an encoding processing unit is detected, and a code word corresponding to the final block is stored in a two-dimensional encoding table. For generating an address signal for the final block code, and an address signal from the final block code address generator when the final block detection signal is at the active level, and from the multiplexer when the inactive level. The address generation circuit of the two-dimensional encoding table according to claim 1, further comprising a selection circuit that selects and outputs the address signal.
【請求項5】 エスケープ信号と対応する符号語を二次
元符号化テーブルに記憶するためのアドレス信号を発生
するエスケープ符号用アドレス生成部と、前記エスケー
プ信号がアクティブレベルのときは前記エスケープ信号
用アドレス生成部からのアドレス信号を、インアクティ
ブレベルのときはマルチプレクサからのアドレス信号を
選択して出力する選択回路とを設けた請求項1または2
記載の二次元符号化テーブルのアドレス生成回路。
5. An escape code address generator that generates an address signal for storing a code word corresponding to an escape signal in a two-dimensional encoding table, and the escape signal address when the escape signal is at an active level. 3. A selection circuit for selecting and outputting the address signal from the multiplexer when the address signal from the generator is at the inactive level.
Address generation circuit of the described two-dimensional encoding table.
JP31861693A 1993-02-03 1993-12-17 Address generation circuit for two-dimensional encoding table Expired - Fee Related JP2998532B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31861693A JP2998532B2 (en) 1993-02-03 1993-12-17 Address generation circuit for two-dimensional encoding table

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP5-16013 1993-02-03
JP1601393 1993-02-03
JP31861693A JP2998532B2 (en) 1993-02-03 1993-12-17 Address generation circuit for two-dimensional encoding table

Publications (2)

Publication Number Publication Date
JPH06291678A true JPH06291678A (en) 1994-10-18
JP2998532B2 JP2998532B2 (en) 2000-01-11

Family

ID=26352258

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31861693A Expired - Fee Related JP2998532B2 (en) 1993-02-03 1993-12-17 Address generation circuit for two-dimensional encoding table

Country Status (1)

Country Link
JP (1) JP2998532B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011527540A (en) * 2008-07-11 2011-10-27 フラウンホッファー−ゲゼルシャフト ツァ フェルダールング デァ アンゲヴァンテン フォアシュンク エー.ファオ Method for encoding symbols, method for decoding symbols, method for transmitting symbols from transmitter to receiver, encoder, decoder and system for transmitting symbols from transmitter to receiver

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011527540A (en) * 2008-07-11 2011-10-27 フラウンホッファー−ゲゼルシャフト ツァ フェルダールング デァ アンゲヴァンテン フォアシュンク エー.ファオ Method for encoding symbols, method for decoding symbols, method for transmitting symbols from transmitter to receiver, encoder, decoder and system for transmitting symbols from transmitter to receiver

Also Published As

Publication number Publication date
JP2998532B2 (en) 2000-01-11

Similar Documents

Publication Publication Date Title
CA1217868A (en) Apparatus for detecting and correcting errors in product codes for error correction in digital information data transmission or recording systems
EP0245621B1 (en) Compression of multilevel signals
RU2154350C2 (en) Method and system of coding, method and system for decoding
KR0138971B1 (en) Huffman code decoder
US5594435A (en) Permutation-based data compression
US4591829A (en) Run length code decoder
US5404138A (en) Apparatus for decoding variable length codes
JP2635750B2 (en) Priority determination device
JPH0851370A (en) Device and method for encoding
JPH06291678A (en) Address generating circuit for two-dimensional encoding table
US5914680A (en) Data encoding method and apparatus and data decoding method and apparatus
JP2003087575A (en) Image display apparatus
US5553257A (en) Address generating circuit of a two-dimensional coding table
JP3003894B2 (en) Variable length decoder
US4897652A (en) Method of coding numbers in binary form
KR100841311B1 (en) Image Compression Method for Motion Compensation Based Image Decoding
JP2809161B2 (en) Predictive coding device
JPS58170280A (en) Decoding system of mh code
JP3855376B2 (en) Image encoding device
JP2526783B2 (en) Region shape encoding / decoding method
EP0487064B1 (en) Address generating circuit and CD-ROM device using the same
CN110046159B (en) Bank account storage method and device, computer equipment and storage medium
JP2757716B2 (en) Huffman code decoding circuit
JPS6276931A (en) Data compressor
JP2594766B2 (en) Data compression method and data compression method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19991005

LAPS Cancellation because of no payment of annual fees