JPH06205391A - Data compander - Google Patents

Data compander

Info

Publication number
JPH06205391A
JPH06205391A JP36089392A JP36089392A JPH06205391A JP H06205391 A JPH06205391 A JP H06205391A JP 36089392 A JP36089392 A JP 36089392A JP 36089392 A JP36089392 A JP 36089392A JP H06205391 A JPH06205391 A JP H06205391A
Authority
JP
Japan
Prior art keywords
data
output
adder
serial
shifter
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
JP36089392A
Other languages
Japanese (ja)
Inventor
Toru Watanabe
亨 渡邉
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP36089392A priority Critical patent/JPH06205391A/en
Publication of JPH06205391A publication Critical patent/JPH06205391A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 (修正有) 【目的】 小さな回路規模で高速にデータの圧縮伸張を
行なうことが可能なデータ圧縮伸張装置を実現する。 【構成】 DCT演算係数を簡単な整数比に変えたシリ
アル回路により構成し、パラレル−シリアル変換装装置
から出力したデータに対して一次元のDCT演算又は逆
DCT演算をシリアル演算の形で施すデータ変換演算装
置140を設け、データ変換演算装置140のステージ
IIのeven側は係数を簡単な整数比に近似してDCT
シリアル演算を行ない、フリップフロップを有しないア
ダー(サブトラクタ)を含むシリアル演算器142a〜
142dから構成し、odd側もDCT演算式をそのま
まハードウェア化したシリアル回路を基に、複数段の加
減算を一度に行なうシリアル回路160から構成する。
(57) [Summary] (Modified) [Purpose] To realize a data compression / expansion device capable of high-speed data compression / expansion with a small circuit scale. [Data] Data configured by a serial circuit in which the DCT operation coefficient is changed to a simple integer ratio, and one-dimensional DCT operation or inverse DCT operation is performed on the data output from the parallel-serial conversion device in the form of serial operation. The conversion calculation device 140 is provided, and the stage of the data conversion calculation device 140 is provided.
On the even side of II, the coefficient is approximated to a simple integer ratio and the DCT
Serial arithmetic unit 142a which performs serial arithmetic operation and includes an adder (subtractor) having no flip-flop
142d, and the odd side is also composed of a serial circuit 160 that performs addition / subtraction of a plurality of stages at once based on a serial circuit in which the DCT arithmetic expression is directly implemented as hardware.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像データの圧縮処理
等に用いられるデータ圧縮伸張装置に係り、詳細には小
さな回路規模でデータ圧縮を行うことが可能なデータ圧
縮伸張装置に
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data compression / expansion device used for image data compression processing, and more particularly to a data compression / expansion device capable of performing data compression with a small circuit scale.

【0002】関する。[0002] Related.

【従来の技術】ISDNやCD−ROMを前提とした画
像の高能率符号化技術において、DCT(Discrete Cos
ine Transform:離散コサイン変換)が高能率符号化技
術の主流になりつつある。このDCTに限らず、高能率
符号化して画素当りの平均ビット数を減らすと、画像の
品質は落ち、圧縮率を上げると、画質の劣化を引き起こ
す。例えば、現行の標準テレビ信号を1.5Mビット/
秒に圧縮した場合に問題となるのは、輪郭部分の劣化と
DCTで処理するブロック単位(例えば8×8画素)に
発生するブロック歪である。逆変換して画素を再生する
ときに、ブロック内のDCT出力をすべて線形和するこ
とになるが、8×8画素から成るブロックのDCT出力
64個のうち、一つでも情報損失があると、ブロック内
全体の再生画素に劣化が生じる。
2. Description of the Related Art In the high-efficiency image coding technique based on ISDN and CD-ROM, DCT (Discrete Cos.
ine Transform: Discrete Cosine Transform) is becoming the mainstream of high-efficiency coding technology. Not limited to this DCT, if the high-efficiency encoding is performed to reduce the average number of bits per pixel, the image quality deteriorates, and if the compression rate is increased, the image quality deteriorates. For example, the current standard television signal is 1.5 Mbit /
The problem in the case of compressing in seconds is the deterioration of the contour portion and the block distortion occurring in the block unit (eg 8 × 8 pixels) processed by DCT. When the inverse conversion is performed to reproduce the pixels, the DCT outputs in the block are all linearly summed. However, if there is information loss even in one of the 64 DCT outputs of the block including 8 × 8 pixels, The reproduced pixels in the entire block are deteriorated.

【0003】ここで、DCT変換は、直交変換の一つで
あり、カールネン・レーベ変換と並んでエネルギの集中
度の最も高い変換法といわれるものである。
Here, the DCT transform is one of the orthogonal transforms, and is called a transform method having the highest energy concentration degree along with the Karnen-Loeve transform.

【0004】いま、信号f(j) (j=0、1、…、
N−1)の一次元のDCT変換による結果F(u)
(u=0、1、…、N−1)は数1で定義される。
Now, the signal f (j) (j = 0, 1, ...,
N-1) result F (u) by one-dimensional DCT transformation
(U = 0, 1, ..., N−1) is defined by Equation 1.

【0005】[0005]

【数1】 また、逆DCT変換は、数2で定義される。[Equation 1] Also, the inverse DCT transform is defined by Equation 2.

【0006】[0006]

【数2】 このようなDCT変換を画像に対して施すことにより、
エネルギ集中が得られることから、エネルギの多い成分
のみを符号化することが可能となり、これにより画像デ
ータの圧縮を行なうようにしている。
[Equation 2] By applying such DCT conversion to an image,
Since the energy concentration can be obtained, it is possible to encode only the component having a large amount of energy, thereby compressing the image data.

【0007】ところで、上記DCTを有するデータ圧縮
伸張装置に限らず、通常のデータ圧縮伸張装置では、数
値列に対し、データ変換(FFT,DCT等)を施し、
その後に量子化を行っている。
By the way, not only the data compression / expansion device having the DCT described above, but also an ordinary data compression / expansion device performs data conversion (FFT, DCT, etc.) on a numerical sequence,
After that, quantization is performed.

【0008】図26は従来のデータ圧縮伸張装置のブロ
ック図である。10はデータ記憶装置であり、データ記
憶装置10には圧縮を施そうとする2次元データがパラ
レルデータの形で蓄えられている。データ記憶装置10
に蓄えられているデータ(例えば、画像データ)はパラ
レル−シリアル変換装置11に入力され、パラレル−シ
リアル変換装置11はデータ記憶装置10から読み込ん
だパラレルデータをシリアルデータに変換してデータ変
換演算装置12に出力する。データ変換演算装置12は
パラレル−シリアル変換装置11から出力されたデータ
に対して一次元のDCT演算をシリアル演算の形で施
す。シリアルDCT演算されたデータはシリアル−パラ
レル変換装置13に出力され、シリアル−パラレル変換
装置13はデータ変換演算装置12から出力されたシリ
アルデータをパラレルデータに変換してデータ記憶装置
10に書き込む。上記の例は一次元の場合であり、画像
等の二次元の場合には図27に示すように上述した処理
を縦横(順不同)二次元に施す。また、量子化装置14
は、データ記憶装置10に蓄えられたデータ変換演算後
のデータに対して、例えば図28に示すような量子化テ
ーブルの値で除算をする(あるいは、逆数の乗算)こと
によって量子化演算を行なう。上記各部の動作はデータ
圧縮伸張装置の全体を制御する制御装置15によって制
御される。
FIG. 26 is a block diagram of a conventional data compression / decompression device. A data storage device 10 stores two-dimensional data to be compressed in the form of parallel data in the data storage device 10. Data storage device 10
The data (for example, image data) stored in the parallel-serial conversion device 11 is input to the parallel-serial conversion device 11. The parallel-serial conversion device 11 converts the parallel data read from the data storage device 10 into serial data, and a data conversion arithmetic device. Output to 12. The data conversion calculation device 12 performs one-dimensional DCT calculation on the data output from the parallel-serial conversion device 11 in the form of serial calculation. The data subjected to the serial DCT operation is output to the serial-parallel conversion device 13, and the serial-parallel conversion device 13 converts the serial data output from the data conversion operation device 12 into parallel data and writes the parallel data in the data storage device 10. The above example is a one-dimensional case, and in the case of a two-dimensional image or the like, as shown in FIG. In addition, the quantizer 14
Performs the quantization operation by dividing the data after the data conversion operation stored in the data storage device 10 by the value of the quantization table as shown in FIG. 28 (or by multiplication of the reciprocal). . The operation of each of the above parts is controlled by the control device 15 which controls the entire data compression / decompression device.

【0009】上記データ変換演算装置12により実行さ
れるシリアルDCT演算を以下に説明するシリアル演算
によって行なう。
The serial DCT operation executed by the data conversion operation device 12 is performed by the serial operation described below.

【0010】先ず、基本的な考え方としてCOS係数の値
を、数3に示すように2のべき(すなわち、2のn乗)
の和又は差で表すようにする。数3に示すように数値を
2のべきで表現する理由はシリアルの回路による演算を
実現するためである。すなわち、図29において、符号
21は、クロック入力信号に応答し、入力信号を1クロ
ック遅れた出力とするFF(フリップフロップ)からな
る1タイムディレイユニットを表すものとすると、1タ
イムディレイユニット21を通って出てくる出力と1タ
イムディレイユニット21を通らずに直接出てくる出力
とを比較すると前者が後者より1クロック分遅い。ここ
で、1タイムディレイユニット21はシフトレジスタが
並んだようなものであり、例えばLSB側から順にデー
タが入力されているものとすると、1クロック遅く出て
くるということは2倍されたことを意味する。同様に、
8倍しようとする場合には上記1タイムディレイユニッ
ト21を図30に示すように3つ並べて3クロック遅ら
せるようにすれば23で8倍となる。本実施例では上記
ユニットを組み合わせて加減算を行なうことでシリアル
演算回路を実現する。
First, as a basic idea, the value of the COS coefficient is a power of 2 (ie, 2 to the n-th power) as shown in Equation 3.
Be expressed as the sum or difference of. The reason why the numerical value is expressed as a power of 2 as shown in Expression 3 is to realize the operation by the serial circuit. That is, in FIG. 29, reference numeral 21 represents a 1-time delay unit composed of an FF (flip-flop) that outputs an input signal delayed by 1 clock in response to a clock input signal. Comparing the output that comes out through and the output that comes out directly without passing through one time delay unit 21, the former is one clock later than the latter. Here, the 1-time delay unit 21 is like a shift register arranged side by side. For example, assuming that data is sequentially input from the LSB side, the fact that data comes out 1 clock later means that it is doubled. means. Similarly,
When it is desired to multiply by 8 times, if three 1 time delay units 21 are arranged and delayed by 3 clocks as shown in FIG. 30, 2 3 is multiplied by 8. In this embodiment, a serial operation circuit is realized by combining the above units and performing addition and subtraction.

【0011】図29は乗算部のシリアル演算構成を示し
たものであり、図29は入力データを38倍する場合の
例である。先ず、38を数4の形に分解する。
FIG. 29 shows the serial operation configuration of the multiplication unit, and FIG. 29 shows an example in which the input data is multiplied by 38 times. First, 38 is decomposed into the form of Equation 4.

【0012】数4において、ある数値xを32倍すると
いうことは、xを左(MBS方向)へ5回シフトするこ
とであり、図31では、5段の1タイムディレイユニッ
ト271を通過させることによって実現される。また、
数4で示される2×(2+1)は、実際には、6である
から、4+2と表してもよい。しかし、図31のフルア
ダー22が1タイムディレイユニットを持っており、入
力データを2倍するため、2×(2+1)という表現形
式が採用できる。この図31のユニット自体の出力は7
6倍となるが、次段の取り込みタイミングを1クロック
遅らせることにより38倍を実現している。
In Expression 4, multiplying a certain value x by 32 means shifting x to the left (MBS direction) 5 times, and in FIG. Is realized by Also,
Since 2 × (2 + 1) represented by the equation 4 is actually 6, it may be expressed as 4 + 2. However, since the full adder 22 of FIG. 31 has one time delay unit and doubles the input data, the expression format of 2 × (2 + 1) can be adopted. The output of the unit itself in FIG. 31 is 7
It is 6 times, but 38 times is realized by delaying the capture timing of the next stage by one clock.

【0013】以下、データ圧縮伸張装置を図面に従い説
明する。
A data compression / decompression device will be described below with reference to the drawings.

【0014】図32は、上記シリアルDCT演算を実行
するためのデータ変換演算装置12の回路構成を示す図
であり、I〜IVの各ステージから構成される。
FIG. 32 is a diagram showing a circuit configuration of the data conversion arithmetic unit 12 for executing the serial DCT arithmetic operation, which is composed of stages I to IV.

【0015】図32において、31はステージIの演算
回路、32はステージIIの演算回路、33はステージII
Iの演算回路、34はステージIVの演算回路であり、こ
れらのステージI〜IVの演算回路31〜34はそれぞれ
スイッチ35〜39を介して直列に接続するように構成
されている。この場合、DCT演算処理では、図32に
示すように演算回路31〜34の順で直列接続され、ま
た逆DCT演算の処理では、スイッチ35〜39の切換
え動作により演算回路34〜31の順で直接接続される
ようになっている。そして、入力端子40に与えられる
入力データに対するDCTまたは逆DCT演算結果は出
力端子41から出力されるようになる。この場合、入力
データは、シリアル8系統よりなっている。
In FIG. 32, 31 is a stage I arithmetic circuit, 32 is a stage II arithmetic circuit, and 33 is a stage II.
The I arithmetic circuit, 34 is a stage IV arithmetic circuit, and these arithmetic circuits 31 to 34 of stages I to IV are configured to be connected in series via switches 35 to 39, respectively. In this case, in the DCT operation processing, the operation circuits 31 to 34 are connected in series in the order shown in FIG. It is designed to be directly connected. Then, the DCT or inverse DCT calculation result for the input data given to the input terminal 40 is outputted from the output terminal 41. In this case, the input data consists of 8 serial systems.

【0016】図33は、ステージIの演算回路31の回
路構成を示す図である。演算回路31は上述したシリア
ル演算を実行するものであり、加算器1a、1b、1
c、1dと減算器1e、1f、1g、1hから構成され
ている。
FIG. 33 is a diagram showing a circuit configuration of the arithmetic circuit 31 of the stage I. The arithmetic circuit 31 executes the above-described serial operation, and includes the adders 1a, 1b, 1
c, 1d and subtractors 1e, 1f, 1g, 1h.

【0017】図34は、ステージIIの演算回路32の回
路構成を示す図である。演算回路32は上述したシリア
ル演算を実行するものであり、シフタ2a〜2fと、CO
S(4/16)π演算(数1参照)を行なうCOS(4/16)π演算器
2g、2hから構成されている。ここで、上記シフタ2
a〜2fは、それぞれ10個のフリップフロップを直列
接続したものであり、入力されたデータを所定時間遅延
して出力するようになっている。また、上記COS(4/16)
π演算器2gは、COS(N/16)πのN=4の場合の近似式1
81=(16-1)×(2+1)×4+1の演算を実現したものであり、
加算器2g1、この加算器2g1の出力をシフトする4個
のフリップフロップからなるシフタ2g2、このシフタ
2g2の出力より加算器2g1からの出力を減算する減算
器2g3、この減算器2g3の出力をシフトする1個のフ
リップフロップからなるシフタ2g4、このシフタ2g4
の出力と上記減算器2g3の出力を加算する加算器2g
5、この加算器2g5の出力と上記加算器2g1の出力を
加算する加算器2g6から構成されている。また、上記C
OS(4/16)π演算器2hもCOS(N/16)πのN=4の場合の
近似式181=(16-1)×(2+1)×4+1の演算を実現したもので
あり、減算器2h1、この減算器2h1の出力をシフトす
る4個のフリップフロップからなるシフタ2h2、この
シフタ2h2の出力より減算器2h1の出力を減算する減
算器2h3、この減算器2h3の出力をシフトする1個の
フリップフロップからなるシフタ2h4、このシフタ2
h4の出力と減算器2h3の出力を加算する加算器2h
5、この加算器2h5の出力と減算器2h1の出力を加算
する加算器2h6から構成されている。
FIG. 34 is a diagram showing a circuit configuration of the arithmetic circuit 32 of stage II. The arithmetic circuit 32 executes the above-described serial arithmetic operation, and includes shifters 2a to 2f and CO
It is composed of COS (4/16) π calculators 2g and 2h that perform S (4/16) π calculation (see the equation 1). Here, the shifter 2
Each of a to 2f is composed of 10 flip-flops connected in series, and is designed to delay input data by a predetermined time and output it. Also, the above COS (4/16)
The π calculator 2g is an approximate expression 1 in the case of N = 4 of COS (N / 16) π
81 = (16-1) × (2 + 1) × 4 + 1 is realized,
Adder 2g1, shifter 2g2 consisting of four flip-flops that shift the output of this adder 2g1, subtractor 2g3 that subtracts the output of adder 2g1 from the output of this shifter 2g2, shifts the output of this subtractor 2g3 Shifter 2g4 consisting of one flip-flop, this shifter 2g4
2g for adding the output of the above and the output of the above subtractor 2g3
5, it is composed of an adder 2g6 for adding the output of the adder 2g5 and the output of the adder 2g1. Also, above C
The OS (4/16) π calculator 2h also realizes the approximate formula 181 = (16-1) × (2 + 1) × 4 + 1 when COS (N / 16) π is N = 4. And a subtracter 2h1, a shifter 2h2 composed of four flip-flops for shifting the output of the subtractor 2h1, a subtractor 2h3 for subtracting the output of the subtractor 2h1 from the output of the shifter 2h2, an output of the subtractor 2h3 Shifter 2h4 consisting of one flip-flop that shifts
Adder 2h that adds the output of h4 and the output of subtractor 2h3
5, it is composed of an adder 2h6 for adding the output of the adder 2h5 and the output of the subtractor 2h1.

【0018】図35は、ステージIIIの演算回路33の
回路構成を示す図である。演算回路33は上述したシリ
アル演算を実行するものであり、加算器3a,3b、減
算器3c,3dおよび加算器3e,3f、減算器3g,
3hから構成されている。
FIG. 35 is a diagram showing the circuit configuration of the arithmetic circuit 33 in stage III. The arithmetic circuit 33 executes the above-mentioned serial operation, and includes the adders 3a and 3b, the subtractors 3c and 3d, the adders 3e and 3f, and the subtractor 3g.
It consists of 3h.

【0019】図36は、ステージIVの演算回路34の回
路構成を示す図である。演算回路34は上述したシリア
ル演算を実行するものであり、各COS係数演算を行なうC
OS(4/16)π演算器4a,4b、COS(2/16)πおよびCOS(6
/16)π演算器4c,4d、COS(1/16)πおよびCOS(7/16)
π演算器4e,4f、COS(3/16)πおよびCOS(5/16)π演
算器4g,4hから構成されている。この場合、上記CO
S(4/16)π演算器4a,4bは、上述したステージIIの
演算回路32のCOS(4/16)π演算器2g,2hと同様で
あり、ここでは添字2を4に代えて同符号を付すること
で説明は省略する。
FIG. 36 is a diagram showing a circuit configuration of the arithmetic circuit 34 of the stage IV. The arithmetic circuit 34 executes the above-described serial operation, and C for executing each COS coefficient operation.
OS (4/16) π calculators 4a, 4b, COS (2/16) π and COS (6
/ 16) π calculators 4c, 4d, COS (1/16) π and COS (7/16)
It is composed of π calculators 4e and 4f, COS (3/16) π and COS (5/16) π calculators 4g and 4h. In this case, the CO
The S (4/16) π calculators 4a and 4b are the same as the COS (4/16) π calculators 2g and 2h of the arithmetic circuit 32 of the stage II described above, and here, the subscript 2 is replaced by 4. The explanation is omitted by attaching the reference numerals.

【0020】また、上記COS(2/16)πおよびCOS(6/16)π
演算器4cは、COS(N/16)πのN=2の場合の近似式23
6.5=4×(64-4-1)+1/2およびN=6の場合の98=2×(32+1
6+1)の演算を実現するもので、このうちCOS(2/16)πの
演算を実現するものは、7個のフリップフロップからな
るシフタ4c1、シフタ4c1の出力からシフタ4c1の
第3番目のフリップフロップの出力を減算する減算器4
c2、減算器4c2の出力からシフタ4c1の第2番目の
フリップフロップの出力を減算する減算器4c3、減算
器4c3の出力と加算器3aの出力を加算する加算器4
c4からなり、また、COS(6/16)π演算を実現するもの
は、シフタ4c1の第6番目のフリップフロップの出力
とシフタ4c1の第5番目のフリップフロップの出力を
加算する加算器4c5、加算器4c5の出力とシフタ4c
1の第2番目のフリップフロップの出力を加算する加算
器4c6からなっている。一方、上記COS(2/16)πおよび
COS(6/16)π演算器4dは、上述した演算回路4cと同
様であり、ここでは添字cをdに代えて同符号を付する
ことで説明は省略する。そして、加算器4c4と加算器
4d6の出力を加算器4c7で加算し、また、加算器4c
6の出力から加算器4d4の出力を減算器4d7で減算す
るようにしている。
Further, the above COS (2/16) π and COS (6/16) π
The computing unit 4c uses the approximate expression 23 in the case of N = 2 of COS (N / 16) π.
6.5 = 4 × (64-4-1) +1/2 and 98 = 2 × (32 + 1 when N = 6
6 + 1), and among these, the one that realizes COS (2/16) π is the shifter 4c1 consisting of seven flip-flops, and the third output of shifter 4c1 from the output of shifter 4c1. Subtractor 4 for subtracting the output of the flip-flop of
c2, a subtracter 4c3 for subtracting the output of the second flip-flop of the shifter 4c1 from the output of the subtractor 4c2, and an adder 4 for adding the output of the subtractor 4c3 and the output of the adder 3a.
c4, which realizes COS (6/16) π operation, is an adder 4c5 for adding the output of the sixth flip-flop of shifter 4c1 and the output of the fifth flip-flop of shifter 4c1, Output of adder 4c5 and shifter 4c
It is composed of an adder 4c6 for adding the outputs of the 1st and 2nd flip-flops. On the other hand, COS (2/16) π and
The COS (6/16) π calculator 4d is similar to the above-described calculation circuit 4c, and here, the subscript c is replaced with d and the same reference numeral is given, and the description thereof is omitted. Then, the outputs of the adder 4c4 and the adder 4d6 are added by the adder 4c7, and the adder 4c is added.
The output of the adder 4d4 is subtracted from the output of 6 by the subtractor 4d7.

【0021】一方、上記COS(1/16)πおよびCOS(7/16)π
演算器4eは、COS(N/16)πのN=1の場合の近似式251
=(128-2)×2-1およびN=7の場合の50=2×(16+8+1)の
演算を実現するもので、このうちCOS(1/16)πの演算を
実現するものは、7個のフリップフロップからなるシフ
タ4e1、シフタ4e1の出力からシフタの第1番目のフ
リップフロップの出力を減算する減算器4e2、減算器
4e2の出力からステージIIIの演算回路33の加算器3
eの出力を減算する減算器4e3からなり、COS(7/16)π
演算を実現するもので、シフタ4e1の第3番目と第4
番目のフリップフロップの出力を加算する加算器4e
4、加算器4e4、の出力とシフタ4e1の第1番目のフ
リップフロップの出力を加算する加算器4e5からなっ
ている。また、COS(1/16)πおよびCOS(7/16)π演算器4
fは、上述した演算器4eと同様であり、ここでは添字
eをfに代えて同符号を付することで説明は省略する。
そして、減算器4e3と加算器4f5の出力を加算器4e
6で加算し、この加算器4e6の出力をシフタ4e7を介
して発生する。また加算器4e5の出力から減算器4f3
の出力を減算器4f6で減算し、シフタ4f7を介して発
生するようにしている。
On the other hand, the above COS (1/16) π and COS (7/16) π
The calculator 4e is an approximate expression 251 in the case of N = 1 in COS (N / 16) π.
= (128-2) × 2-1 and 50 = 2 × (16 + 8 + 1) when N = 7, of which COS (1/16) π is calculated. A shifter 4e1 composed of seven flip-flops, a subtractor 4e2 for subtracting the output of the first flip-flop of the shifter from the output of the shifter 4e1, and an adder of the arithmetic circuit 33 of the stage III from the output of the subtractor 4e2. Three
It consists of a subtractor 4e3 that subtracts the output of e, and COS (7/16) π
The third and fourth shifters 4e1 that realize the operation.
Adder 4e for adding the outputs of the th flip-flops
4, adder 4e4, and adder 4e5 for adding the output of the first flip-flop of shifter 4e1. Also, COS (1/16) π and COS (7/16) π calculator 4
f is the same as the above-described arithmetic unit 4e, and here, the subscript e is replaced with f and the same reference numeral is given, and the description thereof is omitted.
Then, the outputs of the subtracter 4e3 and the adder 4f5 are added to the adder 4e.
Addition is performed by 6 and the output of the adder 4e6 is generated via the shifter 4e7. Also, the output of the adder 4e5 is subtracted from the subtractor 4f3
Is subtracted by the subtractor 4f6 and generated through the shifter 4f7.

【0022】また、上記COS(5/16)πおよびCOS(3/16)π
演算器4gは、COS(N/16)πのN=5の場合の近似式142
=2×(64+8-1)およびN=3の場合の近似式213=(2+1)×
(64+8-1)の演算を実現するもので、このうちCOS(5/16)
πの演算を実現するものは、5個のフリップフロップか
らなるシフタ4g1、シフタ4g1の出力とシフタ4g1
の第2番目のフリップフロップの出力を加算する加算器
4g2、加算器4g2の出力からステージIIIの演算回路
3の減算器3gの出力を減算する減算器4g3、減算器
4g3の出力をシフトする2個のフリップフロップから
なるシフタ4g4からなり、COS(3/16)πの演算を実現す
るものは、上述の構成に加えて減算器4g3とシフタ4
g4の第1番目のフリップフロップの出力を加算する加
算器4g5からなっている。また、COS(5/16)πおよびCO
S(3/16)π演算器4hは、上述した演算器4gと同様で
あり、ここでは添字gをhに代えて同符号を付すること
で説明は省略する。そして、シフタ4g4と加算器4h5
の出力を加算器4g6で加算し、また、加算器4g5の出
力からシフタ4h4の出力を減算器4h6で減算するよう
にしている。
Further, the above COS (5/16) π and COS (3/16) π
The computing unit 4g uses the approximate expression 142 when N = 5 of COS (N / 16) π.
= 2 × (64 + 8-1) and N = 3 approximate expression 213 = (2 + 1) ×
It realizes (64 + 8-1) operation, of which COS (5/16)
What realizes the calculation of π is a shifter 4g1 composed of five flip-flops, the output of the shifter 4g1 and the shifter 4g1.
Adder 4g2 for adding the outputs of the second flip-flops, and subtractor 4g3 for subtracting the output of subtractor 3g of arithmetic circuit 3 of stage III from the output of adder 4g2, and shifting the outputs of subtractor 4g3 2 In addition to the above-mentioned configuration, a subtracter 4g3 and a shifter 4 are used to realize the COS (3/16) π operation.
It is composed of an adder 4g5 for adding the output of the first flip-flop of g4. Also, COS (5/16) π and CO
The S (3/16) π calculator 4h is similar to the calculator 4g described above, and here, the subscript g is replaced with h and the same reference numeral is given, and the description thereof is omitted. And shifter 4g4 and adder 4h5
Are added by the adder 4g6, and the output of the shifter 4h4 is subtracted by the subtractor 4h6 from the output of the adder 4g5.

【0023】このように構成された図33〜図36に示
すステージI〜IVの演算回路31〜34は、DCT演算
処理の場合には図37に示すように接続され、逆DCT
演算処理の場合には図38に示すように接続される。ま
た、図39〜図41は図37中の各ユニットを示す図で
あり、図39はフリップフロップ(FF)からなる1タ
イムディレイユニット21を、図40は加算(a+b)
を行なう1タイムディレイユニットフルアダー(内部Ca
rry Type)22を、図41は減算(a−b)を行なう1
タイムディレイユニットフルサブトラクタ(内部Borrow
type)23をそれぞれ示している。
The arithmetic circuits 31 to 34 of the stages I to IV shown in FIGS. 33 to 36, which are configured as described above, are connected as shown in FIG.
In the case of arithmetic processing, the connections are made as shown in FIG. 39 to 41 are diagrams showing each unit in FIG. 37. FIG. 39 shows a 1-time delay unit 21 including a flip-flop (FF), and FIG. 40 shows addition (a + b).
1 time delay unit full adder (internal Ca
rry Type) 22 and FIG. 41 performs subtraction (ab) 1
Time delay unit full subtractor (internal Borrow
type) 23, respectively.

【0024】次に、このように構成したデータ変換演算
装置12の動作を説明する。
Next, the operation of the thus-configured data conversion arithmetic unit 12 will be described.

【0025】まず、DCT演算処理の場合を述べると、
ここでは、ステージIの演算回路31において加算器1
aに入力データf(0)とf(7)、加算器1bに入力
データf(3)、f(4)、加算器1cに入力データf
(1)、f(6)、加算器1dに入力データf(2)、
f(5)、減算器1eに入力データf(0)、f
(7)、減算器1fに入力データf(3)、f(4)、
減算器1gに入力データf(1)、f(6)、減算器1
hに入力データf(2)、f(5)が入力される。これ
により加算器1aは入力データf(0)とf(7)の加
算結果を出力し、加算器1bは入力データf(3)とf
(4)の加算結果を出力し、加算器1cは入力データf
(1)とf(6)の加算結果f(1)+f(6)を出力
し、加算器1dは入力データf(2)とf(5)の加算
結果を出力するようになる。また、減算器1eは入力デ
ータf(0)とf(7)の減算結果を出力し、減算器1
fは入力データf(3)とf(4)の減算結果を出力
し、減算器1gは入力データf(1)とf(6)の減算
結果を出力し、減算器1hは入力データf(2)とf
(5)の減算結果を出力するようになる。この場合の入
力データは、図42に示すように7bitと1bitのサイン
ビットの8bitのデータからなっている。また、出力デ
ータは、図42のIに示すように7+1bitと1bitのサ
インビットからなっている。ここで、出力データが7+
1bitになるのは、加算器1a〜1dでの加算結果を考
慮したからである。
First, the case of the DCT calculation processing will be described.
Here, the adder 1 in the arithmetic circuit 31 of the stage I is
Input data f (0) and f (7) in a, input data f (3) and f (4) in adder 1b, and input data f in adder 1c
(1), f (6), input data f (2) to the adder 1d,
f (5), input data f (0), f to the subtractor 1e
(7), input data f (3), f (4) to the subtractor 1f,
Input data f (1), f (6), subtracter 1 to subtractor 1g
Input data f (2) and f (5) are input to h. Thereby, the adder 1a outputs the addition result of the input data f (0) and f (7), and the adder 1b outputs the input data f (3) and f (7).
The addition result of (4) is output, and the adder 1c outputs the input data f
The addition result f (1) + f (6) of (1) and f (6) is output, and the adder 1d outputs the addition result of the input data f (2) and f (5). Further, the subtractor 1e outputs the subtraction result of the input data f (0) and f (7), and the subtracter 1e
f outputs the subtraction result of the input data f (3) and f (4), the subtractor 1g outputs the subtraction result of the input data f (1) and f (6), and the subtractor 1h outputs the input data f ( 2) and f
The subtraction result of (5) is output. The input data in this case consists of 8-bit data of 7-bit and 1-bit sign bit as shown in FIG. The output data consists of 7 + 1 bit and 1 bit sign bit as shown by I in FIG. Here, the output data is 7+
The reason why it becomes 1 bit is that the addition results of the adders 1a to 1d are taken into consideration.

【0026】次いで、ステージIIの演算回路32に進
む。この演算回路32では、ステージIの演算回路31
の加算器1aの出力がシフタ2aに与えられ、以下、同
様にして加算器1bの出力がシフタ2c、加算器1cの
出力がシフタ2b、加算器1dの出力がシフタ2d、減
算器1eの出力がシフタ2e、減算器1fの出力がシフ
タ2f、減算器1g、1hの出力が加算器2g1および
減算器2h1にそれぞれ与えられる。この場合、図42
の入力に示す入力データに対しシフタ2a〜2eからは
同図IIに示すように10個のフリップフロップの動作だ
け遅れて出力データを発生する。つまり、シフタ2aは
加算器1aの出力を、シフタ2bは加算器1cの出力
を、シフタ2cは加算器1bの出力を、シフタ2dは加
算器1dの出力を、シフタ2eは加算器1eの出力を、
シフタ2fは加算器1fの出力を、それぞれ所定時間遅
延して出力するようになる。
Next, the operation circuit 32 of the stage II is proceeded to. In this arithmetic circuit 32, the arithmetic circuit 31 of stage I
The output of the adder 1a is given to the shifter 2a, and thereafter, the output of the adder 1b is the shifter 2c, the output of the adder 1c is the shifter 2b, the output of the adder 1d is the shifter 2d, and the output of the subtracter 1e. The output of the shifter 2e and the output of the subtracter 1f are given to the shifter 2f and the outputs of the subtractors 1g and 1h, respectively, to the adder 2g1 and the subtractor 2h1. In this case, FIG.
The output data is generated from the shifters 2a to 2e with a delay of 10 flip-flops as shown in FIG. That is, the shifter 2a outputs the output of the adder 1a, the shifter 2b outputs the output of the adder 1c, the shifter 2c outputs the output of the adder 1b, the shifter 2d outputs the output of the adder 1d, and the shifter 2e outputs the output of the adder 1e. To
The shifter 2f delays the output of the adder 1f by a predetermined time and outputs the delayed output.

【0027】一方、上記COS(4/16)π演算器2g、2h
では、COS(N/16)πのN=4の場合の近似式181=(16-1)
×(2+1)×4+1の演算を実行する。この場合、演算器2g
には、減算器1g、1hの出力が入力データとして与え
られ、加算器2g1で、これら入力データを加算する。
そして、この加算器2g1の出力をシフタ2g2に与え、
シフタ2g2より得られた出力より加算器2g1の出力を
減算器2g3で減算すると(16-1)が求められ、次いで、
減算器2g3の出力とシフタ2g4の出力を加算器2g5
で加算することで(16-1)×(2+1)が求められる。そし
て、この加算器2g5の出力と加算器2g1の出力を加算
器2g6で加算することによりCOS(N/16)πのN=4の場
合の近似値(16-1)×(2+1)×4+1が求められることにな
る。この場合、図42の入力に示す入力データに対して
COS(4/16)π演算器2gでは、同図IIに示すタイミング
で上述の演算結果を出力データとして発生するようにな
る。
On the other hand, the COS (4/16) π calculator 2g, 2h
Then, the approximate expression 181 = (16-1) when COS (N / 16) π is N = 4
The operation of × (2 + 1) × 4 + 1 is executed. In this case, calculator 2g
The outputs of the subtractors 1g and 1h are given as input data to the input terminal, and the input data are added by the adder 2g1.
Then, the output of the adder 2g1 is given to the shifter 2g2,
Subtracting the output of the adder 2g1 by the subtractor 2g3 from the output obtained from the shifter 2g2 yields (16-1).
The output of the subtractor 2g3 and the output of the shifter 2g4 are added to the adder 2g5
(16-1) × (2 + 1) is obtained by adding in. Then, by adding the output of the adder 2g5 and the output of the adder 2g1 by the adder 2g6, the approximate value of COS (N / 16) π when N = 4 (16-1) × (2 + 1) × 4 + 1 will be required. In this case, for the input data shown in the input of FIG.
The COS (4/16) π calculator 2g generates the above-mentioned calculation result as output data at the timing shown in FIG.

【0028】次いで、ステージIIIの演算回路33に進
む。この演算回路33では、ステージIIの演算回路32
のシフタ2a、2cの出力が加算器3aおよび減算器3
cに与えられ、同様にしてシフタ2b、2dの出力が加
算器3bおよび減算器3dに与えられ、さらにシフタ2
eとCOS(4/16)π演算部2gの出力が加算器3eおよび
減算器3gに、シフタ2fとCOS(4/16)π演算器2hの
出力が加算器3fおよび減算器3hに与えられる。これ
により、加算器3aは、ステージIIの演算回路32のシ
フタ2aと2cの出力を加算した結果を出力し、加算器
3bはステージIIの演算回路32のシフタ2bと2dの
出力を加算した結果を出力し、減算器3cはステージII
の演算回路32のシフタ2aの出力からシフタ2cの出
力を減算した結果を出力し、減算器3dはステージIIの
演算回路32のシフタ2bの出力からシフタ2dの出力
を減算した結果を出力するようになる。また、加算器3
eはステージIIの演算回路2のシフタ2eと演算器2g
の出力を加算した結果を出力し、加算器3fはステージ
IIの演算回路2のシフタ2fと加算器2hの出力を加算
した結果を出力し、加算器3gはステージIIの演算回路
32のシフタ2eの出力から演算器2gの出力を減算し
た結果を出力し、減算器3hはステージIIの演算回路3
2のシフタ2fの出力から演算器2hの出力を減算した
結果を出力するようになる。この場合、図42の入力デ
ータに対して各加算器3a、3b、3e、3fおよび減
算器3c、3d、3g、3hでは、同図IVに示すタイミ
ングで、それぞれの演算結果を出力するようになる。
Next, the operation circuit 33 of the stage III is proceeded to. In this arithmetic circuit 33, the arithmetic circuit 32 of stage II
Outputs of the shifters 2a and 2c of the adder 3a and the subtractor 3
c, and the outputs of the shifters 2b and 2d are similarly given to the adder 3b and the subtractor 3d.
e and the output of the COS (4/16) π calculator 2g are given to the adder 3e and the subtractor 3g, and the outputs of the shifter 2f and COS (4/16) π calculator 2h are given to the adder 3f and the subtractor 3h. . As a result, the adder 3a outputs the result of adding the outputs of the shifters 2a and 2c of the arithmetic circuit 32 of the stage II, and the adder 3b outputs the result of adding the outputs of the shifters 2b and 2d of the arithmetic circuit 32 of the stage II. And the subtractor 3c outputs the stage II
Output the result of subtracting the output of the shifter 2c from the output of the shifter 2a of the arithmetic circuit 32, and the subtractor 3d outputs the result of subtracting the output of the shifter 2d from the output of the shifter 2b of the arithmetic circuit 32 of stage II. become. Also, adder 3
e is a shifter 2e of the arithmetic circuit 2 of the stage II and an arithmetic unit 2g
Output the result of adding the outputs of the
The output of the shifter 2f of the arithmetic circuit 2 of II and the output of the adder 2h are added, and the adder 3g outputs the result of subtracting the output of the arithmetic unit 2g from the output of the shifter 2e of the arithmetic circuit 32 of stage II. , The subtractor 3h is the arithmetic circuit 3 of the stage II.
The result of subtracting the output of the calculator 2h from the output of the second shifter 2f is output. In this case, the adders 3a, 3b, 3e, 3f and the subtractors 3c, 3d, 3g, 3h output the respective calculation results at the timing shown in FIG. Become.

【0029】次いで、ステージIVの演算回路34に進
む。この演算回路34では、ステージIIIの演算回路3
3の加算器3a、3bの出力がCOS(4/16)π演算器4
a、4bに与えられ、同様にして減算器3c、3dがCO
S(2/16)πおよびCOS(6/16)π演算器4c、4dに各別に
与えられ、加算器3e、3fの出力がCOS( 1/16)πおよ
びCOS(7/16)π演算器4e、4fに各別に与えられ、減
算器3g、3hの出力がCOS(5/16)πおよびCOS(3/16)π
演算器4g、4hに各別に与えられる。この場合、図4
2の入力に示す入力データに対してCOS(4/16)π演算器
4a、4bでは、COS(N/16)πのN=4の場合の近似値
(6-1)×(2+1)×4+1の演算を実行し、同図IVに示すタイ
ミングで、その演算結果を出力データF(0)、F
(4)として発生する。同様にして、COS(2/16)πおよ
びCOS(6/16)π演算器4c、4dについてもCOS(N/16)π
N=2の場合の近似値4×(64-4-1)+1/2およびCOS(N/16)
πのN=6の場合の近似値2×(32+16+1)の演算を実行
し、同図IVに示すタイミングで、その演算結果を出力デ
ータF(2)、F(6)として発生し、COS(1/16)πお
よびCOS(7/16)π演算器4e、4fについてもCOS(N/16)
πのN=1の場合の近似値251=(128-2)×2-1 およびCOS
(N/16)πのN=7の場合の近似値2×(16+8+1)の演算を
実行し、同図IVに示すタイミングで、その演算結果を出
力データF(1)、F(7)として発生し、さらに、CO
S(5/16)πおよびCOS(3/16)π演算器4g、4hについて
もCOS(N/16)πのN=5の場合の近似値2×(64+8-1)およ
びCOS(N/16)πのN=3の場合の近似値(2+1)×(64+8-
1)の演算を実行し、同図IVに示すタイミングで、その演
算結果を出力データF(5)、F(3)として発生する
ようになる。
Next, the operation circuit 34 of stage IV is proceeded to. In this arithmetic circuit 34, the arithmetic circuit 3 of stage III
The outputs of the adders 3a and 3b of COS (4/16) π calculator 4
a and 4b, and in the same way, the subtractors 3c and 3d are
S (2/16) π and COS (6/16) π calculators 4c and 4d are separately provided, and the outputs of the adders 3e and 3f are COS (1/16) π and COS (7/16) π calculation. The output of the subtracters 3g and 3h are respectively given to the converters 4e and 4f, and the outputs of the subtracters 3g and 3h are COS (5/16) π and COS (3/16) π.
It is separately given to the arithmetic units 4g and 4h. In this case,
In the COS (4/16) π calculators 4a and 4b for the input data shown in the 2nd input, the approximate value in the case of N = 4 of COS (N / 16) π
The calculation of (6-1) × (2 + 1) × 4 + 1 is executed, and the calculation result is output data F (0), F at the timing shown in FIG.
It occurs as (4). Similarly, the COS (2/16) π and COS (6/16) π calculators 4c and 4d also have COS (N / 16) π.
Approximate value when N = 2 4 × (64-4-1) +1/2 and COS (N / 16)
Approximate value 2 × (32 + 16 + 1) when π is N = 6 is executed, and the operation result is generated as output data F (2), F (6) at the timing shown in FIG. However, COS (1/16) π and COS (7/16) π calculators 4e and 4f are also COS (N / 16)
Approximate value of π for N = 1 251 = (128-2) × 2-1 and COS
Approximate value 2 × (16 + 8 + 1) when N = 7 of (N / 16) π is executed, and the operation result is output data F (1), F at the timing shown in FIG. It occurs as (7), and further CO
Also for S (5/16) π and COS (3/16) π calculators 4g and 4h, the approximate value of COS (N / 16) π for N = 5 is 2 × (64 + 8-1) and COS ( Approximate value of N / 16) π when N = 3 (2 + 1) × (64 + 8-
The operation 1) is executed, and the operation result is generated as output data F (5) and F (3) at the timing shown in FIG.

【0030】以上の説明は、DCT演算処理の場合であ
るが、図38に示す逆DCT演算処理の場合も上述した
場合と同様である。
Although the above description is for the case of the DCT operation processing, the case of the inverse DCT operation processing shown in FIG. 38 is the same as the above case.

【0031】この場合は入力データがステージIVの演算
回路34〜ステージIの演算回路31の順で与えられる
ようになる。
In this case, the input data is given in the order of the stage IV arithmetic circuit 34 to the stage I arithmetic circuit 31.

【0032】図42は、データ変換演算装置12の入力
から出力までのタイミングチャートであり、ステージI
の演算回路31〜ステージIVの演算回路34の動作を総
合した場合のタイミングチャートを示している。同図
中、I、II、III、IVは図37における各ステージI、I
I、III、IVの出力を示している。図42では、次データ
との処理の重なりを避けるように考慮してあり全体とし
て8bitのデータを入力した場合、1ライン当りの処理
周期は28クロック必要とする。この場合の処理は、入
力データ8bitのDCT処理の場合であるが、入力デー
タのビット数が異なる場合や逆DCT処理の場合は、1
データ当りの処理周期も変化するようになる。
FIG. 42 is a timing chart from the input to the output of the data conversion arithmetic unit 12, showing the stage I
7 is a timing chart when the operations of the arithmetic circuit 31 to the arithmetic circuit 34 of stage IV are integrated. 37, I, II, III, and IV are the stages I and I in FIG.
The outputs of I, III, and IV are shown. In FIG. 42, consideration is given to avoid overlapping of processing with the next data, and when 8-bit data is input as a whole, the processing cycle per line requires 28 clocks. The processing in this case is the case of the DCT processing of the input data 8 bits, but it is 1 when the number of bits of the input data is different or the inverse DCT processing.
The processing cycle per data also changes.

【0033】このように、ステージI〜ステージIVから
なるフローグラフに基づいてディスクリートコサイン変
換処理を実行するものにおいて、各ステージをシリアル
処理するように構成することにより、入力データが各ス
テージの演算回路により順次シリアル処理されるように
なり、従来のメモリに対してレジスタ、シフタおよび加
減算器からなる演算部を並列的に設けたものに比べ、回
路規模を小さくすることができるとともに、高速処理を
実現することができる。
As described above, in the case where the discrete cosine transform process is executed on the basis of the flow graph consisting of the stages I to IV, by configuring each stage to be serially processed, the input data is the arithmetic circuit of each stage. With this, serial processing can be performed sequentially, and the circuit scale can be reduced and high-speed processing can be achieved compared to a conventional memory in which an arithmetic unit including a register, a shifter, and an adder / subtractor is provided in parallel. can do.

【0034】[0034]

【発明が解決しようとする課題】しかしながら、このよ
うなシリアルDCT演算処理を行なうデータ圧縮伸張装
置にあっては、DCT演算式をそのままシリアル処理回
路上で実現する構成となっていたため、DCT演算を並
列的に行なうDCT演算装置に比べて回路規模は大幅に
小さくすることはできるものの、図37に示すようにフ
リップフロップ(FF)で126個、演算器を構成する
1bit Add(Sub)unitが 62個必要となり、未だ回路規
模が大きいという欠点があった。また、フリップフロッ
プ(FF)等を1段通るごとに1クロック分遅延するの
で演算段数を短くするようにして高速化を図りたいとい
う要望がある。
However, in the data compression / expansion device for performing such serial DCT arithmetic processing, since the DCT arithmetic expression is directly realized on the serial processing circuit, the DCT arithmetic operation is performed. Although the circuit scale can be significantly reduced as compared with a DCT arithmetic unit that operates in parallel, as shown in FIG. 37, 126 flip-flops (FF) are provided, and a 1-bit Add (Sub) unit constituting the arithmetic unit is 62 There is a drawback that the circuit scale is still large because individual pieces are required. Further, since each flip-flop (FF) or the like is delayed by one clock each time it passes through, there is a demand to reduce the number of operation stages to increase the speed.

【0035】そこで本発明は、小さな回路規模で高速に
データの圧縮伸張を行なうことが可能なデータ圧縮伸張
装置を提供することを目的としている。
Therefore, an object of the present invention is to provide a data compression / expansion device capable of high-speed data compression / expansion with a small circuit scale.

【0036】[0036]

【課題を解決するための手段】請求項1記載の発明は、
上記目的達成のため、所定のデータを記憶するデータ記
憶手段と、前記データ記憶手段から出力されたデータに
対して所定の係数に基づいてシリアル演算によりデータ
変換演算を実行するデータ変換演算手段と、前記データ
変換演算手段によるデータ変換後のデータに対して量子
化演算を実行する量子化手段と、前記データ記憶手段、
前記データ変換演算手段及び前記量子化手段を制御をす
る制御手段とを備えたデータ圧縮伸張装置であって、前
記データ変換演算手段は、複数段の加減算を同一クロッ
クで一度に行なうようにしている。
The invention according to claim 1 is
To achieve the above object, data storage means for storing predetermined data, data conversion operation means for performing data conversion operation by serial operation on the data output from the data storage means based on a predetermined coefficient, Quantization means for performing a quantization operation on the data after the data conversion by the data conversion operation means, and the data storage means,
A data compression / expansion device comprising: a data conversion operation means and a control means for controlling the quantization means, wherein the data conversion operation means performs addition / subtraction of a plurality of stages at once with the same clock. .

【0037】請求項2記載の発明は、所定のデータを記
憶するデータ記憶手段と、前記データ記憶手段のデータ
をパラレルデータからシリアルデータに変換するパラレ
ル−シリアル変換手段と、前記パラレル−シリアル変換
手段から出力されたデータに対して所定の係数に基づい
てシリアル演算によりデータ変換演算を実行するデータ
変換演算手段と、前記データ変換手段から出力されるシ
リアルデータをパラレルデータに変換し、前記データ記
憶手段に書き込むシリアル−パラレル変換手段と、前記
データ変換演算手段によるデータ変換後のデータに対し
て量子化演算を実行する量子化手段と、前記データ記憶
手段、前記パラレル−シリアル変換手段、前記データ変
換演算手段、前記シリアル−パラレル変換手段及び前記
量子化手段を制御をする制御手段とを備えたデータ圧縮
伸張装置であって、前記データ変換演算手段は、複数段
の加減算を同一クロックで一度に行なうようにしてい
る。
According to a second aspect of the present invention, data storage means for storing predetermined data, parallel-serial conversion means for converting data in the data storage means from parallel data to serial data, and the parallel-serial conversion means. Data conversion operation means for executing data conversion operation by serial operation on the data output from the data conversion means, and serial data output from the data conversion means to parallel data, and the data storage means Serial-parallel conversion means for writing into the memory, quantization means for performing a quantization operation on the data converted by the data conversion operation means, the data storage means, the parallel-serial conversion means, the data conversion operation Means, said serial-parallel conversion means and said quantization means A data compression and decompression and control means for, the data conversion computation means is a subtraction of a plurality of stages to perform a time at the same clock.

【0038】請求項3記載の発明は、所定のデータを記
憶するデータ記憶手段と、前記データ記憶手段から出力
されたデータに対して所定の係数に基づいてシリアル演
算によりデータ変換演算を実行するデータ変換演算手段
と、前記データ変換演算手段によるデータ変換後のデー
タに対して量子化演算を実行する量子化手段と、前記デ
ータ記憶手段、前記データ変換演算手段及び前記量子化
手段を制御をする制御手段とを備えたデータ圧縮伸張装
置であって、前記データ変換演算手段の係数を整数の比
に置き換え、該整数の比に置き換えることにより生じた
ゲインの変化を、前記量子化手段により調整するように
するとともに、複数段の加減算を同一クロックで一度に
行なうようにしている。
According to a third aspect of the present invention, data storage means for storing predetermined data, and data for executing data conversion operation on the data output from the data storage means by serial operation based on a predetermined coefficient. Transform operation means, quantization means for performing a quantization operation on the data after data conversion by the data conversion operation means, control for controlling the data storage means, the data conversion operation means and the quantization means A data compression / expansion device comprising means for replacing the coefficient of the data conversion calculation means with an integer ratio, and adjusting the change in gain caused by the replacement with the integer ratio by the quantization means. In addition, multiple stages of addition and subtraction are performed at the same clock.

【0039】請求項4記載の発明は、所定のデータを記
憶するデータ記憶手段と、前記データ記憶手段から出力
されたデータに対して所定の係数に基づいてシリアル演
算によりデータ変換演算を実行するデータ変換演算手段
と、前記データ変換演算手段によるデータ変換後のデー
タに対して量子化演算を実行する量子化手段と、前記デ
ータ記憶手段、前記データ変換演算手段及び前記量子化
手段を制御をする制御手段とを備えたデータ圧縮伸張装
置であって、前記データ変換演算手段のデータ変換演算
式を展開し、展開した式に従って前記データ変換演算手
段を構成するとともに、複数段の加減算を同一クロック
で一度に行なうようにしている。
According to a fourth aspect of the present invention, data storage means for storing predetermined data, and data for executing data conversion operation on the data output from the data storage means by serial operation based on a predetermined coefficient. Transform operation means, quantization means for performing a quantization operation on the data after data conversion by the data conversion operation means, control for controlling the data storage means, the data conversion operation means and the quantization means A data compression / expansion device comprising means for expanding the data conversion operation expression of the data conversion operation means, configuring the data conversion operation means according to the expanded expression, and adding / subtracting a plurality of stages once with the same clock. I am going to do it.

【0040】請求項5記載の発明は、所定のデータを記
憶するデータ記憶手段と、前記データ記憶手段から出力
されたデータに対して所定の係数に基づいてシリアル演
算によりデータ変換演算を実行するデータ変換演算手段
と、前記データ変換演算手段によるデータ変換後のデー
タに対して量子化演算を実行する量子化手段と、前記デ
ータ記憶手段、前記データ変換演算手段及び前記量子化
手段を制御をする制御手段とを備えたデータ圧縮伸張装
置であって、前記データ変換演算手段の係数を整数の比
に置き換え、該整数の比に置き換えることにより生じた
ゲインの変化を、前記量子化手段により調整するように
するとともに、データ変換演算式を展開し、展開した式
に従って前記データ変換演算手段を構成し、さらに複数
段の加減算を同一クロックで一度に行なうようにしてい
る。
According to a fifth aspect of the present invention, data storage means for storing predetermined data, and data for executing data conversion operation on the data output from the data storage means by serial operation based on a predetermined coefficient. Transform operation means, quantization means for performing a quantization operation on data after data conversion by the data conversion operation means, control for controlling the data storage means, the data conversion operation means, and the quantization means A data compression / expansion device comprising means for replacing the coefficient of the data conversion calculation means with an integer ratio, and adjusting the gain change caused by the replacement with the integer ratio by the quantization means. In addition, the data conversion calculation formula is expanded, the data conversion calculation means is configured according to the expanded formula, and the addition and subtraction of a plurality of stages are made the same. It is to carry out at once in the lock.

【0041】請求項6記載の発明は、所定のデータを記
憶するデータ記憶手段と、前記データ記憶手段から出力
されたデータに対して所定の係数に基づいてシリアル演
算によりデータ変換演算を実行するデータ変換演算手段
と、前記データ変換演算手段によるデータ変換後のデー
タに対して量子化演算を実行する量子化手段と、前記デ
ータ記憶手段、前記データ変換演算手段及び前記量子化
手段を制御をする制御手段とを備えたデータ圧縮伸張装
置であって、前記データ変換演算手段のデータ変換演算
式の係数の値を2のべきで表現するとともに、該係数の
値を2のべきで表現するとき所定以上ビット数が大きく
なる部分について該係数を整数の比に置き換え、該整数
の比に置き換えることにより生じたゲインの変化を、前
記量子化手段により調整するようにするとともに、複数
段の加減算を同一クロックで一度に行なうようにしてい
る。
According to a sixth aspect of the present invention, data storage means for storing predetermined data, and data for executing data conversion operation on the data output from the data storage means by serial operation based on a predetermined coefficient. Transform operation means, quantization means for performing a quantization operation on data after data conversion by the data conversion operation means, control for controlling the data storage means, the data conversion operation means, and the quantization means A data compression / decompression device including means for expressing the coefficient value of the data conversion arithmetic expression of the data conversion arithmetic means as a power of 2, and when the coefficient value is expressed as a power of 2 above a predetermined value. The coefficient is replaced with an integer ratio for a portion where the number of bits is large, and a change in gain caused by replacing the coefficient with the integer ratio is converted by the quantizing means. Together so as to adjust, and the subtraction of the plurality of stages to perform a time at the same clock.

【0042】前記データ変換演算手段は、例えば請求項
7に記載されているように、各入力に所定の係数が表れ
るようにデータ変換演算式を展開し、該展開したデータ
変換演算式の係数部分をシリアル演算する第1のシリア
ル演算部と、該第1のシリアル演算部の出力を加減算し
て該展開したデータ変換演算式の演算を実行する第2の
シリアル演算部とにより構成するようにしてもよく、前
記第1のシリアル演算部は、例えば請求項8に記載され
ているように、前記展開したデータ変換演算式の係数を
2のべきに数値をかけた形で表現するとともに、該係数
を2のべきに数値をかけた形で表現した場合の数値部分
をシリアル演算するシリアル回路により構成するように
してもよく、前記第2のシリアル演算部は、例えば請求
項9に記載されているように、前記第1のシリアル演算
部から出力された数値を加減算して出力する複数の加減
算器により構成され、前記展開したデータ変換演算式の
係数を2のべきに数値をかけた形で表現した場合の2の
べき部分を各加減算器への入力位置により調整するよう
にしてもよい。
The data conversion arithmetic means expands the data conversion arithmetic expression so that a predetermined coefficient appears in each input, as described in claim 7, and the coefficient portion of the expanded data conversion arithmetic expression. Is serially operated, and a second serial operation unit that executes the operation of the expanded data conversion operation expression by adding / subtracting the output of the first serial operation unit is performed. The first serial operation unit may express the coefficient of the expanded data conversion operation expression in the form of multiplying a power of 2 by a numerical value as described in claim 8, and May be configured by a serial circuit that serially calculates the numerical value portion when the numerical value is expressed by a power of 2, and the second serial operation unit is, for example, described in claim 9. As described above, it is configured by a plurality of adder / subtractors that add and subtract the numerical values output from the first serial operation unit and output the added values. The power of 2 in the expression may be adjusted by the input position to each adder / subtractor.

【0043】また、前記データ変換演算手段は、例えば
請求項10に記載されているように、複数段の加減算を
同一クロックで一度に実行するシリアル回路を含んで構
成してもよく、前記データ変換演算手段は、例えば請求
項11に記載されているように、遅延用素子を有しない
加減算器を用いてデータ変換演算を実行するようにして
もよく、さらには、前記データ変換演算手段は、例えば
請求項12に記載されているように、遅延用素子を有す
る加減算器と、遅延用素子を有しない加減算器とからな
るシリアル回路を含んで構成され、該遅延用素子を有す
る加減算器及び遅延用素子を有しない加減算器を用いて
加減算を実行するとともに、該遅延用素子を有する加減
算器の遅延用素子により該シリアル回路のクロックのタ
イミングを合わせるようにしてもよい。また、前記デー
タ変換演算手段は、例えば請求項13に記載されている
ように、シリアル演算を実行するシリアル回路の動作時
間が、供給されたシステムクロックに従って動作するデ
ータ圧縮伸張装置の全体動作時間よりも小さいとき、所
定の範囲内で該シリアル回路を構成する加減算器の段数
を減らすようにしてもよく、前記データ変換演算手段
は、例えば請求項14に記載されているように、シリア
ル演算を実行するシリアル回路の動作時間が、供給され
たシステムクロックに従って動作するデータ圧縮伸張装
置の全体動作時間よりも小さいとき、所定の範囲内で該
シリアル回路を構成する加減算器を遅延用素子を有しな
い加減算器に置き換えるようにしてもよい。
Further, the data conversion calculation means may include a serial circuit for executing addition / subtraction of a plurality of stages at once with the same clock, as described in claim 10, for example. The arithmetic means may perform the data conversion arithmetic operation using an adder / subtractor having no delay element, for example, as described in claim 11, and further, the data conversion arithmetic operation means may perform the data conversion arithmetic operation, for example. 13. An adder / subtractor having a delay element and a delay circuit, comprising a serial circuit including an adder / subtractor having a delay element and an adder / subtractor having no delay element. The addition / subtraction is performed using an adder / subtractor having no element, and the clock timing of the serial circuit is adjusted by the delay element of the adder / subtractor having the delay element. It may be so. Further, for example, the data conversion calculation means may have an operation time of a serial circuit that executes a serial operation from an overall operation time of a data compression / expansion device that operates according to a supplied system clock. When the number is small, the number of stages of the adder / subtractor configuring the serial circuit may be reduced within a predetermined range, and the data conversion calculation means executes the serial calculation as described in claim 14, for example. When the operating time of the serial circuit is smaller than the overall operating time of the data compression / expansion device that operates according to the supplied system clock, the adder / subtractor configuring the serial circuit is added / subtracted without a delay element within a predetermined range. You may replace with a container.

【0044】また、前記データ変換演算手段は、例えば
請求項15に記載されているように、データに対してシ
リアル演算により直交変換を実行する直交変換手段であ
ってもよく、前記データ変換演算手段は、例えば請求項
16に記載されているように、データに対してシリアル
演算により離散コサイン変換(DCT)を実行する離散
コサイン変換手段であってもよい。また、前記データ変
換演算手段は、例えば請求項17に記載されているよう
に、入力されたデータを所定のクロックに応答して順次
移動させるシリアル演算器を含んで構成してもよく、前
記データ変換演算手段の加減算器が有する遅延用素子
は、例えば請求項18に記載されているように、クロッ
クタイミング合わせのためのフリップフロップであって
もよい。また、前記データ変換演算手段は、例えば請求
項19に記載されているように、データ変換演算式の係
数の値を2のべきで表現したシリアル回路により構成
し、該シリアル回路によるシリアル演算によりデータ変
換演算を実行するようにしてもよく、前記データ変換演
算手段は、例えば請求項20に記載されているように、
データ変換演算式の係数の値を2のべきで表現するとと
もに、該係数の値を2のべきで表現するとき所定以上ビ
ット数が大きくなる部分について該係数を整数の比に置
き換えたシリアル回路により構成し、該シリアル回路に
よるシリアル演算によりデータ変換演算を実行するよう
にしてもよい。
Further, the data conversion calculation means may be, for example, an orthogonal conversion means for performing orthogonal conversion on data by serial calculation as described in claim 15, and the data conversion calculation means. May be a discrete cosine transform means for performing a discrete cosine transform (DCT) on the data by a serial operation, for example. Further, the data conversion operation means may be configured to include a serial operation unit that sequentially moves input data in response to a predetermined clock, as described in claim 17, for example. The delay element included in the adder / subtractor of the conversion operation means may be a flip-flop for clock timing adjustment as described in, for example, claim 18. Further, for example, as described in claim 19, the data conversion calculation means is configured by a serial circuit in which the value of the coefficient of the data conversion calculation expression is expressed as a power of 2, and the data is calculated by the serial calculation by the serial circuit. A conversion operation may be executed, and the data conversion operation means is, for example, as described in claim 20,
By a serial circuit in which the value of the coefficient of the data conversion arithmetic expression is expressed by a power of 2, and when the value of the coefficient is expressed by a power of 2, the coefficient is replaced with an integer ratio for a portion where the number of bits becomes larger than a predetermined value. Alternatively, the data conversion operation may be executed by serial operation by the serial circuit.

【0045】また、前記データ変換演算手段で用いられ
るデータ変換演算式は、例えば請求項21に記載されて
いるように、該データ変換演算式の係数を、前記量子化
手段の量子化演算に用いる量子化係数に含ませるように
作成してもよく、前記量子化手段によるゲインの調整
は、例えば請求項22に記載されているように、前記デ
ータ変換演算手段の係数を整数の比に変えることにより
生じたゲイン変化分を吸収させるように構成された量子
化テーブルにより行なわれるものであってもよい。さら
に、前記データ変換演算手段の係数の整数の比への置き
換えは、例えば請求項23に記載されているように、該
係数を整数値に置き換えることにより行なうようにする
ものであってもよい。
Further, as for the data conversion arithmetic expression used in the data conversion arithmetic means, for example, as described in claim 21, the coefficient of the data conversion arithmetic expression is used in the quantization operation of the quantizing means. It may be created so as to be included in the quantized coefficient, and the adjustment of the gain by the quantizing means is performed by changing the coefficient of the data conversion computing means into an integer ratio, for example, as described in claim 22. May be performed by a quantization table configured to absorb the gain change amount caused by. Further, the replacement of the coefficient of the data conversion calculation means with the integer ratio may be performed by replacing the coefficient with an integer value, for example.

【0046】[0046]

【作用】本発明の手段はの作用は次の通りである。The operation of the means of the present invention is as follows.

【0047】請求項1、2、10、11、12、13、
14及び18記載の発明では、シリアル演算によりデー
タ変換演算を実行するデータ変換演算手段において、複
数段の加減算が同一クロックで一度に実行されるように
シリアル回路が構成される。この場合、複数段の加減算
を同一クロックで一度に実行するシリアル回路として
は、例えば遅延用素子(例えば、フリップフロップ)を
有する加減算器と、遅延用素子を有しない加減算器とに
よりシリアル回路が構成されるとともに、これら加減算
器を用いて加減算が行なわれ、クロックのタイミング合
わせはシリアル回路を構成する加減算器の遅延用素子に
より行なわれる。また、例えばシリアル回路の動作時間
が、装置全体動作時間よりも小さいとき、所定の範囲内
で該シリアル回路を構成する加減算器の段数が減らさ
れ、若しくは該シリアル回路を構成する加減算器が遅延
用素子を有しない加減算器に置き換えられてシリアル回
路が構成される。
Claims 1, 2, 10, 11, 12, 13,
In the inventions described in 14 and 18, in the data conversion calculation means for executing the data conversion calculation by the serial calculation, the serial circuit is configured such that addition and subtraction of a plurality of stages are executed at the same clock at one time. In this case, as a serial circuit for executing addition / subtraction of a plurality of stages at once with the same clock, for example, a serial circuit is configured by an adder / subtractor having a delay element (for example, a flip-flop) and an adder / subtractor having no delay element. At the same time, addition / subtraction is performed using these adder / subtractors, and clock timing is adjusted by the delay element of the adder / subtractor constituting the serial circuit. Further, for example, when the operating time of the serial circuit is smaller than the operating time of the entire device, the number of stages of adder / subtractor configuring the serial circuit is reduced within a predetermined range, or the adder / subtractor configuring the serial circuit is used for delaying. A serial circuit is configured by replacing with an adder / subtractor having no element.

【0048】従って、クロックのタイミング合わせのた
めの遅延動作が加減算ごとに行なわれることがなくなる
とともに、加減算器等の段数が減少することによりクロ
ック数を減らして処理速度を向上させることができ、回
路規模を小さくすることができる。
Therefore, the delay operation for clock timing adjustment is not performed for each addition and subtraction, and the number of stages of the adder-subtractor and the like is reduced, so that the number of clocks can be reduced and the processing speed can be improved. The scale can be reduced.

【0049】請求項3及び6記載の発明では、データ変
換演算手段の係数が整数の比に置き換えられ、そのゲイ
ンの変化は量子化手段により調整されるとともに、複数
段の加減算が同一クロックで一度に行なうようにシリア
ル回路が構成される。この場合、データ変換演算式の係
数が、量子化演算に用いる量子化係数に含まれるように
データ変換演算式を作成しておき、このようにして作成
されたデータ変換演算式の係数の値を2のべきで表現し
てシリアル回路が構成されるとともに、このシリアル回
路はさらに複数段の加減算が同一クロックで一度に行な
うシリアル回路(例えば、FFやシリアル演算器の段数
が減らされ、また遅延用素子を有しない加減算器により
構成された回路)により構成される。このとき、該係数
の値を2のべきで表現しようとすれば所定以上ビット数
が大きくなる部分については該係数が整数の比に置き換
えられ、該整数の比に置き換えられることにより生じた
ゲインの変化は量子化手段により調整される。
In the third and sixth aspects of the invention, the coefficient of the data conversion calculation means is replaced with an integer ratio, the change in the gain is adjusted by the quantization means, and addition / subtraction of a plurality of stages is performed once with the same clock. The serial circuit is configured as described below. In this case, the data conversion calculation formula is created so that the coefficient of the data conversion calculation formula is included in the quantized coefficient used for the quantization calculation, and the value of the coefficient of the data conversion calculation formula thus created is set. A serial circuit is formed by expressing it as a power of 2, and this serial circuit further performs addition / subtraction of a plurality of stages at once with the same clock (for example, the number of stages of FFs and serial arithmetic units is reduced, (A circuit configured by an adder / subtractor having no elements). At this time, if an attempt is made to express the value of the coefficient as a power of 2, the coefficient is replaced with an integer ratio in a portion where the number of bits becomes larger than a predetermined value, and the gain generated by the replacement with the integer ratio is changed. The changes are adjusted by the quantizing means.

【0050】従って、単にシリアル回路を実現していた
場合に比べ、回路規模を大幅に小さくすることができる
ことに加え、さらにFFや加減算器等の段数を大幅に減
少させて処理速度を向上させることができ、画像等のデ
ータ圧縮伸張に利用することができる。
Therefore, in comparison with the case where a serial circuit is simply realized, the circuit scale can be greatly reduced, and the number of stages of FF and adder / subtractor can be greatly reduced to improve the processing speed. It can be used for compressing and expanding data such as images.

【0051】請求項4、5、7、8及び9記載の発明で
は、データ変換演算手段のデータ変換演算式を各項毎に
展開し、展開した式に従ってシリアル回路が構成される
とともに、複数段の加減算が同一クロックで一度に行な
うようにシリアル回路が構成される。この場合、展開し
た式に従って構成されるシリアル回路は、例えば各入力
に共通な係数が表れるようにデータ変換演算式を展開し
たときに該係数部分をシリアル演算する第1のシリアル
演算部と、このシリアル演算部の出力を加減算して展開
したデータ変換演算式の演算を実行する第2のシリアル
演算部とにより構成されるとともに、これらシリアル演
算部は複数段の加減算が同一クロックで一度に行なうシ
リアル回路(例えば、FFやシリアル演算器の段数が減
らされ、また遅延用素子を有しない加減算器により構成
された回路)により構成される。
In the inventions described in claims 4, 5, 7, 8 and 9, the data conversion calculation formula of the data conversion calculation means is expanded for each term, and the serial circuit is constructed according to the expanded formula and a plurality of stages are formed. The serial circuit is configured such that addition and subtraction of are performed at the same time with the same clock. In this case, the serial circuit configured according to the expanded formula includes, for example, a first serial arithmetic unit that serially calculates the coefficient portion when the data conversion arithmetic formula is expanded so that a coefficient common to each input appears, The serial operation unit is configured by a second serial operation unit that executes an operation of a data conversion operation expression that is developed by adding and subtracting the output of the serial operation unit, and these serial operation units perform serial addition and subtraction in multiple stages at the same clock. It is configured by a circuit (for example, a circuit configured by an adder / subtractor in which the number of stages of the FF and the serial computing unit is reduced and which does not have a delay element).

【0052】そして、各入力がこのシリアル回路に入力
されると第1のシリアル演算部により各入力をシリアル
演算して係数分を求めておき、このようにして作成され
た係数に対して第2のシリアル演算部が複数段の加減算
を一度に行なって展開したデータ変換演算式の演算が実
行される。
When each input is input to the serial circuit, each input is serially calculated by the first serial calculation unit to obtain a coefficient, and the second coefficient is added to the coefficient thus created. The serial operation unit executes the addition and subtraction of a plurality of stages at once and expands the data conversion operation expression.

【0053】従って、展開したデータ変換演算式に従っ
てシリアル回路を構成することによりシフトレジスタ等
のシリアル回路の段数を減少させてクロック数を減らす
ことができることに加え、さらにFFや加減算器等の段
数を大幅に減少させて処理速度を向上させることがで
き、回路規模を大幅に小さくすることができる。
Therefore, by configuring the serial circuit according to the expanded data conversion arithmetic expression, the number of stages of the serial circuit such as the shift register can be reduced and the number of clocks can be reduced. It is possible to greatly reduce the processing speed and improve the circuit scale.

【0054】請求項5、15、16、17、19、2
0、21、22及び23記載の発明では、データ変換演
算手段の係数が整数の比に置き換えられ、そのゲインの
変化は量子化手段により調整されるとともに、データ変
換演算式を展開し、展開した式に従ってシリアル回路が
構成され、さらに複数段の加減算が同一クロックで一度
に行なうようにシリアル回路が構成される。この場合、
このシリアル回路(例えば、FFやシリアル演算器の段
数が減らされ、また遅延用素子を有しない加減算器によ
り構成された回路)は、例えば展開したデータ変換演算
式の係数を2のべきに数値をかけた形で表現した場合の
数値部分をシリアル演算する第1のシリアル演算部と、
このシリアル演算部から出力された数値を加減算して出
力する複数の加減算器からなる第2のシリアル演算部と
により構成される。
Claims 5, 15, 16, 17, 19, 2
In the inventions described in 0, 21, 22, and 23, the coefficient of the data conversion calculation means is replaced with an integer ratio, and the change in the gain is adjusted by the quantization means, and the data conversion calculation expression is expanded and expanded. The serial circuit is constructed according to the formula, and further, the serial circuit is constructed so that addition and subtraction of a plurality of stages are performed at the same clock. in this case,
This serial circuit (for example, a circuit configured by an adder / subtractor in which the number of stages of FFs and serial arithmetic units is reduced and which does not have a delay element) is, for example, a coefficient of the expanded data conversion arithmetic expression that is a power of 2. A first serial operation unit for performing a serial operation on a numerical part when expressed in a multiplied form,
The second serial operation unit is composed of a plurality of adder / subtractors that add and subtract the numerical values output from the serial operation unit and output the added and subtracted values.

【0055】そして、各入力がこのシリアル回路に入力
されると第1のシリアル演算部により各入力をシリアル
演算して係数分を求め、このようにして作成された係数
に対して第2のシリアル演算部が複数段の加減算を一度
に行なって展開したデータ変換演算式の演算が実行され
る。このとき、展開したデータ変換演算式の係数を2の
べきに数値をかけた形で表現した場合の2のべき部分は
各加減算器への入力位置により調整される。
When each input is input to the serial circuit, each input is serially calculated by the first serial operation unit to obtain a coefficient, and the coefficient thus created is subjected to the second serial operation. The arithmetic operation unit executes the addition and subtraction of a plurality of stages at a time and expands the arithmetic operation of the data conversion arithmetic expression. At this time, when the coefficient of the expanded data conversion arithmetic expression is expressed in a form in which a power of 2 is multiplied by a numerical value, the power of 2 is adjusted by the input position to each adder / subtractor.

【0056】従って、係数を整数の比に置き換え、その
ゲインの変化を量子化手段で調整することにより単にシ
リアル回路を実現していた場合に比べ、回路規模を大幅
に小さくすることができるとともに、展開したデータ変
換演算式に従ってシリアル回路を構成することによりシ
フトレジスタ等のシリアル回路の段数を減少させてクロ
ック数を減らすことができ、さらにこのシリアル回路は
複数段の加減算を一度に行なう構成となっているためF
Fや加減算器等の段数を大幅に減少させて処理速度をよ
り一層向上させることができ、回路規模を大幅に小さく
することができる。
Therefore, the circuit scale can be significantly reduced as compared with the case where the serial circuit is simply realized by replacing the coefficient with an integer ratio and adjusting the change in the gain by the quantizing means. By configuring the serial circuit according to the developed data conversion arithmetic expression, the number of stages of the serial circuit such as the shift register can be reduced and the number of clocks can be reduced. Further, this serial circuit has a configuration in which addition and subtraction of multiple stages are performed at one time. Because F
By significantly reducing the number of stages such as F and adder / subtractor, the processing speed can be further improved, and the circuit scale can be greatly reduced.

【0057】[0057]

【実施例】以下、本発明を図面に基づいて説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings.

【0058】原理説明 (I)先ず、本実施例の基本的な考え方を説明する。図
26に示した従来のデータ圧縮伸張装置では、シリアル
演算によるDCT演算を実現するためバタフライ演算を
そのままシリアル回路上に表わしていた。具体的には、
COS係数値を2のべきで表わすことによって図37に示
すようなシリアルDCT演算回路を実現していたため、
DCT演算式の係数をすべて2のべきで表現しようとす
るとビット数が大きなものとなり、したがって、シリア
ル回路を構成するFF等の段数が大きくなってしまって
いた。
Description of Principle (I) First, the basic concept of this embodiment will be described. In the conventional data compression / expansion apparatus shown in FIG. 26, the butterfly operation is directly represented on the serial circuit in order to realize the DCT operation by the serial operation. In particular,
Since the serial DCT arithmetic circuit as shown in FIG. 37 was realized by expressing the COS coefficient value as a power of 2,
If it is attempted to express all the coefficients of the DCT arithmetic expression as powers of 2, the number of bits becomes large, and therefore the number of stages such as FFs forming the serial circuit becomes large.

【0059】ところで、DCT演算された画像データは
後段の量子化部(例えば、図26の量子化装置14)に
おいて量子化されることになる。
By the way, the DCT-computed image data is quantized in the quantizer (eg, the quantizer 14 in FIG. 26) at the subsequent stage.

【0060】本発明者はこの点に着目して、2のべきで
表現できる部分はべきで表現して取り込みに用いる一方
で、べきで表現しようとすればビット数が大きくなって
しまう部分については敢えてべきにより表現しようとし
ないで2のべきにとらわれずにDCTの演算係数を整数
比(あるいは、整数値)に置き換え、そのゲイン変化分
を量子化部によって吸収するようにする。これによって
2のべきによりシリアル回路を実現していた場合に比
べ、回路規模を大幅に小さくすることができるととも
に、シリアルの段数を減少させて処理速度を向上させる
ことができる。
Focusing on this point, the inventor of the present invention expresses a part that can be expressed by a power of 2 as a power and uses it for fetching, while regarding a part where the number of bits becomes large when trying to express it by a power. The calculation coefficient of the DCT is replaced with an integer ratio (or an integer value) without being restricted by the power of 2 without intentionally expressing it by power, and the gain variation is absorbed by the quantizer. As a result, the circuit scale can be significantly reduced and the processing speed can be improved by reducing the number of serial stages as compared with the case where a serial circuit is realized by the power of 2.

【0061】(II)さらに、上述したDCT演算式をシ
リアル回路により構成する場合においてもDCT演算式
を加減算及びバタフライ演算を用いて実現していたた
め、FF等の段数をある程度以上減らすのは困難であ
り、速度向上のためには一層のFF等の段数の削減が求
められていた。
(II) Further, even when the above-mentioned DCT arithmetic expression is constituted by a serial circuit, since the DCT arithmetic expression is realized by using addition and subtraction and butterfly arithmetic, it is difficult to reduce the number of stages such as FF to some extent. Therefore, further reduction of the number of stages such as FF has been required to improve the speed.

【0062】そこで本実施例では、DCT演算式を展開
することによって各入力に共通な係数(必ずしも共通で
なくてもよい)が表れるように係数を分割し、このよう
に展開したDCT演算式をバタフライ演算にとらわれず
にそのままハードウェア化する。このため、先ず、前段
のシリアル回路で各入力に用いる係数分の計算をしてお
き、続く後段のシリアル回路で計算された係数出力に対
して出力方向に符号分を含めた加減算を行なうようにし
てDCT演算式をそのままハードウェア化する。これに
よってFF等の段数を減らすことができ、クロック数
(時間)を短縮することができる。
Therefore, in the present embodiment, by expanding the DCT arithmetic expression, the coefficients are divided so that a common coefficient (not necessarily common) appears for each input, and the expanded DCT arithmetic expression is The hardware is used as it is, without being restricted by the butterfly operation. For this reason, first, the coefficient used for each input is calculated in the serial circuit in the previous stage, and the coefficient output calculated in the serial circuit in the subsequent stage is added or subtracted including the code in the output direction. The DCT arithmetic expression is converted into hardware as it is. As a result, the number of stages such as FF can be reduced and the number of clocks (time) can be shortened.

【0063】例えば、図1に示すようにDCT演算式を
展開して各入力に共通な係数17、85、48、72が
得られたとすると、先ず、前段のシリアル回路でDCT
演算式の係数に相当する部分を作成するようにする。こ
の場合、上記係数17、85、48、72を2のべきに
ある数値をかけた形で表現し、この数値の部分(図1の
破線内の数値参照)をシリアル回路で構成する。そし
て、2のべきの部分は後段のシリアル回路への入力位置
により調整するようにする。すなわち、図1に示すよう
に後段のシリアル回路はアダー(サブトラクタも含む)
が複数個つながるように構成されており、各アダーを1
段通る度に×2が入る構成となっていて、上記係数のう
ち2のべきで表現された部分は各アダーへの接続方法に
より調整する。ここで、上記係数17、85、48、7
2のうち、基本的に奇数のもの(係数17、85)につ
いての加算を先に行なうようにするがこれは以下の理由
からである。すなわち、1度加算する度に1クロック遅
れるというシリアル回路の構造上、奇数の係数を作るの
が大変であり、奇数の係数を作るために1を足すという
動作が必要となる。このため、先ず手間のかかる奇数の
係数同士を事前に足してしまうようにする。図1では、
係数85は42×21+1、係数17は16+1と考え
てこれら奇数の係数の1同士を事前に1回足してしまう
ようにする。これにより1クロック遅れて×2倍とな
る。その次に、その他の部分を足しておいたものに上記
奇数の1同士を足したものを加えるようにするためもう
1クロック必要となり全体では×4倍となる。つまり、
奇数の係数が2個以上ある場合には2回のアダーを通す
必要があり×4が最小の形となる。なお、奇数をなくす
ようにすると演算精度が落ちることになる。
For example, assuming that the coefficients 17, 85, 48, 72 common to each input are obtained by expanding the DCT arithmetic expression as shown in FIG. 1, first, the DCT is performed by the serial circuit of the preceding stage.
Create the part corresponding to the coefficient of the arithmetic expression. In this case, the coefficients 17, 85, 48 and 72 are expressed by multiplying a power value of 2, and the part of this value (see the value within the broken line in FIG. 1) is configured by a serial circuit. Then, the power of 2 is adjusted according to the input position to the serial circuit in the subsequent stage. That is, as shown in FIG. 1, the serial circuit in the subsequent stage is an adder (including a subtractor).
It is configured to connect a plurality of, each adder 1
The configuration is such that x2 is entered each time the number of steps passes, and the part expressed as a power of 2 in the above coefficient is adjusted by the connection method to each adder. Here, the above coefficients 17, 85, 48, 7
Of the two, the odd ones (coefficients 17, 85) are basically added first, for the following reason. That is, it is difficult to make an odd number of coefficients due to the structure of the serial circuit that is delayed by one clock each time it is added, and it is necessary to add 1 to make an odd number of coefficients. For this reason, first, the odd-numbered coefficients, which are time-consuming, are added in advance. In Figure 1,
Considering that the coefficient 85 is 42 × 2 1 +1 and the coefficient 17 is 16 + 1, one of these odd coefficients is added once in advance. As a result, the clock is delayed by one clock and doubled. Next, another clock is required to add the sum of the other parts and the odd ones, which is x4 times as a whole. That is,
When there are two or more odd-numbered coefficients, it is necessary to pass the adder twice, and x4 is the minimum form. It should be noted that if the odd number is eliminated, the calculation accuracy will decrease.

【0064】また、図1では、係数17は2×23
1、係数48は6×23で表わされ、2のべきが同じ23
であるからこの部分を1段目のアダーにより足してしま
う。以後、アダーを1段通る度に2倍されるので3段目
のアダーでこの係数の加算結果が揃うことになる。ま
た、係数72は18×22、係数85は42×21+1で
表わされるから2のべきに着目して係数72の18を2
番目のアダーに、係数85の42は3番目のアダーに入
力される。
Further, in FIG. 1, the coefficient 17 is 2 × 2 3 +
1 and coefficient 48 are represented by 6 × 2 3 , and the powers of 2 are the same 2 3
Therefore, this part is added by the first stage adder. After that, since it is doubled every time the adder passes through one stage, the addition result of this coefficient will be completed in the third stage adder. Further, the coefficient 72 is represented by 18 × 2 2 and the coefficient 85 is represented by 42 × 2 1 +1.
The 42 of the coefficient 85 is input to the third adder.

【0065】このようにDCT演算式をそのままハード
ウェア化することによってFF等の段数を減らすことが
でき、クロック数(時間)を短縮することができる。
As described above, the number of stages such as FF can be reduced and the number of clocks (time) can be shortened by implementing the DCT arithmetic expression as it is in hardware.

【0066】(III)ところで、図40に示す1bit add
erは具体的には図2(a)に示す構成となっている。図
2(a)に示すように、1bit adderは入力aと入力b
を加算するアダー1、演算桁上げCarryを検知しCarryが
あったとき桁上げcirを出力する桁上げ回路2、アダ
ー1からの加算出力を1クロック分遅らせることによっ
てタイミングとるフリップフロップ(FF)3から構成
されている。この1bit adderは、アダー1及び桁上げ
回路2により演算される演算結果(a+b+cir)の
ディレイをフリップフロップ(FF)3を用いてクロッ
クのタイミング合わせを行なうようになっている。この
フリップフロップ(FF)3によってアダー1からの出
力は1クロック分遅れることになる。このような1bit
adder等のシリアル回路は、構造が簡単なためクロック
速度は上げることができるが、クロック数が多くかかる
という特徴がある。
(III) By the way, 1 bit add shown in FIG.
Specifically, er has the configuration shown in FIG. As shown in FIG. 2A, the 1-bit adder has input a and input b.
Adder 1, a carry circuit 2 that detects a carry carry and outputs a carry cir when there is a carry, and a flip-flop (FF) 3 that performs timing by delaying the addition output from the adder 1 by one clock. It consists of The 1-bit adder is configured to perform a clock timing adjustment using a flip-flop (FF) 3 for a delay of a calculation result (a + b + cir) calculated by the adder 1 and the carry circuit 2. The flip-flop (FF) 3 delays the output from the adder 1 by one clock. 1 bit like this
A serial circuit such as an adder can increase the clock speed because of its simple structure, but has a feature of requiring a large number of clocks.

【0067】ここで、データ圧縮伸張装置全体の動作タ
イミングをみた場合、データ圧縮伸張装置を構成するD
CTチップには例えば28MHz程度のシステムクロッ
クが供給されていることが多い。上記図2(a)に示す
ようなシリアル回路構成にしておくと、DCTチップに
28MHz程度のシステムクロックを供給することによ
って8倍のfscで動作させることができる。シリアル
回路自体は構造が単純であるため、より高いクロックを
供給するようにすれば更に高速なfscで動作させるこ
とができるが、フリップフロップ(FF)を1段通る度
に1クロックずつ遅れていくことになる。
Here, when the operation timing of the entire data compression / decompression device is viewed, D constituting the data compression / decompression device is constructed.
A system clock of, for example, about 28 MHz is often supplied to the CT chip. With the serial circuit configuration as shown in FIG. 2A, it is possible to operate at 8 times fsc by supplying a system clock of about 28 MHz to the DCT chip. Since the serial circuit itself has a simple structure, if a higher clock is supplied, the serial circuit can be operated at a higher speed fsc. It will be.

【0068】このような観点から図2(a)に示すシリ
アル回路をみてみると、DCTチップに例えば28MH
z程度のシステムクロックが供給された場合にはアダー
1及び桁上げ回路2による演算部分では4〜5n secの
遅れがあるに過ぎない。これに対して、8倍のfscで
動作させようとした場合DCTチップ全体のクロック周
期は35n sec程度が必要となる。
From this point of view, looking at the serial circuit shown in FIG. 2A, the DCT chip has, for example, 28 MH.
When the system clock of about z is supplied, there is only a delay of 4 to 5 nsec in the arithmetic part by the adder 1 and the carry circuit 2. On the other hand, in order to operate at 8 times fsc, the clock cycle of the entire DCT chip needs to be about 35 nsec.

【0069】本発明者はこの点に着目して、上述したシ
リアル回路の遅れは装置全体の所要クロック周期35n
secからみると十分小さいことを考慮して、上述したシ
リアル回路におけるタイミング合わせ用のフリップフロ
ップ(FF)を省略することを考えた。すなわち、通常
ではアダー(サブトラクタも含む)1段に対して各アダ
ー内部にフリップフロップ(FF)を内蔵していたが、
アダー等のシリアル回路の動作時間がシステムクロック
に対して十分に小さいので複数段のアダーに対してフリ
ップフロップ(FF)を1個用いるようにしても十分に
タイミングを揃えることができる。例えば、図2(b)
に示すシリアル回路において、アダー回路4,5に入力
aと入力bが図示のように入力された場合、入力から出
力までアダー回路4,5内部のフリップフロップ(F
F)2段分の2クロックが遅延されてアダー回路5から
演算結果(4a+6b)が出力されることになる。ここ
で、アダー回路5内部のフリップフロップ(FF)を取
り去った場合を考えると、このシリアル回路の遅れは概
略4〜5n secであり、遅延時間を最大限考慮しても2
0n sec程度の遅延をみれば十分に8倍のfscで動作
可能となる。図2(c)は、アダー回路内部のフリップ
フロップ(FF)を取り去ったシリアル回路を示す図で
ある。図2(c)に示すシリアル回路は、図2(b)に
示すシリアル回路のアダー回路5を、出力のフリップフ
ロップ(FF)を取り去った構造のアダー回路6に置き
換えた構成となっている。なお、回路内部のフリップフ
ロップ(FF)を取り去ったシリアル回路は、このよう
なアダーに限らずサブトラクタも含むものとし、図面上
では通常のアダー(サブトラクタ)等のシリアル回路の
□印に代えて△印で表わすものとする。いま、図2
(b)に示すシリアル回路のアダー回路5から演算結果
(4a+6b)が出力されるが、この出力は前述したよ
うに最終段のシフトレジスタ等で2のべきの形で調整で
きるから上記出力を(2a+3b)にしてみると、図2
(c)に示すシリアル回路のアダー回路6からの演算結
果(2a+3b)と同じになる。この場合、図2(b)
に示すシリアル回路では、入力から出力までアダー回路
4,5内部のフリップフロップ(FF)2段分の2クロ
ック遅れがあるのに対し、図2(c)に示すシリアル回
路では、アダー回路4内部のフリップフロップ(FF)
1段分の1クロック遅れで済み、同じ演算結果(2a+
3b)を得るのに少ないクロック数(短い時間)を実現
することができる。
The present inventor pays attention to this point, and the delay of the serial circuit is the required clock period 35n of the entire device.
Considering that it is sufficiently small in terms of sec, it was considered to omit the timing adjustment flip-flop (FF) in the serial circuit. That is, normally, a flip-flop (FF) was built in each adder for one stage of the adder (including the subtractor).
Since the operating time of a serial circuit such as an adder is sufficiently short with respect to the system clock, even if one flip-flop (FF) is used for a plurality of stages of adders, the timing can be sufficiently aligned. For example, FIG. 2 (b)
In the serial circuit shown in FIG. 3, when the input a and the input b are input to the adder circuits 4 and 5 as shown in the figure, the flip-flops (F
F) Two clocks for two stages are delayed and the operation result (4a + 6b) is output from the adder circuit 5. Here, considering the case where the flip-flop (FF) in the adder circuit 5 is removed, the delay of this serial circuit is approximately 4 to 5 n sec, and even if the delay time is considered to the maximum,
If a delay of about 0 n sec is observed, it is possible to operate with fsc of 8 times. FIG. 2C is a diagram showing a serial circuit in which the flip-flop (FF) inside the adder circuit is removed. The serial circuit shown in FIG. 2C has a configuration in which the adder circuit 5 of the serial circuit shown in FIG. 2B is replaced with an adder circuit 6 having a structure in which an output flip-flop (FF) is removed. The serial circuit in which the flip-flop (FF) inside the circuit is removed includes not only such an adder but also a subtractor, and in the drawing, a square circuit of a serial circuit such as an ordinary adder (subtractor) is replaced with It is represented by a triangle. Figure 2 now
The operation result (4a + 6b) is output from the adder circuit 5 of the serial circuit shown in (b). This output can be adjusted in the form of a power of 2 by the shift register in the final stage as described above. 2a + 3b)
It is the same as the calculation result (2a + 3b) from the adder circuit 6 of the serial circuit shown in (c). In this case, FIG. 2 (b)
In the serial circuit shown in FIG. 2, there is a delay of two clocks corresponding to two stages of flip-flops (FF) in the adder circuits 4 and 5 from the input to the output, whereas in the serial circuit shown in FIG. Flip-flops (FF)
The same calculation result (2a +
It is possible to realize a small number of clocks (short time) to obtain 3b).

【0070】実施例 図3〜図25は上記基本原理に基づくデータ圧縮伸張装
置の実施例を示す図であり、図3〜図7は上記基本原理
(I)に基づくデータ圧縮伸張装置を、図8〜図14は
上記基本原理(II)に基づくデータ圧縮伸張装置を、図
15〜図25は上記基本原理(III)に基づくデータ圧
縮伸張装置を説明するための図である。
Embodiment FIGS. 3 to 25 are views showing an embodiment of a data compression / decompression device based on the above-mentioned basic principle, and FIGS. 3 to 7 show a data compression / decompression device based on the above-mentioned basic principle (I). 8 to 14 are diagrams for explaining a data compression / decompression device based on the basic principle (II), and FIGS. 15 to 25 are diagrams for explaining a data compression / decompression device based on the basic principle (III).

【0071】先ず、図3〜図6により上記基本原理
(I)に基づくデータ圧縮伸張装置の構成を説明する。
First, the configuration of the data compression / expansion device based on the above-mentioned basic principle (I) will be described with reference to FIGS.

【0072】図3はデータ圧縮伸張装置のブロック図で
あり、前記図26のデータ圧縮伸張装置に対応する図で
ある。なお、従来例と同一構成部分には同一番号を付し
ている。図3において、データ圧縮伸張装置は、圧縮を
施そうとする2次元データ及びデータ変換演算後のデー
タをパラレルデータの形で蓄えるデータ記憶装置10
と、データ記憶装置10から読み込んだパラレルデータ
をシリアルデータに変換するパラレル−シリアル変換装
装置11と、DCT演算係数を簡単な整数比(あるい
は、整数値)に変えた形のシリアル回路により構成さ
れ、バス切換えにより圧縮時にパラレル−シリアル変換
装置11から出力されたデータに対して一次元のDCT
演算をシリアル演算の形で施すとともに、伸張時にパラ
レル−シリアル変換装置11から出力された圧縮データ
に対して一次元の逆DCT演算をシリアル演算の形で施
すデータ変換演算装置50と、シリアルDCT演算され
たシリアルデータをパラレルデータに変換してデータ記
憶装置10に書き込むシリアル−パラレル変換装置13
と、データ記憶装置10に蓄えられたデータ変換演算後
のデータに対して、DCT演算係数を整数比に変えるこ
とにより生じたゲイン変化分を吸収させるようにした量
子化テーブルの値で除算する(あるいは、逆数の乗算を
行なう)ことによって量子化演算を行なう量子化装置5
1と、上記各部の動作をデータ圧縮伸張装置の全体を制
御する制御装置52により構成されている。図4は、上
記シリアルDCT演算を実行するためのデータ変換演算
装置50の回路構成を示す図であり、I〜IVの各ステー
ジから構成される。
FIG. 3 is a block diagram of a data compression / expansion device, and is a diagram corresponding to the data compression / expansion device of FIG. The same components as those in the conventional example are designated by the same reference numerals. In FIG. 3, the data compression / expansion device is a data storage device 10 for storing two-dimensional data to be compressed and data after data conversion operation in the form of parallel data.
And a parallel-serial conversion device 11 for converting parallel data read from the data storage device 10 into serial data, and a serial circuit in which the DCT operation coefficient is changed to a simple integer ratio (or integer value). , A one-dimensional DCT for the data output from the parallel-serial converter 11 at the time of compression by bus switching
A data conversion arithmetic device 50 for performing arithmetic operations in the form of serial operations, and a one-dimensional inverse DCT arithmetic operation for compressed data output from the parallel-serial conversion device 11 at the time of decompression, and a serial DCT arithmetic operation. Serial-parallel conversion device 13 that converts the serial data thus generated into parallel data and writes the data to the data storage device 10.
Then, the data after the data conversion calculation stored in the data storage device 10 is divided by the value of the quantization table adapted to absorb the gain change caused by changing the DCT calculation coefficient to an integer ratio ( Alternatively, a quantization device 5 for performing a quantization operation by performing multiplication of reciprocal numbers)
1 and a control device 52 that controls the operation of each of the above-mentioned units as a whole of the data compression / decompression device. FIG. 4 is a diagram showing a circuit configuration of the data conversion operation device 50 for executing the serial DCT operation, which is composed of stages I to IV.

【0073】図4において、61はステージIの演算回
路、62はステージIIの演算回路、63はステージIII
の演算回路、64はステージIVの演算回路であり、これ
らのステージI〜IVの演算回路61〜64はそれぞれス
イッチ65〜69を介して直列に接続するように構成さ
れている。この場合、DCT演算処理では、図3に示す
ように演算回路61〜64の順で直列接続され、また逆
DCT演算の処理では、上記ステージI〜IVの演算回路
61〜64に対応する逆DCT演算処理時のステージI
〜IVの演算回路71〜74とすると、基本的にはスイッ
チ65〜69の切換え動作により演算回路74〜71の
順で直接接続される。そして、入力端子75に与えられ
る入力データに対するDCTまたは逆DCT演算結果は
出力端子76から出力されるようになる。この場合、入
力データは、シリアル8系統よりなっている。
In FIG. 4, 61 is a stage I arithmetic circuit, 62 is a stage II arithmetic circuit, and 63 is a stage III.
, 64 is a stage IV arithmetic circuit, and these stage I to IV arithmetic circuits 61 to 64 are connected in series via switches 65 to 69, respectively. In this case, in the DCT operation processing, the operation circuits 61 to 64 are serially connected in the order shown in FIG. 3, and in the inverse DCT operation processing, the inverse DCT operations corresponding to the operation circuits 61 to 64 of the stages I to IV are performed. Stage I during arithmetic processing
In the case of the arithmetic circuits 71 to 74 of IV, basically, the arithmetic circuits 74 to 71 are directly connected in this order by the switching operation of the switches 65 to 69. Then, the DCT or inverse DCT operation result for the input data given to the input terminal 75 is outputted from the output terminal 76. In this case, the input data consists of 8 serial systems.

【0074】図5は前記基本原理(I)に基づくデータ
圧縮伸張装置のデータ変換演算装置50の回路構成図で
あり、データ圧縮時のデータ変換演算装置50の構成例
を示している。
FIG. 5 is a circuit configuration diagram of the data conversion arithmetic unit 50 of the data compression / expansion device based on the basic principle (I), and shows an example of the configuration of the data conversion arithmetic unit 50 at the time of data compression.

【0075】図5において、ステージIの演算回路61
は上述したシリアル演算を実行するものであり、加算器
81a、81b、81c、81dと減算器81e、81
f、81g、81hから構成されている。このステージ
Iの演算回路61の構成は従来例と同様であるが、入力
データf0〜f7の入力は異なっている。
In FIG. 5, the arithmetic circuit 61 of the stage I is shown.
Performs the above-described serial operation, and includes adders 81a, 81b, 81c and 81d and subtractors 81e and 81.
It is composed of f, 81g and 81h. The configuration of the arithmetic circuit 61 of the stage I is similar to that of the conventional example, but the input of the input data f0 to f7 is different.

【0076】また、ステージIIの演算回路62は、原理
説明(I)で述べたシリアル演算を実行するものであ
り、係数を簡単な整数比に近似した場合のDCTシリア
ル演算を行なうシリアル演算器82a〜82hから構成
されている。ここで、上記演算器82aは、加算器81
aの出力と加算器81dの出力とを加算する加算器82
a1、この加算器82a1の出力をシフトする3個のフリ
ップフロップ(FF)からなるシフタ82a2から構成
されている。また、上記演算器82bは、加算器81b
の出力と加算器81cの出力とを加算する加算器82b
1、この加算器82b1の出力をシフトする3個のフリッ
プフロップ(FF)からなるシフタ82b2から構成さ
れている。また、上記演算器82cは、加算器81bの
出力から加算器81cの出力を減算する減算器82c
1、この減算器82c1の出力をシフトする3個のフリッ
プフロップからなるシフタ82c2、このシフタ82c2
の第1番目のフリップフロップの出力とシフタ82c2
の出力を加算する加算器82c3、シフタ82c2の第2
番目のフリップフロップの出力と加算器82c3の出力
を加算する加算器82c4から構成されている。同様
に、上記演算器82dは、加算器81aの出力から加算
器81dの出力を減算する減算器82d1、この減算器
82d1の出力をシフトする3個のフリップフロップか
らなるシフタ82d2、このシフタ82d2の第1番目の
フリップフロップの出力とシフタ82d2の出力を加算
する加算器82d3、シフタ82d2の第2番目のフリッ
プフロップの出力と加算器82d3の出力を加算する加
算器82d4から構成されている。
The stage II arithmetic circuit 62 executes the serial arithmetic described in the principle explanation (I), and the serial arithmetic unit 82a which performs the DCT serial arithmetic when the coefficient is approximated to a simple integer ratio. .About.82h. Here, the arithmetic unit 82a is the adder 81
Adder 82 for adding the output of a and the output of adder 81d
a1 and a shifter 82a2 composed of three flip-flops (FF) for shifting the output of the adder 82a1. Further, the arithmetic unit 82b is the adder 81b.
Adder 82b for adding the output of the adder and the output of adder 81c
1. The shifter 82b2 is composed of three flip-flops (FF) for shifting the output of the adder 82b1. The arithmetic unit 82c is a subtractor 82c that subtracts the output of the adder 81c from the output of the adder 81b.
1, a shifter 82c2 consisting of three flip-flops for shifting the output of the subtractor 82c1, this shifter 82c2
Output of the first flip-flop and shifter 82c2
Second adder 82c3 and shifter 82c2 for adding the outputs of
It is composed of an adder 82c4 for adding the output of the second flip-flop and the output of the adder 82c3. Similarly, the arithmetic unit 82d includes a subtracter 82d1 for subtracting the output of the adder 81d from the output of the adder 81a, a shifter 82d2 composed of three flip-flops for shifting the output of the subtractor 82d1, and a shifter 82d2 for the shifter 82d2. It comprises an adder 82d3 for adding the output of the first flip-flop and the output of the shifter 82d2, and an adder 82d4 for adding the output of the second flip-flop of the shifter 82d2 and the output of the adder 82d3.

【0077】上記演算器82eは、減算器81eの出力
をシフトする5個のフリップフロップからなるシフタ8
2e1、このシフタ82e1の第3番目のフリップフロッ
プの出力と第4番目のフリップフロップの出力を加算す
る加算器82e2、加算器82e2の出力をシフトするシ
フタ82e3、シフタ82e1の第1番目のフリップフロ
ップの出力と第5番目のフリップフロップの出力を加算
する加算器82e4から構成されている。また、上記演
算器82fは、減算器81gの出力から減算器81fの
出力を減算する減算器82f1、この減算器82f1の出
力をシフトする4個のフリップフロップからなるシフタ
82f2、このシフタ82f2の第2番目のフリップフロ
ップの出力と第3番目のフリップフロップの出力を加算
する加算器82f3、減算器82f1の出力とシフタ82
f2の出力を加算する加算器82f4から構成されてい
る。また、上記演算器82gは、減算器81fの出力と
減算器81gの出力を加算する加算器82g1、この加
算器82g1の出力をシフトする4個のフリップフロッ
プからなるシフタ82g2、このシフタ82g2の第2番
目のフリップフロップの出力と第3番目のフリップフロ
ップの出力を加算する加算器82g3、減算器82g1の
出力とシフタ82g2の出力を加算する加算器82g4か
ら構成されている。また、上記演算器82hは、減算器
81hの出力をシフトする5個のフリップフロップから
なるシフタ82h1、このシフタ82h1の第3番目のフ
リップフロップの出力と第4番目のフリップフロップの
出力を加算する加算器82h2、加算器82h2の出力を
シフトするシフタ82h3、シフタ82h1の第1番目の
フリップフロップの出力と第5番目のフリップフロップ
の出力を加算する加算器82h4から構成されている。
The arithmetic unit 82e is a shifter 8 including five flip-flops for shifting the output of the subtractor 81e.
2e1, an adder 82e2 that adds the output of the third flip-flop of the shifter 82e1 and an output of the fourth flip-flop of the shifter 82e1, a shifter 82e3 that shifts the output of the adder 82e2, and a first flip-flop of the shifter 82e1 Of the fifth flip-flop and an adder 82e4 for adding the output of the fifth flip-flop. The arithmetic unit 82f includes a subtracter 82f1 for subtracting the output of the subtractor 81f from the output of the subtractor 81g, a shifter 82f2 composed of four flip-flops for shifting the output of the subtractor 82f1, and a shifter 82f2 of the shifter 82f2. The output of the second flip-flop and the output of the third flip-flop are added by the adder 82f3, the output of the subtractor 82f1 and the shifter 82.
It is composed of an adder 82f4 for adding the output of f2. The arithmetic unit 82g includes an adder 82g1 for adding the output of the subtractor 81f and an output of the subtractor 81g, a shifter 82g2 composed of four flip-flops for shifting the output of the adder 82g1, and a shifter 82g2 of the shifter 82g2. It is composed of an adder 82g3 for adding the output of the second flip-flop and the output of the third flip-flop, and an adder 82g4 for adding the output of the subtractor 82g1 and the output of the shifter 82g2. Further, the arithmetic unit 82h adds a shifter 82h1 composed of five flip-flops for shifting the output of the subtractor 81h, and an output of the third flip-flop of the shifter 82h1 and an output of the fourth flip-flop of the shifter 82h1. The adder 82h2 includes a shifter 82h3 that shifts the output of the adder 82h2, and an adder 82h4 that adds the output of the first flip-flop and the output of the fifth flip-flop of the shifter 82h1.

【0078】また、ステージIIIの演算回路63は、原
理説明(I)で述べたシリアル演算を実行するものであ
り、演算器82aの出力と演算器82b2の出力を加算
する加算器83a、演算器82aの出力から演算器82
bの出力を減算する減算器83b、演算器82dの加算
器82d3の出力から演算器82cの加算器82c4の出
力を減算する減算器83c、演算器82cの加算器82
c3の出力と演算器82dの加算器82d4の出力を加算
する加算器83d、演算器82eの加算器82e4の出
力と演算器82fの加算器82f3の出力を加算する加
算器83e、演算器82eのシフタ82e3の出力から
演算器82fの加算器82f4の出力を減算する減算器
83f、演算器82hの加算器82h3の出力から演算
器82gの加算器82f4の出力を減算する減算器83
g、演算器82gの加算器82g3の出力と演算器82
hの加算器82h4の出力を加算する加算器83hから
構成されている。
The arithmetic circuit 63 of the stage III executes the serial arithmetic operation described in the principle explanation (I), and adds the output of the arithmetic unit 82a and the output of the arithmetic unit 82b2 to the adder 83a and the arithmetic unit. From the output of 82a to the calculator 82
Subtractor 83b for subtracting the output of b, subtractor 83c for subtracting the output of adder 82c4 of arithmetic unit 82c from the output of adder 82d3 of arithmetic unit 82d, adder 82 of arithmetic unit 82c
The adder 83d for adding the output of c3 and the output of the adder 82d4 of the calculator 82d, the adder 83e for adding the output of the adder 82e4 of the calculator 82e and the output of the adder 82f3 of the calculator 82f, the calculator 82e A subtracter 83f for subtracting the output of the adder 82f4 of the arithmetic unit 82f from the output of the shifter 82e3, and a subtracter 83 for subtracting the output of the adder 82f4 of the arithmetic unit 82g from the output of the adder 82h3 of the arithmetic unit 82h.
g, the output of the adder 82g3 of the calculator 82g and the calculator 82
It is composed of an adder 83h for adding the output of the adder 82h4 of h.

【0079】また、ステージIVの演算回路64は、原理
説明(I)で述べたシリアル演算を実行するものであ
り、係数を簡単な整数比に近似した場合のDCTシリア
ル演算を行なうシリアル演算器84a〜84hから構成
されている。ここで、上記演算器84aは、加算器83
aの出力をシフトする6個のフリップフロップからなる
シフタ84a1、このシフタ84a1の第5番目のフリッ
プフロップの出力と第6番目のフリップフロップの出力
を加算する加算器84a2、加算器84a2の出力からシ
フタ84a1の第3番目のフリップフロップの出力を減
算して出力データF0として出力する減算器84a3から
構成されている。また、上記演算器84bは、減算器8
3bの出力をシフトする6個のフリップフロップからな
るシフタ84b1、このシフタ84b1の第5番目のフリ
ップフロップの出力と第6番目のフリップフロップの出
力を加算する加算器84b2、加算器84b2の出力から
シフタ84b1の第3番目のフリップフロップの出力を
減算して出力データF4として出力する減算器84b3か
ら構成されている。また、上記演算器84cは、減算器
83cの出力をシフトする5個のフリップフロップから
なるシフタ84c1、このシフタ84c1の第3番目のフ
リップフロップの出力と第5番目のフリップフロップの
出力を加算して出力データF6として出力する加算器8
4c2から構成されている。また、上記演算器84d
は、加算器83dの出力をシフトする5個のフリップフ
ロップからなるシフタ84d1、このシフタ84d1の第
3番目のフリップフロップの出力と第5番目のフリップ
フロップの出力を加算して出力データF2として出力す
る加算器84d2から構成されている。
The stage IV arithmetic circuit 64 executes the serial arithmetic described in the principle explanation (I), and the serial arithmetic unit 84a for executing the DCT serial arithmetic when the coefficient is approximated to a simple integer ratio. It is composed of ~ 84h. Here, the arithmetic unit 84a is the adder 83
From the output of the shifter 84a1 consisting of six flip-flops that shift the output of a, the adder 84a2 and the adder 84a2 that add the output of the fifth flip-flop of this shifter 84a1 and the output of the sixth flip-flop The shifter 84a1 comprises a subtracter 84a3 for subtracting the output of the third flip-flop and outputting it as output data F0. Further, the arithmetic unit 84b is the subtractor 8
From shifter 84b1 consisting of six flip-flops for shifting the output of 3b, adder 84b2 and adder 84b2 for adding the output of the fifth flip-flop and the output of the sixth flip-flop of this shifter 84b1 The shifter 84b1 is composed of a subtractor 84b3 which subtracts the output of the third flip-flop and outputs it as output data F4. The arithmetic unit 84c adds the shifter 84c1 composed of five flip-flops that shifts the output of the subtractor 83c, the output of the third flip-flop of the shifter 84c1 and the output of the fifth flip-flop of the shifter 84c1. Adder 8 for outputting as output data F6
It is composed of 4c2. Also, the arithmetic unit 84d
Is a shifter 84d1 composed of five flip-flops that shifts the output of the adder 83d, the output of the third flip-flop of the shifter 84d1 and the output of the fifth flip-flop are added, and output as output data F2. It is composed of an adder 84d.

【0080】上記演算器84eは、加算器83eの出力
をシフトする2個のフリップフロップからなるシフタ8
4e1、加算器83eの出力とシフタ84e1の出力を加
算して出力する加算器84e2、後述するシフタ84h1
の第1番目のフリップフロップの出力からこの加算器8
4e2の出力を減算する減算器84e3、減算器84e3
の出力をシフトする2個のフリップフロップからなるシ
フタ84e4、このシフタ84e4の出力から減算器84
e3の出力を減算して出力データF7として出力する減算
器84e5から構成されている。また、上記演算器84
fは、減算器83fの出力をシフトする2個のフリップ
フロップからなるシフタ84f1、減算器83fの出力
とシフタ84f1の第1番目のフリップフロップの出力
を加算する加算器84f2、後述する加算器g2の出力か
らこのシフタ84f1の出力を減算する減算器84f3、
減算器84f3の出力をシフトする2個のフリップフロ
ップからなるシフタ84f4、シフタ84f4の出力から
減算器84f3の出力を減算して出力データF3として出
力する減算器84f5から構成されている。また、上記
演算器84gは、減算器83gの出力をシフトする2個
のフリップフロップからなるシフタ84g1、減算器8
3gの出力とシフタ84g1の第1番目のフリップフロ
ップの出力を加算する加算器84g2、上記加算器f2の
出力とシフタ84g1の出力を加算する加算器84g3、
加算器84g3の出力をシフトする2個のフリップフロ
ップからなるシフタ84g4、シフタ84g4の出力から
加算器84g3の出力を減算して出力データF5として出
力する減算器84g5から構成されている。また、上記
演算器84hは、加算器83hの出力をシフトする2個
のフリップフロップからなるシフタ84h1、加算器8
3hの出力とシフタ84h1の出力を加算して出力する
加算器84h2、上記シフタ84e1の第1番目のフリッ
プフロップの出力と加算器84h2の出力を加算する加
算器84h3、加算器84h3の出力をシフトする2個の
フリップフロップからなるシフタ84h4、シフタ84
h4の出力から加算器84h3の出力を減算して出力デー
タF1として出力する減算器84h5から構成されてい
る。
The arithmetic unit 84e is a shifter 8 composed of two flip-flops for shifting the output of the adder 83e.
4e1, an adder 84e2 for adding and outputting the output of the adder 83e and the output of the shifter 84e1, and a shifter 84h1 described later.
From the output of the first flip-flop of
Subtractor 84e3 for subtracting the output of 4e2, Subtractor 84e3
Shifter 84e4 composed of two flip-flops for shifting the output of
It is composed of a subtracter 84e5 which subtracts the output of e3 and outputs it as output data F7. In addition, the arithmetic unit 84
f is a shifter 84f1 composed of two flip-flops for shifting the output of the subtractor 83f, an adder 84f2 for adding the output of the subtractor 83f and the output of the first flip-flop of the shifter 84f1, and an adder g2 described later. Subtractor 84f3 for subtracting the output of this shifter 84f1 from the output of
The shifter 84f4 is composed of two flip-flops for shifting the output of the subtractor 84f3, and the subtracter 84f5 is provided for subtracting the output of the subtractor 84f3 from the output of the shifter 84f4 and outputting it as output data F3. The arithmetic unit 84g includes a shifter 84g1 composed of two flip-flops for shifting the output of the subtractor 83g and a subtractor 8g.
An adder 84g2 for adding the output of 3g and the output of the first flip-flop of the shifter 84g1, and an adder 84g3 for adding the output of the adder f2 and the output of the shifter 84g1;
The shifter 84g4 is composed of two flip-flops for shifting the output of the adder 84g3, and the subtracter 84g5 is provided for subtracting the output of the adder 84g3 from the output of the shifter 84g4 and outputting it as output data F5. The arithmetic unit 84h includes a shifter 84h1 including two flip-flops for shifting the output of the adder 83h and an adder 8h.
An adder 84h2 for adding and outputting the output of 3h and the output of the shifter 84h1, an adder 84h3 for adding the output of the first flip-flop of the shifter 84e1 and the output of the adder 84h2, and an output of the adder 84h3 are shifted. Shifter 84h4 and shifter 84 consisting of two flip-flops
It is composed of a subtractor 84h5 which subtracts the output of the adder 84h3 from the output of h4 and outputs it as output data F1.

【0081】図6はデータ圧縮伸張装置のデータ変換演
算装置50の回路構成図であり、データ伸張時のデータ
変換演算装置50の構成例を示している。この図6は前
記図5に示すデータ変換演算装置50の逆変換装置に対
応する図である。
FIG. 6 is a circuit configuration diagram of the data conversion arithmetic unit 50 of the data compression / expansion device, showing an example of the configuration of the data conversion arithmetic unit 50 at the time of data expansion. FIG. 6 is a diagram corresponding to the inverse conversion device of the data conversion calculation device 50 shown in FIG.

【0082】図6において、ステージIVの演算回路74
は、原理説明(I)で述べたシリアル演算を実行するも
のであり、係数を簡単な整数比に近似した場合の逆DC
Tシリアル演算を行なうシリアル演算器94c〜94h
から構成されている。ここで、上記演算器94aは、逆
変換の入力データF0をシフトする3個のフリップフロ
ップ(FF)からなるシフタ94a1、このシフタ94
a1の第2番目のフリップフロップの出力と第3番目の
フリップフロップの出力を加算する加算器94a2、加
算器94a2の出力から入力データF0を減算する減算器
94a3から構成されている。また、上記演算器94b
は、逆変換の入力データF4をシフトする3個のフリッ
プフロップからなるシフタ94b1、このシフタ94b1
の第2番目のフリップフロップの出力と第3番目のフリ
ップフロップの出力を加算する加算器94b2、加算器
94b2の出力から入力データF4を減算する減算器94
b3から構成されている。また、上記演算器94cは、
逆変換の入力データF6をシフトする2個のフリップフ
ロップからなるシフタ94c1、このシフタ94c1の出
力と入力データF6の出力を加算する加算器94c2、こ
の加算器94c2の出力をシフトする2個のフリップフ
ロップからなるシフタ94c3、このシフタ94c3の出
力と加算器94c2の出力を加算する加算器94c4、こ
の加算器94c4の出力とシフタ94c4の第1番目のフ
リップフロップの出力を加算する加算器94c5から構
成されている。また、上記演算器94dは、逆変換の入
力データF2をシフトする2個のフリップフロップから
なるシフタ94d1、このシフタ94d1の出力と入力デ
ータF2の出力を加算する加算器94d2、この加算器9
4d2の出力をシフトする2個のフリップフロップから
なるシフタ94d3、このシフタ94d3の出力と加算器
94d2の出力を加算する加算器94d4、この加算器9
4d4の出力とシフタ94d4の第1番目のフリップフロ
ップの出力を加算する加算器94d5から構成されてい
る。
In FIG. 6, the arithmetic circuit 74 of stage IV is used.
Is for performing the serial operation described in the principle explanation (I), and is an inverse DC when the coefficient is approximated to a simple integer ratio.
Serial arithmetic units 94c to 94h for performing T-serial arithmetic
It consists of Here, the arithmetic unit 94a is a shifter 94a1 composed of three flip-flops (FF) for shifting the input data F0 of the inverse conversion, and this shifter 94a.
It is composed of an adder 94a2 for adding the output of the second flip-flop of a1 and the output of the third flip-flop, and a subtracter 94a3 for subtracting the input data F0 from the output of the adder 94a2. Also, the arithmetic unit 94b
Is a shifter 94b1 composed of three flip-flops for shifting the input data F4 of the inverse conversion, and this shifter 94b1
Adder 94b2 for adding the output of the second flip-flop and the output of the third flip-flop, and the subtracter 94 for subtracting the input data F4 from the output of the adder 94b2
It is composed of b3. Further, the computing unit 94c is
A shifter 94c1 composed of two flip-flops for shifting the input data F6 of the inverse conversion, an adder 94c2 for adding the output of the shifter 94c1 and the output of the input data F6, and two flip-flops for shifting the output of the adder 94c2. A shifter 94c3 composed of a shifter 94c3, an adder 94c4 for adding the output of the shifter 94c3 and the output of the adder 94c2, and an adder 94c5 for adding the output of the adder 94c4 and the output of the first flip-flop of the shifter 94c4. Has been done. Further, the arithmetic unit 94d is a shifter 94d1 composed of two flip-flops for shifting the input data F2 of the inverse conversion, an adder 94d2 for adding the output of this shifter 94d1 and the output of the input data F2, and this adder 9d.
A shifter 94d3 composed of two flip-flops for shifting the output of 4d2, an adder 94d4 for adding the output of this shifter 94d3 and the output of the adder 94d2, and this adder 9
It is composed of an adder 94d5 for adding the output of 4d4 and the output of the first flip-flop of the shifter 94d4.

【0083】また、上記演算器94eは、逆変換の入力
データF7をシフトする2個のフリップフロップからな
るシフタ94e1、このシフタ94e1の出力から入力デ
ータF7を減算する減算器94e2から構成され、上記演
算器94fは、逆変換の入力データF3をシフトする2
個のフリップフロップからなるシフタ84f1、このシ
フタ84f1の出力から入力データF3を減算する減算器
84f2から構成されている。また、上記演算器93g
は、逆変換の入力データF5をシフトする2個のフリッ
プフロップからなるシフタ94g1、シフタ94g1の出
力から入力データF5を減算する減算器94g2から構成
され、上記演算器93hは、逆変換の入力データF1を
シフトする2個のフリップフロップからなるシフタ94
h1、シフタ94h1の出力から入力データF1を減算す
る減算器94h2から構成されている。
The arithmetic unit 94e is composed of a shifter 94e1 composed of two flip-flops for shifting the input data F7 of the inverse conversion, and a subtractor 94e2 for subtracting the input data F7 from the output of the shifter 94e1. The calculator 94f shifts the input data F3 of the inverse transform 2
It is composed of a shifter 84f1 composed of a plurality of flip-flops, and a subtractor 84f2 for subtracting the input data F3 from the output of the shifter 84f1. In addition, the computing unit 93g
Is composed of a shifter 94g1 composed of two flip-flops for shifting the inverse-transformed input data F5, and a subtractor 94g2 for subtracting the input data F5 from the output of the shifter 94g1. Shifter 94 consisting of two flip-flops for shifting F1
It is composed of a subtractor 94h2 for subtracting the input data F1 from the output of h1 and the shifter 94h1.

【0084】また、ステージIIIの演算回路73は、原
理説明(I)で述べたシリアル演算を実行するものであ
り、係数を簡単な整数比に近似した場合の逆DCTシリ
アル演算を行なうシリアル演算器93a〜93hから構
成されている。ここで、上記演算器93aは、減算器9
4aの出力と減算器94bの出力とを加算する加算器9
3a1、この加算器93a1の出力をシフトする3個のフ
リップフロップからなるシフタ93a2から構成されて
いる。また、上記演算器93bは、加算器94c4の出
力と加算器94d5の出力とを加算する加算器93b1、
この加算器93b1の出力をシフトする1個のフリップ
フロップからなるシフタ93b2から構成されている。
また、上記演算器93cは、加算器94d4の出力から
加算器94c5の出力を減算する減算器82c1、この減
算器82c1の出力をシフトする1個のフリップフロッ
プからなるシフタ93c2から構成されている。また、
上記演算器93dは、減算器94a3の出力から減算器
94b3の出力を減算する減算器93d1、この減算器9
3d1の出力をシフトする3個のフリップフロップから
なるシフタ82d2から構成されている。
The stage III arithmetic circuit 73 executes the serial arithmetic described in the principle explanation (I), and performs the inverse DCT serial arithmetic when the coefficient is approximated to a simple integer ratio. It is composed of 93a to 93h. Here, the arithmetic unit 93a is the subtractor 9
Adder 9 for adding the output of 4a and the output of subtractor 94b
3a1 and a shifter 93a2 composed of three flip-flops for shifting the output of the adder 93a1. The arithmetic unit 93b adds the output of the adder 94c4 and the output of the adder 94d5 to the adder 93b1,
The shifter 93b2 is composed of one flip-flop that shifts the output of the adder 93b1.
The arithmetic unit 93c is composed of a subtracter 82c1 for subtracting the output of the adder 94c5 from the output of the adder 94d4, and a shifter 93c2 composed of one flip-flop for shifting the output of the subtractor 82c1. Also,
The arithmetic unit 93d is a subtractor 93d1 that subtracts the output of the subtractor 94b3 from the output of the subtractor 94a3.
It is composed of a shifter 82d2 composed of three flip-flops for shifting the output of 3d1.

【0085】上記演算器93eは、減算器94e2の出
力をシフトする5個のフリップフロップからなるシフタ
93e1、このシフタ93e1の第3番目のフリップフロ
ップの出力と第4番目のフリップフロップの出力を加算
する加算器93e2、加算器93e2の出力をシフトする
シフタ93e3、シフタ93e1の第1番目のフリップフ
ロップの出力と第5番目のフリップフロップの出力を加
算する加算器93e4から構成されている。また、上記
演算器93fは、減算器94f2の出力から減算器94
g2の出力を減算する減算器93f1、この減算器93f
1の出力をシフトする4個のフリップフロップからなる
シフタ93f2、このシフタ93f2の第2番目のフリッ
プフロップの出力と第3番目のフリップフロップの出力
を加算する加算器93f3、減算器93f1の出力とシフ
タ93f2の出力を加算する加算器93f4から構成され
ている。また、上記演算器93gは、減算器94f2の
出力と減算器94g2の出力を加算する加算器93g1、
この加算器93g1の出力をシフトする4個のフリップ
フロップからなるシフタ93g2、このシフタ93g2の
第2番目のフリップフロップの出力と第3番目のフリッ
プフロップの出力を加算する加算器93g3、減算器9
3g1の出力とシフタ93g2の出力を加算する加算器9
3g4から構成されている。また、上記演算器93h
は、減算器94h2の出力をシフトする5個のフリップ
フロップからなるシフタ93h1、このシフタ93h1の
第3番目のフリップフロップの出力と第4番目のフリッ
プフロップの出力を加算する加算器93h2、加算器9
3h2の出力をシフトするシフタ93h3、シフタ93h
1の第1番目のフリップフロップの出力と第5番目のフ
リップフロップの出力を加算する加算器93h4から構
成されている。
The arithmetic unit 93e adds a shifter 93e1 composed of five flip-flops for shifting the output of the subtractor 94e2, an output of the third flip-flop of the shifter 93e1 and an output of the fourth flip-flop of the shifter 93e1. And an adder 93e4 for adding the output of the first flip-flop of the shifter 93e1 and the output of the fifth flip-flop of the shifter 93e1. Further, the arithmetic unit 93f calculates the subtracter 94f2 from the output of the subtractor 94f2.
Subtractor 93f1 for subtracting the output of g2, this subtractor 93f
A shifter 93f2 composed of four flip-flops for shifting the output of 1; an adder 93f3 for adding the output of the second flip-flop of the shifter 93f2 and an output of the subtractor 93f1 It is composed of an adder 93f4 for adding the outputs of the shifter 93f2. The arithmetic unit 93g adds the output of the subtractor 94f2 and the output of the subtractor 94g2 to an adder 93g1,
A shifter 93g2 composed of four flip-flops for shifting the output of the adder 93g1, an adder 93g3 for adding the output of the second flip-flop of the shifter 93g2 and an output of the third flip-flop, and a subtracter 9
Adder 9 for adding the output of 3g1 and the output of shifter 93g2
It is composed of 3g4. In addition, the computing unit 93h
Is a shifter 93h1 composed of five flip-flops for shifting the output of the subtractor 94h2, an adder 93h2 for adding the output of the third flip-flop of the shifter 93h1 and an output of the fourth flip-flop of the shifter 93h1, and an adder 9
Shifter 93h3, shifter 93h for shifting the output of 3h2
It is composed of an adder 93h4 for adding the output of the 1st first flip-flop and the output of the 5th flip-flop.

【0086】また、ステージIIの演算回路72は、原理
説明(I)で述べたシリアル演算を実行するものであ
り、係数を簡単な整数比に近似した場合の逆DCTシリ
アル演算を行なうシリアル演算器92a〜92hから構
成されている。ここで、上記演算器92aは、シフタ9
3a2の出力とシフタ93b2の出力とを加算する加算器
92a1、この加算器92a1の出力をシフトする3個の
フリップフロップからなるシフタ92a2から構成され
ている。また、上記演算器92bは、シフタ93a2の
出力からシフタ93b2の出力を減算する減算器92b
1、この加算器92b1の出力をシフトする3個のフリッ
プフロップからなるシフタ92b2から構成されてい
る。また、上記演算器92cは、シフタ93d2の出力
からシフタ93c2の出力を減算する減算器92c1、こ
の減算器92c1の出力をシフトする3個のフリップフ
ロップからなるシフタ92c2から構成されている。ま
た、上記演算器92dは、シフタ93c2の出力とシフ
タ93d2の出力を加算する加算器92d1、この加算器
92d1の出力をシフトする3個のフリップフロップか
らなるシフタ92d2から構成されている。
The stage II arithmetic circuit 72 executes the serial arithmetic described in the principle explanation (I). The serial arithmetic unit performs the inverse DCT serial arithmetic when the coefficient is approximated to a simple integer ratio. It is composed of 92a to 92h. Here, the arithmetic unit 92a includes the shifter 9
It is composed of an adder 92a1 for adding the output of 3a2 and the output of the shifter 93b2, and a shifter 92a2 composed of three flip-flops for shifting the output of the adder 92a1. Further, the arithmetic unit 92b is a subtractor 92b for subtracting the output of the shifter 93b2 from the output of the shifter 93a2.
1. The shifter 92b2 is composed of three flip-flops for shifting the output of the adder 92b1. The arithmetic unit 92c is composed of a subtracter 92c1 for subtracting the output of the shifter 93c2 from the output of the shifter 93d2, and a shifter 92c2 composed of three flip-flops for shifting the output of the subtractor 92c1. The arithmetic unit 92d is composed of an adder 92d1 for adding the output of the shifter 93c2 and the output of the shifter 93d2, and a shifter 92d2 composed of three flip-flops for shifting the output of the adder 92d1.

【0087】上記演算器92eは、加算器93e3の出
力から加算器93f4の出力を減算する減算器92e1、
この減算器92e1の出力をシフトするシフタ92e2、
減算器92e1の出力とシフタ92e2の第1番目のフリ
ップフロップの出力を加算する加算器92e3、後述す
る加算器92f3からシフタ92e2の出力を減算する減
算器92e4から構成されている。また、上記演算器9
2fは、加算器93h3の出力から加算器93g4の出力
を減算する減算器92f1、この減算器92f1の出力を
シフトするシフタ92f2、減算器92f1の出力とシフ
タ92f2の第1番目のフリップフロップの出力を加算
する加算器92f3、加算器92e3とシフタ92f2の
出力を加算する加算器92f4から構成されている。ま
た、上記演算器92gは、加算器93f3の出力と加算
器93e4の出力を加算する加算器92g1、この加算器
92g1の出力をシフトする2個のフリップフロップか
らなるシフタ92g2、この加算器92g1の出力とシフ
タ92g2の出力を加算する加算器92g3、後述するシ
フタh2の第1番目のフリップフロップの出力から加算
器92g3の出力を減算する減算器92g4から構成され
ている。また、上記演算器92hは、加算器93g3の
出力と加算器93h4の出力を加算する加算器92h1、
この加算器92h1の出力をシフトする2個のフリップ
フロップからなるシフタ92h2、この加算器92h1の
出力とシフタ92h2の出力を加算する加算器92h3、
シフタg2の第1番目のフリップフロップの出力と加算
器92h3の出力を加算する加算器92h4から構成され
ている。
The arithmetic unit 92e subtracts the output of the adder 93f4 from the output of the adder 93e3,
A shifter 92e2 for shifting the output of the subtractor 92e1,
It is composed of an adder 92e3 for adding the output of the subtractor 92e1 and the output of the first flip-flop of the shifter 92e2, and a subtractor 92e4 for subtracting the output of the shifter 92e2 from an adder 92f3 described later. In addition, the arithmetic unit 9
2f is a subtractor 92f1 for subtracting the output of the adder 93g4 from the output of the adder 93h3, a shifter 92f2 for shifting the output of the subtractor 92f1, an output of the subtractor 92f1 and an output of the first flip-flop of the shifter 92f2. Is added by an adder 92f3, an adder 92e3, and an adder 92f4 that adds the outputs of the shifter 92f2. The arithmetic unit 92g includes an adder 92g1 for adding the output of the adder 93f3 and an output of the adder 93e4, a shifter 92g2 composed of two flip-flops for shifting the output of the adder 92g1, and the adder 92g1. It is composed of an adder 92g3 for adding the output and the output of the shifter 92g2, and a subtractor 92g4 for subtracting the output of the adder 92g3 from the output of the first flip-flop of the shifter h2 described later. The arithmetic unit 92h adds the output of the adder 93g3 and the output of the adder 93h4 to the adder 92h1,
A shifter 92h2 composed of two flip-flops for shifting the output of the adder 92h1, an adder 92h3 for adding the output of the adder 92h1 and the shifter 92h2,
It is composed of an adder 92h4 for adding the output of the first flip-flop of the shifter g2 and the output of the adder 92h3.

【0088】また、ステージIの演算回路71は上述し
たシリアル演算を実行して逆変換の出力データf0〜f7
を出力するものであり、加算器91a、91b、91
c、91dと減算器91e、91f、91g、91hか
ら構成されている。
Further, the arithmetic circuit 71 of the stage I executes the above-mentioned serial arithmetic operation to output the inversely converted output data f0 to f7.
And adders 91a, 91b, 91
c, 91d and subtractors 91e, 91f, 91g, 91h.

【0089】次に、図8〜図12により前記基本原理
(II)に基づくデータ圧縮伸張装置の構成を説明する。
Next, the structure of the data compression / decompression device based on the basic principle (II) will be described with reference to FIGS.

【0090】上記図5及び図6のデータ変換演算装置5
0に前記基本原理(II)の考え方を適用することを考え
る。図5のデータ圧縮時のデータ変換演算装置50の各
ステージI〜IVの構造をみた場合、ステージIの構造は
シンプルな形であり、またステージIVの出力側の最終段
も加減算のみのシンプルな形であり簡略化は困難であ
る。これに対し、ステージII、III、IVはバタフライ演
算部を有し構造が複雑であるばかりかステージIVのev
en(偶数)側にはタイミング合わせのFFが存在す
る。特に、odd(奇数)側のステージII、III、IVに
は2段のバタフライ演算部が存在し、このodd側のバ
タフライ演算部を簡略化することによってデータ変換演
算装置50全体の演算実行速度を向上させることができ
る。本実施例では、データ変換演算装置50のodd側
に前記基本原理(II)の考え方を適用する。
The data conversion arithmetic unit 5 shown in FIGS. 5 and 6 above.
Consider applying the idea of the basic principle (II) to 0. When the structure of each stage I to IV of the data conversion arithmetic unit 50 at the time of data compression of FIG. The shape is difficult to simplify. On the other hand, the stages II, III, and IV not only have a butterfly operation unit and have a complicated structure, but also the ev of the stage IV.
An FF for timing matching exists on the en (even) side. In particular, the stage II, III, and IV on the odd (odd) side has a two-stage butterfly operation unit. By simplifying the butterfly operation unit on the odd side, the operation execution speed of the entire data conversion operation device 50 is increased. Can be improved. In the present embodiment, the idea of the basic principle (II) is applied to the odd side of the data conversion calculation device 50.

【0091】図8はデータ圧縮伸張装置のデータ圧縮時
のデータ変換演算装置50の回路構成図であり、前記図
5に示すデータ圧縮時のデータ変換演算装置50と同じ
ものである。また、図14は7bitデータが入力された
場合のデータ変換演算装置50の入力から出力までのタ
イミングチャートである。図8において、構造を簡略化
するのが困難なデータ変換演算装置50のodd側に着
目し、同図破線に示すようにデータ変換演算装置50の
odd側のステージII、III及びステージIVのバタフラ
イ演算部を一纏めにし、この部分に前記基本原理(II)
の考え方を適用して簡略化する。
FIG. 8 is a circuit configuration diagram of the data conversion arithmetic unit 50 at the time of data compression of the data compression / expansion device, which is the same as the data conversion arithmetic unit 50 at the time of data compression shown in FIG. FIG. 14 is a timing chart from the input to the output of the data conversion calculation device 50 when 7-bit data is input. In FIG. 8, paying attention to the odd side of the data conversion arithmetic unit 50 whose structure is difficult to simplify, the butterfly of the stages II, III and stage IV on the odd side of the data conversion arithmetic unit 50 is indicated by the broken line in the figure. The calculation unit is integrated, and the basic principle (II)
Apply the idea of to simplify.

【0092】図9は前記基本原理(II)に基づくデータ
圧縮伸張装置のデータ圧縮時のデータ変換演算装置11
0の回路構成図であり、前記図8に示すデータ変換演算
装置50に対応する図である。図9に示すデータ変換演
算装置110は、前記図8の破線内を図11に示すよう
に構成することによってデータ変換演算装置110全体
の速度向上を図るようにしたものである。なお、図9及
び図11の説明に当たり図5と同一構成部分には同一番
号を付している。
FIG. 9 shows a data conversion arithmetic unit 11 for data compression of a data compression / decompression device based on the basic principle (II).
9 is a circuit configuration diagram of 0, and is a diagram corresponding to the data conversion arithmetic device 50 shown in FIG. 8. FIG. The data conversion calculation device 110 shown in FIG. 9 is configured to improve the speed of the entire data conversion calculation device 110 by configuring the inside of the broken line of FIG. 8 as shown in FIG. In the description of FIGS. 9 and 11, the same components as those in FIG. 5 are designated by the same reference numerals.

【0093】図9において、データ変換演算装置110
はI〜IIIの各ステージから構成され、ステージIの演
算回路111はシリアル演算を実行する加算器81a、
81b、81c、81dと減算器81e、81f、81
g、81hから構成されている。減算器81e、81
f、81g、81hの出力はDCT演算式をそのままハ
ードウェア化したシリアル回路100(図11)に出力
される。
In FIG. 9, the data conversion arithmetic unit 110
Is composed of each stage of I to III, and the arithmetic circuit 111 of the stage I is an adder 81a for executing serial arithmetic operation,
81b, 81c, 81d and subtracters 81e, 81f, 81
g, 81h. Subtractors 81e, 81
The outputs of f, 81g, and 81h are output to the serial circuit 100 (FIG. 11) in which the DCT arithmetic expression is directly implemented as hardware.

【0094】また、ステージIIの演算回路112は、原
理説明(I)で述べたシリアル演算を、原理説明(II)
で述べたDCT演算式をそのままハードウェア化したシ
リアル回路上で実行するものであり、even側は係数
を簡単な整数比に近似してDCTシリアル演算を行なう
シリアル演算器112a〜112dから構成され、od
d側はDCT演算式をそのままハードウェア化したシリ
アル回路100(図11)から構成されている。
The arithmetic circuit 112 of the stage II performs the serial operation described in the principle explanation (I) by the principle explanation (II).
The DCT arithmetic expression described above is executed on a hardware serial circuit as it is, and the even side is composed of serial arithmetic units 112a to 112d that perform DCT serial arithmetic by approximating a coefficient to a simple integer ratio. od
The d side is composed of a serial circuit 100 (FIG. 11) in which the DCT arithmetic expression is directly implemented as hardware.

【0095】また、上記シリアル演算器112a〜11
2dの前段は、DCTシリアル演算を行なうシリアル演
算器82a〜82dと、これら演算器82a〜82dの
出力をバタフライ演算により加減算する加減算器83a
〜83dにより構成され、前記図5のeven側のステ
ージIIとステージIIIを合わせたものに相当する。ここ
で、上記演算器82aは、加算器81aの出力と加算器
81dの出力とを加算する加算器82a1、この加算器
82a1の出力をシフトする3個のフリップフロップ
(FF)からなるシフタ82a2から構成され、また、
上記演算器82bは、加算器81bの出力と加算器81
cの出力とを加算する加算器82b1、この加算器82
b1の出力をシフトする3個のフリップフロップ(F
F)からなるシフタ82b2から構成されている。ま
た、上記演算器82cは、加算器81bの出力から加算
器81cの出力を減算する減算器82c1、この減算器
82c1の出力をシフトする3個のフリップフロップか
らなるシフタ82c2、このシフタ82c2の第1番目の
フリップフロップの出力とシフタ82c2の出力を加算
する加算器82c3、シフタ82c2の第2番目のフリッ
プフロップの出力と加算器82c3の出力を加算する加
算器82c4から構成されている。同様に、上記演算器
82dは、加算器81aの出力から加算器81dの出力
を減算する減算器82d1、この減算器82d1の出力を
シフトする3個のフリップフロップからなるシフタ82
d2、このシフタ82d2の第1番目のフリップフロップ
の出力とシフタ82d2の出力を加算する加算器82d
3、シフタ82d2の第2番目のフリップフロップの出力
と加算器82d3の出力を加算する加算器82d4から構
成されている。また、上記シリアル演算器112a〜1
12dの後段は、原理説明(I)で述べたシリアル演算
を実行するものであり、演算器82aの出力と演算器8
2b2の出力を加算する加算器83a、演算器82aの
出力から演算器82bの出力を減算する減算器83b、
演算器82cの加算器82c4の出力から演算器82d
の加算器82d3の出力を減算する減算器83c、演算
器82cの加算器82c3の出力と演算器82dの加算
器82d4の出力を加算する加算器83dから構成され
ている。
Further, the serial computing units 112a to 112a
The preceding stage of 2d is a serial arithmetic unit 82a to 82d for performing DCT serial arithmetic, and an adder / subtractor 83a for adding / subtracting the outputs of these arithmetic units 82a to 82d by butterfly operation.
.About.83d and corresponds to a combination of stage II and stage III on the even side in FIG. Here, the arithmetic unit 82a includes an adder 82a1 for adding the output of the adder 81a and an output of the adder 81d, and a shifter 82a2 including three flip-flops (FF) for shifting the output of the adder 82a1. Configured, also
The arithmetic unit 82b has the output of the adder 81b and the adder 81b.
adder 82b1 for adding the output of c and this adder 82
Three flip-flops (F
It is composed of a shifter 82b2 made of F). Further, the arithmetic unit 82c includes a subtracter 82c1 for subtracting the output of the adder 81c from the output of the adder 81b, a shifter 82c2 composed of three flip-flops for shifting the output of the subtractor 82c1, and a shifter 82c2 of the shifter 82c2. It is composed of an adder 82c3 for adding the output of the first flip-flop and the output of the shifter 82c2, and an adder 82c4 for adding the output of the second flip-flop of the shifter 82c2 and the output of the adder 82c3. Similarly, the arithmetic unit 82d is a shifter 82 including a subtracter 82d1 for subtracting the output of the adder 81d from the output of the adder 81a and three flip-flops for shifting the output of the subtractor 82d1.
d2, an adder 82d for adding the output of the first flip-flop of this shifter 82d2 and the output of the shifter 82d2
3, an adder 82d4 for adding the output of the second flip-flop of the shifter 82d2 and the output of the adder 82d3. In addition, the serial arithmetic units 112a to 112a
The subsequent stage of 12d is for executing the serial operation described in the principle explanation (I), and the output of the arithmetic unit 82a and the arithmetic unit 8
An adder 83a for adding the output of 2b2, a subtracter 83b for subtracting the output of the arithmetic unit 82b from the output of the arithmetic unit 82a,
From the output of the adder 82c4 of the arithmetic unit 82c to the arithmetic unit 82d
The adder 83d for subtracting the output of the adder 82d3 and the adder 83d for adding the output of the adder 82c3 of the calculator 82c and the output of the adder 82d4 of the calculator 82d.

【0096】また、ステージIIの演算回路112のod
d側のシリアル回路100の構成については図11によ
り後述する。
Also, the odd of the arithmetic circuit 112 of the stage II is
The configuration of the d-side serial circuit 100 will be described later with reference to FIG.

【0097】また、ステージIIIの演算回路113は、
原理説明(I)で述べたシリアル演算を実行するもので
あり、係数を簡単な整数比に近似した場合のDCTシリ
アル演算を行なうシリアル演算器113a〜113hか
ら構成されている。
Further, the arithmetic circuit 113 of the stage III is
The serial operation described in the principle explanation (I) is executed, and is composed of serial operation units 113a to 113h for performing DCT serial operation when the coefficient is approximated to a simple integer ratio.

【0098】ここで、上記演算器113aは、加算器8
3aの出力をシフトする3個のフリップフロップからな
るシフタ113a1、このシフタ113a1の第2番目の
フリップフロップの出力と第3番目のフリップフロップ
の出力を加算する加算器84a2、加算器84a2の出力
から加算器83aの出力を減算して出力データF0とし
て出力する減算器84a3から構成されている。また、
上記演算器113bは、減算器83bの出力をシフトす
る3個のフリップフロップからなるシフタ113b1、
このシフタ113b1の第2番目のフリップフロップの
出力と第3番目のフリップフロップの出力を加算する加
算器84b2、加算器84b2の出力から減算器83bの
出力を減算して出力データF4として出力する減算器8
4b3から構成されている。また、上記演算器113c
は、減算器83cの出力をシフトする2個のフリップフ
ロップからなるシフタ113c1、このシフタ113c1
の第2番目のフリップフロップの出力と減算器83cの
出力を加算して出力データF6として出力する加算器8
4c2から構成されている。また、上記演算器113d
は、加算器83dの出力をシフトする2個のフリップフ
ロップからなるシフタ113d1、このシフタ113d1
の第2番目のフリップフロップの出力と加算器83dの
出力を加算して出力データF2として出力する加算器8
4d2から構成されている。
Here, the arithmetic unit 113a is the adder 8
From the output of the shifter 113a1 composed of three flip-flops for shifting the output of 3a, the adder 84a2 and the output of the adder 84a2 for adding the output of the second flip-flop of this shifter 113a1 and the output of the third flip-flop It is composed of a subtracter 84a3 which subtracts the output of the adder 83a and outputs it as output data F0. Also,
The arithmetic unit 113b is a shifter 113b1 composed of three flip-flops for shifting the output of the subtractor 83b,
A subtracter that subtracts the output of the subtracter 83b from the output of the adder 84b2 and the output of the adder 84b2 that adds the output of the second flip-flop and the output of the third flip-flop of this shifter 113b1 and outputs as the output data F4 Bowl 8
It is composed of 4b3. Also, the arithmetic unit 113c
Is a shifter 113c1 composed of two flip-flops for shifting the output of the subtractor 83c, and this shifter 113c1
Adder 8 for adding the output of the second flip-flop and the output of the subtractor 83c to output as output data F6
It is composed of 4c2. In addition, the arithmetic unit 113d
Is a shifter 113d1 composed of two flip-flops for shifting the output of the adder 83d, and this shifter 113d1
Adder 8 which adds the output of the second flip-flop of the above and the output of the adder 83d and outputs as the output data F2
It is composed of 4d2.

【0099】また、上記演算器113eは、シリアル回
路100の出力x0をシフトする2個のフリップフロッ
プからなるシフタ84e4、このシフタ84e4の出力か
ら減算器84e3の出力を減算して出力データF7として
出力する減算器84e5から構成され、上記演算器11
3fは、シリアル回路100の出力x1をシフトする2
個のフリップフロップからなるシフタ84f4、減算器
84f3の出力からシフタ84f4の出力を減算して出力
データF3として出力する減算器84f5から構成されて
いる。また、上記演算器113gは、シリアル回路10
0の出力x2をシフトする2個のフリップフロップから
なるシフタ84g4、シフタ84g4の出力から加算器8
4g3の出力を減算して出力データF5として出力する減
算器84g5から構成され、上記演算器113hは、シ
リアル回路100の出力x3をシフトする2個のフリッ
プフロップからなるシフタ84h4、加算器84h3の出
力からシフタ84h4の出力を減算して出力データF1と
して出力する減算器84h5から構成されている。
Further, the arithmetic unit 113e subtracts the output of the subtracter 84e3 from the output of the shifter 84e4 consisting of two flip-flops for shifting the output x0 of the serial circuit 100, and outputs it as output data F7. The subtractor 84e5 for
3f shifts the output x1 of the serial circuit 100 2
It is composed of a shifter 84f4 composed of a plurality of flip-flops, and a subtractor 84f5 for subtracting the output of the shifter 84f4 from the output of the subtractor 84f3 and outputting it as output data F3. In addition, the arithmetic unit 113g is equivalent to the serial circuit 10
A shifter 84g4 composed of two flip-flops for shifting the output x2 of 0, and an adder 8 from the output of the shifter 84g4
The arithmetic unit 113h is composed of a subtractor 84g5 which subtracts the output of 4g3 and outputs it as output data F5. From the shifter 84h4 and outputs the output data as F1.

【0100】このように、ステージIIIのeven側の
シリアル演算器113a〜113dは、前記図5のステ
ージIVのシリアル演算器84a〜84dのシフタ84a
1〜84d1から3段のフリップフロップ(FF)を取り
去った構成となっており、また、テージIIIのodd側
のシリアル演算器113e〜113hは、前記図5のス
テージIVの演算器84e〜84hからバタフライ演算部
分(例えば、演算器84eにおいては、シフタ84e
1、加算器84e2及び減算器84e3、演算器84fに
おいては、シフタ84f1、加算器84f2及び減算器8
4f3、演算器84gにおいては、シフタ84g1、加算
器84g2及び加算器84g3、演算器84hにおいて
は、シフタ84h1、加算器84h2及び加算器84h
3)を取り去った構成となっている。
As described above, the even side serial arithmetic units 113a to 113d of the stage III are the shifters 84a of the serial arithmetic units 84a to 84d of the stage IV of FIG.
1-84d1 has three flip-flops (FF) removed, and the odd side serial arithmetic units 113e-113h are the same as the stage-IV arithmetic units 84e-84h of FIG. Butterfly operation portion (for example, in the operation unit 84e, the shifter 84e
1, the adder 84e2 and the subtractor 84e3, and the calculator 84f, the shifter 84f1, the adder 84f2 and the subtractor 8
4f3, shifter 84g1 in adder 84g, adder 84g2 and adder 84g3 in calculator 84g, shifter 84h1, adder 84h2 and adder 84h in adder 84h
3) is removed.

【0101】図10は前記基本原理(II)に基づくデー
タ圧縮伸張装置のデータ伸張時のデータ変換演算装置1
20の回路構成図であり、前記図6に示すデータ伸張時
のデータ変換演算装置50に対応する図である。図10
に示すデータ変換演算装置120は、上述したデータ圧
縮時のデータ変換演算装置110の場合と同様に前記図
6のodd側のステージII、III及びステージIVのバタ
フライ演算部を一纏めにし、この部分に前記基本原理
(II)の考え方を適用して簡略化して全体の速度向上を
図るようにしたものである。なお、図10及び図11の
説明に当たり図6と同一構成部分には同一番号を付して
いる。
FIG. 10 shows a data conversion arithmetic unit 1 for data expansion of a data compression / expansion device based on the basic principle (II).
20 is a circuit configuration diagram of 20 and is a diagram corresponding to the data conversion arithmetic unit 50 at the time of data expansion shown in FIG. 6. Figure 10
As in the case of the data conversion arithmetic unit 110 at the time of data compression described above, the data conversion arithmetic unit 120 shown in FIG. The concept of the above-mentioned basic principle (II) is applied to simplify and improve the overall speed. In the description of FIGS. 10 and 11, the same components as those in FIG. 6 are designated by the same reference numerals.

【0102】図10において、データ変換演算装置12
0はI〜IIIの各ステージから構成される。ステージIII
の演算回路123は、原理説明(I)で述べたシリアル
演算を実行するものであり、係数を簡単な整数比に近似
した場合の逆DCTシリアル演算を行なうシリアル演算
器123a〜123hから構成されている。ここで、上
記演算器123aは、逆変換の入力データF0をシフト
する3個のフリップフロップ(FF)からなるシフタ9
4a1、このシフタ94a1の第2番目のフリップフロッ
プの出力と第3番目のフリップフロップの出力を加算す
る加算器94a2、加算器94a2の出力から入力データ
F0を減算する減算器94a3から構成されている。ま
た、上記演算器123bは、逆変換の入力データF4を
シフトする3個のフリップフロップからなるシフタ94
b1、このシフタ94b1の第2番目のフリップフロップ
の出力と第3番目のフリップフロップの出力を加算する
加算器94b2、加算器94b2の出力から入力データF
4を減算する減算器94b3から構成されている。また、
上記演算器123cは、逆変換の入力データF6をシフ
トする2個のフリップフロップからなるシフタ94c
1、このシフタ94c1の出力と入力データF6の出力を
加算する加算器94c2、この加算器94c2の出力をシ
フトする2個のフリップフロップからなるシフタ94c
3、このシフタ94c3の出力と加算器94c2の出力を
加算する加算器94c4、この加算器94c4の出力とシ
フタ94c4の第1番目のフリップフロップの出力を加
算する加算器94c5から構成されている。また、上記
演算器123dは、逆変換の入力データF2をシフトす
る2個のフリップフロップからなるシフタ94d1、こ
のシフタ94d1の出力と入力データF2の出力を加算す
る加算器94d2、この加算器94d2の出力をシフトす
る2個のフリップフロップからなるシフタ94d3、こ
のシフタ94d3の出力と加算器94d2の出力を加算す
る加算器94d4、この加算器94d4の出力とシフタ9
4d4の第1番目のフリップフロップの出力を加算する
加算器94d5から構成されている。
In FIG. 10, the data conversion arithmetic unit 12
0 is composed of stages I to III. Stage III
The arithmetic circuit 123 of FIG. 1 executes the serial operation described in the principle explanation (I), and is composed of serial arithmetic units 123a to 123h for performing the inverse DCT serial operation when the coefficient is approximated to a simple integer ratio. There is. Here, the arithmetic unit 123a is a shifter 9 including three flip-flops (FF) for shifting the input data F0 of the inverse conversion.
4a1, an adder 94a2 for adding the output of the second flip-flop of the shifter 94a1 and an output of the third flip-flop, and a subtractor 94a3 for subtracting the input data F0 from the output of the adder 94a2. . Further, the arithmetic unit 123b is a shifter 94 composed of three flip-flops for shifting the input data F4 of the inverse conversion.
b1, an adder 94b2 for adding the output of the second flip-flop and the output of the third flip-flop of this shifter 94b1, and the input data F from the output of the adder 94b2.
It is composed of a subtractor 94b3 for subtracting 4. Also,
The arithmetic unit 123c is a shifter 94c composed of two flip-flops for shifting the input data F6 of the inverse conversion.
1, an adder 94c2 for adding the output of the shifter 94c1 and the output of the input data F6, and a shifter 94c including two flip-flops for shifting the output of the adder 94c2
3, an adder 94c4 for adding the output of the shifter 94c3 and the output of the adder 94c2, and an adder 94c5 for adding the output of the adder 94c4 and the output of the first flip-flop of the shifter 94c4. Further, the arithmetic unit 123d includes a shifter 94d1 composed of two flip-flops for shifting the input data F2 of the inverse conversion, an adder 94d2 for adding the output of this shifter 94d1 and the output of the input data F2, and this adder 94d2. A shifter 94d3 composed of two flip-flops for shifting the output, an adder 94d4 for adding the output of the shifter 94d3 and the output of the adder 94d2, the output of the adder 94d4 and the shifter 9
It is composed of an adder 94d5 for adding the outputs of the first 4d4 flip-flops.

【0103】また、上記演算器123eは、逆変換の入
力データF7をシフトする2個のフリップフロップから
なるシフタ94e1、このシフタ94e1の出力から入力
データF7を減算してシリアル回路100の入力b2に出
力する減算器94e2から構成され、上記演算器123
fは、逆変換の入力データF3をシフトする2個のフリ
ップフロップからなるシフタ84f1、このシフタ84
f1の出力から入力データF3を減算してシリアル回路1
00の入力b1に出力する減算器84f2から構成されて
いる。また、上記演算器123gは、逆変換の入力デー
タF5をシフトする2個のフリップフロップからなるシ
フタ94g1、シフタ94g1の出力から入力データF5
を減算してシリアル回路100の入力b0に出力する減
算器94g2から構成され、上記演算器123hは、逆
変換の入力データF1をシフトする2個のフリップフロ
ップからなるシフタ94h1、シフタ94h1の出力から
入力データF1を減算してシリアル回路100の入力b3
に出力する減算器94h2から構成されている。
Further, the arithmetic unit 123e is provided with a shifter 94e1 composed of two flip-flops for shifting the input data F7 of the inverse conversion, subtracting the input data F7 from the output of this shifter 94e1 and applying it to the input b2 of the serial circuit 100. Comprising an output subtractor 94e2
f is a shifter 84f1 composed of two flip-flops for shifting the input data F3 of the inverse conversion, and this shifter 84
Serial data 1 by subtracting the input data F3 from the output of f1
It is composed of a subtractor 84f2 which outputs to the input b1 of 00. In addition, the arithmetic unit 123g shifts the input data F5 of the inverse conversion from the shifter 94g1 composed of two flip-flops and the output of the shifter 94g1 to the input data F5.
And a shifter 94h1 composed of two flip-flops for shifting the input data F1 of the inverse conversion, and the output of the shifter 94h1. Input data F1 is subtracted to input b3 of serial circuit 100
It is composed of a subtractor 94h2 for outputting to.

【0104】また、ステージIIの演算回路122は、原
理説明(I)で述べたシリアル演算を、原理説明(II)
で述べたDCT演算式をそのままハードウェア化したシ
リアル回路上で実行するものであり、even側は係数
を簡単な整数比に近似してDCTシリアル演算を行なう
シリアル演算器122a〜122dから構成され、od
d側はDCT演算式をそのままハードウェア化したシリ
アル回路100(図11)から構成されている。また、
ステージIIの演算回路122は、前記図5のeven側
のステージIIIとステージIIの一部を合わせたものに相
当する。
Further, the arithmetic circuit 122 of the stage II performs the serial operation described in the principle explanation (I) by the principle explanation (II).
The DCT arithmetic expression described above is executed on a hardware-equipped serial circuit as it is. od
The d side is composed of a serial circuit 100 (FIG. 11) in which the DCT arithmetic expression is directly implemented as hardware. Also,
The arithmetic circuit 122 of the stage II corresponds to a combination of the stage III and a part of the stage II on the even side in FIG.

【0105】ここで、上記演算器122aは、減算器9
4a3の出力と減算器94b3の出力とを加算する加算器
93a1、この加算器93a1の出力をシフトする3個の
フリップフロップからなるシフタ93a2、シフタ93
a2の出力とシフタ122b1の出力とを加算する加算器
92a1から構成されている。また、上記演算器122
bは、加算器94c4の出力と加算器94d5の出力とを
加算する加算器93b1、この加算器93b1の出力をシ
フトする3個のフリップフロップからなるシフタ122
b1、シフタ93a2の出力からシフタ122b1の出力
を減算する減算器92b1から構成されている。
Here, the arithmetic unit 122a is the subtractor 9
An adder 93a1 for adding the output of 4a3 and the output of the subtractor 94b3, a shifter 93a2 composed of three flip-flops for shifting the output of the adder 93a1, and a shifter 93.
It is composed of an adder 92a1 for adding the output of a2 and the output of the shifter 122b1. Further, the arithmetic unit 122
b is an adder 93b1 for adding the output of the adder 94c4 and the output of the adder 94d5, and a shifter 122 including three flip-flops for shifting the output of the adder 93b1.
It is composed of a subtracter 92b1 for subtracting the output of the shifter 122b1 from the output of the shifter 93a2.

【0106】また、上記演算器122cは、加算器94
d4の出力から加算器94c5の出力を減算する減算器9
3c1、この減算器93c1の出力をシフトする3個のフ
リップフロップからなるシフタ122c1、このシフタ
122c1の第1番目のフリップフロップの出力とシフ
タ122c1の出力を加算する加算器122c2、シフタ
122c1の第2番目のフリップフロップの出力が入力
される加算器122c3、シフタ122d1の出力からシ
フタ122c1の第1番目のフリップフロップの出力を
減算する減算器92c1から構成されている。また、上
記演算器122dは、減算器94a3の出力から加算器
94b3の出力を減算する減算器93d1、この減算器9
3d1の出力をシフトする3個のフリップフロップから
なるシフタ122d1、このシフタ122d1の第1番目
のフリップフロップの出力とシフタ122d1の出力を
加算する加算器122d2、シフタ122d1の第2番目
のフリップフロップの出力が入力される加算器122c
3、シフタ122c1の第1番目のフリップフロップの出
力とシフタ122d1の出力を加算する加算器92d1か
ら構成されている。なお、上記演算器122cの加算器
122c2及び加算器122c3、上記演算器122dの
加算器122d2及び加算器122d3は、データ伸張時
には使用しないが図9に示すデータ圧縮時には使用する
ため図9の演算器112c、112dと同一回路に構成
し、中間出力を取り出すことによって図6のシリアル演
算を行なう。
The arithmetic unit 122c is the adder 94.
Subtractor 9 for subtracting the output of adder 94c5 from the output of d4
3c1, a shifter 122c1 composed of three flip-flops for shifting the output of the subtractor 93c1, an adder 122c2 for adding the output of the first flip-flop of the shifter 122c1 and the output of the shifter 122c1, and a second of the shifter 122c1. It is composed of an adder 122c3 to which the output of the 1st flip-flop is input, and a subtractor 92c1 which subtracts the output of the 1st flip-flop of the shifter 122c1 from the output of the shifter 122d1. Further, the computing unit 122d includes a subtracter 93d1 for subtracting the output of the adder 94b3 from the output of the subtractor 94a3, and the subtractor 9d1.
A shifter 122d1 composed of three flip-flops for shifting the output of 3d1, an adder 122d2 for adding the output of the first flip-flop of this shifter 122d1 and the output of the shifter 122d1, and a second flip-flop of the shifter 122d1. An adder 122c to which the output is input
3. An adder 92d1 for adding the output of the first flip-flop of the shifter 122c1 and the output of the shifter 122d1. The adder 122c2 and the adder 122c3 of the arithmetic unit 122c and the adder 122d2 and the adder 122d3 of the arithmetic unit 122d are not used during the data expansion but are used during the data compression shown in FIG. The serial operation of FIG. 6 is performed by forming the same circuit as 112c and 112d and extracting the intermediate output.

【0107】また、ステージIIの演算回路122のod
d側のシリアル回路100の構成については図11によ
り後述する。
Further, the odd of the arithmetic circuit 122 of the stage II is
The configuration of the d-side serial circuit 100 will be described later with reference to FIG.

【0108】また、ステージIの演算回路121は上述
したシリアル演算を実行して逆変換の出力データf0〜
f7を出力するものであり、シリアル回路100の出力
x3と加算器92a1の出力を加算して出力データf0と
して出力する加算器91a、シリアル回路100の出力
x0と減算器92b1の出力を加算して出力データf3と
して出力する加算器91b、シリアル回路100の出力
x2と減算器92c1の出力を加算して出力データf2と
して出力する加算器91c、シリアル回路100の出力
x1と加算器92d1の出力を加算して出力データf1と
して出力する91d、加算器92d1の出力からシリア
ル回路100の出力x1を減算して出力データf6として
出力する減算器91e、減算器92c1の出力からシリ
アル回路100の出力x2を減算して出力データf5とし
て出力する減算器91f、減算器92b1の出力からシ
リアル回路100の出力x0を減算して出力データf4と
して出力する減算器91g、加算器92a1の出力から
シリアル回路100の出力x3を減算して出力データf7
として出力する減算器91hから構成されている。
Further, the arithmetic circuit 121 of the stage I executes the above-mentioned serial operation to output the output data f0 ...
f7 is output, and the output x3 of the serial circuit 100 and the output of the adder 92a1 are added and output as output data f0. The output x0 of the serial circuit 100 and the output of the subtractor 92b1 are added. An adder 91b for outputting as output data f3, an adder 91c for adding the output x2 of the serial circuit 100 and an output of the subtractor 92c1 and outputting as output data f2, an output x1 of the serial circuit 100 and an output of the adder 92d1 are added. And output 91 as the output data f1 and subtract the output x1 of the serial circuit 100 from the output of the adder 92d1 and output as output data f6 the subtractor 91e and the output x2 of the serial circuit 100 from the output of the subtractor 92c1. The output x0 of the serial circuit 100 is subtracted from the outputs of the subtracter 91f and the subtractor 92b1 Outputs Te as output data f4 subtracter 91g, the output data by subtracting the output x3 of the serial circuit 100 from the output of the adder 92a1 f7
It is composed of a subtractor 91h for outputting as.

【0109】このように、ステージIIのeven側のシ
リアル演算器122a〜122dは、前記図6のステー
ジIIのシリアル演算器92a〜92dのシフタ92a1
〜92d1から3段のフリップフロップ(FF)を取り
去った構成となっている。
As described above, the even side serial arithmetic units 122a to 122d of the stage II are the shifters 92a1 of the stage II serial arithmetic units 92a to 92d of FIG.
It has a configuration in which a 3-stage flip-flop (FF) is removed from ~ 92d1.

【0110】図11はDCT演算式をそのままハードウ
ェア化したシリアル回路100の回路構成図である。シ
リアル回路100は、前述したように前記図8の破線に
示す部分及び前記図6に示すステージII、IIIのodd
側のシリアル回路部分に前記基本原理(II)の考え方を
適用することにより構成されている。
FIG. 11 is a circuit configuration diagram of the serial circuit 100 in which the DCT arithmetic expression is directly implemented as hardware. As described above, the serial circuit 100 includes the portion shown by the broken line in FIG. 8 and the odds of the stages II and III shown in FIG.
It is configured by applying the idea of the basic principle (II) to the serial circuit portion on the side.

【0111】図8の破線内の演算について、入力をb0
〜b3、出力をx0〜x3とすると、シリアル回路100
は、DCT演算式を展開して得られた各入力b0〜b3に
共通な係数を2のべきにある数値をかけた形で表現した
場合の該数値の部分を作成する前段のシリアル回路10
1と、このシリアル回路101により計算された係数出
力に対して出力方向(DCT演算式の横方向)に符号分
を含めた加減算を行なって出力x0〜x3として出力する
後段のシリアル回路102により構成されている。すな
わち、上記シリアル回路101は、入力b0について各
入力b0〜b3に共通な係数(本実施例では、17、8
5、48、72)を2のべきにある数値(本実施例で
は、2、42、6、18)をかけた形で表現した場合に
該数値の部分を作成するシリアル演算器101e、入力
b1について各入力b0〜b3に共通な係数を2のべきに
ある数値をかけた形で表現した場合に該数値の部分を作
成するシリアル演算器101f、入力b2について各入
力b0〜b3に共通な係数を2のべきにある数値をかけた
形で表現した場合に該数値の部分を作成するシリアル演
算器101g、入力b3について各入力b0〜b3に共通
な係数を2のべきにある数値をかけた形で表現した場合
に該数値の部分を作成するシリアル演算器101hから
構成されている。
For the operation within the broken line in FIG. 8, input is b0.
~ B3 and outputs x0 to x3, the serial circuit 100
Is a serial circuit 10 in the preceding stage that creates a part of the numerical value when a coefficient common to each input b0 to b3 obtained by expanding the DCT arithmetic expression is multiplied by a numerical value that is a power of 2.
1 and a serial circuit 102 in the subsequent stage which performs addition / subtraction including a code component in the output direction (horizontal direction of the DCT arithmetic expression) on the coefficient output calculated by the serial circuit 101 and outputs as outputs x0 to x3. Has been done. That is, the serial circuit 101 has a coefficient common to the inputs b0 to b3 for the input b0 (17, 8 in this embodiment).
5, 48, 72) is expressed in the form of multiplying a power of 2 (in this embodiment, 2, 42, 6, 18), a serial computing unit 101e for creating a portion of the power, input b1 For each input b0 to b3, when a coefficient common to each input b0 to b3 is expressed by a power of 2, a serial arithmetic unit 101f that creates a part of the numerical value, and a coefficient common to each input b0 to b3 for input b2 Is expressed in a form of multiplying a power of 2, a serial arithmetic unit 101g that creates a part of the power of 2 and a coefficient common to each input b0 to b3 for input b3 is multiplied by a power of 2 It is composed of a serial computing unit 101h that creates a part of the numerical value when expressed in a form.

【0112】具体的には、シリアル演算器101eは、
入力b0をシフトする3個のフリップフロップからなる
シフタ101e1、入力b0とシフタ101e1の第1番
目のフリップフロップの出力を加算して出力する加算器
101e2、入力b0とシフタ101e1の出力を加算し
て出力する加算器101e3、シフタ101e1の第1番
目のフリップフロップの出力とシフタ101e1の出力
を加算して出力する加算器101e4、入力b0と加算器
101e4の出力を加算して出力する加算器101e5か
ら構成されている。同様に、シリアル演算器101f
は、入力b1をシフトする3個のフリップフロップから
なるシフタ101f1、入力b1とシフタ101f1の第
1番目のフリップフロップの出力を加算して出力する加
算器101f2、入力b1とシフタ101f1の出力を加
算して出力する加算器101f3、シフタ101f1の第
1番目のフリップフロップの出力とシフタ101f1の
出力を加算して出力する加算器101f4、入力b1と加
算器101f4の出力を加算して出力する加算器101
f5から構成されている。また、シリアル演算器101
gは、入力b2をシフトする3個のフリップフロップか
らなるシフタ101g1、入力b2とシフタ101g1の
第1番目のフリップフロップの出力を加算して出力する
加算器101g2、入力b2とシフタ101g1の出力を
加算して出力する加算器101g3、シフタ101g1の
第1番目のフリップフロップの出力とシフタ101g1
の出力を加算して出力する加算器101g4、入力b2と
加算器101g4の出力を加算して出力する加算器10
1g5から構成されている。また、シリアル演算器10
1hは、入力b3をシフトする3個のフリップフロップ
からなるシフタ101e1、入力b3とシフタ101h1
の第1番目のフリップフロップの出力を加算して出力す
る加算器101h2、入力b3とシフタ101h1の出力
を加算して出力する加算器101h3、シフタ101h1
の第1番目のフリップフロップの出力とシフタ101h
1の出力を加算して出力する加算器101h4、入力b3
と加算器101h4の出力を加算して出力する加算器1
01h5から構成されている。
Specifically, the serial computing unit 101e is
A shifter 101e1 consisting of three flip-flops that shifts the input b0, an adder 101e2 that adds and outputs the input b0 and the output of the first flip-flop of the shifter 101e1, and an input b0 and the output of the shifter 101e1 are added. From the adder 101e3 for outputting, the adder 101e4 for adding and outputting the output of the first flip-flop of the shifter 101e1 and the output of the shifter 101e1, and the adder 101e5 for adding and outputting the input b0 and the output of the adder 101e4. It is configured. Similarly, the serial computing unit 101f
Is a shifter 101f1 composed of three flip-flops that shifts the input b1, an adder 101f2 that adds and outputs the outputs of the first flip-flops of the input b1 and the shifter 101f1, and adds the output of the input b1 and the shifter 101f1. And the output of the first flip-flop of the shifter 101f1 and the output of the shifter 101f1 are added and output, and the output of the input b1 and the output of the adder 101f4 are added and output. 101
It is composed of f5. In addition, the serial arithmetic unit 101
g is a shifter 101g1 composed of three flip-flops that shifts the input b2, an adder 101g2 that adds and outputs the outputs of the input b2 and the first flip-flop of the shifter 101g1, and the output of the input b2 and the shifter 101g1. Adder 101g3 for adding and outputting, the output of the first flip-flop of shifter 101g1 and shifter 101g1
101g4 for adding and outputting the outputs of the adder 10 and an adder 10 for adding and outputting the outputs of the input b2 and the adder 101g4
It is composed of 1g5. In addition, the serial arithmetic unit 10
1h is a shifter 101e1 composed of three flip-flops for shifting the input b3, the input b3 and the shifter 101h1
101h2 for adding and outputting the outputs of the first flip-flops of the above, adder 101h3 for adding and outputting the output of input b3 and shifter 101h1 and shifter 101h1
Output of the first flip-flop and shifter 101h
Adder 101h4 for adding and outputting the output of 1 and input b3
And the output of the adder 101h4 are added and output.
It is composed of 01h5.

【0113】また、上記シリアル回路102は、シリア
ル演算器101e〜101hにより計算された係数出力
に対して出力方向に符号分を含めた加減算を順次行なっ
て出力x3〜x0として出力するシリアル演算器102e
〜102hにより構成されている。すなわち、上記シリ
アル演算器102eは、シリアル演算器101fの加算
器101f2の出力とシリアル演算器101eのシフタ
101e1の第1番目のフリップフロップの出力を加算
する加算器102e1、この加算器102e1の出力とシ
リアル演算器101gの加算器101g3の出力を加算
する加算器102e2、この加算器102e2の出力とシ
リアル演算器101hの加算器101h5の出力を加算
する加算器102e3、この加算器102e3の出力と入
力b3を加算する加算器102e4、この加算器102e
4の出力とシリアル演算器101eのシフタ101e1の
第1番目のフリップフロップの出力を加算して出力x3
として出力する加算器102e5から構成されている。
また、上記シリアル演算器102fは、シリアル演算器
101hの加算器101h2の出力からシリアル演算器
101fのシフタ101f1の第1番目のフリップフロ
ップの出力を減算する減算器102f1、この減算器1
02f1の出力とシリアル演算器101eの加算器10
1e3の出力を加算する加算器102f2、この加算器1
02f2の出力とシリアル演算器101gの加算器10
1g5の出力を加算する加算器102f3、この加算器1
02f3の出力と入力b2を加算する加算器102f4、
この加算器102f4の出力からシリアル演算器101
fのシフタ101f1の第1番目のフリップフロップの
出力を減算して出力x2として出力する減算器102f5
から構成されている。また、上記シリアル演算器102
gは、シリアル演算器101eの加算器101e2の出
力とシリアル演算器101gのシフタ101g1の第1
番目のフリップフロップの出力を加算する加算器102
g1、シリアル演算器101hの加算器101h3の出力
から加算器102g1の出力を減算する減算器102g
2、この減算器102g2の出力からシリアル演算器10
1fの加算器101f5の出力を減算する減算器102
g3、この減算器102g3の出力から入力b1を減算す
る減算器102g4、この減算器102g4の出力からシ
リアル演算器101gのシフタ101g1の第1番目の
フリップフロップの出力を減算して出力x1として出力
する減算器102g5から構成されている。また、上記
シリアル演算器102hは、シリアル演算器101hの
シフタ101h1の第1番目のフリップフロップの出力
からシリアル演算器101gの加算器101g2の出力
を減算する減算器102h1、この減算器102h1の出
力とシリアル演算器101fの加算器101f3の出力
を加算する加算器102h2、この加算器102h2の出
力からシリアル演算器101eの加算器101e5の出
力を減算する減算器102h3、この減算器102h3の
出力から入力b0を減算する減算器102h4、この減算
器102h4の出力とシリアル演算器101hのシフタ
101h1の第1番目のフリップフロップの出力を加算
して出力x0として出力する加算器102h5から構成さ
れている。
Further, the serial circuit 102 sequentially performs addition / subtraction including the code component in the output direction on the coefficient outputs calculated by the serial arithmetic units 101e to 101h and outputs the outputs as outputs x3 to x0.
It is composed of 102 h. That is, the serial computing unit 102e adds the output of the adder 101f2 of the serial computing unit 101f and the output of the first flip-flop of the shifter 101e1 of the serial computing unit 101e to the output of the adder 102e1. An adder 102e2 that adds the output of the adder 101g3 of the serial operation unit 101g, an adder 102e3 that adds the output of this adder 102e2 and the output of the adder 101h5 of the serial operation unit 101h, the output of this adder 102e3 and the input b3 Adder 102e4 for adding
The output of 4 is added to the output of the first flip-flop of the shifter 101e1 of the serial arithmetic unit 101e to output x3.
It is composed of an adder 102e5 which outputs as.
Further, the serial computing unit 102f subtracts the output of the first flip-flop of the shifter 101f1 of the serial computing unit 101f from the output of the adder 101h2 of the serial computing unit 101h.
02f1 output and adder 10 of serial computing unit 101e
Adder 102f2 for adding the output of 1e3, this adder 1
02f2 output and adder 10 of serial computing unit 101g
Adder 102f3 for adding the output of 1g5, this adder 1
An adder 102f4 for adding the output of 02f3 and the input b2,
From the output of the adder 102f4, the serial arithmetic unit 101
Subtractor 102f5 that subtracts the output of the first flip-flop of the shifter 101f1 of f and outputs as the output x2
It consists of In addition, the serial computing unit 102
g is the output of the adder 101e2 of the serial arithmetic unit 101e and the first of the shifter 101g1 of the serial arithmetic unit 101g.
Adder 102 for adding the outputs of the th flip-flops
g1, a subtracter 102g for subtracting the output of the adder 102g1 from the output of the adder 101h3 of the serial arithmetic unit 101h
2. From the output of the subtractor 102g2 to the serial calculator 10
Subtractor 102 for subtracting the output of 1f adder 101f5
g3, a subtracter 102g4 that subtracts the input b1 from the output of the subtractor 102g3, the output of the first flip-flop of the shifter 101g1 of the serial operation unit 101g is subtracted from the output of the subtractor 102g4, and the output is output as x1. It is composed of a subtractor 102g5. The serial computing unit 102h subtracts the output of the adder 101g2 of the serial computing unit 101g from the output of the first flip-flop of the shifter 101h1 of the serial computing unit 101h, and the output of this subtractor 102h1. An adder 102h2 that adds the output of the adder 101f3 of the serial arithmetic unit 101f, a subtractor 102h3 that subtracts the output of the adder 101e5 of the serial arithmetic unit 101e from the output of this adder 102h2, and an input b0 from the output of this subtractor 102h3 It is composed of a subtracter 102h4 for subtracting the output of the subtractor 102h4, and an adder 102h5 for adding the output of the subtractor 102h4 and the output of the first flip-flop of the shifter 101h1 of the serial operation unit 101h and outputting it as an output x0.

【0114】図12は、上記シリアル回路100を含ん
で構成されたデータ圧縮時のデータ変換演算装置110
及びデータ伸張時のデータ変換演算装置120のブロッ
ク図である。
FIG. 12 is a data conversion arithmetic unit 110 for data compression, which is configured to include the serial circuit 100.
3 is a block diagram of a data conversion calculation device 120 at the time of data expansion.

【0115】図12において、データ変換演算装置11
0、120は、上記ステージI111,121、ステー
ジII112,122、ステージIII113,123と、
各ステージをデータ圧縮時には図9のように、またデー
タ伸張時には図10のように接続するバスの切り換えを
行なうバスセレクタ131〜134とから構成される。
データ変換演算装置110、120は制御装置52(図
3)からのバス切換え信号によりバスセレクタ131〜
134を切り換えて各ステージの接続状態を切換え、圧
縮伸張両方のデータ変換演算を可能にする。
In FIG. 12, the data conversion arithmetic unit 11
0 and 120 are the stages I111 and 121, the stages II112 and 122, and the stages III113 and 123,
Each stage is composed of bus selectors 131 to 134 for switching the connected buses as shown in FIG. 9 when compressing data and as shown in FIG. 10 when decompressing data.
The data conversion arithmetic units 110 and 120 are connected to the bus selectors 131 to 131 according to the bus switching signal from the control unit 52 (FIG. 3).
By switching 134, the connection state of each stage is switched to enable data conversion operation for both compression and expansion.

【0116】次に、図15〜図23により前記基本原理
(III)に基づくデータ圧縮伸張装置の構成を説明す
る。
Next, the structure of the data compression / expansion device based on the basic principle (III) will be described with reference to FIGS.

【0117】図15は前記基本原理(III)に基づくデ
ータ圧縮伸張装置のデータ圧縮時のデータ変換演算装置
140の回路構成図であり、前記図9の基本原理(II)
に基づくデータ圧縮時のデータ変換演算装置110に、
さらに前記基本原理(III)の考え方を適用した例であ
る。また、図17はデータ変換演算装置140のステー
ジIIのodd側のシリアル回路160の回路構成図であ
り、前記図11のシリアル回路100に、前記基本原理
(III)の考え方を適用した例である。なお、図15及
び図17の説明に当たり図9及び図11と同一構成部分
には同一番号を付している。
FIG. 15 is a circuit configuration diagram of the data conversion arithmetic unit 140 at the time of data compression of the data compression / expansion device based on the basic principle (III). The basic principle (II) of FIG.
To the data conversion arithmetic unit 110 at the time of data compression based on
Further, this is an example in which the idea of the basic principle (III) is applied. 17 is a circuit configuration diagram of the odd-side serial circuit 160 of the stage II of the data conversion arithmetic device 140, and is an example in which the idea of the basic principle (III) is applied to the serial circuit 100 of FIG. 11. . In the description of FIGS. 15 and 17, the same components as those in FIGS. 9 and 11 are designated by the same reference numerals.

【0118】図15において、データ変換演算装置14
0はI〜IIIの各ステージから構成され、ステージIの
演算回路141はシリアル演算を実行する加算器81
a、81b、81c、81dと減算器81e、81f、
81g、81hから構成されている。減算器81e、8
1f、81g、81hの出力はDCT演算式をそのまま
ハードウェア化するとともに、複数段の加減算を一度に
行なうシリアル回路160(図17)に出力される。
In FIG. 15, the data conversion arithmetic unit 14
0 is composed of each stage of I to III, and the arithmetic circuit 141 of the stage I is an adder 81 for executing a serial arithmetic operation.
a, 81b, 81c, 81d and subtractors 81e, 81f,
It is composed of 81g and 81h. Subtractors 81e, 8
The outputs of 1f, 81g, and 81h are output to the serial circuit 160 (FIG. 17) that directly implements the DCT arithmetic expression as hardware and performs addition / subtraction of a plurality of stages at once.

【0119】また、ステージIIの演算回路142は、原
理説明(I)で述べたシリアル演算及び原理説明(II)
で述べたDCT演算式をそのままハードウェア化したシ
リアル回路を基に、原理説明(III)で述べた考え方に
従って複数段の加減算を一度に行なうシリアル回路を構
成し、このように構成したシリアル回路上でデータ変換
演算を実行するものである。ここで、even側は係数
を簡単な整数比に近似してDCTシリアル演算を行なう
とともに、フリップフロップ(FF)を有しないアダー
(サブトラクタ)を含んで構成されたシリアル演算器1
42a〜142dから構成され、odd側もDCT演算
式をそのままハードウェア化したシリアル回路を基に、
原理説明(III)で述べた複数段の加減算を一度に行な
うシリアル回路160(図17)から構成されている。
The arithmetic circuit 142 of the stage II has the serial operation and the principle explanation (II) described in the principle explanation (I).
On the basis of the serial circuit in which the DCT arithmetic expression described in 1. is directly implemented as hardware, a serial circuit that performs addition and subtraction in multiple stages at a time is configured according to the concept described in the principle explanation (III). The data conversion operation is executed by. Here, the even side performs a DCT serial operation by approximating the coefficient to a simple integer ratio, and a serial operation unit 1 including an adder (subtractor) having no flip-flop (FF).
42a to 142d, and the odd side is based on a serial circuit in which the DCT arithmetic expression is implemented as hardware,
It is composed of a serial circuit 160 (FIG. 17) that performs addition / subtraction at a plurality of stages at once as described in the principle explanation (III).

【0120】また、上記シリアル演算器142a〜14
2dは、DCTシリアル演算を行なうシリアル演算器8
2a〜82dと、これら演算器82a〜82dの出力を
バタフライ演算により加減算する内部にフリップフロッ
プ(FF)を有しない加減算器142a2〜142d2に
より構成され、前記図9のeven側のステージIIに相
当する。ここで、上記演算器142aは、加算器81a
の出力と加算器81dの出力とを加算する加算器82a
1、この加算器82a1の出力をシフトする2個のフリッ
プフロップ(FF)からなるシフタ124a1、シフタ
142b1の出力とシフタ142a1の出力を加算する内
部にフリップフロップ(FF)を有しない加算器142
a2から構成されている。また、上記演算器124b
は、加算器81bの出力と加算器81cの出力とを加算
する加算器82b1、この加算器82b1の出力をシフト
する2個のフリップフロップ(FF)からなるシフタ1
42b1、シフタ142a1の出力からシフタ142b1
の出力を減算するフリップフロップ(FF)を有しない
減算器142b2から構成されている。
Further, the serial operation units 142a to 142a
2d is a serial calculator 8 for performing DCT serial calculation
2a to 82d and adder / subtractors 142a2 to 142d2 having no internal flip-flop (FF) for adding and subtracting the outputs of the arithmetic units 82a to 82d by butterfly operation, and correspond to the stage II on the even side in FIG. . Here, the arithmetic unit 142a is the adder 81a.
Adder 82a for adding the output of the above and the output of the adder 81d
1, a shifter 124a1 composed of two flip-flops (FF) for shifting the output of the adder 82a1, and an adder 142 having no internal flip-flop (FF) for adding the output of the shifter 142b1 and the output of the shifter 142a1
It is composed of a2. In addition, the arithmetic unit 124b
Is a shifter 1 including an adder 82b1 for adding the output of the adder 81b and an output of the adder 81c, and two flip-flops (FF) for shifting the output of the adder 82b1.
42b1, shifter 142a1 output to shifter 142b1
It is composed of a subtractor 142b2 having no flip-flop (FF) for subtracting the output of the.

【0121】また、上記演算器142cは、加算器81
bの出力から加算器81cの出力を減算する減算器82
c1、この減算器82c1の出力をシフトする2個のフリ
ップフロップからなるシフタ142c1、この減算器8
2c1の出力とシフタ142c1の出力を加算する加算器
82c3、シフタ142c1の第1番目のフリップフロッ
プの出力と加算器82c3の出力を加算する加算器82
c4、演算器142dの加算器82d3の出力から演算器
142cの加算器82c4の出力を減算する内部にフリ
ップフロップ(FF)を有しない減算器142c2から
構成されている。同様に、上記演算器142dは、加算
器81aの出力から加算器81dの出力を減算する減算
器82d1、この減算器82d1の出力をシフトする2個
のフリップフロップからなるシフタ142d1、このシ
フタ142d1の出力と減算器82d1の出力を加算する
加算器82d3、この加算器82d3の出力とシフタ82
d2の第1番目のフリップフロップの出力を加算する加
算器82d4、演算器142cの加算器82c3の出力と
加算器82d4の出力を加算する内部にフリップフロッ
プ(FF)を有しない加算器142d2から構成されて
いる。
Further, the arithmetic unit 142c is the adder 81
Subtractor 82 for subtracting the output of adder 81c from the output of b
c1, a shifter 142c1 composed of two flip-flops for shifting the output of the subtractor 82c1, and the subtractor 8
An adder 82c3 for adding the output of 2c1 and the output of the shifter 142c1, and an adder 82 for adding the output of the first flip-flop of the shifter 142c1 and the output of the adder 82c3.
c4, a subtractor 142c2 having no internal flip-flop (FF) for subtracting the output of the adder 82c4 of the arithmetic unit 142c from the output of the adder 82d3 of the arithmetic unit 142d. Similarly, the arithmetic unit 142d includes a subtracter 82d1 for subtracting the output of the adder 81d from the output of the adder 81a, a shifter 142d1 composed of two flip-flops for shifting the output of the subtractor 82d1, and the shifter 142d1. An adder 82d3 for adding the output and the output of the subtractor 82d1, the output of the adder 82d3 and the shifter 82
An adder 82d4 that adds the output of the first flip-flop of d2, and an adder 142d2 that does not have an internal flip-flop (FF) that adds the output of the adder 82c3 of the calculator 142c and the output of the adder 82d4 Has been done.

【0122】また、ステージIIの演算回路142のod
d側のシリアル回路160の構成については図17によ
り後述する。
Also, the odd of the arithmetic circuit 142 of the stage II is
The configuration of the d-side serial circuit 160 will be described later with reference to FIG.

【0123】ここで、図18及び図19は図15中の加
算器142a2、加算器142d2、減算器142b2、
減算器142c2の構造を示す図であり、図18は、前
記図40に示した加算(a+b)を行なう1タイムディ
レイユニットフルアダー(内部Carry Type)22から遅
延用のフリップフロップ(FF)を除去したアダー(内
部Carry Type)を、図19は、前記図41に示した減算
(a−b)を行なう1タイムディレイユニットフルサブ
トラクタ(内部Borrow type)23から遅延用のフリッ
プフロップ(FF)を除去したサブトラクタ(内部Borr
ow type)をそれぞれ示している。
18 and 19, the adder 142a2, the adder 142d2, and the subtractor 142b2 shown in FIG.
FIG. 18 is a diagram showing the structure of the subtractor 142c2, and FIG. 18 shows a delay flip-flop (FF) removed from the 1-time delay unit full adder (internal Carry Type) 22 for performing the addition (a + b) shown in FIG. 19 shows a 1-time delay unit full subtractor (internal Borrow type) 23 for performing the subtraction (ab) shown in FIG. 41 and a flip-flop (FF) for delay. Removed subtractor (internal Borr
ow type).

【0124】また、ステージIIIの演算回路143は、
原理説明(I)で述べたシリアル演算を実行するもので
あり、係数を簡単な整数比に近似した場合のDCTシリ
アル演算を行なうシリアル演算器143a〜143hか
ら構成されている。
The arithmetic circuit 143 of the stage III is
The serial operation described in the principle explanation (I) is executed, and is composed of serial operation units 143a to 143h that perform DCT serial operation when the coefficient is approximated to a simple integer ratio.

【0125】ここで、上記演算器143aは、加算器1
42a2の出力をシフトする3個のフリップフロップか
らなるシフタ113a1、このシフタ113a1の第2番
目のフリップフロップの出力と第3番目のフリップフロ
ップの出力を加算する加算器84a2、加算器84a2の
出力から加算器83aの出力を減算して出力データF0
として出力する減算器84a3から構成されている。ま
た、上記演算器143bは、減算器142b2の出力を
シフトする3個のフリップフロップからなるシフタ11
3b1、このシフタ113b1の第2番目のフリップフロ
ップの出力と第3番目のフリップフロップの出力を加算
する加算器84b2、加算器84b2の出力から減算器8
3bの出力を減算して出力データF4として出力する減
算器84b3から構成されている。
Here, the arithmetic unit 143a is the adder 1
From the output of the shifter 113a1 composed of three flip-flops for shifting the output of 42a2, the adder 84a2 and the output of the adder 84a2 for adding the output of the second flip-flop of this shifter 113a1 and the output of the third flip-flop Output data F0 by subtracting the output of the adder 83a
It is composed of a subtractor 84a3 for outputting as. The arithmetic unit 143b is a shifter 11 including three flip-flops that shift the output of the subtractor 142b2.
3b1, an adder 84b2 for adding the output of the second flip-flop of the shifter 113b1 and the output of the third flip-flop, and a subtracter 8 from the output of the adder 84b2.
It is composed of a subtracter 84b3 which subtracts the output of 3b and outputs it as output data F4.

【0126】また、上記演算器143cは、減算器14
2c2の出力をシフトする2個のフリップフロップから
なるシフタ113c1、このシフタ113c1の出力と減
算器142c2の出力を加算する加算器84c2、この加
算器84c2の出力をシフトする2個のフリップフロッ
プからなるシフタ143c1、このシフタ143c1の出
力と加算器84c2の出力を加算する加算器143c2、
この加算器143c24の出力とシフタ143c1の第1
番目のフリップフロップの出力を加算する加算器143
c3から構成されている。また、上記演算器143c
は、加算器142d2の出力をシフトする2個のフリッ
プフロップからなるシフタ113d1、このシフタ11
3d1の出力と加算器142d2の出力を加算する加算器
84d2、この加算器84d2の出力をシフトする2個の
フリップフロップからなるシフタ143d1、このシフ
タ143d1の出力と加算器84d2の出力を加算する加
算器143d2、この加算器143d2の出力とシフタ1
43d1の第1番目のフリップフロップの出力を加算す
る加算器143d3から構成されている。また、上記加
算器84c2の出力は出力データF6として出力され、上
記加算器84d2の出力は出力データF2として出力され
る。なお、上記演算器143cの加算器143c2及び
加算器143c3、上記演算器143dの加算器143
d2及び加算器143d3は、データ圧縮時には使用しな
いが図16に示すデータ伸張時には使用するため図16
の演算器153c、153dと同一回路に構成し、中間
出力を取り出すことによって図15のシリアル演算を行
なう。
The arithmetic unit 143c is the subtractor 14
It is composed of a shifter 113c1 composed of two flip-flops for shifting the output of 2c2, an adder 84c2 for adding the output of the shifter 113c1 and the output of the subtractor 142c2, and two flip-flops for shifting the output of the adder 84c2. A shifter 143c1, an adder 143c2 for adding the output of the shifter 143c1 and the output of the adder 84c2,
The output of the adder 143c24 and the first of the shifter 143c1
Adder 143 for adding the outputs of the th flip-flops
It is composed of c3. In addition, the arithmetic unit 143c
Is a shifter 113d1 composed of two flip-flops for shifting the output of the adder 142d2.
An adder 84d2 for adding the output of 3d1 and the output of the adder 142d2, a shifter 143d1 composed of two flip-flops for shifting the output of this adder 84d2, and an addition for adding the output of this shifter 143d1 and the output of the adder 84d2 143d2, the output of this adder 143d2 and the shifter 1
It is composed of an adder 143d3 for adding the output of the first flip-flop 43d1. The output of the adder 84c2 is output as output data F6, and the output of the adder 84d2 is output as output data F2. The adder 143c2 and the adder 143c3 of the arithmetic unit 143c, and the adder 143 of the arithmetic unit 143d.
Since d2 and adder 143d3 are not used during data compression, they are used during data expansion shown in FIG.
In the same circuit as the calculators 153c and 153d, the serial calculation of FIG. 15 is performed by extracting the intermediate output.

【0127】また、上記演算器143eは、シリアル回
路160の出力O7をシフトする2個のフリップフロッ
プからなるシフタ84e4、このシフタ84e4の出力か
ら減算器84e3の出力を減算して出力データF7として
出力する減算器84e5から構成され、上記演算器14
3fは、シリアル回路160の出力O3をシフトする2
個のフリップフロップからなるシフタ84f4、減算器
84f3の出力からシフタ84f4の出力を減算して出力
データF3として出力する減算器84f5から構成されて
いる。また、上記演算器143gは、シリアル回路16
0の出力O5をシフトする2個のフリップフロップから
なるシフタ84g4、シフタ84g4の出力から加算器8
4g3の出力を減算して出力データF5として出力する減
算器84g5から構成され、上記演算器143hは、シ
リアル回路160の出力O1をシフトする2個のフリッ
プフロップからなるシフタ84h4、加算器84h3の出
力からシフタ84h4の出力を減算して出力データF1と
して出力する減算器84h5から構成されている。
Further, the arithmetic unit 143e subtracts the output of the subtracter 84e3 from the output of the shifter 84e4 composed of two flip-flops for shifting the output O7 of the serial circuit 160, and outputs it as the output data F7. Which is composed of a subtractor 84e5 for
3f shifts the output O3 of the serial circuit 160 2
It is composed of a shifter 84f4 composed of a plurality of flip-flops, and a subtractor 84f5 for subtracting the output of the shifter 84f4 from the output of the subtractor 84f3 and outputting it as output data F3. In addition, the arithmetic unit 143g is the serial circuit 16
A shifter 84g4 composed of two flip-flops for shifting the output O5 of 0, and an adder 8 from the output of the shifter 84g4
The arithmetic unit 143h is composed of a subtractor 84g5 which subtracts the output of 4g3 and outputs it as output data F5. From the shifter 84h4 and outputs the output data as F1.

【0128】このように、データ変換演算装置140の
ステージIIのeven側のシリアル演算器142a〜1
42dは、前記図9のステージIIのシリアル演算器11
2a〜112dの各シフタ82a2、82b2、82c
2、82d2からフリップフロップ(FF)を更に1段取
り去った構成となっており、また、ステージIIのeve
n側のシリアル演算器142a〜142dの加算器14
2a2、加算器142d2、減算器142b2、減算器1
42c2は遅延用のフリップフロップ(FF)を有しな
い構造のものであるためこの点においてもクロック数を
少なくすることができる。また、ステージIIIのeve
n側のシリアル演算器143a〜143dは、前記図9
のステージIIIのeven側のシリアル演算器113a
〜113dに対応した構成となっており、また、ステー
ジIIIのodd側のシリアル演算器143e〜143h
は、図17のシリアル回路160の出力O7、O3、O
5、O1をシリアル演算する構成となっている。
As described above, the serial arithmetic units 142a to 142a on the even side of the stage II of the data conversion arithmetic unit 140.
42d is the serial arithmetic unit 11 of the stage II of FIG.
2a to 112d shifters 82a2, 82b2, 82c
It has a configuration in which one more flip-flop (FF) is removed from 2, 82d2, and the stage II eve
Adder 14 of the n-side serial arithmetic units 142a to 142d
2a2, adder 142d2, subtractor 142b2, subtractor 1
Since 42c2 has a structure having no delay flip-flop (FF), the number of clocks can be reduced also in this respect. Also, the stage III eve
The n-side serial computing units 143a to 143d are the same as those shown in FIG.
Stage III even side serial computing unit 113a
To 113d, and the odd-side serial arithmetic units 143e to 143h of stage III.
Are outputs O7, O3, O of the serial circuit 160 of FIG.
5, O1 is serially operated.

【0129】図16は前記基本原理(III)に基づくデ
ータ圧縮伸張装置のデータ伸張時のデータ変換演算装置
150の回路構成図であり、前記図10の基本原理(I
I)に基づくデータ伸張時のデータ変換演算装置120
に、さらに前記基本原理(III)の考え方を適用した例
である。また、図17はデータ変換演算装置150のス
テージIIのodd側のシリアル回路160の回路構成図
であり、前記データ変換演算装置140のステージIIの
odd側のシリアル回路160と同一のものである。な
お、図16及び図17の説明に当たり図10及び図11
と同一構成部分には同一番号を付している。
FIG. 16 is a circuit configuration diagram of the data conversion arithmetic unit 150 at the time of data expansion of the data compression / expansion device based on the basic principle (III).
Data conversion arithmetic unit 120 for decompressing data based on I)
Is an example in which the idea of the basic principle (III) is further applied. 17 is a circuit configuration diagram of the odd-side serial circuit 160 of the stage II of the data conversion arithmetic unit 150, which is the same as the odd-side serial circuit 160 of the stage II of the data conversion arithmetic unit 140. 16 and 17, the description of FIG. 10 and FIG.
The same numbers are given to the same components as.

【0130】図16において、データ変換演算装置15
0はI〜IIIの各ステージから構成される。ステージIII
の演算回路153は、原理説明(I)で述べたシリアル
演算を実行するものであり、係数を簡単な整数比に近似
した場合の逆DCTシリアル演算を行なうシリアル演算
器153a〜153hから構成されている。ここで、上
記演算器153aは、逆変換の入力データF0をシフト
する3個のフリップフロップ(FF)からなるシフタ9
4a1、このシフタ94a1の第2番目のフリップフロッ
プの出力と第3番目のフリップフロップの出力を加算す
る加算器94a2、加算器94a2の出力から入力データ
F0を減算する減算器94a3から構成されている。ま
た、上記演算器153bは、逆変換の入力データF4を
シフトする3個のフリップフロップからなるシフタ94
b1、このシフタ94b1の第2番目のフリップフロップ
の出力と第3番目のフリップフロップの出力を加算する
加算器94b2、加算器94b2の出力から入力データF
4を減算する減算器94b3から構成されている。また、
上記演算器153cは、逆変換の入力データF6をシフ
トする2個のフリップフロップからなるシフタ94c
1、このシフタ94c1の出力と入力データF6の出力を
加算する加算器94c2、この加算器94c2の出力をシ
フトする2個のフリップフロップからなるシフタ94c
3、このシフタ94c3の出力と加算器94c2の出力を
加算する加算器94c4、この加算器94c4の出力とシ
フタ94c3の第1番目のフリップフロップの出力を加
算する加算器94c5から構成されている。また、上記
演算器153dは、逆変換の入力データF2をシフトす
る2個のフリップフロップからなるシフタ94d1、こ
のシフタ94d1の出力と入力データF2の出力を加算す
る加算器94d2、この加算器94d2の出力をシフトす
る2個のフリップフロップからなるシフタ94d3、こ
のシフタ94d3の出力と加算器94d2の出力を加算す
る加算器94d4、この加算器94d4の出力とシフタ9
4d3の第1番目のフリップフロップの出力を加算する
加算器94d5から構成されている。
In FIG. 16, the data conversion arithmetic unit 15
0 is composed of stages I to III. Stage III
The arithmetic circuit 153 for executing the serial operation described in the principle explanation (I) is composed of serial arithmetic units 153a to 153h for performing the inverse DCT serial operation when the coefficient is approximated to a simple integer ratio. There is. Here, the arithmetic unit 153a is a shifter 9 including three flip-flops (FF) for shifting the input data F0 of the inverse conversion.
4a1, an adder 94a2 for adding the output of the second flip-flop of the shifter 94a1 and an output of the third flip-flop, and a subtractor 94a3 for subtracting the input data F0 from the output of the adder 94a2. . Further, the arithmetic unit 153b is a shifter 94 composed of three flip-flops for shifting the input data F4 of the inverse conversion.
b1, an adder 94b2 for adding the output of the second flip-flop and the output of the third flip-flop of this shifter 94b1, and the input data F from the output of the adder 94b2.
It is composed of a subtractor 94b3 for subtracting 4. Also,
The arithmetic unit 153c is a shifter 94c composed of two flip-flops for shifting the input data F6 of the inverse conversion.
1, an adder 94c2 for adding the output of the shifter 94c1 and the output of the input data F6, and a shifter 94c including two flip-flops for shifting the output of the adder 94c2
3, an adder 94c4 for adding the output of the shifter 94c3 and the output of the adder 94c2, and an adder 94c5 for adding the output of the adder 94c4 and the output of the first flip-flop of the shifter 94c3. The arithmetic unit 153d includes a shifter 94d1 composed of two flip-flops for shifting the input data F2 of the inverse conversion, an adder 94d2 for adding the output of the shifter 94d1 and the output of the input data F2, and the adder 94d2 of the adder 94d2. A shifter 94d3 composed of two flip-flops for shifting the output, an adder 94d4 for adding the output of the shifter 94d3 and the output of the adder 94d2, the output of the adder 94d4 and the shifter 9
It is composed of an adder 94d5 for adding the outputs of the first 4d3 flip-flops.

【0131】また、上記演算器153eは、逆変換の入
力データF7をシフトする2個のフリップフロップから
なるシフタ94e1、このシフタ94e1の出力から入力
データF7を減算してシリアル回路160の入力Cに出
力する減算器94e2から構成され、上記演算器153
fは、逆変換の入力データF3をシフトする2個のフリ
ップフロップからなるシフタ84f1、このシフタ84
f1の出力から入力データF3を減算してシリアル回路1
60の入力Bに出力する減算器84f2から構成されて
いる。また、上記演算器153gは、逆変換の入力デー
タF5をシフトする2個のフリップフロップからなるシ
フタ94g1、シフタ94g1の出力から入力データF5
を減算してシリアル回路160の入力Aに出力する減算
器94g2から構成され、上記演算器153hは、逆変
換の入力データF1をシフトする2個のフリップフロッ
プからなるシフタ94h1、シフタ94h1の出力から入
力データF1を減算してシリアル回路160の入力Dに
出力する減算器94h2から構成されている。
Further, the arithmetic unit 153e shifts the input data F7 of the inverse conversion by a shifter 94e1 composed of two flip-flops, subtracts the input data F7 from the output of this shifter 94e1 and inputs it to the input C of the serial circuit 160. It is composed of a subtractor 94e2 for outputting
f is a shifter 84f1 composed of two flip-flops for shifting the input data F3 of the inverse conversion, and this shifter 84
Serial data 1 by subtracting the input data F3 from the output of f1
It is composed of a subtractor 84f2 which outputs to the input B of 60. Further, the arithmetic unit 153g shifts the input data F5 of the inverse conversion from the shifter 94g1 composed of two flip-flops and the output of the shifter 94g1 to the input data F5.
Is formed of a subtracter 94g2 for subtracting and outputting to the input A of the serial circuit 160. The arithmetic unit 153h outputs from the shifter 94h1 and the output of the shifter 94h1 composed of two flip-flops for shifting the input data F1 of the inverse conversion. It is composed of a subtractor 94h2 which subtracts the input data F1 and outputs it to the input D of the serial circuit 160.

【0132】また、ステージIIの演算回路152は、原
理説明(I)で述べたシリアル演算及び原理説明(II)
で述べたDCT演算式をそのままハードウェア化したシ
リアル回路を基に、原理説明(III)で述べた考え方に
従って複数段の加減算を一度に行なうシリアル回路を構
成し、このように構成したシリアル回路上でデータ逆変
換演算を実行するものである。even側は係数を簡単
な整数比に近似してDCTシリアル演算を行なうととも
に、フリップフロップ(FF)を有しないアダー(サブ
トラクタ)を含んで構成されたシリアル演算器152a
〜152dから構成され、odd側もDCT演算式をそ
のままハードウェア化したシリアル回路を基に、原理説
明(III)で述べた複数段の加減算を一度に行なうシリ
アル回路160(図17)から構成されている。
The arithmetic circuit 152 of the stage II has the serial operation and the principle explanation (II) described in the principle explanation (I).
On the basis of the serial circuit in which the DCT arithmetic expression described in 1. is directly implemented as hardware, a serial circuit that performs addition and subtraction in multiple stages at a time is configured according to the concept described in the principle explanation (III). The data inverse conversion calculation is executed by. The even side performs a DCT serial operation by approximating the coefficient to a simple integer ratio, and a serial operation unit 152a including an adder (subtractor) having no flip-flop (FF).
.About.152d, and the odd side is also composed of a serial circuit 160 (FIG. 17) that performs addition / subtraction of a plurality of stages at once as described in the principle explanation (III), based on a serial circuit in which the DCT arithmetic expression is directly implemented as hardware. ing.

【0133】ここで、上記演算器152aは、減算器9
4a3の出力と減算器94b3の出力とを加算する加算器
93a1、この加算器93a1の出力をシフトする2個の
フリップフロップからなるシフタ152a1、演算器1
52b1の加算器93b1の出力とシフタ152a1の出
力とを加算する内部にフリップフロップ(FF)を有し
ない加算器152a2から構成されている。また、上記
演算器152bは、加算器94c4の出力と加算器94
d5の出力とを加算する加算器93b1、この加算器93
b1の出力をシフトする2個のフリップフロップからな
るシフタ152b1、シフタ152a1の出力から加算器
93b1の出力を減算する内部にフリップフロップ(F
F)を有しない減算器152b2から構成されている。
Here, the arithmetic unit 152a is the subtractor 9
An adder 93a1 for adding the output of 4a3 and the output of the subtractor 94b3, a shifter 152a1 composed of two flip-flops for shifting the output of this adder 93a1, an arithmetic unit 1
It is composed of an adder 152a2 having no internal flip-flop (FF) for adding the output of the adder 93b1 of 52b1 and the output of the shifter 152a1. Further, the arithmetic unit 152b is provided with the output of the adder 94c4 and the adder 94c4.
The adder 93b1 for adding the output of d5 and the adder 93b1
The output of the adder 93b1 is subtracted from the outputs of the shifter 152b1 and the shifter 152a1 which are composed of two flip-flops that shift the output of b1.
It is composed of a subtracter 152b2 having no F).

【0134】また、上記演算器152cは、加算器94
d4の出力から加算器94c5の出力を減算する減算器9
3c1、この減算器93c1の出力をシフトする2個のフ
リップフロップからなるシフタ152c1、このシフタ
152c1の出力と減算器93c1の出力を加算する加算
器122c2、シフタ152c1の第1番目のフリップフ
ロップの出力が入力される加算器122c3、演算器1
52dのシフタ152d1の出力から減算器93c1の出
力を減算する内部にフリップフロップ(FF)を有しな
い減算器152c2から構成されている。また、上記演
算器152dは、減算器94a3の出力から加算器94
b3の出力を減算する減算器93d1、この減算器93d
1の出力をシフトする2個のフリップフロップからなる
シフタ152d1、このシフタ152d1の出力と減算器
93d1の出力を加算する加算器122d2、シフタ15
2d1の第1番目のフリップフロップの出力が入力され
る加算器122c3、減算器93c1の出力とシフタ15
2d1の出力を加算する内部にフリップフロップ(F
F)を有しない加算器152d2から構成されている。
なお、上記演算器152cの加算器122c2及び加算
器122c3、上記演算器152dの加算器122d2及
び加算器122d3は、データ伸張時には使用しないが
図15に示すデータ圧縮時には使用するため図15の演
算器142c、142dと同一回路に構成し、中間出力
を取り出すことによって図15のシリアル演算を行な
う。
The arithmetic unit 152c is the adder 94.
Subtractor 9 for subtracting the output of adder 94c5 from the output of d4
3c1, a shifter 152c1 composed of two flip-flops for shifting the output of the subtractor 93c1, an adder 122c2 for adding the output of the shifter 152c1 and the output of the subtractor 93c1, and an output of the first flip-flop of the shifter 152c1. Is input to adder 122c3, arithmetic unit 1
It is composed of a subtracter 152c2 having no flip-flop (FF) inside which subtracts the output of the subtractor 93c1 from the output of the shifter 152d1 of 52d. Further, the computing unit 152d uses the output of the subtractor 94a3 to adder 94d.
Subtractor 93d1 for subtracting the output of b3, this subtractor 93d
Shifter 152d1 composed of two flip-flops for shifting the output of 1, adder 122d2 for adding the output of this shifter 152d1 and the output of subtractor 93d1, shifter 15
The output of the adder 122c3 and the subtractor 93c1 to which the output of the first 2d1 flip-flop is input and the shifter 15
The flip-flop (F
It is composed of an adder 152d2 having no F).
The adder 122c2 and the adder 122c3 of the arithmetic unit 152c and the adder 122d2 and the adder 122d3 of the arithmetic unit 152d are not used during the data expansion but are used during the data compression shown in FIG. The serial operation of FIG. 15 is performed by forming the same circuit as 142c and 142d and taking out an intermediate output.

【0135】また、ステージIIの演算回路152のod
d側のシリアル回路160の構成については図17によ
り後述する。
Further, the odd of the arithmetic circuit 152 of the stage II is changed.
The configuration of the d-side serial circuit 160 will be described later with reference to FIG.

【0136】また、ステージIの演算回路151は上述
したシリアル演算を実行して逆変換の出力データf0〜
f7を出力するものであり、シリアル回路160の出力
O1と加算器152a2の出力を加算して出力データf0
として出力する加算器91a、シリアル回路160の出
力O7と減算器152b2の出力を加算して出力データf
3として出力する加算器91b、シリアル回路160の
出力O5と減算器152c2の出力を加算して出力データ
f2として出力する加算器91c、シリアル回路160
の出力O3と加算器152d2の出力を加算して出力デー
タf1として出力する91d、加算器152d2の出力か
らシリアル回路160の出力O3を減算して出力データ
f6として出力する減算器91e、減算器152c2の出
力からシリアル回路160の出力O5を減算して出力デ
ータf5として出力する減算器91f、減算器152b2
の出力からシリアル回路160の出力O7を減算して出
力データf4として出力する減算器91g、加算器15
2a2の出力からシリアル回路160の出力O1を減算し
て出力データf7として出力する減算器91hから構成
されている。
Further, the arithmetic circuit 151 of the stage I executes the above-mentioned serial operation to output the output data f0 ...
f7 is output, and the output O1 of the serial circuit 160 and the output of the adder 152a2 are added to output data f0.
Output from the adder 91a, the output O7 of the serial circuit 160 and the output of the subtracter 152b2
The adder 91b which outputs as 3 and the adder 91c which outputs the output O5 of the serial circuit 160 and the output of the subtracter 152c2 and outputs as the output data f2, the serial circuit 160
Output of the serial circuit 160 from the output of the adder 152d2 is subtracted from the output of the adder 152d2 and output as output data f6. 91f and subtractor 152b2 for subtracting the output O5 of the serial circuit 160 from the output of
91g and adder 15 for subtracting the output O7 of the serial circuit 160 from the output of
It is composed of a subtractor 91h which subtracts the output O1 of the serial circuit 160 from the output of 2a2 and outputs it as output data f7.

【0137】このように、データ変換演算装置150の
ステージIIのeven側のシリアル演算器152a〜1
52dは、前記図10のステージIIの演算器122a〜
122dの各シフタ93a2、122b1、122c1、
122d1からフリップフロップ(FF)を更に1段取
り去った構成となっており、また、ステージIIのeve
n側のシリアル演算器152a〜152dの加算器15
2a2、加算器152d2、減算器152b2、減算器1
52c2は遅延用のフリップフロップ(FF)を有しな
い構造のものであるためこの点においてもクロック数を
少なくすることができる。
As described above, the serial arithmetic units 152a to 152a on the even side of the stage II of the data conversion arithmetic unit 150.
52d is the arithmetic unit 122a to the stage II of FIG.
122d shifters 93a2, 122b1, 122c1,
It has a structure in which one more flip-flop (FF) is removed from 122d1.
Adder 15 of n-side serial computing units 152a to 152d
2a2, adder 152d2, subtractor 152b2, subtractor 1
52c2 has a structure having no delay flip-flop (FF), so that the number of clocks can be reduced in this respect as well.

【0138】図17はDCT演算式をそのままハードウ
ェア化するとともに、複数段の加減算を一度に行なうよ
うに構成したシリアル回路160の回路構成図であり、
このシリアル回路160は、図15に示すデータ変換演
算装置140のステージIIのodd側及び図16に示す
データ変換演算装置150のステージIIのodd側のシ
リアル回路部分を構成する。シリアル回路160は、前
記基本原理(II)の考え方に基づいて構成された前記図
11のシリアル回路100に、さらに前記基本原理(II
I)の考え方を適用したものである。なお、図17の説
明に当たり図11と同一構成部分には同一番号を付して
いる。
FIG. 17 is a circuit configuration diagram of a serial circuit 160 configured such that the DCT arithmetic expression is directly implemented as hardware and a plurality of stages of addition and subtraction are performed at once.
The serial circuit 160 constitutes a serial circuit portion on the odd side of stage II of the data conversion arithmetic unit 140 shown in FIG. 15 and the odd side of stage II of the data conversion arithmetic unit 150 shown in FIG. The serial circuit 160 is the same as the serial circuit 100 of FIG. 11 constructed based on the idea of the basic principle (II), and further includes the basic principle (II).
The idea of I) is applied. In the description of FIG. 17, the same components as those in FIG. 11 are designated by the same reference numerals.

【0139】図17において、シリアル回路160に入
力される入力をA、B、C、D、シリアル回路160か
ら出力される出力をO1、O3、O5、O7とすると、シリ
アル回路160は、DCT演算式を展開して得られた各
入力A〜Dに共通な係数を2のべきにある数値をかけた
形で表現した場合の該数値の部分を作成するシリアル回
路を基礎として、このシリアル回路をフリップフロップ
(FF)を有しないアダー(サブトラクタ)を含んで構
成した前段のシリアル回路161と、このシリアル回路
161により計算された係数出力に対して出力方向(D
CT演算式の横方向)に符号分を含めた加減算を行なっ
て出力O1、O3、O5、O7として出力するフリップフロ
ップ(FF)を有しないアダー(サブトラクタ)を含ん
で構成した後段のシリアル回路162により構成されて
いる。すなわち、上記シリアル回路161は、入力Aに
ついて各入力A〜Dに共通な係数(本実施例では、1
7、85、48、72)を2のべきにある数値(本実施
例では、2、42、6、18)をかけた形で表現した場
合に該数値の部分を作成するシリアル演算器161e、
入力Bについて各入力A〜Dに共通な係数を2のべきに
ある数値をかけた形で表現した場合に該数値の部分を作
成するシリアル演算器161f、入力Cについて各入力
A〜Dに共通な係数を2のべきにある数値をかけた形で
表現した場合に該数値の部分を作成するシリアル演算器
161g、入力Dについて各入力A〜Dに共通な係数を
2のべきにある数値をかけた形で表現した場合に該数値
の部分を作成するシリアル演算器161hから構成され
ている。
In FIG. 17, assuming that the inputs to the serial circuit 160 are A, B, C and D and the outputs from the serial circuit 160 are O1, O3, O5 and O7, the serial circuit 160 performs the DCT operation. This serial circuit is based on a serial circuit that creates a part of a numerical value when a coefficient common to each of the inputs A to D obtained by expanding the equation is expressed in the form of a power of 2 being multiplied. The preceding serial circuit 161 including an adder (subtractor) having no flip-flop (FF), and the output direction (D) for the coefficient output calculated by this serial circuit 161
Serial circuit of the latter stage including an adder (subtractor) having no flip-flop (FF) for performing addition / subtraction including the code part in the horizontal direction of the CT arithmetic expression) and outputting as outputs O1, O3, O5, O7 It is composed of 162. That is, the serial circuit 161 has a coefficient common to the inputs A to D for the input A (1 in this embodiment).
7, 85, 48, 72) is expressed in the form of multiplying a power of 2 (2, 42, 6, 18 in this embodiment), a serial calculator 161e that creates a part of the power,
For input B, a serial calculator 161f that creates a part of a numerical value when a coefficient common to each of A to D is expressed by a power of 2, and common to each of A to D for input C A serial computing unit 161g that creates a part of a numerical value when a coefficient is expressed by a power of 2 and a coefficient common to each of the inputs A to D for the input D is a numerical value that is a power of 2. It is composed of a serial computing unit 161h that creates the part of the numerical value when expressed in the form of multiplication.

【0140】具体的には、シリアル演算器161eは、
入力Aをシフトする3個のフリップフロップからなるシ
フタ161e1、入力Aとシフタ161e1の第1番目の
フリップフロップの出力を加算して出力する内部にフリ
ップフロップ(FF)を有しない加算器161e2、シ
フタ161e1の第1番目のフリップフロップの出力と
シフタ161e1の第2番目のフリップフロップの出力
を加算して出力する加算器161e3、入力Aとシフタ
161e1の出力を加算して出力する加算器161e4、
加算器161e2の出力と加算器161e4の出力を加算
して出力する加算器161e5から構成されている。同
様に、シリアル演算器161fは、入力Bをシフトする
3個のフリップフロップからなるシフタ161f1、入
力Bとシフタ161f1の第1番目のフリップフロップ
の出力を加算して出力する内部にフリップフロップ(F
F)を有しない加算器161f2、シフタ161f1の第
1番目のフリップフロップの出力とシフタ161f1の
第2番目のフリップフロップの出力を加算して出力する
加算器161f3、入力Bとシフタ161f1の出力を加
算して出力する加算器161f4、加算器161f2の出
力と加算器161f4の出力を加算して出力する加算器
161f5から構成されている。
Specifically, the serial computing unit 161e is
A shifter 161e1 composed of three flip-flops for shifting the input A, an adder 161e2 having no internal flip-flop (FF) and a shifter for adding and outputting the outputs of the input A and the first flip-flop of the shifter 161e1 An adder 161e3 for adding the output of the first flip-flop of 161e1 and an output of the second flip-flop of the shifter 161e1 for output; an adder 161e4 for adding and outputting the input A and the output of shifter 161e1;
It is composed of an adder 161e5 for adding and outputting the output of the adder 161e2 and the output of the adder 161e4. Similarly, the serial computing unit 161f adds a shifter 161f1 composed of three flip-flops for shifting the input B and an output of the first flip-flop of the input B and the shifter 161f1 to the inside to output the flip-flop (F
F) without adder 161f2, adder 161f3 for adding and outputting the output of the first flip-flop of shifter 161f1 and the output of the second flip-flop of shifter 161f1, input B and the output of shifter 161f1 It comprises an adder 161f4 for adding and outputting, and an adder 161f5 for adding and outputting the output of the adder 161f2 and the output of the adder 161f4.

【0141】また、シリアル演算器161gは、入力C
をシフトする3個のフリップフロップからなるシフタ1
61g1、入力Cとシフタ161g1の第1番目のフリッ
プフロップの出力を加算して出力する内部にフリップフ
ロップ(FF)を有しない加算器161g2、シフタ1
61g1の第1番目のフリップフロップの出力とシフタ
161g1の第2番目のフリップフロップの出力を加算
して出力する加算器161g3、入力Cとシフタ161
g1の出力を加算して出力する加算器161g4、加算器
161g2の出力と加算器161g4の出力を加算して出
力する加算器161g5から構成されている。また、シ
リアル演算器161hは、入力Dをシフトする3個のフ
リップフロップからなるシフタ161h1、入力Dとシ
フタ161h1の第1番目のフリップフロップの出力を
加算して出力する内部にフリップフロップ(FF)を有
しない加算器161h2、シフタ161h1の第1番目の
フリップフロップの出力とシフタ161h1の第2番目
のフリップフロップの出力を加算して出力する加算器1
61h3、入力Dとシフタ161h1の出力を加算して出
力する加算器161h4、加算器161h2の出力と加算
器161h4の出力を加算して出力する加算器161h5
から構成されている。
Further, the serial computing unit 161g has an input C
Shifter 1 consisting of three flip-flops for shifting
61g1, an input C and an output of the first flip-flop of the shifter 161g1 are added and output, and an adder 161g2 having no internal flip-flop (FF) and a shifter 1
An adder 161g3 for adding and outputting the output of the first flip-flop of 61g1 and the output of the second flip-flop of shifter 161g1, input C and shifter 161
It is composed of an adder 161g4 for adding and outputting the output of g1 and an adder 161g5 for adding and outputting the outputs of the adder 161g2 and 161g4. Further, the serial computing unit 161h adds a shifter 161h1 composed of three flip-flops for shifting the input D and an output of the input D and the first flip-flop of the shifter 161h1 to the inside to output the flip-flop (FF). Adder 161h2 which does not have the above, and an adder 1 for adding and outputting the output of the first flip-flop of the shifter 161h1 and the output of the second flip-flop of the shifter 161h1
61h3, an adder 161h4 for adding and outputting the input D and the output of the shifter 161h1, and an adder 161h5 for adding and outputting the output of the adder 161h2 and the output of the adder 161h4
It consists of

【0142】なお、上記前段のシリアル回路161の出
力は後段のシリアル回路162に入力されるが、この入
出力関係を前記図11のように図示すると接続関係が非
常に複雑になるので、ここでは接続されるシリアル演算
器161e〜161hとシリアル演算器162e〜16
2hの入出力端子同士に同一符号を付して接続関係を示
すものとする。
The output of the serial circuit 161 at the preceding stage is inputted to the serial circuit 162 at the subsequent stage, but if this input / output relationship is illustrated as in FIG. 11, the connection relationship becomes very complicated. Connected serial computing units 161e to 161h and serial computing units 162e to 16
It is assumed that the input / output terminals of 2h are denoted by the same reference numerals to show the connection relationship.

【0143】また、上記シリアル回路162は、シリア
ル演算器161e〜161hにより計算された係数出力
に対して出力方向に符号分を含めた加減算を順次行なう
とともに複数段の加減算を一度に行なって出力O1、O
3、O5、O7として出力するシリアル演算器162e〜
162hにより構成されている。
Further, the serial circuit 162 sequentially performs addition / subtraction including a code component in the output direction on the coefficient outputs calculated by the serial computing units 161e to 161h, and simultaneously performs addition / subtraction of a plurality of stages to output O1. , O
Serial computing unit 162e to output as 3, O5, O7
It is composed of 162h.

【0144】すなわち、上記シリアル演算器162e
は、シリアル演算器161gの加算器161g4の出力
とシリアル演算器161fの加算器161f3の出力を
加算する加算器162e1、シリアル演算器161eの
シフタ161e1の出力とシリアル演算器161gの加
算器161g5の出力を加算する内部にフリップフロッ
プ(FF)を有しない加算器162e2、入力Aと入力
Dを加算する内部にフリップフロップ(FF)を有しな
い加算器162e3、加算器162e1の出力と加算器1
62e2の出力を加算する加算器162e4、この加算器
162e4の出力と加算器162e3の出力を加算して出
力データO1として出力する内部にフリップフロップ
(FF)を有しない加算器162e5から構成されてい
る。また、上記シリアル演算器162fは、シリアル演
算器161eの加算器161e4の出力とシリアル演算
器161hの加算器161h3の出力を加算する加算器
162f1、シリアル演算器161fのシフタ161f1
の出力からシリアル演算器161gの加算器161g5
の出力を減算する内部にフリップフロップ(FF)を有
しない減算器162f2、入力Bから入力Cを減算する
内部にフリップフロップ(FF)を有しない減算器16
2f3、加算器162f1の出力と減算器162f2の出
力を加算する加算器162f4、この加算器162f4の
出力と減算器162f3の出力を加算して出力データO5
として出力する内部にフリップフロップ(FF)を有し
ない加算器162f5から構成されている。
That is, the serial computing unit 162e
Is an adder 162e1 that adds the output of the adder 161g4 of the serial calculator 161g and the output of the adder 161f3 of the serial calculator 161f, the output of the shifter 161e1 of the serial calculator 161e, and the output of the adder 161g5 of the serial calculator 161g. Adder 162e2 that does not have a flip-flop (FF) inside, adder 162e3 that does not have a flip-flop (FF) inside that adds input A and input D, the output of adder 162e1 and adder 1
It is composed of an adder 162e4 for adding the output of 62e2 and an adder 162e5 having no internal flip-flop (FF) for adding the output of the adder 162e4 and the output of the adder 162e3 and outputting as output data O1. . The serial computing unit 162f adds the output of the adder 161e4 of the serial computing unit 161e and the output of the adder 161h3 of the serial computing unit 161h, and the shifter 161f1 of the serial computing unit 161f.
From the output of the serial calculator 161g adder 161g5
Subtractor 162f2 that does not have a flip-flop (FF) inside it to subtract the output of F, and subtractor 16 that does not have a flip-flop (FF) inside to subtract input C from input B
2f3, an adder 162f4 for adding the output of the adder 162f1 and the output of the subtractor 162f2, and an output data O5 by adding the output of the adder 162f4 and the output of the subtractor 162f3
The adder 162f5 does not have a flip-flop (FF) inside.

【0145】また、上記シリアル演算器162gは、シ
リアル演算器161hの加算器161h4の出力からシ
リアル演算器161eの加算器161e3の出力を減算
する減算器162g1、シリアル演算器161gのシフ
タ161g1の出力とシリアル演算器161fの加算器
161f5の出力を加算する内部にフリップフロップ
(FF)を有しない加算器162g2、入力Cと入力B
を加算する内部にフリップフロップ(FF)を有しない
加算器162g3、減算器162g1の出力から加算器1
62g2の出力を減算する減算器162g4、この減算器
162g4の出力から加算器162g3の出力を減算して
出力データO3として出力する内部にフリップフロップ
(FF)を有しない減算器162g5から構成されてい
る。また、上記シリアル演算器162hは、シリアル演
算器161fの加算器161f4の出力からシリアル演
算器161gの加算器161g3の出力を減算する減算
器162h1、シリアル演算器161hのシフタ161
h1の出力からシリアル演算器161eの加算器161
e5の出力を減算する内部にフリップフロップ(FF)
を有しない減算器162h2、入力Dから入力Aを減算
する内部にフリップフロップ(FF)を有しない減算器
162h3、加算器162h1の出力と減算器162h2
の出力を加算する加算器162h4、この加算器162
h4の出力と減算器162h3の出力を加算して出力デー
タO7として出力する内部にフリップフロップ(FF)
を有しない加算器162h5から構成されている。
The serial calculator 162g subtracts the output of the adder 161e3 of the serial calculator 161e from the output of the adder 161h4 of the serial calculator 161h and the output of the shifter 161g1 of the serial calculator 161g. An adder 162g2 having no internal flip-flop (FF) for adding the output of the adder 161f5 of the serial computing unit 161f, input C and input B
From the outputs of the adder 162g3 and the subtractor 162g1 which have no internal flip-flop (FF).
It is composed of a subtracter 162g4 for subtracting the output of 62g2, and a subtracter 162g5 having no internal flip-flop (FF) for subtracting the output of the adder 162g3 from the output of the subtractor 162g4 and outputting it as output data O3. . The serial computing unit 162h subtracts the output of the adder 161g3 of the serial computing unit 161g from the output of the adder 161f4 of the serial computing unit 161f, and the shifter 161 of the serial computing unit 161h.
From the output of h1 to the adder 161 of the serial calculator 161e
Flip-flop (FF) inside which subtracts the output of e5
162h2 that does not have a subtractor, subtracts input A from input D, subtractor 162h3 that does not have an internal flip-flop (FF), output of adder 162h1 and subtractor 162h2
162h4 for adding the outputs of the
An internal flip-flop (FF) that outputs the output data O7 by adding the output of h4 and the output of the subtractor 162h3
It is composed of an adder 162h5 having no.

【0146】このように、シリアル回路160のシリア
ル演算器161e〜161hは、前記図11のシリアル
回路100のシリアル演算器161e〜161hの加算
器101e2、101f2、101g2、101h2を、遅
延用のフリップフロップ(FF)を有しない構造の加算
器161e2、161f2、161g2、161h2に置き
換えた構成となっており、また、シリアル回路160の
シリアル演算器162e〜162hは、前記図11のシ
リアル回路100のシリアル演算器162e〜162h
から加減算器を2段取り去るとともに、加減算器を遅延
用のフリップフロップ(FF)を有しない構造の加減算
器に置き換えた構成となっている。すなわち、シリアル
回路160のシリアル演算器162e〜162hは、ク
ロックが必要な加減算器の段数を先ず減らすとともに、
加減算器を遅延用のフリップフロップ(FF)を有しな
い構造にすることによってこの点においてもクロック数
を少なくしている。また、シフト加減算を行なっていた
加減算器を減らしたことによりできなくなった加減算
は、シフト加減算を行なっていた加算器の前段に遅延用
のフリップフロップ(FF)を有しない加減算器を置
き、これによって遅延させずに加減算のみを行なうよう
にしている。例えば、シリアル演算器162eにあって
は、図11のシリアル回路100のシリアル演算器16
2eから加算器を2段取り去るとともに、最終段の加算
器102e5を遅延用のフリップフロップ(FF)を有
しない構造の加算器162e5に置き換え、加算器16
2e4及び加算器162e5の前段に内部にフリップフロ
ップ(FF)を有しない加算器162e2及び162e3
を置くようにしている。
As described above, the serial arithmetic units 161e to 161h of the serial circuit 160 are the flip-flops for delaying the adders 101e2, 101f2, 101g2 and 101h2 of the serial arithmetic units 161e to 161h of the serial circuit 100 of FIG. It has a configuration in which it is replaced with adders 161e2, 161f2, 161g2, 161h2 having no (FF) structure. Further, the serial arithmetic units 162e to 162h of the serial circuit 160 are the serial arithmetic units of the serial circuit 100 of FIG. Vessels 162e-162h
In this configuration, two stages of adder / subtractor are removed, and the adder / subtractor is replaced with an adder / subtractor having a structure without a flip-flop (FF) for delay. That is, the serial computing units 162e to 162h of the serial circuit 160 first reduce the number of stages of the adder / subtractor requiring a clock, and
In this respect also, the number of clocks is reduced by making the adder / subtractor not have a flip-flop (FF) for delay. In addition, the addition / subtraction that cannot be performed due to the reduction of the adder / subtractor performing the shift addition / subtraction is performed by placing an adder / subtractor having no delay flip-flop (FF) in front of the adder performing the shift addition / subtraction. Only addition and subtraction are performed without delay. For example, in the serial computing unit 162e, the serial computing unit 16 of the serial circuit 100 of FIG.
Two adders are removed from 2e, and the adder 102e5 at the final stage is replaced with an adder 162e5 having a structure without a flip-flop (FF) for delay.
2e4 and an adder 162e5, the adder 162e2 and 162e3 having no internal flip-flop (FF) in the preceding stage
I'm trying to put.

【0147】以上のように構成された上記シリアル回路
160を、図15に示すデータ変換演算装置140のス
テージIIのodd側及び図16に示すデータ変換演算装
置150のステージIIのodd側の回路構成部に用いる
ことによってこのステージIIのクロック数を減少させる
ことができる。同様な方法はステージI及びステージII
Iにも適用することが可能であり、このようにすれば装
置全体のクロック数を減少させることができる。以下、
ステージI及びステージIIIに上記基本原理(III)の考
え方を適用する例について説明する。
The serial circuit 160 having the above-described configuration is used for the circuit configuration of the odd side of stage II of the data conversion arithmetic unit 140 shown in FIG. 15 and the odd side of stage II of the data conversion arithmetic unit 150 shown in FIG. It is possible to reduce the number of clocks in this stage II by using it as a part. Similar methods are Stage I and Stage II
It can also be applied to I, and in this way the number of clocks of the entire device can be reduced. Less than,
An example in which the idea of the basic principle (III) is applied to stage I and stage III will be described.

【0148】図20は上記基本原理(III)の考え方を
ステージIに適用したステージIの回路構成図、図21
はそのステージIIIの回路構成図であり、図22はこの
ステージI〜IIIから構成されるデータ圧縮時のデータ
変換演算装置180、図23はこのステージI〜IIIか
ら構成されるデータ伸張時のデータ変換演算装置190
の回路構成図である。なお、図20〜図23の説明に当
たり図15及び図16と同一構成部分には同一番号を付
している。
FIG. 20 is a circuit configuration diagram of stage I in which the idea of the basic principle (III) is applied to stage I, and FIG.
22 is a circuit configuration diagram of the stage III, FIG. 22 is a data conversion arithmetic device 180 at the time of data compression composed of the stages I to III, and FIG. Conversion arithmetic device 190
2 is a circuit configuration diagram of FIG. 20 to 23, the same components as those in FIGS. 15 and 16 are designated by the same reference numerals.

【0149】図20において、データ変換演算装置18
0及びデータ変換演算装置190のステージIは、入力
データI10〜I17が入力され、入力I10と入力I11を加
算して出力データO10を出力する加算器171a、入力
I10から入力I11を減算して出力O11を出力する減算器
171e、入力I12と入力I13を加算して出力データO
12を出力する加算器171b、入力I12から入力I13を
減算して出力データO13を出力する減算器171f、入
力I14と入力I15を加算して出力データO14を出力する
加算器171c、入力I14から入力I15を減算して出力
データO15を出力する減算器171g、入力I16と入力
I17を加算して出力データO16を出力する加算器171
d、入力I16から入力I17を減算して出力データO17を
出力する減算器171hから構成される。ここで、上記
加算器171a〜171d及び減算器171e〜171
hは、内部にフリップフロップ(FF)を有しないアダ
ー(サブトラクタ)により構成される。
In FIG. 20, the data conversion arithmetic unit 18
0 and the stage I of the data conversion arithmetic unit 190 are input with the input data I10 to I17, add the input I10 and the input I11 and output the output data O10, and output the input I11 by subtracting the input I11. Subtractor 171e that outputs O11, adds input I12 and input I13, and outputs output data O
Adder 171b that outputs 12; subtractor 171f that subtracts input I13 from input I12 to output output data O13; adder 171c that adds input I14 and input I15 to output output data O14; input from input I14 A subtractor 171g that subtracts I15 and outputs output data O15, and an adder 171 that adds input I16 and input I17 and outputs output data O16
d, a subtractor 171h that subtracts the input I17 from the input I16 and outputs the output data O17. Here, the adders 171a to 171d and the subtracters 171e to 171.
h is composed of an adder (subtractor) having no flip-flop (FF) inside.

【0150】図21において、データ変換演算装置18
0及びデータ変換演算装置190のステージIIIは、入
力データI20〜I27に対してシリアル演算を実行して出
力データO20〜O27を出力するシリアル演算器173a
〜173hから構成されている。ここで、上記演算器1
73aは、入力データI20をシフトする3個のフリップ
フロップ(FF)からなるシフタ94a1、このシフタ
94a1の第2番目のフリップフロップの出力と第3番
目のフリップフロップの出力を加算する加算器94a
2、加算器94a2の出力から入力データI20を減算して
出力データO20として出力する内部にフリップフロップ
(FF)を有しない減算器94a3から構成されてい
る。また、上記演算器173bは、入力データI24をシ
フトする3個のフリップフロップからなるシフタ94b
1、このシフタ94b1の第2番目のフリップフロップの
出力と第3番目のフリップフロップの出力を加算する加
算器94b2、加算器94b2の出力から入力データI24
を減算して出力データO27として出力する内部にフリッ
プフロップ(FF)を有しない減算器173b1から構
成されている。
In FIG. 21, the data conversion arithmetic unit 18
0 and the stage III of the data conversion arithmetic unit 190 execute a serial operation on the input data I20 to I27 and output the output data O20 to O27.
.About.173h. Here, the arithmetic unit 1
73a is a shifter 94a1 composed of three flip-flops (FF) for shifting the input data I20, and an adder 94a for adding the output of the second flip-flop of the shifter 94a1 and the output of the third flip-flop.
2. The subtracter 94a3 has no internal flip-flop (FF) and subtracts the input data I20 from the output of the adder 94a2 and outputs it as output data O20. The arithmetic unit 173b is a shifter 94b composed of three flip-flops for shifting the input data I24.
1, the adder 94b2 for adding the output of the second flip-flop of the shifter 94b1 and the output of the third flip-flop of the shifter 94b1, the input data I24 from the output of the adder 94b2
Is subtracted and output as output data O27. It is composed of a subtracter 173b1 having no internal flip-flop (FF).

【0151】また、上記演算器173cは、入力データ
I26をシフトする2個のフリップフロップからなるシフ
タ94c1、このシフタ94c1の出力と入力データI26
の出力を加算して出力データO24として出力する内部に
フリップフロップ(FF)を有しない加算器173c
1、この加算器173c1の出力をシフトする2個のフリ
ップフロップからなるシフタ94c3、このシフタ94
c3の出力と加算器173c1の出力を加算して出力デー
タO25として出力する加算器94c4、この加算器94
c4の出力とシフタ94c3の第1番目のフリップフロッ
プの出力を加算して出力データO26として出力する加算
器94c5から構成されている。また、上記演算器17
3dは、入力データI22をシフトする2個のフリップフ
ロップからなるシフタ94d1、このシフタ94d1の出
力と入力データI22の出力を加算して出力データO23と
して出力する内部にフリップフロップ(FF)を有しな
い加算器173d1、この加算器173d1の出力をシフ
トする2個のフリップフロップからなるシフタ94d
3、このシフタ94d3の出力と加算器173d1の出力
を加算して出力データO25として出力する加算器94d
4、この加算器94d4の出力とシフタ94d3の第1番
目のフリップフロップの出力を加算して出力データO26
として出力する加算器94d5から構成されている。な
お、上記演算器173cのシフタ94c3、加算器94
c4及び加算器94c5、上記演算器173dのシフタ9
4d3、加算器94d4及び加算器94d5は、図22に
示すデータ圧縮時には使用しないが図23に示すデータ
伸張時には使用するようにするため加算器173c1及
び加算器173d1から中間出力(出力データO23、O2
4)を取り出す構成となっている。
Further, the arithmetic unit 173c has a shifter 94c1 composed of two flip-flops for shifting the input data I26, the output of the shifter 94c1 and the input data I26.
Adder 173c that does not have a flip-flop (FF) inside to add the outputs of the
1, a shifter 94c3 composed of two flip-flops for shifting the output of the adder 173c1, this shifter 94
An adder 94c4 for adding the output of c3 and the output of the adder 173c1 to output as output data O25, and this adder 94
It is composed of an adder 94c5 for adding the output of c4 and the output of the first flip-flop of the shifter 94c3 and outputting it as output data O26. In addition, the arithmetic unit 17
3d does not have a shifter 94d1 composed of two flip-flops for shifting the input data I22, and a flip-flop (FF) inside which outputs the output of the shifter 94d1 and the input data I22 as the output data O23. An adder 173d1 and a shifter 94d including two flip-flops that shift the output of the adder 173d1.
3, an adder 94d for adding the output of the shifter 94d3 and the output of the adder 173d1 and outputting it as output data O25
4, the output of the adder 94d4 and the output of the first flip-flop of the shifter 94d3 are added to output data O26.
It is composed of an adder 94d5 which outputs as. The shifter 94c3 and the adder 94 of the arithmetic unit 173c
c4 and adder 94c5, shifter 9 of the computing unit 173d
4d3, the adder 94d4, and the adder 94d5 are not used at the time of data compression shown in FIG. 22, but are used at the time of data expansion shown in FIG. 23 so as to use the intermediate outputs (output data O23, O2
It is configured to take out 4).

【0152】また、上記演算器173eは、入力データ
I23をシフトする2個のフリップフロップからなるシフ
タ94e1、このシフタ94e1の出力から入力データI
23を減算して出力データO30として出力する内部にフリ
ップフロップ(FF)を有しない減算器173e1から
構成され、上記演算器173fは、入力データI25をシ
フトする2個のフリップフロップからなるシフタ94f
1、このシフタ94f1の出力から入力データI25を減算
して出力データO29として出力する内部にフリップフロ
ップ(FF)を有しない減算器173f1から構成され
ている。また、上記演算器173gは、入力データI27
をシフトする2個のフリップフロップからなるシフタ9
4g1、シフタ94g1の出力から入力データI27を減算
して出力データO28として出力する内部にフリップフロ
ップ(FF)を有しない減算器173g1から構成さ
れ、上記演算器173hは、入力データI21をシフトす
る2個のフリップフロップからなるシフタ94h1、シ
フタ94h1の出力から入力データI21を減算して出力
データO31として出力する内部にフリップフロップ(F
F)を有しない減算器173h1から構成されている。
Further, the arithmetic unit 173e is provided with a shifter 94e1 composed of two flip-flops for shifting the input data I23, and the input data I from the output of the shifter 94e1.
It is composed of a subtracter 173e1 having no internal flip-flop (FF) for subtracting 23 and outputting as output data O30. The arithmetic unit 173f is a shifter 94f composed of two flip-flops for shifting the input data I25.
1. The subtracter 173f1 does not have a flip-flop (FF) inside and outputs the output data O29 by subtracting the input data I25 from the output of the shifter 94f1. Further, the computing unit 173g is configured to input data I27
Shifter 9 consisting of two flip-flops for shifting
4g1, a subtracter 173g1 having no internal flip-flop (FF) for subtracting the input data I27 from the output of the shifter 94g1 and outputting it as output data O28. The arithmetic unit 173h shifts the input data I21. The input data I21 is subtracted from the output of the shifter 94h1 and the output of the shifter 94h1 and the internal flip-flop (F
It is composed of a subtractor 173h1 having no F).

【0153】このように、ステージIIIのシリアル演算
器173a〜173hは、前記図16のステージIIIの
シリアル演算器153a〜153hの加算器94c2、
94d2、減算器94a2、94b2、94e2、94f
2、94g2、94h2を、それぞれ遅延用のフリップフ
ロップ(FF)を有しない構造の加算器173c1、1
73d1、減算器173a1、173b1、173e1、1
73f1、173g1、173h1に置き換えた構成とな
っており、これによってクロック数を少なくしている。
図22は上記ステージI、ステージIII及び前記図1
5のステージIIの各シリアル回路を結線して作成される
データ変換演算装置180の回路構成図であり、前記図
15のデータ圧縮時のデータ変換演算装置140に対応
している。
As described above, the serial arithmetic units 173a to 173h of the stage III are the adders 94c2 of the serial arithmetic units 153a to 153h of the stage III of FIG.
94d2, subtractors 94a2, 94b2, 94e2, 94f
2, 94g2 and 94h2 are respectively added to adders 173c1 and 173c1 each having no delay flip-flop (FF).
73d1, subtractors 173a1, 173b1, 173e1, 1
The configuration is replaced with 73f1, 173g1, and 173h1 to reduce the number of clocks.
FIG. 22 shows the stage I, stage III, and FIG.
FIG. 16 is a circuit configuration diagram of a data conversion arithmetic device 180 created by connecting each serial circuit of stage II of No. 5 and corresponds to the data conversion arithmetic device 140 at the time of data compression of FIG. 15.

【0154】また、図23は上記ステージI、ステージ
III及び前記図16のステージIIの各シリアル回路を結
線して作成されるデータ変換演算装置190の回路構成
図であり、前記図16のデータ圧縮時のデータ変換演算
装置140に対応している。なお、図22及び図23に
おいて図15及び図16と同一構成部分には同一番号を
付している。
FIG. 23 shows the stage I and the stage.
FIG. 17 is a circuit configuration diagram of a data conversion arithmetic unit 190 created by connecting each serial circuit of III and the stage II of FIG. 16 and corresponds to the data conversion arithmetic unit 140 at the time of data compression of FIG. 16. 22 and 23, the same components as those in FIGS. 15 and 16 are designated by the same reference numerals.

【0155】次に、本実施例の動作を説明する。Next, the operation of this embodiment will be described.

【0156】本実施例の動作の説明にあたり、まず、前
記基本原理(I)に基づくデータ圧縮伸張装置の全体動
作及びデータ変換演算装置50における動作を述べ、次
いで前記基本原理(II)に基づくデータ変換演算装置1
10、120における動作を述べ、次いで前記基本原理
(III)に基づくデータ変換演算装置140、150、
180、190における動作を述べる。
In describing the operation of this embodiment, first, the overall operation of the data compression / expansion device based on the basic principle (I) and the operation in the data conversion arithmetic unit 50 will be described, and then the data based on the basic principle (II) will be described. Conversion arithmetic unit 1
10 and 120, and then the data conversion arithmetic units 140 and 150 based on the basic principle (III).
The operation at 180 and 190 will be described.

【0157】データ圧縮伸張装置の全体動作(図3) 図3において、データ記憶装置10に蓄えられているパ
ラレルデータはパラレル−シリアル変換装置11に入力
され、パラレル−シリアル変換装置11はデータ記憶装
置10から読み込んだパラレルデータをシリアルデータ
に変換してデータ変換演算装置50に出力する。データ
変換演算装置50は、バス切換えにより圧縮時にパラレ
ル−シリアル変換装置11から出力されたデータに対し
て一次元のDCT演算をシリアル演算の形で施すととも
に、伸張時にパラレル−シリアル変換装置11から出力
された圧縮データに対して一次元の逆DCT演算をシリ
アル演算の形で施す。この場合のシリアル演算は、デー
タ変換演算装置50においてDCT演算係数を簡単な整
数比に変えた形のシリアル回路により行なわれる。シリ
アルDCT演算されたデータはシリアル−パラレル変換
装置13に出力され、シリアル−パラレル変換装置13
はデータ変換演算装置50から出力されたシリアルデー
タをパラレルデータに変換してデータ記憶装置10に書
き込む。上述した処理を縦横(順不同)二次元に施す。
また、量子化装置51は、データ記憶装置10に蓄えら
れたデータ変換演算後のデータに対して、DCT演算係
数を簡単な整数比に変えることにより生じたゲインの変
化分を吸収するように構成された量子化テーブルの値で
逆数の乗算をすることによって量子化演算を行なう。す
なわち、DCT演算係数を簡単な整数比に変え、整数比
として表されたことによって生ずる各出力のゲインの変
化分は量子化装置51において吸収する。本実施例で
は、量子化テーブルを所定数倍(後述)することによっ
てゲインの変化分を量子化装置51において吸収するよ
うにしている。ところで、このような量子化テーブルを
用いた場合、一見すると従来のものと比べて量子化演算
のbit幅が、従来のものよりも多く必要であるかのよう
にも考えられるが、実際には、量子化演算には、逆数の
乗算であるため、係数(例えば、7)の逆数も、7×2
/COS(N/16)πの逆数も、ともに無限小数となるため、
丸め近似を必要とし、ほぼ同じ程度の誤差を含む。すな
わち、従来のCOS係数を2進歩の小数で表現した時点で
丸め誤差が乗ってしまうので、整数の比に置き変えても
誤差を押さえるためにbit幅を大きくする必要はない。
Overall Operation of Data Compression / Expansion Device (FIG. 3) In FIG. 3, the parallel data stored in the data storage device 10 is input to the parallel-serial conversion device 11, and the parallel-serial conversion device 11 is the data storage device. The parallel data read from 10 is converted into serial data and output to the data conversion arithmetic unit 50. The data conversion calculation device 50 performs one-dimensional DCT calculation on the data output from the parallel-serial conversion device 11 at the time of compression by bus switching in the form of serial calculation, and outputs from the parallel-serial conversion device 11 at the time of expansion. A one-dimensional inverse DCT operation is performed on the compressed data in the form of serial operation. The serial operation in this case is performed in the data conversion operation device 50 by a serial circuit in which the DCT operation coefficient is changed to a simple integer ratio. The data subjected to the serial DCT operation is output to the serial-parallel conversion device 13, and the serial-parallel conversion device 13
Converts serial data output from the data conversion arithmetic unit 50 into parallel data and writes the parallel data in the data storage unit 10. The above-described processing is performed in the vertical and horizontal (in no particular order) two-dimensional manner.
Further, the quantizer 51 is configured to absorb a change in gain caused by changing the DCT operation coefficient into a simple integer ratio for the data after data conversion operation stored in the data storage device 10. The quantization operation is performed by performing the reciprocal multiplication with the value of the quantization table thus generated. That is, the quantizer 51 absorbs the change in the gain of each output caused by changing the DCT calculation coefficient to a simple integer ratio and expressing it as an integer ratio. In this embodiment, the quantizer 51 absorbs the gain change by multiplying the quantization table by a predetermined number (described later). By the way, when such a quantization table is used, it can be considered that the bit width of the quantization operation is required to be larger than that of the conventional one at first glance, but in reality, it is actually Since the quantization operation is multiplication of reciprocal numbers, the reciprocal number of the coefficient (for example, 7) is also 7 × 2.
Since the reciprocal of / COS (N / 16) π is also an infinite decimal,
It requires rounding approximation and contains about the same error. That is, since the rounding error is added at the time when the conventional COS coefficient is expressed by a fractional number of two advances, it is not necessary to increase the bit width to suppress the error even if it is replaced with an integer ratio.

【0158】上記データ変換演算装置50により実行さ
れるシリアルDCT演算を以下に説明するシリアル演算
によって行なう。
The serial DCT operation executed by the data conversion operation device 50 is performed by the serial operation described below.

【0159】データ変換演算装置50における動作(図
5、図6) データ変換演算装置50の基本的な動作は図22に示す
従来例と同様であるが、このデータ変換演算装置50に
おけるシリアル演算では後述するように一次元当りのゲ
インが65/64倍、二次元では4225/4096倍のゲインが変化
しているので、量子化時にその補正を行なうように量子
化テーブルを4225/4096倍して、その値で除算(逆数の
乗算)することによって補正を行なう。
Operation in Data Conversion Operation Device 50 (FIGS. 5 and 6) The basic operation of the data conversion operation device 50 is the same as the conventional example shown in FIG. As will be described later, the gain per one dimension is 65/64 times, and the gain in the two dimensions is 4225/4096 times.Therefore, the quantization table should be multiplied by 4225/4096 so as to correct it when quantizing. , Correction is performed by dividing by that value (multiplication of reciprocal).

【0160】以下、この演算について説明する。This calculation will be described below.

【0161】ステージIの演算回路61の出力について
は、図33及び図37に示す従来例と同様であるので以
後、以下のように記する。
The output of the arithmetic circuit 61 of the stage I is the same as that of the conventional example shown in FIGS. 33 and 37, and hence will be described below.

【0162】f0+f7=a0、f-f7=b0、f1+f6=a1、
f1-f6=b1、f2+f5=a2、f2-f5=b2、f3+f4=a
3、f3-f4=b3 まず、図37に示す従来例においてF0〜F7がa0〜a3
およびb0〜b3によってどのように表わされていたかを
示す。
F0 + f7 = a0, f-f7 = b0, f1 + f6 = a1,
f1-f6 = b1, f2 + f5 = a2, f2-f5 = b2, f3 + f4 = a
3, f3-f4 = b3 First, in the conventional example shown in FIG. 37, F0 to F7 are a0 to a3.
And b0 to b3.

【0163】 F0=(724a0+724a1+724a2+724a3)×2048 F4=(724a0−724a1−724a2+724a3)×2048 F2=(473a0+192a1−192a2−473a3)×4096 F6=(192a0−473a1+473a2−192a3)×4096 F1=(295b0+16833b1+25883b2+15104b3)×16 F7=(−15104b0+25883b1−16833b2+2550b3) ×16 F3=(−18176b0−64255b1−12815b2+27264b3) ×16 F5=(27264b0+12815b1−64255b2+18176b3) ×16 この式を以下のように近似し簡略化する。F0 = (724a0 + 724a1 + 724a2 + 724a3) × 2048 F4 = (724a0-724a1−724a2 + 724a3) × 2048 F2 = (473a0 + 192a1−192a2 + 473b2 + 473a2 + 473a3) × 4096 F6 = (192a3 + 2) + 192a0 + 732b + 473a × 4 F7 = (-15104b0 + 25883b1-16833b2 + 2550b3) × 16 F3 = (-18176b0−64255b1-12815b2 + 27264b3) × 16 F5 = (27264b0 + 12815b1−64255b2 + 18176b3) × 16 A simplified expression is approximated as follows.

【0164】 F0=(92a0+92a1+92a2+92a3)×128 F4=(92a0−92a1−92a2+92a3)×128 F2=(60a0+25a1−25a2−60a3)×256 F6=(25a0−60a1+60a2−25a3)×256 F1=(17b0+48b1+72b2+85b3)×6×32 F7=(−85b0+72b1−48b2+17b3)×6×32 F3=(−48b0−85b1−17b2+72b3)×6×32 F5=(72b0+17b1−85b2+48b3)×6×32 ここで、各係数の比は従来のものと、ほぼ同等であるの
で各出力F0〜F7の比はほぼ同等と考えられるが、その
出力のゲインがどのように変化しているかについて考察
してみる。
F0 = (92a0 + 92a1 + 92a2 + 92a3) × 128 F4 = (92a0−92a1−92a2 + 92a3) × 128 F2 = (60a0 + 25a1-25a2-60a3) × 256 F6 = (25a0-60a1 + 60a2 + 25 + 625 × 25a3 + 25a2 + 92a3) × 128 × 32 F7 = (− 85b0 + 72b1−48b2 + 17b3) × 6 × 32 F3 = (− 48b0−85b1−17b2 + 72b3) × 6 × 32 F5 = (72b0 + 17b1−85b2 + 48b3) × 6 × 32 Here, the ratio of each coefficient is conventional. Since it is almost the same, the ratio of the outputs F0 to F7 is considered to be almost the same, but let us consider how the output gain changes.

【0165】出力F0についてみると本来のDCTの計
算式では、出力F0は入力f0〜f7の和の2√2倍となっ
ているが、この比率では2のべきを除いて23倍となっ
ている。2のべき分は、取り込みのタイミングをずらす
ことによって無視できるので23に2√2を乗ずると約6
5となる。よってゲインは65/64倍となっていることが
わかる。
Regarding the output F0, in the original calculation formula of DCT, the output F0 is 2√2 times the sum of the inputs f0 to f7, but this ratio is 23 times except the power of 2. There is. The power of 2 can be ignored by shifting the timing of capture, so multiplying 23 by 2√2 gives about 6
It becomes 5. Therefore, it can be seen that the gain is 65/64 times.

【0166】このような演算式によりDCT変換を行な
うことにより、演算に必要な回路構成としてフリップフ
ロップ(FF)70個、1 Add unit 52個で済む。ま
た図7にあるようなタイミングによって一次元の処理を
行なうことができる。但し、図7はF0、F4についての
タイミングであり、他については最終出力については同
じであるが各ステージにおける出力に関しては異なる。
By performing the DCT conversion by such an arithmetic expression, the circuit configuration required for the operation is 70 flip-flops (FF) and 1 add unit 52. Further, one-dimensional processing can be performed with the timing as shown in FIG. However, FIG. 7 shows the timing for F0 and F4, and the other is the same for the final output but different for the output in each stage.

【0167】実際には上記の演算式をさらに以下のよう
に変形して回路を構成する。
In practice, the above arithmetic expression is further modified as follows to form a circuit.

【0168】 F0=((a0+a3)×16+(a1+a2)×16)×2×8×46 F4=((a0+a3)×16−(a1+a2)×16)×2×8×46 F6=((a0−a3)×40−(a1−a2)×96)×2×8×10 F2=((a0−a3)×96+(a1−a2)×40)×2×8×10 F7=(((48×(b1+b2)+68×b3)×2)×2 −((48×(b2−b1)+68×b0)×2)×10)×12 F3=(((96×b3−68×(b1+b2))×2)×6 −((96×b0−68×(b2−b1))×2)×4)×12 F5=(((96×b0−68×(b2−b1))×2)×6 −((96×b3−68×(b1+b2))×2)×4)×12 F1=(((48×(b2−b1)+68×b0)×2)×2 −((48×(b1+b2)+68×b3)×2)×10)×12 以下、上記演算式に従って構成されたデータ変換演算装
置50の動作を説明する。
F0 = ((a0 + a3) × 16 + (a1 + a2) × 16) × 2 × 8 × 46 F4 = ((a0 + a3) × 16− (a1 + a2) × 16) × 2 × 8 × 46 F6 = ((a0− a3) * 40- (a1-a2) * 96) * 2 * 8 * 10 F2 = ((a0-a3) * 96 + (a1-a2) * 40) * 2 * 8 * 10 F7 = (((48 * (B1 + b2) + 68 × b3) × 2) × 2-((48 × (b2-b1) + 68 × b0) × 2) × 10) × 12 F3 = (((96 × b3−68 × (b1 + b2)) × 2) × 6-((96 × b0-68 × (b2-b1)) × 2) × 4) × 12 F5 = (((96 × b0-68 × (b2-b1)) × 2) × 6- ((96 × b3-68 × (b1 + b2)) × 2) × 4) × 12 F1 = (((48 × (b2-b1) + 68 × b0) × 2) × 2-((48 × (b1 + b2) +68 × b3) × 2) × 10) × 12 Follow the above formula The operation of the configuration data conversion operation unit 50 will be described.

【0169】まず、DCT演算処理の場合を述べると、
ここでは、ステージIの演算回路61において加算器8
1aに入力データf0とf7、加算器81bに入力データ
f1とf6、加算器81cに入力データf2とf5、加算器
81dに入力データf3とf4、減算器81eに入力デー
タf3とf4、減算器81fに入力データf2とf5、減算
器81gに入力データf1とf6、減算器81hに入力デ
ータf0とf7が入力される。これにより加算器81aは
入力データf0とf7の加算結果を出力し、加算器81b
は入力データf1とf6の加算結果を出力し、加算器81
cは入力データf2とf5の加算結果f2+f5を出力し、
加算器81dは入力データf3とf4の加算結果を出力す
るようになる。また、減算器81eは入力データf3と
f4の減算結果を出力し、減算器81fは入力データf2
とf5の減算結果を出力し、減算器81gは入力データ
f1とf6の減算結果を出力し、減算器81hは入力デー
タf0とf7の減算結果を出力するようになる。この場合
の入力データは、図4に示すように7bitと1bitのサイ
ンビットの8bitのデータからなっている。また、出力
データは、図5Iに示すように7+1bitと1bitのサイ
ンビットからなっている。
First, the case of the DCT arithmetic processing will be described.
Here, the adder 8 in the arithmetic circuit 61 of the stage I
1a has input data f0 and f7, adder 81b has input data f1 and f6, adder 81c has input data f2 and f5, adder 81d has input data f3 and f4, and subtractor 81e has input data f3 and f4. Input data f2 and f5 are input to 81f, input data f1 and f6 are input to the subtractor 81g, and input data f0 and f7 are input to the subtractor 81h. As a result, the adder 81a outputs the addition result of the input data f0 and f7, and the adder 81b
Outputs the addition result of the input data f1 and f6, and the adder 81
c outputs the addition result f2 + f5 of the input data f2 and f5,
The adder 81d outputs the addition result of the input data f3 and f4. The subtracter 81e outputs the subtraction result of the input data f3 and f4, and the subtractor 81f outputs the input data f2.
And the subtraction result of f5 is output, the subtracter 81g outputs the subtraction result of the input data f1 and f6, and the subtractor 81h outputs the subtraction result of the input data f0 and f7. The input data in this case consists of 8-bit data of 7-bit and 1-bit sign bit as shown in FIG. The output data is composed of 7 + 1 bit and 1 bit sign bit as shown in FIG. 5I.

【0170】次いで、ステージIIの演算回路62に進
む。この演算回路62のシリアル演算器82a〜82h
には、ステージIの演算回路61で加算あるいは減算さ
れた加減算結果a0、b0、a1、b1、a2、b2、a3、
b3が入力データとして与えられる。上記演算器82a
では、係数を簡単な整数比に近似した場合のDCTシリ
アル演算式F0=((a0+a3)×16+(a1+a2)
×16)×2×8×46及び、F4=((a0+a3)×
16−(a1+a2)×16)×2×8×46に共通する
(a0+a3)×16の演算を実行する。この場合、演算
器82aには、加算器81aの出力(a0)と加算器8
1dの出力(a3)とが入力され、加算器82a1でこれ
ら入力を加算し、この加算結果がシフタ82a2に与え
られる。シフタ82a2からは、図5Iに示すように、
3個のフリップフロップの動作だけ遅延して出力され
る。また上記演算器82bでは、係数を簡単な整数比に
近似した場合のDCTシリアル演算式F0=((a0+a
3)×16+(a1+a2)×16)×2×8×46及
び、F4=((a0+a3)×16−(a1+a2)×1
6)×2×8×46に共通する(a1+a2)×16の演
算を実行する。この場合、演算器82bには、加算器8
1bの出力(a1)と加算器81cの出力(a2)とが入
力され、加算器82b1でこれら入力を加算し、この加
算結果がシフタ82b2に与えられる。シフタ82b2か
らは、図5Iに示すように、3個のフリップフロップの
動作だけ遅延して出力される。
Then, the operation circuit 62 of the stage II is proceeded to. Serial arithmetic units 82a to 82h of the arithmetic circuit 62
Are added / subtracted results a0, b0, a1, b1, a2, b2, a3, which are added or subtracted by the arithmetic circuit 61 of the stage I,
b3 is given as input data. The arithmetic unit 82a
Then, the DCT serial arithmetic expression F0 = ((a0 + a3) × 16 + (a1 + a2) when the coefficient is approximated to a simple integer ratio
× 16) × 2 × 8 × 46 and F4 = ((a0 + a3) ×
16- (a1 + a2) * 16) * 2 * 8 * 46 common operation of (a0 + a3) * 16 is executed. In this case, the arithmetic unit 82a includes the output (a0) of the adder 81a and the adder 8a.
The output (a3) of 1d is input, these inputs are added by the adder 82a1, and the addition result is given to the shifter 82a2. From the shifter 82a2, as shown in FIG.
The output is delayed by the operation of the three flip-flops. Further, in the arithmetic unit 82b, the DCT serial arithmetic expression F0 = ((a0 + a
3) × 16 + (a1 + a2) × 16) × 2 × 8 × 46 and F4 = ((a0 + a3) × 16− (a1 + a2) × 1
6) The operation of (a1 + a2) × 16 common to × 2 × 8 × 46 is executed. In this case, the arithmetic unit 82b includes an adder 8
The output (a1) of 1b and the output (a2) of the adder 81c are input, these inputs are added by the adder 82b1, and the addition result is given to the shifter 82b2. From the shifter 82b2, as shown in FIG. 5I, the output is delayed by the operations of the three flip-flops.

【0171】また上記演算器82cでは、係数を簡単な
整数比に近似した場合のDCTシリアル演算式F6=
((a0−a3)×40−(a1−a2)×96)×2×8
×10及び、F2=((a0−a3)×96+(a1−a
2)×40)×2×8×10の(a1−a2)×96と
(a1−a2)×40の演算を実行する。この場合、演算
器82cには、加算器81bの出力(a1)と加算器8
1cの出力(a2)とが入力され、減算器82c1で加算
器81bの出力から加算器81cの出力で減算すると
(a1−a2)が求められる。この減算器82c1の出力
をシフタ82c2に与え、このシフタ82c2の第1番目
のフリップフロップの出力とシフタ82c2の出力を加
算器82c3により加算し、またシフタ82c2の第2番
目のフリップフロップの出力と加算器82c3の出力を
82c4により加算することにより(a1−a2)×40
と(a1−a2)×96が求められることになる。この場
合、図5の入力に示す入力データに対して演算器82c
では、同図IIに示すタイミングで上述の演算結果を出力
データとして発生するようになる。また上記演算器82
dでは、係数を簡単な整数比に近似した場合のDCTシ
リアル演算式F6=((a0−a3)×40−(a1−a
2)×96)×2×8×10及び、F2=((a0−a3)
×96+(a1−a2)×40)×2×8×10の(a0
−a3)×40と(a0−a3)×96の演算を実行す
る。この場合、演算器82dには、加算器81aの出力
(a0)と加算器81dの出力(a3)とが入力され、減
算器82d1で加算器81aの出力を加算器81dの出
力で減算すると(a0−a3)が求められる。この減算器
82d1の出力をシフタ82d2に与え、このシフタ82
d2の第1番目のフリップフロップの出力とシフタ82
d2の出力を加算器82d3により加算し、またシフタ8
2d2の第2番目のフリップフロップの出力と加算器8
2d3の出力を82d4により加算することにより(a0
−a3)×40と(a0−a3)×96が求められること
になる。この場合、図5の入力に示す入力データに対し
て演算器82dでは、同図IIに示すタイミングで上述の
演算結果を出力データとして発生するようになる。
Further, in the arithmetic unit 82c, the DCT serial arithmetic expression F6 = when the coefficient is approximated to a simple integer ratio
((A0-a3) x 40- (a1-a2) x 96) x 2 x 8
X10 and F2 = ((a0-a3) * 96 + (a1-a)
2) The operation of (a1-a2) * 96 and (a1-a2) * 40 of (x40) * 2 * 8 * 10 is executed. In this case, the calculator 82c includes the output (a1) of the adder 81b and the adder 8c.
The output (a2) of 1c is input, and the subtracter 82c1 subtracts the output of the adder 81b from the output of the adder 81c to obtain (a1-a2). The output of the subtracter 82c1 is given to the shifter 82c2, the output of the first flip-flop of the shifter 82c2 and the output of the shifter 82c2 are added by the adder 82c3, and the output of the second flip-flop of the shifter 82c2 is added. (A1−a2) × 40 by adding the output of the adder 82c3 by 82c4
And (a1−a2) × 96 will be obtained. In this case, the arithmetic unit 82c is applied to the input data shown in the input of FIG.
Then, the above calculation result is generated as output data at the timing shown in FIG. In addition, the arithmetic unit 82
In d, the DCT serial arithmetic expression F6 = ((a0-a3) * 40- (a1-a) when the coefficient is approximated to a simple integer ratio
2) x 96) x 2 x 8 x 10 and F2 = ((a0-a3)
× 96 + (a1−a2) × 40) × 2 × 8 × 10 (a0
-A3) * 40 and (a0-a3) * 96 are executed. In this case, the output (a0) of the adder 81a and the output (a3) of the adder 81d are input to the calculator 82d, and when the output of the adder 81a is subtracted by the output of the adder 81d by the subtractor 82d1 ( a0-a3) is required. The output of the subtractor 82d1 is given to the shifter 82d2,
The output of the first flip-flop d2 and the shifter 82
The output of d2 is added by the adder 82d3, and the shifter 8
The output of the second 2d2 flip-flop and the adder 8
By adding the output of 2d3 by 82d4 (a0
-A3) * 40 and (a0-a3) * 96 will be obtained. In this case, with respect to the input data shown in the input of FIG. 5, the calculator 82d generates the above-mentioned calculation result as output data at the timing shown in FIG.

【0172】一方、上記演算器82eでは、係数を簡単
な整数比に近似した場合のDCTシリアル演算式F7=
(((48×(b1+b2)+68×b3)×2)×2−
((48×(b2−b1)+68×b0)×2)×10)
×12とF1=(((48×(b2−b1)+68×b0)
×2)×2−((48×(b1+b2)+68×b3)×
2)×10)×12の68×b0の演算及び、F3=
(((96×b3−68×(b1+b2))×2)×6−
((96×b0−68×(b2−b1))×2)×4)×
12とF5=(((96×b0−68×(b2−b1))×
2)×6−((96×b3−68×(b1+b2))×
2)×4)×12の96×b0の演算を実行する。この
場合、演算器82eのシフタ82e1には、減算器81
eの出力(b0)が入力され、シフタ82e1の第3番目
のフリップフロップの出力が加算器82e2により加算
されるとともに、この加算結果がシフタ82e3により
1クロック遅延して出力され、また、シフタ82e1の
第1番目のフリップフロップの出力と第5番目のフリッ
プフロップの出力が加算器82e4により加算されて、
68×b0及び96×b0が求められることになる。この
場合、図5の入力に示す入力データに対して演算器82
eでは、同図IIに示すタイミングで上述の演算結果を出
力データとして発生するようになる。
On the other hand, in the arithmetic unit 82e, the DCT serial arithmetic expression F7 = when the coefficient is approximated to a simple integer ratio
(((48 × (b1 + b2) + 68 × b3) × 2) × 2-
((48 x (b2-b1) + 68 x b0) x 2) x 10)
× 12 and F1 = (((48 × (b2-b1) + 68 × b0)
× 2) × 2-((48 × (b1 + b2) + 68 × b3) ×
2) × 10) × 12 68 × b0 operation and F3 =
(((96 × b3−68 × (b1 + b2)) × 2) × 6−
((96 × b0-68 × (b2-b1)) × 2) × 4) ×
12 and F5 = (((96 * b0-68 * (b2-b1))) *
2) x 6-((96 x b3 -68 x (b1 + b2)) x
2) × 4) × 12 96 × b0 operations are executed. In this case, the subtracter 81 is included in the shifter 82e1 of the arithmetic unit 82e.
The output (b0) of e is input, the output of the third flip-flop of the shifter 82e1 is added by the adder 82e2, the result of this addition is output by the shifter 82e3 delayed by one clock, and the shifter 82e1 is also output. The output of the first flip-flop of and the output of the fifth flip-flop are added by the adder 82e4,
68 × b0 and 96 × b0 will be obtained. In this case, the arithmetic unit 82 is applied to the input data shown in the input of FIG.
In the case of e, the above calculation result is generated as output data at the timing shown in FIG.

【0173】また、上記演算器82fでは、係数を簡単
な整数比に近似した場合のDCTシリアル演算式F7=
(((48×(b1+b2)+68×b3)×2)×2−
((48×(b2−b1)+68×b0)×2)×10)
×12とF1=(((48×(b2−b1)+68×b0)
×2)×2−((48×(b1+b2)+68×b3)×
2)×10)×12の48×(b2−b1)の演算及び、
F3=(((96×b3−68×(b1+b2))×2)×
6−((96×b0−68×(b2−b1))×2)×
4)×12とF5=(((96×b0−68×(b2−b
1))×2)×6−((96×b3−68×(b1+b
2))×2)×4)×12の68×(b2−b1)の演算
を実行する。この場合、演算器82fには、減算器81
fの出力(b1)と減算器81gの出力(b2)が入力さ
れ、減算器82f1で加算器81gの出力を加算器81
fの出力で減算すると(b2−b1)が求められる。この
減算器82f1の出力をシフタ82f2に与え、このシフ
タ82f2の第2番目のフリップフロップの出力と第3
番目のフリップフロップの出力を加算器82f3により
加算し、またシフタ82f2の出力と減算器82f1の出
力を82f4により加算することにより(b2−b1)×
48と(b2−b1)×68が求められることになる。こ
の場合、図5の入力に示す入力データに対して演算器8
2fでは、同図IIに示すタイミングで上述の演算結果を
入力データとして発生するようになる。
Further, in the arithmetic unit 82f, the DCT serial arithmetic expression F7 = when the coefficient is approximated to a simple integer ratio
(((48 × (b1 + b2) + 68 × b3) × 2) × 2-
((48 x (b2-b1) + 68 x b0) x 2) x 10)
× 12 and F1 = (((48 × (b2-b1) + 68 × b0)
× 2) × 2-((48 × (b1 + b2) + 68 × b3) ×
2) × 10) × 12 48 × (b2-b1) operations and
F3 = (((96 × b3−68 × (b1 + b2)) × 2) ×
6-((96 * b0-68 * (b2-b1)) * 2) *
4) × 12 and F5 = (((96 × b0-68 × (b2-b
1)) × 2) × 6-((96 × b3−68 × (b1 + b
2)) × 2) × 4) × 12 68 × (b2-b1) operations are executed. In this case, the calculator 82f includes a subtracter 81
The output (b1) of f and the output (b2) of the subtractor 81g are input, and the output of the adder 81g is added to the adder 81 by the subtractor 82f1.
Subtracting with the output of f gives (b2-b1). The output of the subtractor 82f1 is applied to the shifter 82f2, and the output of the second flip-flop of the shifter 82f2 and the third
The output of the second flip-flop is added by the adder 82f3, and the output of the shifter 82f2 and the output of the subtractor 82f1 are added by 82f4 (b2-b1) *
48 and (b2-b1) * 68 will be obtained. In this case, the arithmetic unit 8 is used for the input data shown in the input of FIG.
In 2f, the above calculation result is generated as input data at the timing shown in FIG.

【0174】また、上記演算器82gでは、係数を簡単
な整数比に近似した場合のDCTシリアル演算式F7=
(((48×(b1+b2)+68×b3)×2)×2−
((48×(b2−b1)+68×b0)×2)×10)
×12とF1=(((48×(b2−b1)+68×b0)
×2)×2−((48×(b1+b2)+68×b3)×
2)×10)×12の48×(b1+b2)の演算及び、
F3=(((96×b3−68×(b1+b2))×2)×
6−((96×b0−68×(b2−b1))×2)×
4)×12とF5=(((96×b0−68×(b2−b
1))×2)×6−((96×b3−68×(b1+b
2))×2)×4)×12の68×(b1+b2)の演算
を実行する。この場合、演算器82gには、減算器81
fの出力(b1)と減算器81gの出力(b2)が入力さ
れ、加算器82g1で加算器81fの出力と加算器81
gの出力を加算すると(b1+b2)が求められる。この
加算器82g1の出力をシフタ82g2に与え、このシフ
タ82g2の第2番目のフリップフロップの出力と第3
番目のフリップフロップの出力を加算器82g3により
加算し、またシフタ82g2の出力と加算器82g1の出
力を82g4により加算することにより(b1+b2)×
48と(b1+b2)×68が求められることになる。こ
の場合、図5の入力に示す入力データに対して演算器8
2gでは、同図IIに示すタイミングで上述の演算結果を
入力データとして発生するようになる。
Further, in the arithmetic unit 82g, the DCT serial arithmetic expression F7 = when the coefficient is approximated to a simple integer ratio
(((48 × (b1 + b2) + 68 × b3) × 2) × 2-
((48 x (b2-b1) + 68 x b0) x 2) x 10)
× 12 and F1 = (((48 × (b2-b1) + 68 × b0)
× 2) × 2-((48 × (b1 + b2) + 68 × b3) ×
2) × 10) × 12 48 × (b1 + b2) operations and
F3 = (((96 × b3−68 × (b1 + b2)) × 2) ×
6-((96 * b0-68 * (b2-b1)) * 2) *
4) × 12 and F5 = (((96 × b0-68 × (b2-b
1)) × 2) × 6-((96 × b3−68 × (b1 + b
2)) × 2) × 4) × 12 68 × (b1 + b2) calculations are executed. In this case, the calculator 82g includes a subtracter 81
The output (b1) of f and the output (b2) of the subtractor 81g are input, and the adder 82g1 outputs the output of the adder 81f and the adder 81g.
By adding the outputs of g, (b1 + b2) is obtained. The output of the adder 82g1 is given to the shifter 82g2, and the output of the second flip-flop of the shifter 82g2 and the third
The output of the th flip-flop is added by the adder 82g3, and the output of the shifter 82g2 and the output of the adder 82g1 are added by 82g4 (b1 + b2) ×
48 and (b1 + b2) * 68 will be obtained. In this case, the arithmetic unit 8 is used for the input data shown in the input of FIG.
In 2g, the above calculation result is generated as input data at the timing shown in FIG.

【0175】また、上記演算器82hでは、係数を簡単
な整数比に近似した場合のDCTシリアル演算式F7=
(((48×(b1+b2)+68×b3)×2)×2−
((48×(b2−b1)+68×b0)×2)×10)
×12とF1=(((48×(b2−b1)+68×b0)
×2)×2−((48×(b1+b2)+68×b3)×
2)×10)×12の68×b3の演算及び、F3=
(((96×b3−68×(b1+b2))×2)×6−
((96×b0−68×(b2−b1))×2)×4)×
12とF5=(((96×b0−68×(b2−b1))×
2)×6−((96×b3−68×(b1+b2))×
2)×4)×12の96×b3の演算を実行する。この
場合、演算器82hのシフタ82h1には、減算器81
hの出力(b3)が入力され、シフタ82h1の第3番目
のフリップフロップの出力と第4番目のフリップフロッ
プの出力が加算器82h2により加算されるとともに、
この加算結果がシフタ82h3により1クロック遅延し
て出力され、また、シフタ82h1の第1番目のフリッ
プフロップの出力と第5番目のフリップフロップの出力
が加算器82h4により加算されて、68×b3及び96
×b3が求められることになる。この場合、図5の入力
に示す入力データに対して演算器82hでは、同図IIに
示すタイミングで上述の演算結果を入力データとして発
生するようになる。
Further, in the arithmetic unit 82h, the DCT serial arithmetic expression F7 = when the coefficient is approximated to a simple integer ratio
(((48 × (b1 + b2) + 68 × b3) × 2) × 2-
((48 x (b2-b1) + 68 x b0) x 2) x 10)
× 12 and F1 = (((48 × (b2-b1) + 68 × b0)
× 2) × 2-((48 × (b1 + b2) + 68 × b3) ×
2) × 10) × 12 68 × b3 operation and F3 =
(((96 × b3−68 × (b1 + b2)) × 2) × 6−
((96 × b0-68 × (b2-b1)) × 2) × 4) ×
12 and F5 = (((96 * b0-68 * (b2-b1))) *
2) x 6-((96 x b3 -68 x (b1 + b2)) x
2) × 4) × 12 96 × b3 operations are executed. In this case, the subtracter 81 is included in the shifter 82h1 of the arithmetic unit 82h.
The output (b3) of h is input, the outputs of the third and fourth flip-flops of the shifter 82h1 are added by the adder 82h2, and
This addition result is output by the shifter 82h3 with a delay of one clock, and the output of the first flip-flop of the shifter 82h1 and the output of the fifth flip-flop of the shifter 82h1 are added by the adder 82h4 to obtain 68 × b3 and 96
Xb3 is required. In this case, with respect to the input data shown in the input of FIG. 5, the calculator 82h generates the above-mentioned calculation result as the input data at the timing shown in FIG.

【0176】次いで、ステージIIIの演算回路63に進
む。この演算回路63では、ステージIIの演算回路62
の演算器82a、82bの出力が加算器83aおよび減
算器83bに与えられ、同様にして演算器82c、82
dの出力が減算器83c及び加算器83dに与えられ、
さらに演算器82e、82fの出力が加算器83e及び
減算器83fに、演算器82g、82hの出力が減算器
83及び加算器83hに与えられる。これにより、加算
器83aは、ステージIIの演算回路82の演算器82a
と演算器82bの出力を加算した結果((a0+a3)×
16+(a1+a2)×16)×2を出力し、減算器83
bはステージIIの演算回路62の演算器82aから演算
器82bの出力を減算した結果((a0+a3)×16−
(a1+a2)×16)×2を出力し、減算器83cはス
テージIIの演算回路62の演算器82cから演算器82
dの出力を減算した結果((a0−a3)×40−(a1
−a2)×96)×2を出力し、加算器83dは、ステ
ージIIの演算回路62の演算器82cと演算器82dの
出力を加算した結果((a0−a3)×96+(a1−a
2)×40)×2を出力するようになる。また、加算器
83eは、ステージIIの演算回路82の演算器82eと
演算器82fの出力を加算した結果(48×(b2−b
1)+68×b0)×2を出力し、減算器83fはステー
ジIIの演算回路62の演算器82eから演算器82fの
出力を減算した結果(96×b0−68×(b2−b
1))×2を出力し、減算器83gはステージIIの演算
回路62の演算器82gから演算器82hの出力を減算
した結果(96×b3−68×(b1+b2))×2を出
力し、加算器83hは、ステージIIの演算回路62の演
算器82gと演算器82hの出力を加算した結果(48
×(b1+b2)+68×b3)×2を出力するようにな
る。この場合、図5の入力データに対して各加算器83
a、83d、83e、83h及び減算器83b、83
c、83f、83gでは、同図IIIに示すタイミング
で、それぞれの演算結果を出力するようになる。
Then, the operation proceeds to the arithmetic circuit 63 of stage III. In this arithmetic circuit 63, the arithmetic circuit 62 of stage II
The outputs of the arithmetic units 82a and 82b are given to the adder 83a and the subtractor 83b.
The output of d is given to the subtractor 83c and the adder 83d,
Further, the outputs of the arithmetic units 82e and 82f are given to the adder 83e and the subtractor 83f, and the outputs of the arithmetic units 82g and 82h are given to the subtractor 83 and the adder 83h. As a result, the adder 83a becomes the arithmetic unit 82a of the arithmetic circuit 82 of the stage II.
And the output of the calculator 82b ((a0 + a3) ×
16+ (a1 + a2) × 16) × 2 is output, and the subtracter 83
b is the result of subtracting the output of the computing unit 82b from the computing unit 82a of the computing circuit 62 of stage II ((a0 + a3) × 16−
(A1 + a2) × 16) × 2 is output, and the subtractor 83c outputs the arithmetic unit 82c from the arithmetic unit 82c of the arithmetic circuit 62 of the stage II.
The result of subtracting the output of d ((a0-a3) x 40- (a1
-A2) × 96) × 2 is output, and the adder 83d adds the outputs of the arithmetic unit 82c and the arithmetic unit 82d of the arithmetic circuit 62 of stage II ((a0-a3) × 96 + (a1-a)
2) x 40) x 2 will be output. Further, the adder 83e adds the outputs of the arithmetic units 82e and 82f of the arithmetic circuit 82 of the stage II (48 × (b2-b)
1) + 68 × b0) × 2 is output, and the subtractor 83f subtracts the output of the arithmetic unit 82f from the arithmetic unit 82e of the arithmetic circuit 62 of stage II (96 × b0-68 × (b2-b)
1)) × 2 is output, and the subtractor 83g subtracts the output of the arithmetic unit 82h from the arithmetic unit 82g of the arithmetic circuit 62 of stage II to output (96 × b3−68 × (b1 + b2)) × 2, The adder 83h adds the output of the arithmetic unit 82g of the arithmetic circuit 62 of the stage II and the output of the arithmetic unit 82h (48
Outputs x (b1 + b2) + 68 × b3) × 2. In this case, each adder 83 is added to the input data of FIG.
a, 83d, 83e, 83h and subtractors 83b, 83
In c, 83f, and 83g, the respective calculation results are output at the timing shown in FIG.

【0177】次いで、ステージIVの演算回路64に進
む。この演算回路64では、ステージIIIの演算回路6
3の加算器83aの出力が演算器84aに与えられ、同
様にして減算器83bの出力が演算器84bに、減算器
83cの出力が演算器84cに、加算器83dの出力が
演算器84dに、加算器83eの出力が演算器84e
に、減算器83fの出力が演算器84fに、減算器83
gの出力が演算器84gに、加算器83hの出力が演算
器84hにそれぞれ与えられる。これにより、演算器8
4aは、ステージIIIの演算回路63の加算器83aの
出力((a0+a3)×16+(a1+a2)×16)×2
に対して×8×46の演算を実行し、その演算結果を出
力データF0として出力する。また、演算器84bは、
ステージIIIの演算回路63の減算器83bの出力
((a0+a3)×16−(a1+a2)×16)×2に対
して×8×46の演算を実行し、その演算結果を出力デ
ータF4として出力する。同様に、演算器84cは、ス
テージIIIの演算回路63の減算器83cの出力((a0
−a3)×40−(a1−a2)×96)×2に対して×
8×10の演算を実行し、その演算結果を出力データF
6として出力する。また、演算器84dは、ステージIII
の演算回路63の加算器83dの出力((a0−a3)×
96+(a1−a2)×40)×2に対して×8×10の
演算を実行し、その演算結果を出力データF2として出
力する。
Then, the operation proceeds to the arithmetic circuit 64 in stage IV. In this arithmetic circuit 64, the arithmetic circuit 6 of stage III
The output of the adder 83a of 3 is given to the calculator 84a, and similarly, the output of the subtractor 83b is given to the calculator 84b, the output of the subtractor 83c is given to the calculator 84c, and the output of the adder 83d is given to the calculator 84d. , The output of the adder 83e is the calculator 84e
The output of the subtractor 83f is supplied to the calculator 84f
The output of g is given to the calculator 84g, and the output of the adder 83h is given to the calculator 84h. As a result, the computing unit 8
4a is the output of the adder 83a of the arithmetic circuit 63 of stage III ((a0 + a3) × 16 + (a1 + a2) × 16) × 2
The calculation of × 8 × 46 is executed with respect to, and the calculation result is output as output data F0. Further, the computing unit 84b is
The operation of the output ((a0 + a3) * 16- (a1 + a2) * 16) * 2 of the subtractor 83b of the operation circuit 63 of the stage III is executed by * 8 * 46 and the operation result is output as the output data F4. . Similarly, the arithmetic unit 84c outputs the output of the subtractor 83c ((a0
-A3) x 40- (a1-a2) x 96) x 2 for x
8 × 10 calculation is executed, and the calculation result is output data F
Output as 6. The computing unit 84d is the stage III.
Output of the adder 83d of the arithmetic circuit 63 ((a0-a3) ×
96+ (a1−a2) × 40) × 2 is subjected to an operation of × 8 × 10 and the result of the operation is output as output data F2.

【0178】また、odd側においては、演算器84e
のシフタ82e1には加算器83eの出力((48×
(b2−b1)+68×b0)×2)が入力され、このシ
フタ84e1の出力と加算器83eの出力を加算器84
e2で加算し、また、後述するシフタ84h1の第1番目
のフリップフロップの出力から、この加算器84e2の
出力を減算器84e3で減算する。減算器84e3の出力
はシフタ84e4に与えられ、このシフタ84e4の出力
から減算器84e3の出力を減算器84e5により減算
し、その演算結果を出力データF7として出力する。ま
た、演算器84fのシフタ82f1には減算器83fの
出力((96×b0−68×(b2−b1))×2)が入
力され、このシフタ84f1の第1番目のフリップフロ
ップの出力と減算器83fの出力を加算器84f2で加
算する。また、後述する加算器84g2の出力から、こ
のシフタ84f1の出力を、この減算器84f3で減算す
る。減算器84f3の出力はシフタ84f4に与えられ、
このシフタ84f4の出力から減算器84f3の出力を減
算器84f5により減算し、その演算結果を出力データ
F3として出力する。また、演算器84gのシフタ82
g1には減算器83gの出力((96×b3−68×(b
1+b2))×2)が入力され、このシフタ84g1の第
1番目のフリップフロップの出力と減算器83gの出力
を加算器84g2で加算する。また、加算器84f2の出
力と、このシフタ84g1の出力を、この加算器84g3
で加算する。加算器84g3の出力はシフタ84g4に与
えられ、このシフタ84g4の出力から加算器84g3の
出力を減算器84g5により減算し、その演算結果を出
力データF5として出力する。また、演算器84hのシ
フタ82h1には加算器83hの出力((48×(b1+
b2)+68×b3)×2)が入力され、このシフタ84
h1の出力と加算器83hの出力を加算器84h2で加算
し、また、シフタ84e1の第1番目のフリップフロッ
プの出力と、この加算器84h2の出力を加算器84h3
で減算する。加算器84h3の出力はシフタ84h4に与
えられ、このシフタ84h4の出力から加算器84h3の
出力を減算器84h5により減算し、その演算結果を出
力データF1として出力する。この場合、上記ステージI
Vの演算回路64の各演算器84a〜84hでは図5の
入力データに対してシリアル演算を実行し、同図IVに示
すタイミングで、その演算結果を出力データF0〜F7と
して発生するようになる。
Further, on the odd side, the arithmetic unit 84e
Output of the adder 83e ((48 ×
(B2-b1) + 68 * b0) * 2) is input, and the output of the shifter 84e1 and the output of the adder 83e are added to the adder 84.
The output of the adder 84e2 is subtracted by the subtractor 84e3 from the output of the first flip-flop of the shifter 84h1 described later. The output of the subtractor 84e3 is given to the shifter 84e4, the output of the subtractor 84e3 is subtracted from the output of the shifter 84e4 by the subtractor 84e5, and the operation result is output as output data F7. The output of the subtractor 83f ((96 * b0-68 * (b2-b1)) * 2) is input to the shifter 82f1 of the arithmetic unit 84f and subtracted from the output of the first flip-flop of the shifter 84f1. The output of the device 83f is added by the adder 84f2. The subtractor 84f3 subtracts the output of the shifter 84f1 from the output of the adder 84g2 described later. The output of the subtractor 84f3 is given to the shifter 84f4,
The output of the subtracter 84f3 is subtracted from the output of the shifter 84f4 by the subtractor 84f5, and the calculation result is output as output data F3. Also, the shifter 82 of the computing unit 84g
The output of the subtracter 83g ((96 × b3−68 × (b
1 + b2)) * 2) is input, and the output of the first flip-flop of the shifter 84g1 and the output of the subtractor 83g are added by the adder 84g2. Further, the output of the adder 84f2 and the output of the shifter 84g1 are compared with the adder 84g3.
Add with. The output of the adder 84g3 is given to the shifter 84g4, the output of the adder 84g3 is subtracted from the output of the shifter 84g4 by the subtractor 84g5, and the operation result is output as output data F5. Further, the output of the adder 83h ((48 × (b1 +
b2) + 68 × b3) × 2) is input, and this shifter 84
The output of h1 and the output of the adder 83h are added by the adder 84h2, and the output of the first flip-flop of the shifter 84e1 and the output of this adder 84h2 are added by the adder 84h3.
Subtract with. The output of the adder 84h3 is given to the shifter 84h4, the output of the adder 84h3 is subtracted from the output of the shifter 84h4 by the subtractor 84h5, and the operation result is output as output data F1. In this case, Stage I above
Each of the arithmetic units 84a to 84h of the V arithmetic circuit 64 executes the serial arithmetic operation on the input data shown in FIG. 5, and the arithmetic operation result is generated as the output data F0 to F7 at the timing shown in FIG. .

【0179】以上の説明は、図5に示すDCT演算処理
の場合であるが、図6に示すデータ変換演算装置50に
よる逆DCT演算処理の場合も上述したDCT演算処理
の場合と同様である。
The above description is for the case of the DCT operation processing shown in FIG. 5, but the case of the inverse DCT operation processing by the data conversion operation device 50 shown in FIG. 6 is the same as the case of the above-mentioned DCT operation processing.

【0180】この場合は図4に示すように入力データF
0〜F7がステージIVの演算回路74〜ステージIの演算
回路71の順で与えられるようになる。
In this case, as shown in FIG. 4, the input data F
0 to F7 are given in the order of the arithmetic circuit 74 of stage IV to the arithmetic circuit 71 of stage I.

【0181】図7は、データ変換演算装置50の入力か
ら出力までのタイミングチャートであり、ステージIの
演算回路61〜ステージIVの演算回路64の動作を総合
した場合のタイミングチャートを示している。本実施例
では、2のべきにとらわれずにDCTの演算係数を整数
値に置き換え、そのゲイン変化分を量子化装置51によ
って吸収するようにすることによって図5及び図6に示
すように回路規模を大幅に小さくすることができ、8bi
tのデータを入力した場合、1ライン当りの処理周期を
21クロックに減少させることができる。
FIG. 7 is a timing chart from the input to the output of the data conversion arithmetic unit 50, and shows a timing chart when the operations of the arithmetic circuit 61 of stage I to the arithmetic circuit 64 of stage IV are integrated. In this embodiment, the DCT operation coefficient is replaced by an integer value without being restricted to the power of 2, and the gain change amount is absorbed by the quantizer 51, so that the circuit scale is changed as shown in FIGS. Can be significantly reduced to 8bi
When t data is input, the processing cycle per line can be reduced to 21 clocks.

【0182】なお、上述の例は一次元の場合であり、画
素等の二次元の場合には、この処理を縦、横2度行うこ
とによって実現するようにする。
Note that the above example is a one-dimensional case, and in the case of a two-dimensional case such as pixels, this processing is performed twice vertically and horizontally.

【0183】データ変換演算装置110、120におけ
る動作(図9、図10) データ変換演算装置110、120の基本的な動作は図
5及び図6に示したデータ変換演算装置50と同様であ
るが、ステージがI〜IIIとなっており、かつステージI
Iのodd側がDCT演算式をそのままハードウェア化
したシリアル回路100により構成されているためこの
部分の動作は異なっている。まず、シリアル回路100
の動作について説明し、次いで、データ圧縮時のデータ
変換演算装置110の全体の動作を述べる。
Operation in Data Conversion Operation Devices 110 and 120 (FIGS. 9 and 10) The basic operation of the data conversion operation devices 110 and 120 is the same as that of the data conversion operation device 50 shown in FIGS. 5 and 6. , The stages are I to III, and stage I
Since the odd side of I is composed of the serial circuit 100 in which the DCT arithmetic expression is directly implemented as hardware, the operation of this part is different. First, the serial circuit 100
Will be described, and then the overall operation of the data conversion calculation device 110 at the time of data compression will be described.

【0184】前記図8のデータ変換演算装置50の破線
内の演算について、入力をb0〜b3、出力をx0〜x3と
して考えてみる。同図中破線内の演算は以下のような式
で表わすことができる。
Regarding the calculation within the broken line of the data conversion calculation device 50 of FIG. 8, consider the input as b0 to b3 and the output as x0 to x3. The calculation within the broken line in the figure can be expressed by the following equation.

【0185】 x0=32×(−85b0+72b1−48b2+17b3) x1=32×(−48b0−85b1−17b2+72b3) x2=32×(72b0−17b1+85b2+48b3) x3=32×(17b0+48b1+72b2+85b3) 上記の式により、x0〜x3は各入力b0〜b3に対して、
17、48、72、85という一定の数値を乗じた値の
加減算によって得られることがわかる。この場合、上記
式に示すように、演算式のうち本来括弧内だけの比率で
求めればよいにもかかわらず従来のシリアル演算を行な
う場合には加減算及びバタフライ演算を用いていたため
×32が必要となり、結果的には32=25としてフリ
ップフロップ(FF)5段分の冗長性が存在していた。
X0 = 32 × (−85b0 + 72b1−48b2 + 17b3) x1 = 32 × (−48b0−85b1−17b2 + 72b3) x2 = 32 × (72b0−17b1 + 85b2 + 48b3) x3 = 32 × (17b0 + 48b1 + 72b3) The above formulas are the above formulas, and the above formulas are the above formulas. For each input b0-b3,
It can be seen that it is obtained by addition and subtraction of values obtained by multiplying constant numerical values of 17, 48, 72 and 85. In this case, as shown in the above equation, when the conventional serial operation is performed, the addition / subtraction and the butterfly operation are used, but x32 is required, even though the ratio should be calculated only within the parentheses in the operation expression. As a result, the redundancy of 5 flip-flops (FF) exists when 32 = 25.

【0186】上記式の係数17、48、72、85の比
率を同じままで高速化した回路が図8に示すシリアル回
路100である。
A serial circuit 100 shown in FIG. 8 is a circuit in which the ratios of the coefficients 17, 48, 72, and 85 in the above equations are kept the same and the speed is increased.

【0187】図11のデータ変換演算装置110及びデ
ータ変換演算装置120のシリアル回路100につい
て、入力をb0〜b3、出力をx0〜x3として考えてみ
る。図8に示すような回路構成にすると、各出力x0〜
x3は以下のような式によって表わされる。
Regarding the serial circuit 100 of the data conversion arithmetic unit 110 and the data conversion arithmetic unit 120 of FIG. 11, consider the inputs as b0 to b3 and the outputs as x0 to x3. With the circuit configuration shown in FIG. 8, each output x0 to
x3 is represented by the following equation.

【0188】 x0=4×(−85b0+72b1−48b2+17b3) x1=4×(−48b0−85b1−17b2+72b3) x2=4×(72b0−17b1+85b2+48b3) x3=4×(17b0+48b1+72b2+85b3) 従来の式と比べてゲインは4/32=1/8=2-3倍異
なっている。つまり、2-3から3クロック従来のものよ
りも速く出力することがわかる。ここでは、破線内のみ
を高速化したため偶数成分F0、F2、F4、F6と出力タ
イミングおよびゲインが異なってしまうので、タイミン
グおよびゲインを揃えるために、偶数成分側から不必要
なシフトレジスタを取り去った構成図が図11である。
またその時のタイミングチャートが図14であり、入力
から出力まで23クロックによって行なう。
X0 = 4 × (−85b0 + 72b1−48b2 + 17b3) x1 = 4 × (−48b0−85b1−17b2 + 72b3) x2 = 4 × (72b0−17b1 + 85b2 + 48b3) x3 = 4 × (17b0 + 48b1 + 72b2 + 3b4) The gain of the conventional formula is 4b3 + 85b3. / 32 = 1/8 = 2-3 times different. In other words, it can be seen that the output is 2-3 clocks faster than the conventional one. Here, since the output speed and gain are different from the even components F0, F2, F4, and F6 because the speed is increased only within the broken line, unnecessary shift registers are removed from the even component side in order to make the timing and gain uniform. The block diagram is shown in FIG.
Further, the timing chart at that time is shown in FIG. 14, and 23 clocks are used from input to output.

【0189】以下、上記演算式をそのままハードウェア
化したシリアル回路100の動作を説明する。
The operation of the serial circuit 100 in which the above arithmetic expression is directly implemented in hardware will be described below.

【0190】図11において、シリアル回路100の前
段部分を構成するシリアル回路101のシリアル演算器
101e〜101hには、図9のステージIの演算回路
91で減算された減算結果b0、b1、b2、b3が入力デ
ータとして与えられ、各入力b0〜b3に共通な係数を2
のべきにある数値をかけた形で表現した場合の該数値の
部分が演算される。すなわち、上記シリアル演算器10
1eでは、入力b0が入力されると、この入力b0をシフ
トあるいはシフト加算を行なうことによって各入力b0
〜b3に共通な係数17、85、48、72を2のべき
にある数値(本実施例では、2、42、6、18)をか
けた形で表現した場合の該数値の部分が作成される。こ
の場合、上記式に示すようにDCT演算式を展開して各
入力に共通な係数17、85、48、72が得られたと
すると、図1の原理説明(II)で説明したように係数1
7は16+1、係数85は42×21+1、係数48は
6×23、係数72は18×22と表現し、この数値2、
42、6、18の部分(図1の破線内の数値参照)をシ
リアル演算器101eにより演算する。これにより、シ
リアル演算器101eのシフタ101e1の第1番目の
フリップフロップから1個のフリップフロップの動作だ
け遅延して出力された「2」が、入力b0とシフタ10
1e1の第1番目のフリップフロップの出力を加算する
ことによって加算器101e5から「42」が、入力b0
とシフタ101e1の第1番目のフリップフロップの出
力を加算することによって加算器101e2から「6」
が、入力b0とシフタ101e1の出力を加算することに
よって加算器101e3から「18」がそれぞれ出力さ
れることになる。同様に、上記シリアル演算器101f
では、入力b1がシフトあるいはシフト加算されること
によって、シリアル演算器101fのシフタ101f1
の第1番目のフリップフロップから「2」が、入力b0
と加算器101e4の出力を加算して加算器101f5か
ら「42」が、加算器101f2から「6」が、加算器
101f3から「18」がそれぞれ出力されることにな
る。また、上記シリアル演算器101gでは、入力b2
がシフトあるいはシフト加算されることによって、シリ
アル演算器101gのシフタ101g1の第1番目のフ
リップフロップから「2」が、加算器101g5から
「42」が、加算器101g2から「6」が、加算器1
01g3から「18」がそれぞれ出力されることにな
り、上記シリアル演算器101hでは、入力b3がシフ
トあるいはシフト加算されることによって、シリアル演
算器101hのシフタ101h1の第1番目のフリップ
フロップから「2」が、加算器101h5から「42」
が、加算器101h2から「6」が、加算器101h3か
ら「18」がそれぞれ出力されることになる。
In FIG. 11, the serial arithmetic units 101e to 101h of the serial circuit 101 forming the preceding stage portion of the serial circuit 100 have the subtraction results b0, b1, b2 subtracted by the arithmetic circuit 91 of the stage I of FIG. b3 is given as input data, and the coefficient common to each input b0 to b3 is 2
When expressed in the form of multiplying a certain power of, the part of the value is calculated. That is, the serial computing unit 10
In 1e, when the input b0 is input, the input b0 is shifted or shift-added to input each input b0.
.About.b3, the coefficient 17, 85, 48, 72 common to the power of 2 is multiplied by a numerical value (2, 42, 6, 18 in this embodiment) to form a part of the numerical value. It In this case, if the DCT arithmetic expression is expanded to obtain the coefficients 17, 85, 48, 72 common to each input as shown in the above expression, the coefficient 1 is calculated as described in the principle explanation (II) of FIG.
7 is expressed as 16 + 1, coefficient 85 is expressed as 42 × 21 + 1, coefficient 48 is expressed as 6 × 23, and coefficient 72 is expressed as 18 × 22.
The serial calculator 101e calculates the portions 42, 6, and 18 (see the numerical values in the broken line in FIG. 1). As a result, "2" output after delaying the operation of one flip-flop from the first flip-flop of the shifter 101e1 of the serial arithmetic unit 101e is input b0 and the shifter 10.
By adding the outputs of the first flip-flops of 1e1 to "42" from the adder 101e5, the input b0
And the output of the first flip-flop of the shifter 101e1 are added to add "6" from the adder 101e2.
However, by adding the input b0 and the output of the shifter 101e1, "18" is output from the adder 101e3. Similarly, the serial computing unit 101f
Then, by shifting or shift-adding the input b1, the shifter 101f1 of the serial computing unit 101f
"2" is input from the first flip-flop of
And the outputs of the adder 101e4 are added to output "42" from the adders 101f5, "6" from the adders 101f2, and "18" from the adders 101f3. Further, in the serial arithmetic unit 101g, the input b2
Are shifted or shift-added, so that "2" is added from the first flip-flop of the shifter 101g1 of the serial arithmetic unit 101g, adders 101g5 to "42" are added, and adders 101g2 to "6" are added. 1
Since "18" is output from 01g3, the input b3 is shifted or shift-added in the serial computing unit 101h, so that "2" is output from the first flip-flop of the shifter 101h1 of the serial computing unit 101h. From the adder 101h5 to "42"
However, the adder 101h2 outputs "6" and the adder 101h3 outputs "18".

【0191】上記シリアル演算器101e〜101hで
演算されたDCT演算式の係数に相当する数値「2」、
「42」、「6」、「18」はシリアル回路100の後
段部分を構成するシリアル回路102のシリアル演算器
102e〜102hに入力され、各シリアル演算器10
2e〜102hは、シリアル演算器101e〜101h
により計算された係数出力に対してDCT演算式の横方
向に符号分を含めた加減算を順次行なって出力x3〜x0
として出力する。この場合、上記係数17、85、4
8、72を2のべきにある数値をかけた形で表現したと
きの2のべきの部分は各シリアル演算器102e〜10
2hの加減算器への入力位置により調整されるととも
に、原理説明(II)で説明した理由から係数17、8
5、48、72のうち、基本的に奇数のもの(係数1
7、85)についての加減算を先に行なうようにする。
Numerical value "2" corresponding to the coefficient of the DCT arithmetic expression calculated by the serial arithmetic units 101e to 101h,
“42”, “6”, and “18” are input to the serial arithmetic units 102e to 102h of the serial circuit 102 forming the latter stage portion of the serial circuit 100, and the serial arithmetic units 10 respectively.
2e to 102h are serial arithmetic units 101e to 101h
Outputs x3 to x0 by sequentially performing addition and subtraction including code components in the horizontal direction of the DCT arithmetic expression on the coefficient output calculated by
Output as. In this case, the above coefficients 17, 85, 4
When 8 and 72 are expressed in the form of multiplying a power of 2, a power of 2 is represented by each serial computing unit 102e-10.
It is adjusted by the input position to the adder / subtractor of 2h, and the coefficients 17, 8 are adjusted for the reason explained in the explanation of principle (II).
Of 5, 48, 72, basically odd numbers (coefficient 1
7 and 85) are added and subtracted first.

【0192】上記シリアル演算器102eでは、DCT
演算式をそのままハードウェア化した場合のシリアル演
算式x3=4×(17b0+48b1+72b2+85b
3)を実行する。この場合、シリアル演算器102eの
加算器102e1には、シリアル演算器101fの加算
器101f2の出力とシリアル演算器101eのシフタ
101e1の第1番目のフリップフロップの出力とが入
力され、加算器102e1でこれら入力を加算し、この
加算器102e1の出力とシリアル演算器101gの加
算器101g3の出力を加算器102e2で加算し、この
加算器102e2の出力とシリアル演算器101hの加
算器101h5の出力を加算器102e3で加算し、この
加算器102e3の出力と入力b3を加算器102e4で
加算し、この加算器102e4の出力とシリアル演算器
101eのシフタ101e1の第1番目のフリップフロ
ップの出力を加算器102e5で加算すると出力x3が求
められる。
In the serial computing unit 102e, the DCT
Serial arithmetic expression when the arithmetic expression is directly converted to hardware x3 = 4 × (17b0 + 48b1 + 72b2 + 85b
Perform 3). In this case, the output of the adder 101f2 of the serial calculator 101f and the output of the first flip-flop of the shifter 101e1 of the serial calculator 101e are input to the adder 102e1 of the serial calculator 102e, and the adder 102e1 These inputs are added, the output of the adder 102e1 and the output of the adder 101g3 of the serial operation unit 101g are added by the adder 102e2, and the output of this adder 102e2 and the output of the adder 101h5 of the serial operation unit 101h are added. The output of the adder 102e3 and the input b3 are added by the adder 102e4, and the output of the adder 102e4 and the output of the first flip-flop of the shifter 101e1 of the serial computing unit 101e are added by the adder 102e5. The output x3 is obtained by adding in.

【0193】また、上記シリアル演算器102fでは、
DCT演算式をそのままハードウェア化した場合のシリ
アル演算式x2=4×(72b0−17b1+85b2+4
8b3)を実行する。この場合、シリアル演算器102
fの減算器102f1には、シリアル演算器101hの
加算器101h2の出力とシリアル演算器101fのシ
フタ101f1の第1番目のフリップフロップの出力と
が入力され、減算器102f1で加算器101h2の出力
からシフタ101f1の第1番目のフリップフロップの
出力を減算し、この減算器102f1の出力とシリアル
演算器101eの加算器101e3の出力を加算器10
2f2で加算し、この加算器102f2の出力とシリアル
演算器101gの加算器101g5の出力を加算器10
2f3で加算し、この加算器102f3の出力と入力b2
を加算器102f4で加算し、この加算器102f4の出
力からシリアル演算器101fのシフタ101f1の第
1番目のフリップフロップの出力を減算器102f5で
減算すると出力x2が求められる。
Further, in the serial arithmetic unit 102f,
Serial arithmetic expression when the DCT arithmetic expression is directly converted to hardware x2 = 4 × (72b0-17b1 + 85b2 + 4
8b3) is executed. In this case, the serial computing unit 102
The output of the adder 101h2 of the serial arithmetic unit 101h and the output of the first flip-flop of the shifter 101f1 of the serial arithmetic unit 101f are input to the subtractor 102f1 of f, and the subtractor 102f1 outputs the output of the adder 101h2. The output of the first flip-flop of the shifter 101f1 is subtracted, and the output of the subtractor 102f1 and the output of the adder 101e3 of the serial arithmetic unit 101e are added by the adder 10
2f2 is added, and the output of the adder 102f2 and the output of the adder 101g5 of the serial computing unit 101g are added by the adder 10
2f3 is added, and the output and input b2 of this adder 102f3
Is added by the adder 102f4, and the output of the first flip-flop of the shifter 101f1 of the serial operation unit 101f is subtracted from the output of the adder 102f4 by the subtractor 102f5 to obtain the output x2.

【0194】また、上記シリアル演算器102gでは、
DCT演算式をそのままハードウェア化した場合のシリ
アル演算式x1=4×(−48b0−85b1−17b2+
72b3)実行する。この場合、シリアル演算器102
gの加算器102g1には、シリアル演算器101eの
加算器101e2の出力とシリアル演算器101gのシ
フタ101g1の第1番目のフリップフロップの出力と
が入力され、加算器102g1でこれら入力を加算し、
次いで減算器102g2でシリアル演算器101hの加
算器101h3の出力から加算器102g1の出力を減算
し、この減算器102g2の出力からシリアル演算器1
01fの加算器101f5の出力を減算器102g3で減
算し、この減算器102g3の出力から入力b1を減算器
102g4で減算し、この減算器102g4の出力からシ
リアル演算器101gのシフタ101g1の第1番目の
フリップフロップの出力を減算器102g5で減算する
と出力x1が求められる。
Further, in the serial arithmetic unit 102g,
Serial arithmetic expression when the DCT arithmetic expression is directly converted to hardware x1 = 4 × (-48b0-85b1-17b2 +
72b3) Execute. In this case, the serial computing unit 102
The output of the adder 101e2 of the serial operation unit 101e and the output of the first flip-flop of the shifter 101g1 of the serial operation unit 101g are input to the adder 102g1 of g, and these inputs are added by the adder 102g1.
Next, the subtractor 102g2 subtracts the output of the adder 102g1 from the output of the adder 101h3 of the serial operation unit 101h, and the serial operation unit 1 outputs the output of the subtractor 102g2.
The output of the adder 101f5 of 01f is subtracted by the subtractor 102g3, the input b1 is subtracted by the subtractor 102g4 from the output of this subtractor 102g3, and the first shifter 101g1 of the serial arithmetic unit 101g is output from the output of this subtractor 102g4. The output x1 is obtained by subtracting the output of the flip-flop of the above by the subtractor 102g5.

【0195】また、上記シリアル演算器102hでは、
DCT演算式をそのままハードウェア化した場合のシリ
アル演算式x0=4×(−85b0+72b1−48b2+
17b3)実行する。この場合、シリアル演算器102
hの減算器102h1には、シリアル演算器101hの
シフタ101h1の第1番目のフリップフロップの出力
とシリアル演算器101gの加算器101g2の出力と
が入力され、減算器102h1でシフタ101h1の第1
番目のフリップフロップの出力から加算器101g2の
出力を減算し、この減算器102h1の出力とシリアル
演算器101fの加算器101f3の出力を加算器10
2h2で加算し、この加算器102h2の出力からシリア
ル演算器101eの加算器101e5の出力を減算器1
02h3で減算し、この減算器102h3の出力から入力
b0を減算器102h4で減算し、この減算器102h4
の出力とシリアル演算器101hのシフタ101h1の
第1番目のフリップフロップの出力を加算器102h5
で加算すると出力x0が求められる。
Further, in the serial arithmetic unit 102h,
Serial arithmetic expression when the DCT arithmetic expression is directly converted to hardware x0 = 4 × (−85b0 + 72b1−48b2 +
17b3) Execute. In this case, the serial computing unit 102
The output of the first flip-flop of the shifter 101h1 of the serial arithmetic unit 101h and the output of the adder 101g2 of the serial arithmetic unit 101g are input to the subtractor 102h1 of h.
The output of the adder 101g2 is subtracted from the output of the second flip-flop, and the output of the subtractor 102h1 and the output of the adder 101f3 of the serial arithmetic unit 101f are added to the adder 10
2h2 is added, and the output of the adder 101e5 of the serial computing unit 101e is subtracted from the output of the adder 102h2 by the subtracter 1
02h3 is subtracted, the input b0 is subtracted from the output of the subtractor 102h3 by the subtractor 102h4, and the subtractor 102h4 is subtracted.
And the output of the first flip-flop of the shifter 101h1 of the serial arithmetic unit 101h are added to the adder 102h5.
The output x0 is obtained by adding in.

【0196】上記シリアル演算の場合、図14の入力デ
ータに対してシリアル演算器102e〜102hから
は、同図IIに示すタイミングで、それぞれの演算結果を
出力するようになる。
In the case of the serial operation, the serial operation units 102e to 102h output respective operation results for the input data of FIG. 14 at the timing shown in FIG.

【0197】以下、上記シリアル回路100を含んで構
成されたデータ圧縮時のデータ変換演算装置110の動
作を説明する。
The operation of the data conversion arithmetic unit 110 at the time of data compression constituted by including the serial circuit 100 will be described below.

【0198】まず、DCT演算処理の場合を述べると、
ここでは、ステージIの演算回路111において加算器
81aに入力データf0とf7、加算器81bに入力デー
タf3とf4、加算器81cに入力データf1とf6、加算
器81dに入力データf2とf5、減算器81eに入力デ
ータf0とf7、減算器81fに入力データf3とf4、減
算器81gに入力データf1とf6、減算器81hに入力
データf2とf5が入力される。これにより加算器81a
は入力データf0とf7の加算結果を出力し、加算器81
bは入力データf3とf4の加算結果を出力し、加算器8
1cは入力データf1とf6の加算結果f1+f6を出力
し、加算器81dは入力データf2とf5の加算結果を出
力するようになる。また、減算器81eは入力データf
0とf7の減算結果を出力し、減算器81fは入力データ
f3とf4の減算結果を出力し、減算器81gは入力デー
タf1とf6の減算結果を出力し、減算器81hは入力デ
ータf2とf5の減算結果を出力するようになる。この場
合の入力データは、図14に示すように7bitと1bitの
サインビットの8bitのデータからなっている。また、
出力データは、図14Iに示すように7+1bitと1bit
のサインビットからなっている。
First, the case of the DCT operation processing will be described.
Here, in the arithmetic circuit 111 of the stage I, the adder 81a has input data f0 and f7, the adder 81b has input data f3 and f4, the adder 81c has input data f1 and f6, and the adder 81d has input data f2 and f5. Input data f0 and f7 are input to the subtractor 81e, input data f3 and f4 are input to the subtractor 81f, input data f1 and f6 are input to the subtractor 81g, and input data f2 and f5 are input to the subtractor 81h. Thereby, the adder 81a
Outputs the addition result of the input data f0 and f7, and the adder 81
b outputs the addition result of the input data f3 and f4, and the adder 8
1c outputs the addition result f1 + f6 of the input data f1 and f6, and the adder 81d outputs the addition result of the input data f2 and f5. Further, the subtractor 81e receives the input data f
The subtracter 81f outputs the subtraction result of the input data f3 and f4, the subtractor 81f outputs the subtraction result of the input data f1 and f6, and the subtracter 81h outputs the subtraction result of 0 and f7. The result of subtracting f5 is output. The input data in this case consists of 8-bit data of 7-bit and 1-bit sign bit as shown in FIG. Also,
The output data is 7 + 1bit and 1bit as shown in FIG. 14I.
It consists of the sign bit.

【0199】次いで、ステージIIの演算回路112に進
む。この演算回路112のeven側のシリアル演算器
112a〜112dには、ステージIの演算回路111
で加算された加算結果a0、a1、a2、a3が入力データ
として与えられ、odd側のシリアル回路100には、
ステージIの演算回路111で減算された減算結果b
0、b1、b2、b3が入力データとして与えられる。上記
演算器112aでは、係数を簡単な整数比に近似した場
合のDCTシリアル演算式F0=(92a0+92a1+
92a2+92a3)×128の括弧内の演算を実行す
る。この場合、シリアル演算器112aの前段部を構成
する加算器82a1には、加算器81aの出力と加算器
81dの出力とが入力され、加算器82a1でこれら入
力データを加算し、この加算結果がシフタ82a2に与
えられる。また、上記シリアル演算器112bでは、係
数を簡単な整数比に近似した場合のDCTシリアル演算
式F4=(92a0−92a1−92a2+92a3)×1
28の括弧内の演算を実行する。この場合、シリアル演
算器112bの前段部を構成する演算器112bには、
加算器81bの出力と加算器81cの出力とが入力さ
れ、加算器82b1でこれら入力データを加算し、この
加算結果がシフタ82b2に与えられる。これにより、
シフタ82a2及びシフタ82b2からは3個のフリップ
フロップの動作だけ遅延して出力されることになる。
Then, the operation proceeds to stage II arithmetic circuit 112. The even side serial arithmetic units 112a to 112d of the arithmetic circuit 112 include the arithmetic circuit 111 of the stage I.
The addition results a0, a1, a2, and a3 that are added in are given as input data, and the serial circuit 100 on the odd side is
Subtraction result b subtracted by the arithmetic circuit 111 of stage I
0, b1, b2, b3 are given as input data. In the arithmetic unit 112a, the DCT serial arithmetic expression F0 = (92a0 + 92a1 +) when the coefficient is approximated to a simple integer ratio
92a2 + 92a3) × 128 parenthesized operation is executed. In this case, the output of the adder 81a and the output of the adder 81d are input to the adder 82a1 which forms the front stage of the serial computing unit 112a, and these input data are added by the adder 82a1 and the addition result is It is given to the shifter 82a2. Further, in the serial calculator 112b, the DCT serial calculation formula F4 = (92a0-92a1-92a2 + 92a3) .times.1 when the coefficient is approximated to a simple integer ratio.
Perform the operation in 28 parentheses. In this case, the arithmetic unit 112b forming the front stage of the serial arithmetic unit 112b is
The output of the adder 81b and the output of the adder 81c are input, the adder 82b1 adds these input data, and the addition result is given to the shifter 82b2. This allows
The shifters 82a2 and 82b2 delay the output by the operations of the three flip-flops.

【0200】また、上記シリアル演算器112cでは、
係数を簡単な整数比に近似した場合のDCTシリアル演
算式F6=(25a0+60a1−60a2−25a3)×
128の括弧内の演算を実行する。この場合、シリアル
演算器92cの前段部を構成する演算器82cには、加
算器81bの出力と加算器81cの出力とが入力され、
減算器82c1で加算器81bの出力を加算器81cの
出力で減算すると(a1−a2)が求められる。この減算
器82c1の出力をシフタ82c2に与え、このシフタ8
2c2の第1番目のフリップフロップの出力とシフタ8
2c2の出力を加算器82c3により加算し、また、シフ
タ82c2の第2番目のフリップフロップの出力と加算
器82c3の出力を加算器82c4により加算することに
より「25」、「60」が求められることになる。ま
た、上記シリアル演算器112dでは、係数を簡単な整
数比に近似した場合のDCTシリアル演算式F2=(6
0a0+25a1−25a2−60a3)×128の括弧内
の演算を実行する。この場合、シリアル演算器92dの
前段部を構成する演算器82dには、加算器81aの出
力と加算器81dの出力とが入力され、減算器82d1
で加算器81aの出力を加算器81dの出力で減算する
と(a0−a3)が求められる。この減算器82d1の出
力をシフタ82d2に与え、このシフタ82d2の第1番
目のフリップフロップの出力とシフタ82d2の出力を
加算器82d3により加算し、また、シフタ82d2の第
2番目のフリップフロップの出力と加算器82d3の出
力を加算器82d4により加算することにより「6
0」、「25」が求められることになる。
Further, in the serial computing unit 112c,
DCT serial operation formula F6 = (25a0 + 60a1-60a2-25a3) * when the coefficient is approximated to a simple integer ratio
Perform the operation in 128 parentheses. In this case, the output of the adder 81b and the output of the adder 81c are input to the arithmetic unit 82c forming the front stage of the serial arithmetic unit 92c,
Subtractor 82c1 subtracts the output of adder 81b with the output of adder 81c to obtain (a1-a2). The output of the subtracter 82c1 is given to the shifter 82c2, and the shifter 8c2
The output of the first flip-flop 2c2 and the shifter 8
"25" and "60" can be obtained by adding the output of 2c2 by the adder 82c3 and adding the output of the second flip-flop of the shifter 82c2 and the output of the adder 82c3 by the adder 82c4. become. In the serial calculator 112d, the DCT serial calculation formula F2 = (6
0a0 + 25a1-25a2-60a3) .times.128 parenthesized operation is executed. In this case, the output of the adder 81a and the output of the adder 81d are input to the arithmetic unit 82d forming the front stage of the serial arithmetic unit 92d, and the subtractor 82d1
Then, the output of the adder 81a is subtracted by the output of the adder 81d to obtain (a0-a3). The output of the subtracter 82d1 is given to the shifter 82d2, the output of the first flip-flop of the shifter 82d2 and the output of the shifter 82d2 are added by the adder 82d3, and the output of the second flip-flop of the shifter 82d2. And the output of the adder 82d3 are added by the adder 82d4
"0" and "25" are required.

【0201】次いで、上記演算器82a〜82dで求め
た演算結果は、シリアル演算器112a〜112dの後
段部を構成する加減算器に与えられる。具体的には、演
算器82a、82bの出力が加算器83aおよび減算器
83bに与えられ、演算器82c、82dの出力が減算
器83c及び加算器83dに与えられ、さらに演算器8
2e、82fの出力が加算器83e及び減算器83f
に、演算器82g、82hの出力が減算器83及び加算
器83hに与えられる。これにより、加算器83aは、
演算器82aと演算器82bの出力を加算した結果(9
2a0+92a1+92a2+92a3)を出力し、減算器
83bは、演算器82aから演算器82bの出力を減算
した結果(92a0−92a1−92a2+92a3)を出
力し、減算器83cは、演算器82cから演算器82d
の出力を減算した結果(25a0+60a1−60a2−
25a3)を出力し、加算器83dは、演算器82cと
演算器82dの出力を加算した結果(60a0+25a1
−25a2−60a3)を出力するようになる。この場
合、図14の入力に示す入力データに対して演算器83
a〜83hでは、同図IIに示すタイミングで上述の演算
結果を出力データとして発生するようになる。
Next, the calculation results obtained by the arithmetic units 82a to 82d are given to the adder / subtractor constituting the subsequent stage of the serial arithmetic units 112a to 112d. Specifically, the outputs of the calculators 82a and 82b are given to the adder 83a and the subtractor 83b, the outputs of the calculators 82c and 82d are given to the subtractor 83c and the adder 83d, and the calculator 8 is further added.
The outputs of 2e and 82f are the adder 83e and the subtractor 83f.
Then, the outputs of the computing units 82g and 82h are given to the subtractor 83 and the adder 83h. As a result, the adder 83a
The result of adding the outputs of the arithmetic unit 82a and the arithmetic unit 82b (9
2a0 + 92a1 + 92a2 + 92a3), the subtractor 83b outputs the result (92a0-92a1-92a2 + 92a3) of subtracting the output of the calculator 82b from the calculator 82a, and the subtractor 83c outputs the calculator 82c to the calculator 82d.
The result of subtracting the output of (25a0 + 60a1-60a2-
25a3) and the adder 83d adds the outputs of the arithmetic units 82c and 82d (60a0 + 25a1).
-25a2-60a3) is output. In this case, the arithmetic unit 83 is applied to the input data shown in the input of FIG.
In a to 83h, the above calculation result is generated as output data at the timing shown in FIG.

【0202】なお、ステージIIの演算回路112のod
d側を構成するシリアル回路100の動作は前述してい
る。
It should be noted that the odd of the arithmetic circuit 112 of the stage II is odd.
The operation of the serial circuit 100 forming the d side has been described above.

【0203】次いで、ステージIIIの演算回路113に
進む。この演算回路113では、ステージIIの演算回路
112の加算器83aの出力が演算器113aに与えら
れ、同様にして減算器83bの出力が演算器113b
に、減算器83cの出力が演算器113cに、加算器8
3dの出力が演算器113dに、シリアル回路100の
出力x0が演算器113eに、シリアル回路100の出
力x1が演算器113fに、シリアル回路100の出力
x2が演算器113gに、シリアル回路100の出力x3
が演算器113hにそれぞれ与えられる。これにより、
演算器113aは、ステージIIの演算回路112の加算
器83aの出力(92a0+92a1+92a2+92a
3)に対して×128の演算を実行し、出力F0のゲイン
128を与え、その演算結果を出力データF0として出
力する。また、演算器113bは、ステージIIの演算回
路112の減算器83bの出力(92a0−92a1−9
2a2+92a3)に対して×128の演算を実行し、出
力F4のゲイン128を与え、その演算結果を出力デー
タF4として出力する。同様に、演算器113cは、ス
テージIIの演算回路112の減算器83cの出力(25
a0+60a1−60a2−25a3)に対して×128の
演算を実行し、出力F6のゲイン128を与え、その演
算結果を出力データF6として出力する。また、演算器
113dは、ステージIIの演算回路112の加算器83
dの出力(60a0+25a1−25a2−60a3)に対
して×128の演算を実行し、出力F2のゲイン128
を与え、その演算結果を出力データF2として出力す
る。
Next, the operation circuit 113 of stage III is entered. In the arithmetic circuit 113, the output of the adder 83a of the arithmetic circuit 112 of the stage II is given to the arithmetic unit 113a, and similarly, the output of the subtractor 83b is arithmetic unit 113b.
The output of the subtractor 83c is supplied to the calculator 113c and the adder 8
The output of 3d is to the arithmetic unit 113d, the output x0 of the serial circuit 100 is to the arithmetic unit 113e, the output x1 of the serial circuit 100 is to the arithmetic unit 113f, the output x2 of the serial circuit 100 is to the arithmetic unit 113g, the output of the serial circuit 100. x3
Are given to the computing units 113h, respectively. This allows
The arithmetic unit 113a outputs the output (92a0 + 92a1 + 92a2 + 92a) of the adder 83a of the arithmetic circuit 112 of stage II.
The calculation of x128 is executed for 3), the gain 128 of the output F0 is given, and the calculation result is output as the output data F0. Further, the arithmetic unit 113b outputs the output (92a0-92a1-9 of the subtractor 83b of the arithmetic circuit 112 of the stage II.
2a2 + 92a3) is subjected to a × 128 operation, a gain 128 of the output F4 is given, and the operation result is output as output data F4. Similarly, the arithmetic unit 113c outputs the output (25
a0 + 60a1-60a2-25a3) is executed to obtain a gain 128 of the output F6, and the operation result is output as output data F6. The arithmetic unit 113d is the adder 83 of the arithmetic circuit 112 of stage II.
The output of d (60a0 + 25a1-25a2-60a3) is calculated by x128, and the gain of output F2 is 128.
And output the calculation result as output data F2.

【0204】また、odd側においては、演算器113
eのシフタ84e4及び減算器84e5は、ステージIIの
シリアル回路100の出力x0に対して×32の演算を
実行して出力F7のゲイン32を与え、その演算結果を
出力データF7として出力する。また、演算器113f
のシフタ84f4及び減算器84f5は、ステージIIのシ
リアル回路100の出力x1に対して×32の演算を実
行して出力F3のゲイン32を与え、その演算結果を出
力データF3として出力する。同様に、演算器113g
のシフタ84g4及び減算器84g5は、ステージIIのシ
リアル回路100の出力x2に対して×32の演算を実
行して出力F5のゲイン32を与え、その演算結果を出
力データF5として出力する。また、演算器113hの
シフタ84h4及び減算器84h5は、ステージIIのシリ
アル回路100の出力x3に対して×32の演算を実行
して出力F1のゲイン32を与え、その演算結果を出力
データF1として出力する。この場合、上記ステージIII
の演算回路113の各演算器113a〜113hでは図
14の入力データに対してシリアル演算を実行し、同図
IIIに示すタイミングで、その演算結果を出力データF0
〜F7として発生するようになる。 以上の説明は、DC
T演算処理の場合であるが、図10に示すデータ伸張時
のデータ変換演算装置120による逆DCT演算処理の
場合も上述したDCT演算処理の場合と同様である。
On the odd side, the arithmetic unit 113
The shifter 84e4 of e and the subtractor 84e5 perform the operation of x32 on the output x0 of the serial circuit 100 of the stage II to give the gain 32 of the output F7, and output the operation result as the output data F7. In addition, the calculator 113f
The shifter 84f4 and the subtracter 84f5 perform the operation of x32 on the output x1 of the serial circuit 100 of the stage II to give the gain 32 of the output F3, and output the operation result as the output data F3. Similarly, calculator 113g
The shifter 84g4 and the subtractor 84g5 perform the operation of x32 on the output x2 of the serial circuit 100 of the stage II to give the gain 32 of the output F5, and output the operation result as the output data F5. Further, the shifter 84h4 and the subtractor 84h5 of the calculator 113h perform a calculation of x32 on the output x3 of the serial circuit 100 of the stage II to give a gain 32 of the output F1 and the calculation result as output data F1. Output. In this case, Stage III above
In each of the arithmetic units 113a to 113h of the arithmetic circuit 113 of FIG.
At the timing shown in III, the calculation result is output data F0.
~ It will occur as F7. The above explanation is for DC
Although it is the case of the T arithmetic processing, the case of the inverse DCT arithmetic processing by the data conversion arithmetic unit 120 at the time of data decompression shown in FIG. 10 is similar to the case of the DCT arithmetic processing described above.

【0205】この場合は入力データがステージIIIの演
算回路113〜ステージIの演算回路111の順で与え
られるようになる。すなわち、データ変換演算装置11
0、120は、図12に示すように制御装置52(図
3)からのバス切換え信号によりバスセレクタ131〜
134を切り換えて各ステージI〜IIIの接続状態を切
換え、圧縮伸張両方のデータ変換演算を可能にする。
In this case, the input data is provided in the order of the stage III arithmetic circuit 113 to the stage I arithmetic circuit 111. That is, the data conversion calculation device 11
0 and 120 are bus selectors 131 to 131 according to a bus switching signal from the controller 52 (FIG. 3) as shown in FIG.
By switching 134, the connection state of each of the stages I to III is switched to enable data conversion operations for both compression and expansion.

【0206】図14は、データ変換演算装置110の入
力から出力までのタイミングチャートであり、ステージ
Iの演算回路111〜ステージIIIの演算回路113の
動作を総合した場合のタイミングチャートを示してい
る。本実施例では、DCT演算式を展開することによっ
て各入力に共通な係数が表れるように係数を分割し、こ
のように展開したDCT演算式をバタフライ演算にとら
われずにそのままハードウェア化することによって偶数
成分側からタイミングおよびゲインを揃えるために設け
られたシフトレジスタを取り去ることができ、図13に
示すデータ変換演算装置50のタイミングチャートと比
較して明らかなように7bitのデータを入力した場合、
1ライン当りの処理周期を26クロックから23クロッ
クに減少させることができる。
FIG. 14 is a timing chart from the input to the output of the data conversion arithmetic unit 110, and shows a timing chart when the operations of the arithmetic circuit 111 of stage I to the arithmetic circuit 113 of stage III are integrated. In the present embodiment, by expanding the DCT arithmetic expression, the coefficients are divided so that a common coefficient appears in each input, and the expanded DCT arithmetic expression is implemented as hardware without being restricted by the butterfly operation. The shift register provided for equalizing the timing and the gain can be removed from the even-numbered component side, and when 7-bit data is input as apparent from comparison with the timing chart of the data conversion arithmetic unit 50 shown in FIG.
The processing cycle per line can be reduced from 26 clocks to 23 clocks.

【0207】データ変換演算装置140、150、18
0、190における動作(図15〜図25) データ変換演算装置140、150、180、190の
基本的な動作は図9〜図11に示したデータ変換演算装
置110、120と同様であるが、データ変換演算装置
140、150にあっては、ステージIIが基本原理(II
I)の考え方を適用したステージとなっており、特に、
ステージIIのodd側がDCT演算式をそのままハード
ウェア化するとともに、複数段の加減算を一度に行なう
ように構成したシリアル回路160により構成されてい
るためこの部分の動作は異なっている。また、データ変
換演算装置180、190にあっては、ステージIIに加
えステージI及びステージIIIにも基本原理(III)の考
え方を適用することによって装置全体のクロック数が減
少している。
Data conversion arithmetic units 140, 150, 18
Operations at 0 and 190 (FIGS. 15 to 25) Basic operations of the data conversion operation devices 140, 150, 180 and 190 are the same as those of the data conversion operation devices 110 and 120 shown in FIGS. In the data conversion arithmetic units 140 and 150, the stage II is the basic principle (II
It is a stage that applies the idea of I), especially
The operation of this part is different because the odd side of the stage II is configured as a hardware of the DCT arithmetic expression as it is and is configured by a serial circuit 160 configured to perform addition and subtraction of a plurality of stages at once. Further, in the data conversion arithmetic devices 180 and 190, the number of clocks of the entire device is reduced by applying the idea of the basic principle (III) to the stages I and III in addition to the stage II.

【0208】以下、シリアル回路160の動作について
説明し、次いで、データ圧縮伸張時のデータ変換演算装
置140、150の全体の動作及びデータ変換演算装置
180、190の全体の動作を述べる。
The operation of the serial circuit 160 will be described below, and then the overall operation of the data conversion arithmetic devices 140 and 150 and the overall operations of the data conversion arithmetic devices 180 and 190 during data compression / expansion will be described.

【0209】上記式の係数17、48、72、85の比
率を同じままで高速化した回路が前述した図11に示す
シリアル回路100である。
The serial circuit 100 shown in FIG. 11 is a circuit in which the ratios of the coefficients 17, 48, 72, 85 in the above equations are made the same and the speed is increased.

【0210】前記図11のシリアル回路100につい
て、入力をb0〜b3、出力をx0〜x3として考えてみる
と、前述したように各出力x0〜x3は以下のような式に
よって表わされる。
With regard to the serial circuit 100 shown in FIG. 11, considering the inputs as b0 to b3 and the outputs as x0 to x3, the outputs x0 to x3 are expressed by the following equations as described above.

【0211】 x0=4×(−85b0+72b1−48b2+17b3) x1=4×(−48b0−85b1−17b2+72b3) x2=4×(72b0−17b1+85b2+48b3) x3=4×(17b0+48b1+72b2+85b3) この式から分かるように、基本原理(II)に基づいてD
CT演算式をそのままハードウェア化したシリアル回路
100を用いたとしても各出力x0〜x3の式には×4と
いう係数が残っており、本来必要とする演算式の括弧内
の値の4倍、つまり2クロック分遅れて演算値が出力さ
れることになる。また、この2クロック分遅れに対応し
てステージIIのeven側にも2クロック遅延用のフリ
ップフロップ(FF)が必要であり回路規模のより一層
の減少が望まれている。
X0 = 4 × (−85b0 + 72b1−48b2 + 17b3) x1 = 4 × (−48b0−85b1−17b2 + 72b3) x2 = 4 × (72b0−17b1 + 85b2 + 48b3) x3 = 4 × (17b0 + 48b1 + 72b3) From the basic formula, it is understood from this basic formula, that is, 85b3. D based on (II)
Even if the serial circuit 100 in which the CT calculation formula is implemented as hardware is used as it is, a coefficient of x4 remains in the formula of each output x0 to x3. That is, the calculated value is output with a delay of two clocks. In addition, a flip-flop (FF) for delaying two clocks is required on the even side of the stage II in response to the delay of two clocks, and further reduction in circuit scale is desired.

【0212】以下、DCT演算式をそのままハードウェ
ア化するとともに、複数段の加減算を一度に行なうよう
に構成したシリアル回路160の動作を説明する。
The operation of the serial circuit 160 configured so that the DCT arithmetic expression is directly implemented in hardware and a plurality of stages of addition and subtraction are performed at one time will be described below.

【0213】図17において、シリアル回路160の前
段部分を構成するシリアル回路161のシリアル演算器
161e〜161hには、図15のステージI又は図1
6のステージIIIで演算された演算結果A、B、C、D
が入力データとして与えられ、各入力A、B、C、Dに
共通な係数を2のべきにある数値をかけた形で表現した
場合の該数値の部分が演算される。この場合、基本的な
作成方法として入力A〜Dに共通な係数を2のべきにあ
る数値をかけた形で表現した場合の係数(17、85、
48、72)の数値(2、42、6、18)を作成する
シリアル回路の原型をまず想定し、このシリアル回路が
フリップフロップ(FF)を有しないアダー(サブトラ
クタ)を含むように構成するようにする。ここでは、シ
リアル演算器161e〜161hの加算器161e2、
161f2、161g2、161h2が、遅延用のフリッ
プフロップ(FF)を有しない構造の加算器により構成
される。また、後述するシリアル演算器162e〜16
2hにあっては、加減算器が削減されるとともに、加減
算器が遅延用のフリップフロップ(FF)を有しない構
造のものに置き換えられる。こうした構成をとることに
よって、実際に上記シリアル演算器161e〜161h
で計算される係数の数値の値は上記数値(2、42、
6、18)とは異なる値になっており、具体的には上記
シリアル演算器161e〜161hでは各入力A、B、
C、Dについてそれぞれ1倍、12倍、8倍、18倍、
42倍した係数の数値を求めるようにしている。また、
後述するシリアル演算器162e〜162hは、前記図
11のシリアル回路100のシリアル演算器162e〜
162hのように入力に対し順次シフト加減算行なうも
のではなく、前段のシリアル演算器161e〜161h
の演算と一体となって所定の加減算を行なって、結果的
に上記式の括弧内の値(17、48、72、85)を出
力するものである。
In FIG. 17, the serial arithmetic units 161e to 161h of the serial circuit 161 forming the preceding stage portion of the serial circuit 160 include the stage I of FIG.
Calculation results A, B, C, D calculated in Stage III of 6
Is given as input data, and when a coefficient common to each of the inputs A, B, C and D is expressed in the form of multiplying a power value of 2, the part of the value is calculated. In this case, as a basic creation method, the coefficients common to the inputs A to D are expressed by multiplying the power of 2 by a certain number (17, 85,
First, a prototype of a serial circuit for producing the numerical value (2, 42, 6, 18) of 48, 72) is assumed, and the serial circuit is configured to include an adder (subtractor) having no flip-flop (FF). To do so. Here, the adders 161e2 of the serial computing units 161e to 161h,
161f2, 161g2, and 161h2 are composed of adders having a structure having no delay flip-flop (FF). In addition, serial arithmetic units 162e to 16 described later
In 2h, the adder / subtractor is reduced, and the adder / subtractor is replaced with a structure having no delay flip-flop (FF). With such a configuration, the serial computing units 161e to 161h are actually used.
The numerical value of the coefficient calculated by is the above numerical value (2, 42,
6 and 18), and specifically, in the serial computing units 161e to 161h, the inputs A, B,
For C and D, 1x, 12x, 8x, 18x,
The value of the coefficient multiplied by 42 is calculated. Also,
The serial calculators 162e to 162h described later are the serial calculators 162e to 162e of the serial circuit 100 shown in FIG.
Unlike 162h, it does not sequentially perform shift addition / subtraction on the input, but the serial arithmetic units 161e to 161h at the previous stage.
Predetermined addition and subtraction is performed together with the calculation of, and as a result, the value in parentheses (17, 48, 72, 85) of the above expression is output.

【0214】すなわち、上記シリアル演算器161eで
は、入力Aが入力されると、後段のシリアル演算器16
2e、162hで奇数値を作成するために先ず入力Aの
一部はそのまま出力「1」され、またこの入力Aをシフ
トあるいはシフト加算を行なうことによって、シリアル
演算器161eのシフタ161e1の第2番目のフリッ
プフロップの出力と第1番目のフリップフロップの出力
を加算することによって加算器161e3から「12」
が、シフタ161e1の3個のフリップフロップの動作
だけ遅延してシフタ161e1から「8」が、入力Aと
シフタ161e1の3個のフリップフロップの動作だけ
遅延した出力を加算することによって加算器161e4
から「18」が、内部にフリップフロップ(FF)を有
しない加算器161e2の出力と加算器161e4の出力
を加算することによって加算器161e5から「42」
がそれぞれ出力されることになる。ここで、例えば42
倍の値は、上述したように加算器161e2の出力と加
算器161e4から出力された18倍の値とを加算した
ものを1クロック遅延させることにより求めることがで
きる。なお、加算器161e2は単なるアダーであり内
部にフリップフロップ(FF)を持たないため、1クロ
ックの遅延は生じない。
That is, in the serial computing unit 161e, when the input A is input, the serial computing unit 16 in the subsequent stage is
In order to create an odd value in 2e and 162h, first, a part of the input A is directly output "1" as it is. Also, by shifting or shift-adding this input A, the second shifter 161e1 of the serial computing unit 161e is changed to the second one. From the adder 161e3 to "12" by adding the output of the first flip-flop and the output of the first flip-flop
Is delayed by the operations of the three flip-flops of the shifter 161e1, and the shifter 161e1 to "8" add the outputs delayed by the operations of the input A and the three flip-flops of the shifter 161e1 to adder 161e4.
From "18" to "42" by adding the output of the adder 161e2 having no internal flip-flop (FF) and the output of the adder 161e4.
Will be output respectively. Here, for example, 42
The doubled value can be obtained by delaying for one clock the sum of the output of the adder 161e2 and the 18-fold value output from the adder 161e4 as described above. Since the adder 161e2 is a simple adder and does not have a flip-flop (FF) inside, a delay of one clock does not occur.

【0215】同様に、上記シリアル演算器161fで
は、入力Bが入力されると、後段のシリアル演算器16
2f、162gで奇数値を作成するために先ず入力Bの
一部はそのまま出力「1」され、またこの入力Bをシフ
トあるいはシフト加算を行なうことによって、シリアル
演算器161fのシフタ161f1の第2番目のフリッ
プフロップの出力と第1番目のフリップフロップの出力
を加算することによって加算器161f3から「12」
が、シフタ161f1の3個のフリップフロップの動作
だけ遅延してシフタ161f1から「8」が、入力Bと
シフタ161f1の3個のフリップフロップの動作だけ
遅延した出力を加算することによって加算器161f4
から「18」が、内部にフリップフロップ(FF)を持
たず1クロックの遅延がない加算器161f2の出力と
加算器161f4の出力を加算することによって加算器
161f5から「42」がそれぞれ出力されることにな
る。
Similarly, in the serial computing unit 161f, when the input B is input, the serial computing unit 16 in the subsequent stage is
In order to create an odd value with 2f and 162g, first, a part of the input B is directly output "1" as it is, and by shifting or shift-adding the input B, the second shifter 161f1 of the serial computing unit 161f is moved to the second position. From the adder 161f3 to "12" by adding the output of the first flip-flop and the output of the first flip-flop
Is delayed by the operations of the three flip-flops of the shifter 161f1, and the shifter 161f1 to "8" add the outputs delayed by the operations of the input B and the three flip-flops of the shifter 161f1 to adder 161f4.
From "18" are output from the adder 161f5 by adding the output of the adder 161f2 and the output of the adder 161f4 having no internal flip-flop (FF) and having one clock delay. It will be.

【0216】また、上記シリアル演算器161gでは、
入力Cが入力されると、後段のシリアル演算器162
f、162gで奇数値を作成するために先ず入力Cの一
部はそのまま出力「1」され、またこの入力Cをシフト
あるいはシフト加算を行なうことによって、シリアル演
算器161gのシフタ161g1の第2番目のフリップ
フロップの出力と第1番目のフリップフロップの出力を
加算することによって加算器161e3から「12」
が、シフタ161g1の3個のフリップフロップの動作
だけ遅延してシフタ161g1から「8」が、入力Cと
シフタ161g1の3個のフリップフロップの動作だけ
遅延した出力を加算することによって加算器161g4
から「18」が、内部にフリップフロップ(FF)を持
たず1クロックの遅延がない加算器161e2の出力と
加算器161e4の出力を加算することによって加算器
161g5から「42」がそれぞれ出力されることにな
る。また、上記シリアル演算器161hでは、入力Dが
入力されると、後段のシリアル演算器162e、162
hで奇数値を作成するために先ず入力Dの一部はそのま
ま出力「1」され、またこの入力Dをシフトあるいはシ
フト加算を行なうことによって、シリアル演算器161
hのシフタ161h1の第2番目のフリップフロップの
出力と第1番目のフリップフロップの出力を加算するこ
とによって加算器161h3から「12」が、シフタ1
61h1の3個のフリップフロップの動作だけ遅延して
シフタ161h1から「8」が、入力Dとシフタ161
h1の3個のフリップフロップの動作だけ遅延した出力
を加算することによって加算器161h4から「18」
が、内部にフリップフロップ(FF)を持たず1クロッ
クの遅延がない加算器161h2の出力と加算器161
h4の出力を加算することによって加算器161h5から
「42」がそれぞれ出力されることになる。
In the serial computing unit 161g,
When the input C is input, the serial arithmetic unit 162 at the subsequent stage
In order to create an odd value with f and 162g, a part of the input C is first output "1" as it is, and the input C is shifted or shift-added to make the second shifter 161g1 From the adder 161e3 to "12" by adding the output of the first flip-flop and the output of the first flip-flop
Is delayed by the operation of the three flip-flops of the shifter 161g1 and the shifter 161g1 to "8" add the output delayed by the operation of the input C and the three flip-flops of the shifter 161g1 to adder 161g4.
To "18" are added to the outputs of the adder 161e2 and the adder 161e4 that do not have a flip-flop (FF) and have one clock delay, and the adder 161g5 outputs "42", respectively. It will be. Further, in the serial computing unit 161h, when the input D is input, the serial computing units 162e and 162 in the subsequent stage are input.
In order to create an odd value with h, first, a part of the input D is directly output as "1", and the input D is shifted or shift-added to obtain the serial arithmetic unit 161.
By adding the output of the second flip-flop of the shifter 161h1 of h and the output of the first flip-flop of h, the adder 161h3 causes "12" to shift to the shifter 1
The shifters 161h1 to "8" are delayed by the operations of the three flip-flops 61h1 to shift the input D and the shifter 161.
The adder 161h4 outputs "18" by adding the outputs delayed by the operation of the three flip-flops of h1.
However, the output of the adder 161h2 and the adder 161 having no internal flip-flop (FF) and no delay of one clock
By adding the outputs of h4, "42" is output from the adder 161h5.

【0217】上記シリアル演算器161e〜161hで
演算されたDCT演算式の係数に対応する数値「1」、
「12」、「8」、「18」、「42」はシリアル回路
160の後段部分を構成するシリアル回路162のシリ
アル演算器162e〜162hに入力され、各シリアル
演算器162e〜162hは、シリアル演算器161e
〜161hにより計算された係数出力に対してDCT演
算式の横方向に符号分を含めた加減算を、複数段の加減
算で同一クロックで一度に行なって出力O1、O3、O
5、O7として出力する。この場合、上記係数17、8
5、48、72を2のべきにある数値をかけた形で表現
したときの2のべきの部分は各シリアル演算器162e
〜162hの加減算器への入力位置により調整されると
ともに、原理説明(III)に基づいて複数個の(複数段
の)加減算を同一クロックで行なうようにしているた
め、原理説明(II)で述べた理由から図11では実現で
きなかった奇数倍の係数17、85の演算が実現可能に
なっている。これにより、ステージIIで必要とされる値
がNo−waitで得られる。
The numerical value "1" corresponding to the coefficient of the DCT arithmetic expression calculated by the serial arithmetic units 161e to 161h,
“12”, “8”, “18”, and “42” are input to the serial computing units 162e to 162h of the serial circuit 162 that forms the subsequent stage of the serial circuit 160, and the serial computing units 162e to 162h perform serial computing. Vessel 161e
.About.161h, the addition and subtraction including the code component in the horizontal direction of the DCT arithmetic expression is performed at the same clock at a time with the addition and subtraction of a plurality of stages to output O1, O3, O.
Output as 5, O7. In this case, the above coefficients 17, 8
When 5, 48 and 72 are expressed in the form of multiplying a power of 2, the power of 2 is expressed by each serial calculator 162e.
It is adjusted according to the input position to the adder / subtractor of ~ 162h, and a plurality of (a plurality of stages) additions and subtractions are performed with the same clock based on the principle explanation (III). For this reason, the operation of the odd-numbered multiples of coefficients 17 and 85, which cannot be realized in FIG. 11, can be realized. As a result, the value required in stage II is obtained in No-wait.

【0218】上記シリアル演算器162eでは、DCT
演算式をそのままハードウェア化し、かつ複数個の加減
算を同一クロックで行なうようにした場合のシリアル演
算式O1=17A+48B+72C+85D を実行す
る。この場合、シリアル演算器162eの加算器162
e1には、シリアル演算器161gの加算器161g4の
出力とシリアル演算器161fの加算器161f3の出
力が入力され、加算器162e1でこれら入力が加算さ
れ、また、内部にフリップフロップ(FF)を有しない
加算器162e2には、シリアル演算器161eのシフ
タ161e1の出力とシリアル演算器161hの加算器
161h5の出力が入力され、加算器162e2でこれら
入力が1クロックの遅延なく加算される。また、内部に
フリップフロップ(FF)を有しない加算器162e3
には、奇数値を作成するための入力Aと入力Dが入力さ
れ、加算器162e3でこれら入力Aと入力Dが1クロ
ックの遅延なく加算される。この加算器162e1の出
力と加算器162e2の出力とが加算器162e4で加算
され、さらにこの加算器162e4の出力と加算器16
2e3の出力とが内部にフリップフロップ(FF)を有
しない加算器162e5で1クロックの遅延なく加算さ
れると出力データO1が求められる。
In the serial computing unit 162e, the DCT
A serial arithmetic expression O1 = 17A + 48B + 72C + 85D is executed when the arithmetic expression is directly implemented by hardware and a plurality of additions and subtractions are performed with the same clock. In this case, the adder 162 of the serial computing unit 162e
The output of the adder 161g4 of the serial operation unit 161g and the output of the adder 161f3 of the serial operation unit 161f are input to e1. These inputs are added by the adder 162e1 and a flip-flop (FF) is provided inside. The output of the shifter 161e1 of the serial computing unit 161e and the output of the adder 161h5 of the serial computing unit 161h are input to the adder 162e2, and these inputs are added by the adder 162e2 without delay of one clock. Also, an adder 162e3 having no internal flip-flop (FF)
An input A and an input D for creating an odd value are input to the input terminal, and the input A and the input D are added by the adder 162e3 without delay of one clock. The output of the adder 162e1 and the output of the adder 162e2 are added by the adder 162e4, and the output of the adder 162e4 and the adder 16e
When the output of 2e3 is added by the adder 162e5 having no internal flip-flop (FF) without delay of one clock, the output data O1 is obtained.

【0219】また、上記シリアル演算器162fでは、
DCT演算式をそのままハードウェア化し、かつ複数個
の加減算を同一クロックで行なうようにした場合のシリ
アル演算式O5=72b0−17b1+85b2+48b3
を実行する。この場合、シリアル演算器162fの加
算器162f1には、シリアル演算器161eの加算器
161e4の出力とシリアル演算器161hの加算器1
61h3の出力とが入力され、加算器162f1でこれら
入力が加算され、また、内部にフリップフロップ(F
F)を有しない減算器162f2には、シリアル演算器
161fのシフタ161f1の出力とシリアル演算器1
61gの加算器161g5の出力が入力され、減算器1
62f2でシフタ161f1の出力から加算器161g5
の出力が1クロックの遅延なく減算される。また、内部
にフリップフロップ(FF)を有しない減算器162f
3には、入力Bと入力Cが入力され、減算器162f3で
この入力Bから入力Cが1クロックの遅延なく減算され
る。この加算器162f1の出力と減算器162f2の出
力とが加算器162f4で加算され、さらにこの加算器
162f4の出力と減算器162f3の出力とが内部にフ
リップフロップ(FF)を有しない加算器162f5で
1クロックの遅延なく加算されると出力データO5が求
められる。
Further, in the serial computing unit 162f,
Serial arithmetic expression O5 = 72b0-17b1 + 85b2 + 48b3 when the DCT arithmetic expression is directly implemented in hardware and a plurality of additions and subtractions are performed with the same clock
To execute. In this case, the output of the adder 161e4 of the serial calculator 161e and the adder 1 of the serial calculator 161h are included in the adder 162f1 of the serial calculator 162f.
The output of 61h3 is input, these inputs are added by the adder 162f1, and the flip-flop (F
The subtractor 162f2 having no F) is connected to the output of the shifter 161f1 of the serial arithmetic unit 161f and the serial arithmetic unit 1
The output of the 61g adder 161g5 is input to the subtracter 1
62f2 to adder 161g5 from the output of shifter 161f1
Output is subtracted without delay of one clock. Also, a subtractor 162f having no flip-flop (FF) inside
The input B and the input C are input to 3, and the subtractor 162f3 subtracts the input C from the input B without delay of one clock. The output of the adder 162f1 and the output of the subtractor 162f2 are added by an adder 162f4, and the output of the adder 162f4 and the output of the subtractor 162f3 are added by an adder 162f5 having no internal flip-flop (FF). Output data O5 is obtained when the addition is performed without delay of one clock.

【0220】また、上記シリアル演算器162gでは、
DCT演算式をそのままハードウェア化し、かつ複数個
の加減算を同一クロックで行なうようにした場合のシリ
アル演算式O3=−48b0−85b1−17b2+72b
3 実行する。この場合、上記シリアル演算器162g
の減算器162g1には、シリアル演算器161hの加
算器161h4の出力とシリアル演算器161eの加算
器161e3の出力とが入力され、減算器162g1で加
算器161h4の出力から加算器161e3の出力が減算
され、また、内部にフリップフロップ(FF)を有しな
い加算器162g2には、シリアル演算器161gのシ
フタ161g1の出力とシリアル演算器161fの加算
器161f5の出力が入力され、加算器162g2でこれ
ら入力が1クロックの遅延なく加算される。また、内部
にフリップフロップ(FF)を有しない加算器162g
3には、入力Cと入力Bが入力され、加算器162g3で
この入力Cと入力Bが1クロックの遅延なく加算され
る。この減算器162g1の出力から加算器162g2の
出力が減算器162g4で減算され、さらにこの減算器
162g4の出力から加算器162g3の出力を内部にフ
リップフロップ(FF)を有しない減算器162g5で
1クロックの遅延なく減算されると出力データO3が求
められる。
Further, in the serial computing unit 162g,
Serial arithmetic expression O3 = -48b0-85b1-17b2 + 72b when the DCT arithmetic expression is directly implemented in hardware and a plurality of additions and subtractions are performed with the same clock
3 Execute. In this case, the serial calculator 162g
The output of the adder 161h4 of the serial calculator 161h and the output of the adder 161e3 of the serial calculator 161e are input to the subtractor 162g1 of the subtractor 162g1, and the output of the adder 161e3 is subtracted from the output of the adder 161h4 by the subtractor 162g1. Further, the output of the shifter 161g1 of the serial calculator 161g and the output of the adder 161f5 of the serial calculator 161f are input to the adder 162g2 having no internal flip-flop (FF), and these inputs are input by the adder 162g2. Are added without a delay of one clock. Also, an adder 162g having no internal flip-flop (FF)
The input C and the input B are input to 3, and the adder 162g3 adds the input C and the input B without delay of one clock. The output of the adder 162g2 is subtracted from the output of the subtractor 162g1 by the subtractor 162g4, and the output of the adder 162g3 is further output from the output of the subtractor 162g4 by a subtracter 162g5 having no internal flip-flop (FF). When the subtraction is performed without delay, the output data O3 is obtained.

【0221】また、上記シリアル演算器162hでは、
DCT演算式をそのままハードウェア化し、かつ複数個
の加減算を同一クロックで行なうようにした場合のシリ
アル演算式O7=−85b0+72b1−48b2+17b
3 実行する。この場合、上記シリアル演算器162h
の減算器162h1には、シリアル演算器161fの加
算器161f4の出力とシリアル演算器161gの加算
器161g3の出力とが入力され、減算器162h1で加
算器161f4の出力から加算器161g3の出力が減算
され、また、内部にフリップフロップ(FF)を有しな
い減算器162h2には、シリアル演算器161hのシ
フタ161h1の出力とシリアル演算器161eの加算
器161e5の出力が入力され、減算器162h2でシフ
タ161h1の出力から加算器161e5の出力が1クロ
ックの遅延なく減算される。また、内部にフリップフロ
ップ(FF)を有しない減算器162h3には、入力D
と入力Aが入力され、内部にフリップフロップ(FF)
を有しない減算器162h3で入力Dから入力Aが1ク
ロックの遅延なく減算される。この加算器162h1の
出力と減算器162h2の出力が加算器162h4で加算
され、さらにこの加算器162h4の出力と減算器16
2h3の出力とが内部にフリップフロップ(FF)を有
しない加算器162h5で1クロックの遅延なく加算さ
れると出力データO7が求められる。
Further, in the serial computing unit 162h,
Serial arithmetic expression O7 = -85b0 + 72b1-48b2 + 17b when the DCT arithmetic expression is directly implemented in hardware and a plurality of additions and subtractions are performed with the same clock
3 Execute. In this case, the serial computing unit 162h
The output of the adder 161f4 of the serial arithmetic unit 161f and the output of the adder 161g3 of the serial arithmetic unit 161g are input to the subtractor 162h1 of the subtractor 162h1. The subtractor 162h1 subtracts the output of the adder 161g3 from the output of the adder 161f4. Further, the output of the shifter 161h1 of the serial computing unit 161h and the output of the adder 161e5 of the serial computing unit 161e are input to the subtractor 162h2 having no internal flip-flop (FF), and the subtracter 162h2 shifts the shifter 161h1. The output of the adder 161e5 is subtracted from the output of 1) without delay of one clock. In addition, the subtractor 162h3 having no internal flip-flop (FF) has an input D
And input A are input, and a flip-flop (FF) is internally provided.
The input A is subtracted from the input D without delay of one clock by the subtracter 162h3 which does not have a clock. The output of the adder 162h1 and the output of the subtractor 162h2 are added by the adder 162h4, and the output of the adder 162h4 and the subtractor 16h are added.
When the output of 2h3 and the output of 2h3 are added by the adder 162h5 having no internal flip-flop (FF) without delay of one clock, the output data O7 is obtained.

【0222】ここで、シリアル演算式O1=17A+4
8B+72C+85D を実行するシリアル演算器16
2eを例に採り更に詳細な動作を説明する。上述したシ
リアル演算器162の加算処理により、シリアル演算器
162の各加算器162e1〜162e5の出力は以下の
ようになる。
Here, the serial operation expression O1 = 17A + 4
Serial operation unit 16 that executes 8B + 72C + 85D
2e will be taken as an example to explain the more detailed operation. The output of each of the adders 162e1 to 162e5 of the serial arithmetic unit 162 is as follows by the addition processing of the serial arithmetic unit 162 described above.

【0223】 加算器162e1=(18C+12B)×2=36C+
24B 加算器162e2=(8A+42D) 加算器162e3=A+D 加算器162e4=(36C+24B+8A+42D)
×2=16A+48B+72C+84D 加算器162e5=16A+48B+72C+84D+
A+D=17A+48B+72C+85D 上記加算器162e5の出力O1=17A+48B+72
C+85Dと前記シリアル回路100を用いたときの対
応する出力x3=4×(17b0+48b1+72b2+8
5b3)と比較すれば明らかなように、加算器162e5
の出力O1では、本来必要とする演算式の括弧内の値だ
けとなっており×4という係数は削除されている。これ
は、演算値が前記シリアル回路100に比べ2クロック
分速く出力されたことを表わしている。また、シリアル
回路160の動作がこの2クロック分速くなったことに
対応してデータ変換演算装置140、150のステージ
IIのeven側も2クロック速く演算値が出力されるよ
うに変更している。
Adder 162e1 = (18C + 12B) × 2 = 36C +
24B Adder 162e2 = (8A + 42D) Adder 162e3 = A + D Adder 162e4 = (36C + 24B + 8A + 42D)
× 2 = 16A + 48B + 72C + 84D Adder 162e5 = 16A + 48B + 72C + 84D +
A + D = 17A + 48B + 72C + 85D Output O1 of the adder 162e5 O1 = 17A + 48B + 72
Corresponding output when using C + 85D and the serial circuit 100 x3 = 4 × (17b0 + 48b1 + 72b2 + 8
5b3), it is clear that the adder 162e5
In the output O1 of the above, only the value in the parentheses of the originally required arithmetic expression is shown, and the coefficient of × 4 is deleted. This means that the calculated value is output two clocks faster than the serial circuit 100. In addition, in response to the fact that the operation of the serial circuit 160 is accelerated by these two clocks, the stages of the data conversion arithmetic units 140 and 150 are
The even side of II is also changed so that the calculated value is output 2 clocks faster.

【0224】上記シリアル演算の場合、図25に示す入
力データに対してステージIIの演算回路142、152
からは、同図IIに示すタイミングで、演算結果を出力す
るようになる。
In the case of the serial operation, the stage II arithmetic circuits 142 and 152 are applied to the input data shown in FIG.
From then, the calculation result is output at the timing shown in FIG.

【0225】以下、上記シリアル回路160を含んで構
成されたデータ圧縮時のデータ変換演算装置140の動
作を説明する。
Hereinafter, the operation of the data conversion arithmetic unit 140 at the time of data compression, which is configured to include the serial circuit 160, will be described.

【0226】まず、DCT演算処理の場合を述べると、
ここでは、ステージIの演算回路141において加算器
81aに入力データf0とf7、加算器81bに入力デー
タf3とf4、加算器81cに入力データf1とf6、加算
器81dに入力データf2とf5、減算器81eに入力デ
ータf0とf7、減算器81fに入力データf3とf4、減
算器81gに入力データf1とf6、減算器81hに入力
データf2とf5が入力される。これにより加算器81a
は入力データf0とf7の加算結果を出力し、加算器81
bは入力データf3とf4の加算結果を出力し、加算器8
1cは入力データf1とf6の加算結果f1+f6を出力
し、加算器81dは入力データf2とf5の加算結果を出
力するようになる。また、減算器81eは入力データf
0とf7の減算結果を出力し、減算器81fは入力データ
f3とf4の減算結果を出力し、減算器81gは入力デー
タf1とf6の減算結果を出力し、減算器81hは入力デ
ータf2とf5の減算結果を出力するようになる。この場
合の入力データは、図25に示すように7bitと1bitの
サインビットの8bitのデータからなっている。また、
出力データは、図25の入力データに示すように7+1
bitと1bitのサインビットからなっている。
First, the case of the DCT operation processing will be described.
Here, in the arithmetic circuit 141 of the stage I, the adder 81a has input data f0 and f7, the adder 81b has input data f3 and f4, the adder 81c has input data f1 and f6, and the adder 81d has input data f2 and f5. Input data f0 and f7 are input to the subtractor 81e, input data f3 and f4 are input to the subtractor 81f, input data f1 and f6 are input to the subtractor 81g, and input data f2 and f5 are input to the subtractor 81h. Thereby, the adder 81a
Outputs the addition result of the input data f0 and f7, and the adder 81
b outputs the addition result of the input data f3 and f4, and the adder 8
1c outputs the addition result f1 + f6 of the input data f1 and f6, and the adder 81d outputs the addition result of the input data f2 and f5. Further, the subtractor 81e receives the input data f
The subtracter 81f outputs the subtraction result of the input data f3 and f4, the subtractor 81f outputs the subtraction result of the input data f1 and f6, and the subtracter 81h outputs the subtraction result of 0 and f7. The result of subtracting f5 is output. The input data in this case consists of 8-bit data of 7-bit and 1-bit sign bit as shown in FIG. Also,
The output data is 7 + 1 as shown in the input data of FIG.
It consists of a bit and a 1-bit sign bit.

【0227】次いで、ステージIIの演算回路142に進
む。この演算回路142のeven側のシリアル演算器
142a〜142dには、ステージIの演算回路141
の加算器81a〜加算器81dで加算された加算結果a
0、a1、a2、a3が入力データとして与えられ、odd
側のシリアル回路160には、ステージIの演算回路1
41の減算器81e〜減算器81hで減算された減算結
果が入力データA、B、C、Dとして与えられる。上記
演算器142aでは、係数を簡単な整数比に近似し内部
にフリップフロップ(FF)を有しない加減算器を含ん
で構成した回路でDCTシリアル演算式F0=(92a0
+92a1+92a2+92a3)×128の括弧内の演
算を実行する。この場合、シリアル演算器142aの前
段部を構成する加算器82a1には、加算器81aの出
力と加算器81dの出力とが入力され、加算器82a1
でこれら入力データを加算し、この加算結果がシフタ1
42a1に与えられる。また、上記シリアル演算器14
2bでは、係数を簡単な整数比に近似し内部にフリップ
フロップ(FF)を有しない加減算器を含んで構成した
回路でDCTシリアル演算式F4=(92a0−92a1
−92a2+92a3)×128の括弧内の演算を実行す
る。この場合、シリアル演算器142bの前段部を構成
する演算器142bには、加算器81bの出力と加算器
81cの出力とが入力され、加算器82b1でこれら入
力データを加算し、この加算結果がシフタ142b1に
与えられる。これにより、シフタ82a2及びシフタ8
2b2からは2個のフリップフロップの動作だけ遅延し
て出力されることになり、この時点で図9のステージII
のシリアル演算器112a、112bよりも1クロック
少なくなっている。
Next, the operation proceeds to the arithmetic circuit 142 of stage II. The even-side serial arithmetic units 142a to 142d of the arithmetic circuit 142 include the arithmetic circuit 141 of the stage I.
Addition result a added by the adders 81a to 81d
0, a1, a2, a3 are given as input data, and odd
The serial circuit 160 on the side includes the arithmetic circuit 1 of the stage I.
The subtraction results obtained by the subtractors 81e to 81h of No. 41 are given as input data A, B, C, and D. The arithmetic unit 142a is a circuit configured by approximating the coefficient to a simple integer ratio and including an adder / subtractor which does not have a flip-flop (FF) in the DCT serial arithmetic expression F0 = (92a0
+ 92a1 + 92a2 + 92a3) × 128 The operation in parentheses is executed. In this case, the output of the adder 81a and the output of the adder 81d are input to the adder 82a1 forming the front stage of the serial computing unit 142a, and the adder 82a1 is added.
These input data are added by and the result of this addition is
42a1. In addition, the serial computing unit 14
In 2b, the DCT serial operation formula F4 = (92a0-92a1) is a circuit that is configured to include an adder / subtractor that does not have a flip-flop (FF) inside by approximating the coefficient to a simple integer ratio.
-92a2 + 92a3) The operation in the parentheses of 128 is executed. In this case, the output of the adder 81b and the output of the adder 81c are input to the arithmetic unit 142b forming the front stage of the serial arithmetic unit 142b, and the input data are added by the adder 82b1. It is given to the shifter 142b1. Thereby, the shifter 82a2 and the shifter 8
2b2 is delayed by the operation of the two flip-flops and is output. At this point, the stage II of FIG.
It is one clock less than the serial computing units 112a and 112b.

【0228】また、上記シリアル演算器142cでは、
係数を簡単な整数比に近似し内部にフリップフロップ
(FF)を有しない加減算器を含んで構成した回路でD
CTシリアル演算式F6=(25a0+60a1−60a2
−25a3)×128の括弧内の演算を実行する。この
場合、シリアル演算器92cの前段部を構成する演算器
82cには、加算器81bの出力と加算器81cの出力
とが入力され、減算器82c1で加算器81bの出力を
加算器81cの出力で減算すると(a1−a2)が求めら
れる。この減算器82c1の出力をシフタ142c1に与
え、このシフタ142c1の出力と減算器82c1の出力
を加算器82c3により加算し、また、シフタ142c1
の第1番目のフリップフロップの出力と加算器82c3
の出力を加算器82c4により加算することにより「2
5」、「60」が求められることになる。また、上記シ
リアル演算器142dでは、係数を簡単な整数比に近似
し内部にフリップフロップ(FF)を有しない加減算器
を含んで構成した回路でDCTシリアル演算式F2=
(60a0+25a1−25a2−60a3)×128の括
弧内の演算を実行する。この場合、シリアル演算器92
dの前段部を構成する演算器82dには、加算器81a
の出力と加算器81dの出力とが入力され、減算器82
d1で加算器81aの出力を加算器81dの出力で減算
すると(a0−a3)が求められる。この減算器82d1
の出力をシフタ142d1に与え、このシフタ142d1
の出力と減算器82d1の出力を加算器82d3により加
算し、また、シフタ142d1の第1番目のフリップフ
ロップの出力と加算器82d3の出力を加算器82d4に
より加算することにより「60」、「25」が求められ
ることになる。この場合にもシフタ142c1及びシフ
タ142d1のフリップフロップの段数が2個となって
いるので、この時点で図9のステージIIのシリアル演算
器112c、112dよりも1クロック少なくなってい
る。
Further, in the serial computing unit 142c,
D is a circuit that is configured to include an adder / subtractor that does not have a flip-flop (FF) inside and that approximates the coefficient to a simple integer ratio.
CT serial calculation formula F6 = (25a0 + 60a1-60a2
-25a3) Execute the operation in the parentheses of x128. In this case, the output of the adder 81b and the output of the adder 81c are input to the arithmetic unit 82c that forms the front stage of the serial arithmetic unit 92c, and the output of the adder 81b is output from the adder 81c by the subtractor 82c1. (A1−a2) is obtained by subtracting. The output of the subtracter 82c1 is given to the shifter 142c1, the output of the shifter 142c1 and the output of the subtractor 82c1 are added by the adder 82c3, and the shifter 142c1 is also added.
The output of the first flip-flop and the adder 82c3
By adding the outputs of the
5 "and" 60 "are required. Further, in the serial computing unit 142d, a DCT serial computing formula F2 = is formed by a circuit including an adder / subtractor which approximates a coefficient to a simple integer ratio and has no internal flip-flop (FF).
The operation in parentheses of (60a0 + 25a1-25a2-60a3) * 128 is executed. In this case, the serial computing unit 92
The computing unit 82d that forms the front stage of d has the adder 81a
Of the subtractor 82 and the output of the adder 81d are input.
When the output of the adder 81a is subtracted by the output of the adder 81d at d1, (a0-a3) is obtained. This subtractor 82d1
Is applied to the shifter 142d1 and this shifter 142d1
And the output of the subtractor 82d1 are added by the adder 82d3, and the output of the first flip-flop of the shifter 142d1 and the output of the adder 82d3 are added by the adder 82d4. Will be required. In this case as well, since the number of flip-flops of the shifter 142c1 and the shifter 142d1 is two, at this point, it is one clock less than the serial arithmetic units 112c and 112d of the stage II of FIG.

【0229】次いで、上記演算器142a〜142dの
前段部で求めた演算結果は、シリアル演算器142a〜
142dの後段部を構成する内部にフリップフロップ
(FF)を有しない加減算器142a2〜142d2に与
えられ、加減算器142a2〜142d2は演算器142
a〜142dの前段部からの出力をバタフライ演算によ
り1クロックの遅延なく加減算する。具体的には、シフ
タ142a1、142b1の出力が加算器142a2及び
減算器142b2に与えられ、加算器82d3、82c4
の出力が減算器142c2及び加算器142d2に与えら
れ、さらに加算器82c3、82d4の出力が減算器14
2c2及び加算器142d2に与えられる。これにより、
加算器142a2は、シフタ142a1とシフタ142b
1の出力を加算した結果(92a0+92a1+92a2+
92a3)を出力し、減算器142b2は、シフタ142
a1からシフタ142b1の出力を減算した結果(92a
0−92a1−92a2+92a3)を出力し、減算器14
2c2は、加算器82d3から加算器82c4の出力を減
算した結果(25a0+60a1−60a2−25a3)を
出力し、加算器142d2は、加算器82c3と加算器8
2d4の出力を加算した結果(60a0+25a1−25
a2−60a3)を出力するようになる。
Next, the arithmetic results obtained in the preceding stage of the arithmetic units 142a to 142d are the serial arithmetic units 142a to 142d.
142d is provided to adder / subtractors 142a2 to 142d2 that do not have a flip-flop (FF) inside the latter part of the unit 142d.
The outputs from the preceding stages of a to 142d are added and subtracted by a butterfly operation without delay of one clock. Specifically, the outputs of the shifters 142a1 and 142b1 are given to the adder 142a2 and the subtractor 142b2, and the adders 82d3 and 82c4 are supplied.
Is supplied to the subtractor 142c2 and the adder 142d2, and the outputs of the adders 82c3 and 82d4 are added to the subtractor 14c2.
2c2 and the adder 142d2. This allows
The adder 142a2 includes a shifter 142a1 and a shifter 142b.
The result of adding the outputs of 1 (92a0 + 92a1 + 92a2 +
92a3) and the subtractor 142b2 outputs the shifter 142b2.
The result of subtracting the output of the shifter 142b1 from a1 (92a
0-92a1-92a2 + 92a3) is output, and the subtracter 14
2c2 outputs the result (25a0 + 60a1-60a2-25a3) obtained by subtracting the output of the adder 82c4 from the adder 82d3, and the adder 142d2 outputs the adder 82c3 and the adder 8c.
The result of adding the outputs of 2d4 (60a0 + 25a1-25
a2-60a3) will be output.

【0230】また、ステージIIの演算回路112のod
d側を構成するシリアル回路100の動作は既に述べた
が、このシリアル回路160の動作が前述したように前
記図11のシリアル回路100に比べ2クロック分速く
なったことに対応してステージIIのeven側を構成す
る上記シリアル演算器142a〜142dおいて、シフ
タ142a1〜142d1のフリップフロップ(FF)の
段数を1段減らすとともに、遅延用のフリップフロップ
(FF)を有しない加減算器142a2〜142d2を用
いることによって2クロック速く演算値が出力されるよ
うにしている。 上記シリアル演算により、図25に示
す入力データに対してステージII142からは、同図II
に示すタイミングで、演算結果を出力データとして発生
するようになる。
Also, the odd of the arithmetic circuit 112 of the stage II is
Although the operation of the serial circuit 100 constituting the d side has already been described, the operation of the serial circuit 160 is two clocks faster than the operation of the serial circuit 100 of FIG. In the serial operation units 142a to 142d constituting the even side, the number of flip-flops (FFs) of the shifters 142a1 to 142d1 is reduced by one and addition / subtractors 142a2 to 142d2 having no delay flip-flop (FF) are provided. By using it, the calculated value is output two clocks faster. By the above serial operation, the input data shown in FIG.
The calculation result is generated as output data at the timing shown in.

【0231】次いで、ステージIIIの演算回路143に
進む。この演算回路143では、ステージIIの演算回路
142の加算器142a2の出力が演算器143aに与
えられ、同様にして減算器142b2の出力が演算器1
43bに、減算器142c2の出力が演算器143c
に、加算器142d2の出力が演算器143dに、シリ
アル回路160の出力O7が演算器143eに、シリア
ル回路160の出力O3が演算器143fに、シリアル
回路160の出力O5が演算器143gに、シリアル回
路160の出力O1が演算器143hにそれぞれ与えら
れる。これにより、演算器143aは、ステージIIの演
算回路142の加算器142a2の出力(92a0+92
a1+92a2+92a3)に対して×128の演算を実
行し、出力F0のゲイン128を与え、その演算結果を
出力データF0として出力する。また、演算器143b
は、ステージIIの演算回路142の減算器142b2の
出力(92a0−92a1−92a2+92a3)に対して
×128の演算を実行し、出力F4のゲイン128を与
え、その演算結果を出力データF4として出力する。同
様に、演算器113cは、ステージIIの演算回路142
の減算器142c2の出力(25a0+60a1−60a2
−25a3)に対して×128の演算を実行し、出力F6
のゲイン128を与え、その演算結果を出力データF6
として出力する。また、演算器93dは、ステージIIの
演算回路142の加算器142d2の出力(60a0+2
5a1−25a2−60a3)に対して×128の演算を
実行し、出力F2のゲイン128を与え、その演算結果
を出力データF2として出力する。
Next, the operation circuit 143 of stage III is proceeded to. In the arithmetic circuit 143, the output of the adder 142a2 of the arithmetic circuit 142 of the stage II is given to the arithmetic unit 143a, and similarly the output of the subtractor 142b2 is calculated by the arithmetic unit 1
43b, the output of the subtractor 142c2 is the calculator 143c
The output of the adder 142d2 is output to the arithmetic unit 143d, the output O7 of the serial circuit 160 is output to the arithmetic unit 143e, the output O3 of the serial circuit 160 is output to the arithmetic unit 143f, and the output O5 of the serial circuit 160 is output to the arithmetic unit 143g. The output O1 of the circuit 160 is supplied to the computing unit 143h. As a result, the arithmetic unit 143a outputs the output (92a0 + 92) of the adder 142a2 of the arithmetic circuit 142 of the stage II.
a1 + 92a2 + 92a3) is executed to obtain a gain 128 of the output F0, and the calculation result is output as output data F0. Also, the computing unit 143b
Performs an operation of x128 on the output (92a0-92a1-92a2 + 92a3) of the subtractor 142b2 of the operation circuit 142 of the stage II, gives a gain 128 of the output F4, and outputs the operation result as the output data F4. . Similarly, the arithmetic unit 113c includes the arithmetic circuit 142 of the stage II.
Output of subtractor 142c2 (25a0 + 60a1-60a2
-25a3), the operation of × 128 is executed, and the output F6
The gain 128 is given, and the calculation result is output data F6
Output as. The arithmetic unit 93d outputs the output (60a0 + 2) of the adder 142d2 of the arithmetic circuit 142 of the stage II.
5a1-25a2-60a3) is executed to obtain a gain 128 of the output F2, and the calculation result is output as output data F2.

【0232】また、odd側においては、演算器143
eのシフタ84e4及び減算器84e5は、ステージIIの
シリアル回路160の出力O7に対して×32の演算を
実行して出力F7のゲイン32を与え、その演算結果を
出力データF7として出力する。また、演算器143f
のシフタ84f4及び減算器84f5は、ステージIIのシ
リアル回路160の出力O3に対して×32の演算を実
行して出力F3のゲイン32を与え、その演算結果を出
力データF3として出力する。同様に、演算器143g
のシフタ84g4及び減算器84g5は、ステージIIのシ
リアル回路160の出力O5に対して×32の演算を実
行して出力F5のゲイン32を与え、その演算結果を出
力データF5として出力する。また、演算器143hの
シフタ84h4及び減算器84h5は、ステージIIのシリ
アル回路160の出力O1に対して×32の演算を実行
して出力F1のゲイン32を与え、その演算結果を出力
データF1として出力する。この場合、上記ステージIII
の演算回路143の各演算器143a〜143hでは図
25の入力データに対してシリアル演算を実行し、同図
IIIに示すタイミングで、その演算結果を出力データF0
〜F7として発生するようになる。 以上の説明は、DC
T演算処理の場合であるが、図16に示すデータ伸張時
のデータ変換演算装置150による逆DCT演算処理の
場合も上述したDCT演算処理の場合と同様である。
On the odd side, the arithmetic unit 143
The shifter 84e4 of e and the subtractor 84e5 perform the operation of x32 on the output O7 of the serial circuit 160 of the stage II to give the gain 32 of the output F7, and output the operation result as the output data F7. In addition, the calculator 143f
The shifter 84f4 and the subtracter 84f5 perform the operation of x32 on the output O3 of the serial circuit 160 of the stage II to give the gain 32 of the output F3, and output the operation result as the output data F3. Similarly, the calculator 143g
The shifter 84g4 and the subtractor 84g5 perform the operation of × 32 on the output O5 of the serial circuit 160 of the stage II to give the gain 32 of the output F5, and output the operation result as the output data F5. Further, the shifter 84h4 and the subtractor 84h5 of the arithmetic unit 143h execute the operation of × 32 on the output O1 of the serial circuit 160 of the stage II to give the gain 32 of the output F1 and the operation result as the output data F1. Output. In this case, Stage III above
In each of the arithmetic units 143a to 143h of the arithmetic circuit 143 of FIG.
At the timing shown in III, the calculation result is output data F0.
~ It will occur as F7. The above explanation is for DC
Although it is the case of the T arithmetic processing, the case of the inverse DCT arithmetic processing by the data conversion arithmetic device 150 at the time of data expansion shown in FIG. 16 is the same as the case of the DCT arithmetic processing described above.

【0233】この場合は図16に示すように入力データ
がステージIIIの演算回路153〜ステージIIの演算回
路152〜ステージIの演算回路151の順で与えられ
るようになる。
In this case, as shown in FIG. 16, the input data is supplied in the order of the arithmetic circuit 153 of stage III to the arithmetic circuit 152 of stage II to the arithmetic circuit 151 of stage I.

【0234】このように、データ変換演算装置140及
びデータ変換演算装置150のステージIIのodd側の
シリアル回路160のシリアル演算器161e〜161
hが、遅延用のフリップフロップ(FF)を有しない構
造の加算器161e2、161f2、161g2、161
h2を用いる構成となっており、また、シリアル回路1
60のシリアル演算器162e〜162hは、前記図1
1のシリアル回路100のシリアル演算器162e〜1
62hから加減算器を2段取り去るとともに、加減算器
を遅延用のフリップフロップ(FF)を有しない構造の
加減算器に置き換えた構成となっている。これに対応し
て、データ変換演算装置140のステージIIのeven
側のシリアル演算器142a〜142dは、前記図9の
ステージIIのシリアル演算器112a〜112dの各シ
フタ82a2、82b2、82c2、82d2からフリップ
フロップ(FF)を更に1段取り去った構成となってお
り、また、ステージIIのeven側のシリアル演算器1
42a〜142dの加算器142a2、加算器142d
2、減算器142b2、減算器142c2は遅延用のフリ
ップフロップ(FF)を有しない構造のものとなってい
る。同様に、データ変換演算装置150のステージIIの
even側のシリアル演算器152a〜152dは、前
記図10のステージIIの演算器122a〜122dの各
シフタ93a2、122b1、122c1、122d1から
フリップフロップ(FF)を更に1段取り去った構成と
なっており、また、ステージIIのeven側のシリアル
演算器152a〜152dの加算器152a2、加算器
152d2、減算器152b2、減算器152c2は遅延
用のフリップフロップ(FF)を有しない構造のものと
なっている。これによって、クロック数を2クロック少
なくして速度を向上させることができ、回路規模を小さ
くすることができる。
As described above, the serial arithmetic units 161e to 161 of the serial circuit 160 on the odd side of the stage II of the data conversion arithmetic unit 140 and the data conversion arithmetic unit 150.
h is an adder 161e2, 161f2, 161g2, 161 having a structure having no delay flip-flop (FF)
It is configured to use h2, and the serial circuit 1
The serial operation units 162e to 162h of 60 are the same as those shown in FIG.
Serial computing unit 162e to 1 of the serial circuit 100
Two addition / subtractors are removed from 62h, and the adder / subtractor is replaced with an adder / subtractor having a structure having no delay flip-flop (FF). In response to this, the stage II of the data conversion processing unit 140 is even
The serial arithmetic units 142a to 142d on the side are configured by removing one more flip-flop (FF) from each shifter 82a2, 82b2, 82c2, 82d2 of the serial arithmetic units 112a to 112d of the stage II of FIG. , Also, serial arithmetic unit 1 on the even side of stage II
42a-142d adder 142a2, adder 142d
2, the subtractor 142b2 and the subtractor 142c2 have a structure that does not have a flip-flop (FF) for delay. Similarly, the serial arithmetic units 152a to 152d on the side of the stage II of the data conversion arithmetic unit 150 include flip-flops (FFs) from the shifters 93a2, 122b1, 122c1 and 122d1 of the arithmetic units 122a to 122d of the stage II of FIG. ) Is further removed by one stage, and the adders 152a2, 152d2, subtractors 152b2, and 152c2 of the even-side serial arithmetic units 152a to 152d of stage II are delay flip-flops ( It has a structure without FF). As a result, the number of clocks can be reduced by 2 clocks to improve the speed, and the circuit scale can be reduced.

【0235】図25は、データ変換演算装置140の入
力から出力までのタイミングチャートであり、ステージ
Iの演算回路141〜ステージIIIの演算回路143の
動作を総合した場合のタイミングチャートを示してい
る。この図25に示すタイミングチャートと図24に示
すデータ変換演算装置110のタイミングチャートと比
較して明らかなように7bitのデータを入力した場合、
1ライン当りの処理周期を24クロックから22クロッ
クに減少させることができる。
FIG. 25 is a timing chart from the input to the output of the data conversion arithmetic unit 140, and shows a timing chart when the operations of the arithmetic circuit 141 of stage I to the arithmetic circuit 143 of stage III are integrated. As is clear from comparison between the timing chart shown in FIG. 25 and the timing chart of the data conversion arithmetic unit 110 shown in FIG. 24, when 7-bit data is input,
The processing cycle per line can be reduced from 24 clocks to 22 clocks.

【0236】以下、上記ステージIIに加え、ステージI
及びステージIIIにも基本原理(III)の考え方を適用し
たデータ圧縮時のデータ変換演算装置180の動作を説
明する。
Hereinafter, in addition to the above stage II, stage I
Also, the operation of the data conversion calculation device 180 at the time of data compression, which applies the idea of the basic principle (III) to the stage III, will be described.

【0237】まず、DCT演算処理の場合を述べると、
ステージIの演算回路171の加減算器は、内部にフリ
ップフロップ(FF)を有しないアダー(サブトラク
タ)により構成され、加算器171aに入力データf0
とf7、加算器171bに入力データf3とf4、加算器
171cに入力データf1とf6、加算器171dに入力
データf2とf5、減算器171eに入力データf0とf
7、減算器171fに入力データf3とf4、減算器17
1gに入力データf1とf6、減算器171hに入力デー
タf2とf5が入力される。これにより加算器171aは
1クロックの遅延なく入力データf0とf7の加算結果を
出力し、同様に加算器171bは入力データf3とf4の
加算結果を出力し、加算器171cは入力データf1と
f6の加算結果f1+f6を出力し、加算器171dは入
力データf2とf5の加算結果を出力するようになる。ま
た、減算器171eは入力データf0とf7の減算結果を
出力し、減算器171fは入力データf3とf4の減算結
果を出力し、減算器171gは入力データf1とf6の減
算結果を出力し、減算器171hは入力データf2とf5
の減算結果を出力するようになる。この場合の入力デー
タは、図25に示すように7bitと1bitのサインビット
の8bitのデータからなっている。また、出力データ
は、図25の入力データに示すように7+1bitと1bit
のサインビットからなっている。
First, the case of the DCT arithmetic processing will be described.
The adder / subtractor of the arithmetic circuit 171 of the stage I is composed of an adder (subtractor) having no flip-flop (FF) inside, and the input data f0 is input to the adder 171a.
And f7, input data f3 and f4 to the adder 171b, input data f1 and f6 to the adder 171c, input data f2 and f5 to the adder 171d, and input data f0 and f to the subtractor 171e.
7, the input data f3 and f4 to the subtractor 171f, the subtractor 17
Input data f1 and f6 are input to 1g, and input data f2 and f5 are input to the subtractor 171h. As a result, the adder 171a outputs the addition result of the input data f0 and f7 without delay of one clock, similarly, the adder 171b outputs the addition result of the input data f3 and f4, and the adder 171c outputs the input data f1 and f6. The addition result f1 + f6 is output, and the adder 171d outputs the addition result of the input data f2 and f5. The subtractor 171e outputs the subtraction result of the input data f0 and f7, the subtractor 171f outputs the subtraction result of the input data f3 and f4, and the subtractor 171g outputs the subtraction result of the input data f1 and f6. The subtractor 171h receives the input data f2 and f5.
The subtraction result of will be output. The input data in this case consists of 8-bit data of 7-bit and 1-bit sign bit as shown in FIG. The output data is 7 + 1 bit and 1 bit as shown in the input data of FIG.
It consists of the sign bit.

【0238】次いで、ステージIIの演算回路142に進
む。この演算回路142のeven側のシリアル演算器
142a〜142dには、ステージIの演算回路171
の加算器171a〜加算器171dで加算された加算結
果a0、a1、a2、a3が入力データとして与えられ、o
dd側のシリアル回路160には、ステージIの演算回
路171の減算器171e〜減算器171hで減算され
た減算結果が入力データA、B、C、Dとして与えられ
る。このステージIIの演算回路142の動作は前述した
通りであるが、このステージIIには1クロック速い演算
結果が入力されることになる。また、前述したようにこ
のステージIIからはクロック数が2クロック少ない演算
結果が出力されることになる。
Next, the operation circuit 142 of the stage II is proceeded to. The even-side serial arithmetic units 142a to 142d of the arithmetic circuit 142 include the arithmetic circuit 171 of the stage I.
Adder 171a-adder 171d of addition results a0, a1, a2, a3 are given as input data, and
To the serial circuit 160 on the dd side, the subtraction results obtained by the subtracters 171e to 171h of the arithmetic circuit 171 of the stage I are given as input data A, B, C, D. The operation of the arithmetic circuit 142 of the stage II is as described above, but the arithmetic result of one clock faster is input to the stage II. Further, as described above, the stage II outputs an operation result in which the number of clocks is smaller by 2 clocks.

【0239】次いで、ステージIIIの演算回路173に
進む。この演算回路173では、ステージIIの演算回路
142の加算器142a2の出力が演算器173aに与
えられ、同様にして減算器142b2の出力が演算器1
73bに、減算器142c2の出力が演算器173c
に、加算器142d2の出力が演算器173dに、シリ
アル回路160の出力O7が演算器173eに、シリア
ル回路160の出力O3が演算器173fに、シリアル
回路160の出力O5が演算器173gに、シリアル回
路160の出力O1が演算器173hにそれぞれ与えら
れる。これにより、演算器173aは、ステージIIの演
算回路142の加算器142a2の出力(92a0+92
a1+92a2+92a3)に対して×64の演算を実行
し、出力F0のゲイン64を与え、その演算結果を出力
データF0として出力する。また、演算器173bは、
ステージIIの演算回路142の減算器142b2の出力
(92a0−92a1−92a2+92a3)に対して×6
4の演算を実行し、出力F4のゲイン64を与え、その
演算結果を出力データF4として出力する。同様に、演
算器173cは、ステージIIの演算回路142の減算器
142c2の出力(25a0+60a1−60a2−25a
3)に対して×64の演算を実行し、出力F6のゲイン6
4を与え、その演算結果を出力データF6として出力す
る。また、演算器173dは、ステージIIの演算回路1
42の加算器142d2の出力(60a0+25a1−2
5a2−60a3)に対して×64の演算を実行し、出力
F2のゲイン64を与え、その演算結果を出力データF2
として出力する。
Then, the operation proceeds to the stage III arithmetic circuit 173. In the arithmetic circuit 173, the output of the adder 142a2 of the arithmetic circuit 142 of the stage II is given to the arithmetic unit 173a, and similarly, the output of the subtractor 142b2 is calculated by the arithmetic unit 1
73b, the output of the subtractor 142c2 is the arithmetic unit 173c
The output of the adder 142d2 is output to the arithmetic unit 173d, the output O7 of the serial circuit 160 is output to the arithmetic unit 173e, the output O3 of the serial circuit 160 is output to the arithmetic unit 173f, and the output O5 of the serial circuit 160 is output to the arithmetic unit 173g. The output O1 of the circuit 160 is supplied to the computing unit 173h. As a result, the arithmetic unit 173a outputs the output (92a0 + 92) of the adder 142a2 of the arithmetic circuit 142 of the stage II.
a1 + 92a2 + 92a3) is executed to obtain a gain 64 of the output F0, and the calculation result is output as output data F0. In addition, the computing unit 173b is
* 6 for the output (92a0-92a1-92a2 + 92a3) of the subtractor 142b2 of the arithmetic circuit 142 of stage II
4 is executed, the gain 64 of the output F4 is given, and the calculation result is output as the output data F4. Similarly, the arithmetic unit 173c outputs the output (25a0 + 60a1-60a2-25a) of the subtractor 142c2 of the arithmetic circuit 142 of the stage II.
3) x64 operation is executed for output 6 of gain F6
4 is given, and the calculation result is output as output data F6. The arithmetic unit 173d is the arithmetic circuit 1 of the stage II.
42 adder 142d2 output (60a0 + 25a1-2
5a2-60a3), the calculation of x64 is performed, the gain 64 of the output F2 is given, and the calculation result is output data F2.
Output as.

【0240】また、odd側においては、演算器173
eのシフタ84e4及び減算器173e1は、ステージII
のシリアル回路160の出力O7に対して×16の演算
を実行して出力F7のゲイン16を与え、その演算結果
を出力データF7として出力する。また、演算器173
fのシフタ84f4及び減算器173f1は、ステージII
のシリアル回路160の出力O3に対して×16の演算
を実行して出力F3のゲイン16を与え、その演算結果
を出力データF3として出力する。同様に、演算器17
3gのシフタ84g4及び減算器173g1は、ステージ
IIのシリアル回路160の出力O5に対して×16の演
算を実行して出力F5のゲイン16を与え、その演算結
果を出力データF5として出力する。また、演算器17
3hのシフタ84h4及び減算器173h1は、ステージ
IIのシリアル回路160の出力O1に対して×16の演
算を実行して出力F1のゲイン16を与え、その演算結
果を出力データF1として出力する。この場合、上記ス
テージIIIの演算回路173の各演算器173a〜17
3hでは図25の入力データに対してシリアル演算を実
行し、同図IIIに示すタイミングで、その演算結果を出
力データF0〜F7として発生するようになる。
On the odd side, the arithmetic unit 173
The shifter 84e4 and the subtractor 173e1 of e are connected to the stage II.
The operation of x16 is executed on the output O7 of the serial circuit 160 to give the gain 16 of the output F7, and the result of the operation is output as the output data F7. In addition, the computing unit 173
The shifter 84f4 and the subtractor 173f1 of f are connected to the stage II.
The operation of x16 is performed on the output O3 of the serial circuit 160, the gain 16 of the output F3 is given, and the operation result is output as the output data F3. Similarly, the computing unit 17
3g shifter 84g4 and subtractor 173g1 are stages
The output O5 of the II serial circuit 160 is subjected to a × 16 operation to give a gain 16 of the output F5, and the operation result is output as output data F5. In addition, the computing unit 17
3h shifter 84h4 and subtractor 173h1 are stages
A calculation of x16 is executed on the output O1 of the II serial circuit 160 to give a gain 16 of the output F1, and the calculation result is output as output data F1. In this case, the arithmetic units 173a to 173a of the arithmetic circuit 173 of the stage III described above.
In 3h, the serial operation is executed on the input data of FIG. 25, and the operation result is generated as the output data F0 to F7 at the timing shown in FIG.

【0241】以上の説明は、DCT演算処理の場合であ
るが、図23に示すデータ伸張時のデータ変換演算装置
190による逆DCT演算処理の場合も上述したDCT
演算処理の場合と同様である。
The above description is for the case of the DCT operation processing, but also for the case of the inverse DCT operation processing by the data conversion operation device 190 at the time of data expansion shown in FIG.
It is similar to the case of the arithmetic processing.

【0242】この場合は図23に示すように入力データ
がステージIIIの演算回路173〜ステージIIの演算回
路152〜ステージIの演算回路171の順で与えられ
るようになる。
In this case, as shown in FIG. 23, the input data is given in the order of the arithmetic circuit 173 of stage III to the arithmetic circuit 152 of stage II to the arithmetic circuit 171 of stage I.

【0243】このように、データ変換演算装置180及
びデータ変換演算装置190のステージIのシリアル演
算器171a〜171hの加算器171a〜171d及
び減算器171e〜171hが、内部にフリップフロッ
プ(FF)を有しないアダー(サブトラクタ)により構
成され、また、ステージIIIのシリアル演算器173a
〜173hが、前記図15のステージIIIのシリアル演
算器143a〜143hの加算器94c2、94d2、減
算器94a2、94b2、94e2、94f2、94g2、
94h2を、それぞれ遅延用のフリップフロップ(F
F)を有しない構造の加算器173c1、173d1、減
算器173a1、173b1、173e1、173f1、1
73g1、173h1に置き換えた構成となっている。こ
れによって、ステージIではクロック数を1クロック、
ステージIIIではクロック数を1クロック少なくするこ
とができ、データ変換演算装置180、190の演算速
度をデータ変換演算装置140、150よりも更に2ク
ロック向上させることができ、回路規模をより一層小さ
くすることができる。
As described above, the adders 171a to 171d and the subtracters 171e to 171h of the serial arithmetic units 171a to 171h of the stage I of the data conversion arithmetic unit 180 and the data conversion arithmetic unit 190 internally have flip-flops (FF). It is composed of an adder (subtractor) that does not have it, and is also a stage III serial computing unit 173a.
˜173h are adders 94c2, 94d2, subtracters 94a2, 94b2, 94e2, 94f2, 94g2 of the serial arithmetic units 143a to 143h of the stage III of FIG.
94h2 are each a flip-flop (F
F) adder 173c1, 173d1, subtractor 173a1, 173b1, 173e1, 173f1, 1 having a structure not having
The configuration is replaced with 73g1 and 173h1. As a result, the number of clocks in stage I is 1 clock,
In the stage III, the number of clocks can be reduced by 1 clock, the operation speed of the data conversion operation devices 180 and 190 can be further improved by 2 clocks as compared with the data conversion operation devices 140 and 150, and the circuit scale can be further reduced. be able to.

【0244】以上説明したように、本実施例のデータ圧
縮伸張装置は、画像データをパラレルデータの形で蓄え
るデータ記憶装置10と、データ記憶装置10から読み
込んだパラレルデータをシリアルデータに変換するパラ
レル−シリアル変換装装置11と、DCT演算係数を簡
単な整数比に変えた形のシリアル回路により構成される
とともに、odd側についてはDCT演算式をそのまま
ハードウェア化するとともに、複数段の加減算を一度に
行なうように構成したシリアル回路160を含んで構成
され、パラレル−シリアル変換装装置11から出力され
たデータに対して一次元のDCT演算又は逆DCT演算
をシリアル演算の形で施すデータ変換演算装置140,
150,180,190と、シリアルDCT演算された
シリアルデータをパラレルデータに変換してデータ記憶
装置10に書き込むシリアル−パラレル変換装置13
と、データ記憶装置10に蓄えられたデータ変換演算後
のデータに対して、DCT演算係数を整数比に変えるこ
とにより生じたゲイン変化分を吸収させるように構成し
た量子化テーブルの値で除算することによって量子化演
算を行なう量子化装置51と、上記各部の動作をデータ
圧縮伸張装置の全体を制御する制御装置52とを有し、
データ変換演算装置140,150のステージIIのev
en側は係数を簡単な整数比に近似してDCTシリアル
演算を行なうとともに、フリップフロップ(FF)を有
しないアダー(サブトラクタ)を含んで構成されたシリ
アル演算器142a〜142dから構成され、odd側
もDCT演算式をそのままハードウェア化したシリアル
回路を基に、複数段の加減算を一度に行なうシリアル回
路160から構成されているので、各加減算器ごとに内
部のフリップフロップ(FF)によって行なわれていた
クロックのタイミング合わせのための遅延動作をなくす
とともに、加減算器等の段数を減らすことができ、これ
によってクロック数を減らして処理速度を向上させるこ
とができ、回路規模を小さくすることができる。
As described above, the data compressing / expanding apparatus of this embodiment includes the data storage device 10 for storing image data in the form of parallel data, and the parallel data storage device 10 for converting parallel data read from the data storage device 10 into serial data. -Serial conversion device 11 and a serial circuit in which the DCT calculation coefficient is changed to a simple integer ratio. On the odd side, the DCT calculation formula is implemented as hardware, and addition / subtraction of multiple stages is performed once. A data conversion arithmetic device configured to include a serial circuit 160 configured to perform a one-dimensional DCT operation or an inverse DCT operation on data output from the parallel-serial conversion device 11 in the form of a serial operation. 140,
150, 180, 190 and serial-parallel converter 13 for converting serial data subjected to serial DCT operation into parallel data and writing the parallel data in the data storage device 10.
Then, the data after the data conversion calculation stored in the data storage device 10 is divided by the value of the quantization table configured to absorb the gain change caused by changing the DCT calculation coefficient into an integer ratio. And a control device 52 for controlling the operation of each of the above parts as a whole of the data compression / decompression device.
Ev of stage II of data conversion arithmetic units 140 and 150
On the en side, the coefficient is approximated to a simple integer ratio to perform the DCT serial operation, and is composed of serial operation units 142a to 142d including an adder (subtractor) having no flip-flop (FF). The side is also composed of a serial circuit 160 that performs addition / subtraction of a plurality of stages at once, based on a serial circuit in which the DCT arithmetic expression is hardwareized as it is. It is possible to eliminate the delay operation for adjusting the timing of the clock, which can reduce the number of stages of the adder / subtractor, etc., thereby reducing the number of clocks to improve the processing speed and reduce the circuit scale. .

【0245】すなわち、データ変換演算装置140,1
50のステージIIのodd側のシリアル回路160のシ
リアル演算器161e〜161hは、遅延用のフリップ
フロップ(FF)を有しない構造の加算器161e2、
161f2、161g2、161h2を用いて構成され、
また、シリアル回路160のシリアル演算器162e〜
162hは、前記図11のシリアル回路100のシリア
ル演算器162e〜162hから加減算器を2段取り去
るとともに、加減算器を遅延用のフリップフロップ(F
F)を有しない構造の加減算器に置き換えて構成され、
これに対応して、ステージIIのeven側のシリアル演
算器142a〜142d(152a〜152dも同様)
は、前記図9のステージIIのシリアル演算器112a〜
112dの各シフタ82a2、82b2、82c2、82
d2からフリップフロップ(FF)を更に1段取り去っ
た構成となっており、また、ステージIIのeven側の
シリアル演算器142a〜142dの加算器142a
2、加算器142d2、減算器142b2、減算器142
c2は遅延用のフリップフロップ(FF)を有しない構
造のものとなっている。従って、回路規模を小さくする
ことができるとともに、データ変換演算装置140,1
50のステージIIではクロック数を2クロック少なくす
ることができ、図25に示すデータ変換演算装置140
のタイミングチャートと図24に示すデータ変換演算装
置110のタイミングチャートと比較して明らかなよう
に7bitのデータを入力した場合、1ライン当りの処理
周期を24クロックから22クロックに減少させること
ができる。
That is, the data conversion arithmetic units 140, 1
The serial arithmetic units 161e to 161h of the serial circuit 160 on the odd side of the stage II of 50 are adders 161e2 having a structure having no delay flip-flop (FF).
161f2, 161g2, 161h2 is used,
In addition, the serial calculator 162e of the serial circuit 160-
162h removes the adder / subtractor from the serial operation units 162e to 162h of the serial circuit 100 of FIG. 11 by two stages, and adds the adder / subtractor to a delay flip-flop (F).
F) is replaced with an adder / subtractor having a structure,
Corresponding to this, the serial arithmetic units 142a to 142d on the even side of the stage II (the same applies to 152a to 152d)
Are serial arithmetic units 112a to 112a of stage II of FIG.
112d shifters 82a2, 82b2, 82c2, 82
The configuration is such that one more flip-flop (FF) is removed from d2, and the adder 142a of the serial arithmetic units 142a to 142d on the even side of stage II is used.
2, adder 142d2, subtractor 142b2, subtractor 142
c2 has a structure having no flip-flop (FF) for delay. Therefore, the circuit scale can be reduced and the data conversion arithmetic units 140, 1
In the stage II of 50, the number of clocks can be reduced by 2 clocks, and the data conversion arithmetic unit 140 shown in FIG.
As is clear from a comparison between the timing chart of FIG. 24 and the timing chart of the data conversion arithmetic unit 110 shown in FIG. 24, when 7-bit data is input, the processing cycle per line can be reduced from 24 clocks to 22 clocks. .

【0246】また、データ変換演算装置180及びデー
タ変換演算装置190は、ステージIのシリアル演算器
171a〜171hが、内部にフリップフロップ(F
F)を有しないアダー(サブトラクタ)により構成さ
れ、また、ステージIIIのシリアル演算器173a〜1
73hの加減算器が、遅延用のフリップフロップ(F
F)を有しない構造の加算器173c1、173d1、減
算器173a1、173b1、173e1、173f1、1
73g1、173h1に置き換えた構成となっている。こ
れによって、ステージI及びステージIIIでクロック数
を1クロックづつ少なくすることができ、演算速度を更
に2クロック向上させることができ、回路規模をより小
さくすることができる。
Further, in the data conversion arithmetic unit 180 and the data conversion arithmetic unit 190, the serial arithmetic units 171a to 171h of the stage I have flip-flops (F
F) and an adder (subtractor) having no F), and serial arithmetic units 173a to 173a of stage III.
The adder / subtractor of 73h is a flip-flop (F
F) adder 173c1, 173d1, subtractor 173a1, 173b1, 173e1, 173f1, 1 having a structure not having
The configuration is replaced with 73g1 and 173h1. As a result, the number of clocks in the stages I and III can be reduced by one clock, the operation speed can be further improved by two clocks, and the circuit scale can be further reduced.

【0247】なお、上記データ変換演算装置140,1
50,180,190は、これら装置を構成するシリア
ル回路の動作時間と、システムクロックに従って動作す
るデータ圧縮伸張装置の全体動作時間とを考慮に容れ
て、上述したようにシリアル回路を構成する加減算器の
段数を減らす、若しくは加減算器をフリップフロップ
(FF)を有しない加減算器に置き換えるようにするも
のである。このため、供給されるシステムクロックの速
度が上がれば、上述した加減算器の段数を減らす、若し
くは加減算器をフリップフロップ(FF)を有しない加
減算器に置き換えるといった速度向上の余裕がなくなる
ようにも考えられるが、シリアル回路自体の構造が相当
シンプルであるのに対し、上記データ変換演算装置14
0,150,180,190を制御する制御回路部は一
般にゲート段数が多く構造が複雑であるため、供給され
るクロックが上がってもそのクロックの向上分はシリア
ル回路にも反映されることになり、クロック速度の向上
に対しても本実施例のデータ圧縮伸張装置は有効なもの
となっている。
The above data conversion arithmetic units 140, 1
Reference numerals 50, 180, and 190 denote adder / subtractors that configure the serial circuit as described above, taking into consideration the operating time of the serial circuits that configure these devices and the overall operating time of the data compression / decompression device that operates according to the system clock. Is reduced, or the adder / subtractor is replaced with an adder / subtractor having no flip-flop (FF). Therefore, if the speed of the supplied system clock is increased, it is considered that there is no room for speed improvement such as reducing the number of stages of the adder / subtractor described above or replacing the adder / subtractor with an adder / subtractor having no flip-flop (FF). However, while the structure of the serial circuit itself is considerably simple, the data conversion arithmetic unit 14
Since the control circuit unit for controlling 0, 150, 180, 190 generally has a large number of gate stages and has a complicated structure, even if the clock supplied is increased, the improvement of the clock is reflected in the serial circuit. The data compression / decompression device of this embodiment is effective for improving the clock speed.

【0248】また、本実施例のデータ圧縮伸張装置は、
画像データをパラレルデータの形で蓄えるデータ記憶装
置10と、データ記憶装置10から読み込んだパラレル
データをシリアルデータに変換するパラレル−シリアル
変換装装置11と、DCT演算係数を簡単な整数比に変
えた形のシリアル回路により構成されるとともに、od
d側については演算式をそのままハードウェア化したシ
リアル回路100を含んで構成され、パラレル−シリア
ル変換装装置11から出力されたデータに対して一次元
のDCT演算又は逆DCT演算をシリアル演算の形で施
すデータ変換演算装置110,120と、シリアルDC
T演算されたシリアルデータをパラレルデータに変換し
てデータ記憶装置10に書き込むシリアル−パラレル変
換装置13と、データ記憶装置10に蓄えられたデータ
変換演算後のデータに対して、DCT演算係数を整数比
に変えることにより生じたゲイン変化分を吸収させるよ
うに構成した量子化テーブルの値で除算することによっ
て量子化演算を行なう量子化装置51と、上記各部の動
作をデータ圧縮伸張装置の全体を制御する制御装置52
とを有し、シリアル回路100は、DCT演算式を展開
して得られた各入力b0〜b3に共通な係数を2のべきに
ある数値をかけた形で表現した場合の該数値の部分を作
成するシリアル回路101と、このシリアル回路101
により計算された係数出力に対して式の横方向に符号分
を含めた加減算を行なって出力x0〜x3として出力する
シリアル回路102により構成されているので、演算式
をそのままハードウェア化することによってバタフライ
演算部をなくすとともにFF等の段数を減らすことがで
き、クロック数(時間)を短縮することができる。すな
わち、図37に示す従来のデータ変換演算装置12の回
路構成の場合、8bitのデータを入力した場合図13に
示すようにLSB入力からMSB出力まで26クロック
かかっていたが、図9に示すデータ変換演算装置110
ではステージIIのodd側にシリアル回路100を用い
ることにより偶数成分側からタイミングおよびゲインを
揃えるために設けられたシフトレジスタを3段取り去る
ことができ、図13に示すデータ変換演算装置50のタ
イミングチャートと比較して明らかなように7bitのデ
ータを入力した場合、図14に示すように1ライン当り
の処理周期を26クロックから23クロックに減少させ
ることができる。その結果、少ないクロック数によりデ
ータ変換演算を実行できるという利点があり、画像圧縮
等のデータ圧縮に利用することができる。
Further, the data compression / decompression device of this embodiment is
A data storage device 10 that stores image data in the form of parallel data, a parallel-serial conversion device 11 that converts parallel data read from the data storage device 10 into serial data, and a DCT calculation coefficient are changed to a simple integer ratio. -Shaped serial circuit and od
The d side is configured to include a serial circuit 100 in which an arithmetic expression is hardwareized as it is, and one-dimensional DCT operation or inverse DCT operation is performed on the data output from the parallel-serial conversion device 11 in the form of serial operation. Data conversion arithmetic units 110 and 120, and serial DC
The DCT calculation coefficient is an integer for the serial-parallel conversion device 13 that converts the serial data that has been T-calculated into parallel data and writes the data to the data storage device 10, and the data that has been stored in the data storage device 10 after the data conversion calculation. A quantization device 51 that performs a quantization operation by dividing by a value of a quantization table that is configured to absorb a gain change generated by changing to a ratio, and the operation of each of the above parts are performed by the entire data compression / expansion device. Control device 52 for controlling
, And the serial circuit 100 expresses a part of the numerical value when a coefficient common to each of the inputs b0 to b3 obtained by expanding the DCT arithmetic expression is expressed by multiplying a power of 2 by the numerical value. Serial circuit 101 to be created and this serial circuit 101
Since the coefficient output calculated by the above is configured by the serial circuit 102 that performs addition / subtraction including the code component in the lateral direction of the expression and outputs as the outputs x0 to x3, the arithmetic expression can be directly implemented by hardware. It is possible to eliminate the butterfly operation unit, reduce the number of stages such as FF, and reduce the number of clocks (time). That is, in the case of the circuit configuration of the conventional data conversion arithmetic unit 12 shown in FIG. 37, when inputting 8-bit data, it took 26 clocks from LSB input to MSB output as shown in FIG. Conversion arithmetic unit 110
Then, by using the serial circuit 100 on the odd side of the stage II, it is possible to remove three stages of shift registers provided for equalizing the timing and the gain from the even component side, and the timing chart of the data conversion arithmetic unit 50 shown in FIG. As is clear from the comparison, when 7-bit data is input, the processing cycle per line can be reduced from 26 clocks to 23 clocks as shown in FIG. As a result, there is an advantage that the data conversion operation can be executed with a small number of clocks, and it can be used for data compression such as image compression.

【0249】また、本実施例のデータ圧縮伸張装置は、
画像データをパラレルデータの形で蓄えるデータ記憶装
置10と、データ記憶装置10から読み込んだパラレル
データをシリアルデータに変換するパラレル−シリアル
変換装装置11と、DCT演算係数を簡単な整数比に変
えた形のシリアル回路により構成され、パラレル−シリ
アル変換装装置11から出力されたデータに対して一次
元のDCT演算をシリアル演算の形で施すデータ変換演
算装置50と、シリアルDCT演算されたシリアルデー
タをパラレルデータに変換してデータ記憶装置10に書
き込むシリアル−パラレル変換装置13と、データ記憶
装置10に蓄えられたデータ変換演算後のデータに対し
て、DCT演算係数を整数比に変えることにより生じた
ゲイン変化分を吸収させるように構成した量子化テーブ
ルの値で除算することによって量子化演算を行なう量子
化装置51と、上記各部の動作をデータ圧縮伸張装置の
全体を制御する制御装置52とを設け、2のべきで表現
できる部分はべきで表現してシリアル回路を構成する一
方で、べきで表現しようとすればビット数が大きくなっ
てしまう部分については敢えてべきにより表現しようと
しないで2のべきにとらわれずにDCT演算式の係数を
整数比に置き換え、そのゲイン変化分を量子化部によっ
て吸収するようにしているので、単にシリアル回路を実
現していた場合に比べ、データ変換演算装置50の回路
規模を大幅に小さくすることができるとともに、シリア
ルの段数を減少させて処理速度を向上させることがで
る。すなわち、図37に示す従来例では、フリップフロ
ップ(FF)が126個、1bitAdd(Sub)unitが 62個
必要となり未だ回路規模が大きかったが、本実施例で
は、演算に必要な回路構成としてフリップフロップ(F
F)70個、1 Add unit52個で済むことになり回路
規模を大幅に小さくすることができる。また、シリアル
回路を構成するフリップフロップ(FF)等の段数が削
減されるので、図7に示すように8bitのデータを入力
した場合、1ライン当りの処理周期を従来例の27クロ
ック(図42)から21クロックに減少させることがで
きる。また、誤差を含んだ係数による演算は量子化装置
51において一度行われるのみであり演算の大部分が誤
差を含まない整数の比によって行なうことができ、量子
化の前までの演算におけるデータビット幅を従来のもの
より大幅に小さくすることができ、小さなバス幅で高い
演算精度を得ることができる。また、データ変換演算装
置50自体が、極めて小さなFF等の組合せからなるシ
リアル回路によってDCT演算を行なうようにしている
ので、回路規模を大幅に小さくすることができ、かつ高
速に処理を行なうことが可能になる。
Further, the data compression / decompression device of this embodiment is
A data storage device 10 for storing image data in the form of parallel data, a parallel-serial conversion device 11 for converting parallel data read from the data storage device 10 into serial data, and a DCT operation coefficient changed to a simple integer ratio. Data conversion operation device 50 configured to perform one-dimensional DCT operation on data output from the parallel-serial conversion device 11 in the form of serial operation, and serial DCT operated serial data. It is generated by changing the DCT operation coefficient to an integer ratio for the serial-parallel conversion device 13 that converts the data into parallel data and writes the data in the data storage device 10 and the data after the data conversion operation stored in the data storage device 10. Divide by the value of the quantization table configured to absorb the gain change A quantizer 51 for performing a quantization operation by and a controller 52 for controlling the operation of each of the above parts of the entire data compression / expansion device are provided, and a part which can be expressed by a power of 2 is expressed by a power and a serial circuit is formed. On the other hand, while constructing, the part where the number of bits becomes large if it is expressed as a power is dared not to be expressed as it is, and the coefficient of the DCT arithmetic expression is replaced by an integer ratio without being restricted by the power of 2 and its gain is obtained. Since the amount of change is absorbed by the quantizer, the circuit scale of the data conversion arithmetic unit 50 can be significantly reduced and the number of serial stages can be reduced as compared with the case where only a serial circuit is realized. It is possible to improve the processing speed. That is, the conventional example shown in FIG. 37 requires 126 flip-flops (FFs) and 62 1-bit Add (Sub) units, and the circuit scale is still large. However, in the present embodiment, the flip-flop is used as the circuit configuration necessary for the calculation. (F
F) Only 70 units and 52 units of 1 Add unit will suffice, and the circuit scale can be greatly reduced. Further, since the number of stages such as flip-flops (FF) forming the serial circuit is reduced, when 8-bit data is input as shown in FIG. 7, the processing cycle per line is 27 clocks of the conventional example (see FIG. 42). ) To 21 clocks. Further, the operation with the coefficient including the error is performed only once in the quantizer 51, and most of the operation can be performed by the ratio of integers not including the error, and the data bit width in the operation before the quantization is performed. Can be made significantly smaller than the conventional one, and high calculation accuracy can be obtained with a small bus width. Further, since the data conversion calculation device 50 itself performs the DCT calculation by the serial circuit composed of an extremely small combination of FF and the like, the circuit scale can be greatly reduced and the processing can be performed at high speed. It will be possible.

【0250】このように高い演算精度を持ちかつ回路規
模の小さなデータ圧縮伸張装置が実現できることからD
CTを用いた画像圧縮や音声圧縮を行うデータ圧縮伸張
装置に適用して好適である。
Since it is possible to realize a data compression / expansion device having a high calculation accuracy and a small circuit scale as described above, D
It is suitable for application to a data compression / decompression device that performs image compression and audio compression using CT.

【0251】なお、本実施例では、DCT演算式の係数
を整数の比に置き換え、そのゲインの変化を量子化装置
51により調整するとともに、データ変換演算式を展開
し、展開した式に従って構成されたデータ変換演算装置
110,120を対象として、フリップフロップ(F
F)や加減算器等の段数を減らすようにしているが、こ
れには限定されず、複数段の加減算を同一クロックで一
度に行なう構成したシリアル回路であればどのようなシ
リアル回路でもよい。すなわち、DCT演算式の係数を
整数の比に置き換える処理をしないシリアル回路、若し
くはデータ変換演算式を展開し、展開した式に従って構
成したシリアル回路を対象として、複数段の加減算を同
一クロックで一度に行なう構成を適用してもよい。
In this embodiment, the coefficient of the DCT arithmetic expression is replaced with an integer ratio, the change in the gain is adjusted by the quantizer 51, and the data conversion arithmetic expression is expanded and constructed according to the expanded expression. The flip-flops (F
Although the number of stages such as F) and the adder / subtractor is reduced, the invention is not limited to this, and any serial circuit may be used as long as it is a serial circuit configured to perform addition / subtraction of a plurality of stages at the same clock. That is, targeting a serial circuit that does not perform the process of replacing the coefficient of the DCT arithmetic expression with an integer ratio, or a serial circuit configured by expanding the data conversion arithmetic expression and using the expanded expression, a plurality of stages of addition and subtraction can be performed at the same clock at one time. The configuration of performing may be applied.

【0252】また、本実施例では、図15〜図23に示
すデータ変換演算装置110,120,180,190
及びシリアル回路160において、図15〜図23に示
す位置のシフタや加減算器等の段数を減らし、また加減
算器をフリップフロップ(FF)を有しない加減算器に
置き換えるようにしているが、これには限定されず、複
数段の加減算を同一クロックで一度に行なうように構成
するものであればどのような部分に適用してもよいこと
は勿論である。
Further, in this embodiment, the data conversion arithmetic units 110, 120, 180 and 190 shown in FIGS.
In the serial circuit 160, the number of stages such as shifters and adder / subtractors at the positions shown in FIGS. 15 to 23 is reduced, and the adder / subtractor is replaced with an adder / subtractor having no flip-flop (FF). There is no limitation, and it goes without saying that it may be applied to any portion as long as it is configured to perform addition and subtraction in a plurality of stages at the same clock.

【0253】また、本実施例では、データ変換演算装置
90のステージIIのodd側にシリアル回路100を適
用した例を示したが、これには限定されず、データ変換
演算式を各項毎に展開し、展開した式に従ってシリアル
回路を構成するものであればどのような回路部分に適用
してもよいことは言うまでもない。
Further, in the present embodiment, the example in which the serial circuit 100 is applied to the odd side of the stage II of the data conversion arithmetic unit 90 has been shown, but the present invention is not limited to this, and the data conversion arithmetic expression is applied to each term. It goes without saying that it may be applied to any circuit portion as long as it is developed and a serial circuit is configured according to the developed expression.

【0254】また、本実施例では係数を例えば所定の整
数の比とする例を示したが、これには限定されず、整数
の比で表されるものであればどのような整数比でもよく
整数値であってもことは言うまでもない。
Further, in this embodiment, the coefficient is set to, for example, a predetermined integer ratio, but the present invention is not limited to this, and any integer ratio may be used as long as it is represented by an integer ratio. It goes without saying that it may be an integer value.

【0255】また、演算係数を2のべき(2のn乗)の
和(差)で表現して図3に示すようなシリアルの回路に
より演算を行っているが、シリアルデータ処理が行われ
るものであればどのようなユニットの組合せでもよいこ
とは勿論である。
Further, the arithmetic coefficient is expressed by the sum (difference) of a power of 2 (n to the power of 2) and arithmetic is performed by a serial circuit as shown in FIG. 3, but serial data processing is performed. As a matter of course, any combination of units may be used.

【0256】また、上記画像圧縮装置等を構成する回路
や部材の数、種類などは前述した実施例に限られないこ
とは言うまでもなく、ソフトウェア(例えば、C言語)
により実現するようにしてもよい。
Needless to say, the number and types of circuits and members that make up the image compression device are not limited to those in the above-described embodiments, and software (for example, C language) is used.
May be realized by.

【0257】また、本実施例では、データ変換演算装置
にDCTを適用しているが、これら符号化方式には限定
されず、符号化演算を行なうものであればどのような装
置や演算式にも適用できることは言うまでもない。例え
ば、ハール(Harr)変換、傾斜変換(スラント変換)、
対称性サイン変換などを用いたデータ圧縮伸張装置に適
用することができる。
Further, in this embodiment, the DCT is applied to the data conversion arithmetic device, but the present invention is not limited to these encoding systems, and any device or arithmetic expression can be used as long as it performs encoding arithmetic. It goes without saying that it is also applicable. For example, Harr transform, slant transform, slant transform,
It can be applied to a data compression / expansion device using symmetry sine conversion or the like.

【0258】また、入力データに対してデータ変換を行
なうものであれば、データ変換の種類は何でもよく、D
CTによる周波数成分の変換のほか、例えばFFT,L
OT(Lapped Orthogonal Transform:重合直交変換)
等の直交データ変換に適用可能である。また、データ変
換演算部の係数を量子化部で吸収させるようにしている
が、係数を調整できるものであればどのような量子化部
で調整してもよいことは勿論である。
Any type of data conversion may be used as long as it can convert the input data.
In addition to conversion of frequency components by CT, for example, FFT, L
OT (Lapped Orthogonal Transform)
It is applicable to orthogonal data conversion such as. Further, although the coefficient of the data conversion calculation section is absorbed by the quantizing section, it is needless to say that any quantizing section may be used as long as the coefficient can be adjusted.

【0259】[0259]

【発明の効果】請求項1、2、10、11、12、1
3、14及び18記載の発明によれば、シリアル演算に
よりデータ変換演算を実行するデータ変換演算手段を、
複数段の加減算を同一クロックで一度に行なうシリアル
回路により構成するようにしているので、遅延用素子に
よってクロックのタイミング合わせのための遅延動作が
加減算ごとに行なわれることがなくなるとともに、加減
算器等の段数が減少することによりクロック数を減らし
て処理速度を向上させることができ、回路規模を小さく
することができる。
The effects of the present invention are set forth in claims 1, 2, 10, 11, 12, and 1.
According to the inventions described in 3, 14, and 18, data conversion operation means for executing data conversion operation by serial operation,
Since it is configured by a serial circuit that performs addition and subtraction of a plurality of stages at the same time with the same clock, the delay element does not perform the delay operation for clock timing adjustment for each addition and subtraction, and the addition and subtractor By reducing the number of stages, it is possible to reduce the number of clocks, improve the processing speed, and reduce the circuit scale.

【0260】請求項3及び6記載の発明によれば、デー
タ変換演算手段の係数を整数の比に置き換え、該整数の
比に置き換えることにより生じたゲインの変化を、量子
化手段により調整するようにするとともに、複数段の加
減算を同一クロックで一度に行なうシリアル回路により
構成するようにしているので、単にシリアル回路を実現
していた場合に比べ、回路規模を大幅に小さくすること
ができることに加え、さらにFFや加減算器等の段数を
大幅に減少させて処理速度を向上させることができ、画
像等のデータ圧縮伸張に利用することができる。
According to the third and sixth aspects of the present invention, the coefficient of the data conversion calculation means is replaced with an integer ratio, and the change in gain caused by the replacement with the integer ratio is adjusted by the quantization means. In addition, since it is configured by a serial circuit that performs addition and subtraction in multiple stages at the same clock at once, the circuit scale can be significantly reduced compared to the case where a serial circuit is simply realized. Further, the number of stages such as FF and adder / subtractor can be greatly reduced to improve the processing speed, and it can be used for data compression / expansion of images and the like.

【0261】請求項4、5、7、8及び9記載の発明の
発明によれば、データ変換演算手段のデータ変換演算式
を展開し、展開した式に従ってデータ変換演算手段を構
成するとともに、複数段の加減算を同一クロックで一度
に行なうシリアル回路により構成するようにしているの
で、展開したデータ変換演算式に従ってシリアル回路を
構成することによりシフトレジスタ等のシリアル回路の
段数を減少させてクロック数を減らすことができること
に加え、さらにFFや加減算器等の段数を大幅に減少さ
せて処理速度を向上させることができ、回路規模を大幅
に小さくすることができる。
According to the inventions of claims 4, 5, 7, 8 and 9, the data conversion arithmetic means of the data conversion arithmetic means is expanded, and the data conversion arithmetic means is constructed in accordance with the expanded expression. Since it is configured by a serial circuit that performs addition and subtraction of stages at the same clock at a time, by configuring the serial circuit according to the developed data conversion arithmetic expression, the number of stages of the serial circuit such as the shift register is reduced to reduce the number of clocks. In addition to being able to reduce the number, the number of stages such as FF and adder / subtractor can be greatly reduced to improve the processing speed, and the circuit scale can be greatly reduced.

【0262】請求項5、15、16、17、19、2
0、21、22及び23記載の発明によれば、データ変
換演算手段の係数を整数の比に置き換え、該整数の比に
置き換えることにより生じたゲインの変化を、量子化手
段により調整するようにするとともに、データ変換演算
式を展開し、展開した式に従ってデータ変換演算手段を
構成し、さらに複数段の加減算を同一クロックで一度に
行なうシリアル回路により構成するようにしているの
で、係数を整数の比に置き換え、そのゲインの変化を量
子化手段で調整することにより単にシリアル回路を実現
していた場合に比べ、回路規模を大幅に小さくすること
ができるとともに、展開したデータ変換演算式に従って
シリアル回路を構成することによりシフトレジスタ等の
シリアル回路の段数を減少させてクロック数を減らすこ
とができ、さらにこのシリアル回路は複数段の加減算を
一度に行なう構成となっているためFFや加減算器等の
段数を大幅に減少させて処理速度をより一層向上させる
ことができ、回路規模を大幅に小さくすることができ
る。
Claims 5, 15, 16, 17, 19, 2
According to the inventions of 0, 21, 22 and 23, the quantizing means adjusts the change in gain caused by replacing the coefficient of the data conversion calculating means with an integer ratio and replacing the coefficient with the integer ratio. At the same time, the data conversion calculation formula is expanded, the data conversion calculation means is configured in accordance with the expanded formula, and the serial conversion circuit performs addition and subtraction of a plurality of stages at the same clock at a time. The circuit scale can be significantly reduced compared to the case where the serial circuit is simply realized by replacing the gain with a ratio and adjusting the change in the gain by the quantizing means, and the serial circuit is expanded according to the developed data conversion arithmetic expression. It is possible to reduce the number of stages of the serial circuit such as the shift register and the number of clocks by configuring the. Since the serial circuit is configured to add / subtract multiple stages at once, the number of stages such as FF and adder / subtractor can be greatly reduced to further improve the processing speed, and the circuit scale can be greatly reduced. it can.

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

【図1】データ圧縮伸張装置の原理説明図である。FIG. 1 is a diagram illustrating the principle of a data compression / decompression device.

【図2】データ圧縮伸張装置の原理説明図である。FIG. 2 is a diagram illustrating the principle of a data compression / decompression device.

【図3】データ圧縮伸張装置のブロック構成図である。FIG. 3 is a block configuration diagram of a data compression / decompression device.

【図4】データ圧縮伸張装置のデータ変換演算装置のブ
ロック構成図である。
FIG. 4 is a block configuration diagram of a data conversion calculation device of the data compression / expansion device.

【図5】データ圧縮伸張装置のデータ圧縮時のデータ変
換演算装置の回路構成図である。
FIG. 5 is a circuit configuration diagram of a data conversion arithmetic device at the time of data compression of the data compression / expansion device.

【図6】データ圧縮伸張装置のデータ伸張時のデータ変
換演算装置の回路構成図である。
FIG. 6 is a circuit configuration diagram of a data conversion arithmetic device at the time of data expansion of the data compression / expansion device.

【図7】データ圧縮伸張装置のデータ変換演算装置の動
作を説明するためのタイミングチャートである。
FIG. 7 is a timing chart for explaining the operation of the data conversion calculation device of the data compression / expansion device.

【図8】データ圧縮伸張装置のデータ変換演算装置の回
路構成図である。
FIG. 8 is a circuit configuration diagram of a data conversion calculation device of the data compression / expansion device.

【図9】データ圧縮伸張装置のデータ圧縮時のデータ変
換演算装置の回路構成図である。
FIG. 9 is a circuit configuration diagram of a data conversion operation device at the time of data compression of the data compression / expansion device.

【図10】データ圧縮伸張装置のデータ伸張時のデータ
変換演算装置の回路構成図である。
FIG. 10 is a circuit configuration diagram of a data conversion arithmetic device at the time of data expansion of the data compression / expansion device.

【図11】データ圧縮伸張装置のデータ変換演算装置の
シリアル回路の回路構成図である。
FIG. 11 is a circuit configuration diagram of a serial circuit of a data conversion arithmetic device of the data compression / expansion device.

【図12】データ圧縮伸張装置のデータ変換演算装置の
ブロック構成図である。
FIG. 12 is a block configuration diagram of a data conversion calculation device of the data compression / expansion device.

【図13】データ圧縮伸張装置のデータ変換演算装置の
動作を説明するためのタイミングチャートである。
FIG. 13 is a timing chart for explaining the operation of the data conversion calculation device of the data compression / expansion device.

【図14】データ圧縮伸張装置のデータ変換演算装置の
動作を説明するためのタイミングチャートである。
FIG. 14 is a timing chart for explaining the operation of the data conversion calculation device of the data compression / expansion device.

【図15】データ圧縮伸張装置のデータ圧縮時のデータ
変換演算装置の回路構成図である。
FIG. 15 is a circuit configuration diagram of a data conversion arithmetic device at the time of data compression of the data compression / expansion device.

【図16】データ圧縮伸張装置のデータ伸張時のデータ
変換演算装置の回路構成図である。
FIG. 16 is a circuit configuration diagram of a data conversion calculation device at the time of data expansion of the data compression / expansion device.

【図17】データ圧縮伸張装置のデータ変換演算装置の
シリアル回路の回路構成図である。
FIG. 17 is a circuit configuration diagram of a serial circuit of a data conversion arithmetic device of the data compression / expansion device.

【図18】データ圧縮伸張装置の内部にフリップフロッ
プ(FF)を有しないシリアル演算素子を説明する図で
ある。
FIG. 18 is a diagram illustrating a serial arithmetic element having no flip-flop (FF) inside the data compression / expansion device.

【図19】データ圧縮伸張装置の内部にフリップフロッ
プ(FF)を有しないシリアル演算素子を説明する図で
ある。
FIG. 19 is a diagram illustrating a serial arithmetic element having no flip-flop (FF) inside the data compression / expansion device.

【図20】データ圧縮伸張装置のデータ変換演算装置の
シリアル回路の回路構成図である。
FIG. 20 is a circuit configuration diagram of a serial circuit of a data conversion arithmetic device of the data compression / expansion device.

【図21】データ圧縮伸張装置のデータ変換演算装置の
シリアル回路の回路構成図である。
FIG. 21 is a circuit configuration diagram of a serial circuit of a data conversion / calculation device of a data compression / expansion device.

【図22】データ圧縮伸張装置のデータ圧縮時のデータ
変換演算装置の回路構成図である。
FIG. 22 is a circuit configuration diagram of a data conversion arithmetic device at the time of data compression of the data compression / expansion device.

【図23】データ圧縮伸張装置のデータ伸張時のデータ
変換演算装置の回路構成図である。
FIG. 23 is a circuit configuration diagram of a data conversion arithmetic device at the time of data expansion of the data compression / expansion device.

【図24】データ圧縮伸張装置のデータ変換演算装置の
動作を説明するためのタイミングチャートである。
FIG. 24 is a timing chart for explaining the operation of the data conversion calculation device of the data compression / expansion device.

【図25】データ圧縮伸張装置のデータ変換演算装置の
動作を説明するためのタイミングチャートである。
FIG. 25 is a timing chart for explaining the operation of the data conversion processing device of the data compression / expansion device.

【図26】従来のデータ圧縮伸張装置のブロック構成図
である。
FIG. 26 is a block diagram of a conventional data compression / decompression device.

【図27】従来のデータ圧縮伸張装置の画像データの処
理を説明するための図である。
FIG. 27 is a diagram for explaining the processing of image data of the conventional data compression / decompression device.

【図28】従来のデータ圧縮伸張装置の量子化テーブル
の例を示す図である。
FIG. 28 is a diagram showing an example of a quantization table of a conventional data compression / decompression device.

【図29】従来のデータ圧縮伸張装置のデータ変換演算
装置におけるシリアル演算を説明するための図である。
FIG. 29 is a diagram for explaining a serial operation in a data conversion operation device of a conventional data compression / expansion device.

【図30】従来のデータ圧縮伸張装置のデータ変換演算
装置におけるシリアル演算を説明するための図である。
FIG. 30 is a diagram for explaining a serial operation in the data conversion operation device of the conventional data compression / expansion device.

【図31】従来のデータ圧縮伸張装置のデータ変換演算
装置におけるシリアル演算を説明するための図である。
FIG. 31 is a diagram for explaining a serial operation in a data conversion operation device of a conventional data compression / expansion device.

【図32】従来のデータ圧縮伸張装置のデータ変換演算
装置のブロック構成図である。
FIG. 32 is a block configuration diagram of a data conversion calculation device of a conventional data compression / expansion device.

【図33】従来のデータ圧縮伸張装置のデータ変換演算
装置のIステージの回路構成図である。
FIG. 33 is a circuit configuration diagram of an I stage of a data conversion arithmetic device of a conventional data compression / expansion device.

【図34】従来のデータ圧縮伸張装置のデータ変換演算
装置のIIステージの回路構成図である。
FIG. 34 is a circuit configuration diagram of a II stage of a data conversion arithmetic device of a conventional data compression / expansion device.

【図35】従来のデータ圧縮伸張装置のデータ変換演算
装置のIIIステージの回路構成図である。
FIG. 35 is a circuit configuration diagram of a III stage of a data conversion arithmetic device of a conventional data compression / expansion device.

【図36】従来のデータ圧縮伸張装置のデータ変換演算
装置のIVステージの回路構成図である。
FIG. 36 is a circuit configuration diagram of an IV stage of a data conversion arithmetic device of a conventional data compression / expansion device.

【図37】従来のデータ圧縮伸張装置のデータ圧縮時の
データ変換演算装置の回路構成図である。
FIG. 37 is a circuit configuration diagram of a data conversion arithmetic device at the time of data compression of a conventional data compression / expansion device.

【図38】従来のデータ圧縮伸張装置のデータ伸張時の
データ変換演算装置の回路構成図である。
[Fig. 38] Fig. 38 is a circuit configuration diagram of a data conversion calculation device at the time of data expansion of a conventional data compression / expansion device.

【図39】従来のデータ圧縮伸張装置のシリアル演算素
子を説明する図である。
[Fig. 39] Fig. 39 is a diagram for describing a serial arithmetic element of a conventional data compression / decompression device.

【図40】従来のデータ圧縮伸張装置のシリアル演算素
子を説明する図である。
FIG. 40 is a diagram illustrating a serial arithmetic element of a conventional data compression / expansion device.

【図41】従来のデータ圧縮伸張装置のシリアル演算素
子を説明する図である。
FIG. 41 is a diagram illustrating a serial arithmetic element of a conventional data compression / decompression device.

【図42】従来のデータ圧縮伸張装置のデータ変換演算
装置の動作を説明するためのタイミングチャートであ
る。
FIG. 42 is a timing chart for explaining the operation of the data conversion operation device of the conventional data compression / expansion device.

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

10 データ記憶装置 11 パラレル−シリアル変換装装置 13 シリアル−パラレル変換装置 51 量子化装置 50,110,120,140,150,180,19
0 データ変換演算装置 52 制御装置 100,160 シリアル回路 101,161 シリアル回路(第1のシリアル演算
部) 102,162 シリアル回路(第2のシリアル演算
部) 111,121,141,151,171 ステージI
の演算回路 112,122,142,152 ステージIIの演算回
路 113,123,143,153,173 ステージII
Iの演算回路 131〜134 バスセレクタ
10 Data Storage Device 11 Parallel-Serial Conversion Device 13 Serial-Parallel Conversion Device 51 Quantization Device 50, 110, 120, 140, 150, 180, 19
0 data conversion arithmetic unit 52 control unit 100,160 serial circuit 101,161 serial circuit (first serial arithmetic unit) 102,162 serial circuit (second serial arithmetic unit) 111,121,141,151,171 stage I
Arithmetic circuit 112, 122, 142, 152 Stage II arithmetic circuit 113, 123, 143, 153, 173 Stage II
I arithmetic circuit 131-134 Bus selector

【数3】 [Equation 3]

【数4】 [Equation 4]

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 H04N 7/137 Z ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification code Internal reference number FI Technical indication H04N 7/137 Z

Claims (23)

【特許請求の範囲】[Claims] 【請求項1】 所定のデータを記憶するデータ記憶手段
と、 前記データ記憶手段から出力されたデータに対して所定
の係数に基づいてシリアル演算によりデータ変換演算を
実行するデータ変換演算手段と、 前記データ変換演算手段によるデータ変換後のデータに
対して量子化演算を実行する量子化手段と、 前記データ記憶手段、前記データ変換演算手段及び前記
量子化手段を制御をする制御手段とを備えたデータ圧縮
伸張装置であって、 前記データ変換演算手段は、複数段の加減算を同一クロ
ックで一度に行なうようにしたことを特徴とするデータ
圧縮伸張装置。
1. Data storage means for storing predetermined data; data conversion operation means for performing data conversion operation on the data output from said data storage means by serial operation based on a predetermined coefficient; Data comprising a quantizing means for executing a quantizing operation on the data after the data conversion by the data converting and calculating means, and a control means for controlling the data storing means, the data converting and calculating means and the quantizing means A data compression / decompression device, wherein the data conversion calculation means is configured to perform addition / subtraction of a plurality of stages at once with the same clock.
【請求項2】 所定のデータを記憶するデータ記憶手段
と、 前記データ記憶手段のデータをパラレルデータからシリ
アルデータに変換するパラレル−シリアル変換手段と、 前記パラレル−シリアル変換手段から出力されたデータ
に対して所定の係数に基づいてシリアル演算によりデー
タ変換演算を実行するデータ変換演算手段と、 前記データ変換手段から出力されるシリアルデータをパ
ラレルデータに変換し、前記データ記憶手段に書き込む
シリアル−パラレル変換手段と、 前記データ変換演算手段によるデータ変換後のデータに
対して量子化演算を実行する量子化手段と、 前記データ記憶手段、前記パラレル−シリアル変換手
段、前記データ変換演算手段、前記シリアル−パラレル
変換手段及び前記量子化手段を制御をする制御手段とを
備えたデータ圧縮伸張装置であって、 前記データ変換演算手段は、複数段の加減算を同一クロ
ックで一度に行なうようにしたことを特徴とするデータ
圧縮伸張装置。
2. Data storage means for storing predetermined data, parallel-serial conversion means for converting the data of the data storage means from parallel data to serial data, and data output from the parallel-serial conversion means. On the other hand, data conversion operation means for executing data conversion operation by serial operation based on a predetermined coefficient, and serial-parallel conversion for converting serial data output from the data conversion means into parallel data and writing the parallel data in the data storage means. Means, a quantization means for performing a quantization operation on the data after the data conversion by the data conversion operation means, the data storage means, the parallel-serial conversion means, the data conversion operation means, the serial-parallel A conversion means and a control means for controlling the quantization means; A example was the data compressing and expanding apparatus, the data conversion computation means, the data compressing and expanding apparatus being characterized in that the addition and subtraction of multiple stages to perform a time at the same clock.
【請求項3】 所定のデータを記憶するデータ記憶手段
と、 前記データ記憶手段から出力されたデータに対して所定
の係数に基づいてシリアル演算によりデータ変換演算を
実行するデータ変換演算手段と、 前記データ変換演算手段によるデータ変換後のデータに
対して量子化演算を実行する量子化手段と、 前記データ記憶手段、前記データ変換演算手段及び前記
量子化手段を制御をする制御手段とを備えたデータ圧縮
伸張装置であって、 前記データ変換演算手段の係数を整数の比に置き換え、
該整数の比に置き換えることにより生じたゲインの変化
を、前記量子化手段により調整するようにするととも
に、複数段の加減算を同一クロックで一度に行なうよう
にしたことを特徴とするデータ圧縮伸張装置。
3. Data storage means for storing predetermined data; data conversion operation means for performing data conversion operation on the data output from said data storage means by serial operation based on a predetermined coefficient; Data comprising a quantizing means for executing a quantizing operation on the data after the data conversion by the data converting and calculating means, and a control means for controlling the data storing means, the data converting and calculating means and the quantizing means A compression / expansion device, wherein the coefficient of the data conversion calculation means is replaced with an integer ratio,
A data compression / expansion device characterized in that a change in gain caused by replacing with the integer ratio is adjusted by the quantizing means, and addition / subtraction of a plurality of stages is performed at the same clock at one time. .
【請求項4】 所定のデータを記憶するデータ記憶手段
と、 前記データ記憶手段から出力されたデータに対して所定
の係数に基づいてシリアル演算によりデータ変換演算を
実行するデータ変換演算手段と、 前記データ変換演算手段によるデータ変換後のデータに
対して量子化演算を実行する量子化手段と、 前記データ記憶手段、前記データ変換演算手段及び前記
量子化手段を制御をする制御手段とを備えたデータ圧縮
伸張装置であって、 前記データ変換演算手段のデータ変換演算式を展開し、
展開した式に従って前記データ変換演算手段を構成する
とともに、複数段の加減算を同一クロックで一度に行な
うようにしたことを特徴とするデータ圧縮伸張装置。
4. Data storage means for storing predetermined data; data conversion operation means for performing data conversion operation on the data output from the data storage means by serial operation based on a predetermined coefficient; Data comprising a quantizing means for executing a quantizing operation on the data after the data conversion by the data converting and calculating means, and a control means for controlling the data storing means, the data converting and calculating means and the quantizing means A compression / expansion device for expanding the data conversion calculation formula of the data conversion calculation means,
A data compression / expansion device, characterized in that the data conversion operation means is constructed in accordance with the expanded formula, and a plurality of stages of addition / subtraction are performed at the same clock.
【請求項5】 所定のデータを記憶するデータ記憶手段
と、 前記データ記憶手段から出力されたデータに対して所定
の係数に基づいてシリアル演算によりデータ変換演算を
実行するデータ変換演算手段と、 前記データ変換演算手段によるデータ変換後のデータに
対して量子化演算を実行する量子化手段と、 前記データ記憶手段、前記データ変換演算手段及び前記
量子化手段を制御をする制御手段とを備えたデータ圧縮
伸張装置であって、 前記データ変換演算手段の係数を整数の比に置き換え、
該整数の比に置き換えることにより生じたゲインの変化
を、前記量子化手段により調整するようにするととも
に、データ変換演算式を展開し、展開した式に従って前
記データ変換演算手段を構成し、さらに複数段の加減算
を同一クロックで一度に行なうようにしたことを特徴と
するデータ圧縮伸張装置。
5. Data storage means for storing predetermined data, data conversion operation means for performing data conversion operation by serial operation on the data output from the data storage means based on a predetermined coefficient, Data comprising a quantizing means for executing a quantizing operation on the data after the data conversion by the data converting and calculating means, and a control means for controlling the data storing means, the data converting and calculating means and the quantizing means A compression / expansion device, wherein the coefficient of the data conversion calculation means is replaced with an integer ratio,
A change in gain caused by replacing the ratio of the integers is adjusted by the quantizing means, a data conversion arithmetic expression is expanded, and the data conversion arithmetic means is configured according to the expanded expression. A data compression / decompression device characterized in that addition / subtraction of stages is performed at the same clock at one time.
【請求項6】 所定のデータを記憶するデータ記憶手段
と、 前記データ記憶手段から出力されたデータに対して所定
の係数に基づいてシリアル演算によりデータ変換演算を
実行するデータ変換演算手段と、 前記データ変換演算手段によるデータ変換後のデータに
対して量子化演算を実行する量子化手段と、 前記データ記憶手段、前記データ変換演算手段及び前記
量子化手段を制御をする制御手段とを備えたデータ圧縮
伸張装置であって、 前記データ変換演算手段のデータ変換演算式の係数の値
を2のべきで表現するとともに、該係数の値を2のべき
で表現するとき所定以上ビット数が大きくなる部分につ
いて該係数を整数の比に置き換え、該整数の比に置き換
えることにより生じたゲインの変化を、前記量子化手段
により調整するようにするとともに、複数段の加減算を
同一クロックで一度に行なうようにしたことを特徴とす
るデータ圧縮伸張装置。
6. Data storage means for storing predetermined data, data conversion operation means for performing data conversion operation by serial operation on the data output from the data storage means based on a predetermined coefficient, Data comprising a quantizing means for executing a quantizing operation on the data after the data conversion by the data converting and calculating means, and a control means for controlling the data storing means, the data converting and calculating means and the quantizing means A compression / expansion device in which the value of the coefficient of the data conversion arithmetic expression of the data conversion arithmetic means is represented by a power of 2, and when the value of the coefficient is represented by a power of 2, the number of bits becomes larger than a predetermined number. Is replaced with an integer ratio, and a change in gain caused by replacing the coefficient with an integer ratio is adjusted by the quantizing means. Together, the data compressing and expanding apparatus being characterized in that the addition and subtraction of multiple stages to perform a time at the same clock.
【請求項7】 前記データ変換演算手段は、各入力に所
定の係数が表れるようにデータ変換演算式を展開し、該
展開したデータ変換演算式の係数部分をシリアル演算す
る第1のシリアル演算部と、該第1のシリアル演算部の
出力を加減算して該展開したデータ変換演算式の演算を
実行する第2のシリアル演算部とにより構成するように
したことを特徴とする請求項1、請求項2、請求項3、
請求項5又は請求項6の何れかに記載のデータ圧縮伸張
装置。
7. The first serial operation unit, wherein the data conversion operation means expands a data conversion operation expression so that a predetermined coefficient appears in each input, and serially operates the coefficient portion of the expanded data conversion operation expression. And a second serial operation unit that executes an operation of the expanded data conversion operation expression by adding and subtracting the output of the first serial operation unit. Item 2, claim 3,
The data compression / decompression device according to claim 5.
【請求項8】 前記第1のシリアル演算部は、前記展開
したデータ変換演算式の係数を2のべきに数値をかけた
形で表現するとともに、該係数を2のべきに数値をかけ
た形で表現した場合の数値部分をシリアル演算するシリ
アル回路により構成するようにしたことを特徴とする請
求項7に記載のデータ圧縮伸張装置。
8. The first serial operation unit expresses the coefficient of the expanded data conversion operation expression in a form that a power of 2 is multiplied by a numerical value, and the coefficient is calculated by multiplying a power of 2 in a numerical value. 8. The data compression / expansion device according to claim 7, wherein the numerical value portion represented by the expression (1) is configured by a serial circuit for performing a serial operation.
【請求項9】 前記第2のシリアル演算部は、前記第1
のシリアル演算部から出力された数値を加減算して出力
する複数の加減算器により構成され、前記展開したデー
タ変換演算式の係数を2のべきに数値をかけた形で表現
した場合の2のべき部分を各加減算器への入力位置によ
り調整するようにしたことを特徴とする請求項7に記載
のデータ圧縮伸張装置。
9. The second serial operation unit is configured to operate the first serial operation unit.
Of the serial operation unit, which is composed of a plurality of adders / subtractors that add and subtract the numerical values output from the serial arithmetic unit, and express the coefficient of the expanded data conversion arithmetic expression in the form of a power of 2 multiplied by a numerical value. 8. The data compression / expansion device according to claim 7, wherein the part is adjusted according to the input position to each adder / subtractor.
【請求項10】 前記データ変換演算手段は、複数段の
加減算を同一クロックで一度に実行するシリアル回路を
含んで構成したことを特徴とする請求項1、請求項2、
請求項3、請求項4、請求項5、請求項6、請求項7、
請求項8又は請求項9の何れかに記載のデータ圧縮伸張
装置。
10. The data conversion calculation means comprises a serial circuit which executes addition and subtraction in a plurality of stages at once with the same clock, and the data conversion calculation means comprises a serial circuit.
Claim 3, Claim 4, Claim 5, Claim 6, Claim 7,
The data compression / decompression device according to claim 8.
【請求項11】 前記データ変換演算手段は、遅延用素
子を有しない加減算器を用いてデータ変換演算を実行す
るようにしたことを特徴とする請求項1、請求項2、請
求項3、請求項4、請求項5、請求項6、請求項7、請
求項8、請求項9又は請求項10の何れかに記載のデー
タ圧縮伸張装置。
11. The data conversion calculation means is configured to execute the data conversion calculation by using an adder / subtractor having no delay element. The data compression / expansion device according to any one of claim 4, claim 5, claim 6, claim 7, claim 8, claim 9, and claim 10.
【請求項12】 前記データ変換演算手段は、遅延用素
子を有する加減算器と、遅延用素子を有しない加減算器
とからなるシリアル回路を含んで構成され、該遅延用素
子を有する加減算器及び遅延用素子を有しない加減算器
を用いて加減算を実行するとともに、該遅延用素子を有
する加減算器の遅延用素子により該シリアル回路のクロ
ックのタイミングを合わせるようにしたことを特徴とす
る請求項1、請求項2、請求項3、請求項4、請求項
5、請求項6、請求項7、請求項8、請求項9又は請求
項10の何れかに記載のデータ圧縮伸張装置。
12. The data conversion calculation means includes a serial circuit including an adder / subtractor having a delay element and an adder / subtractor having no delay element, and an adder / subtractor having the delay element and a delay circuit. 2. The addition / subtraction is performed by using an adder / subtractor having no output element, and the clock timing of the serial circuit is adjusted by the delay element of the adder / subtractor having the delay element. The data compression / expansion device according to claim 2, claim 3, claim 4, claim 5, claim 6, claim 7, claim 8, claim 9, or claim 10.
【請求項13】 前記データ変換演算手段は、シリアル
演算を実行するシリアル回路の動作時間が、供給された
システムクロックに従って動作するデータ圧縮伸張装置
の全体動作時間よりも小さいとき、所定の範囲内で該シ
リアル回路を構成する加減算器の段数を減らすようにし
たことを特徴とする請求項1、請求項2、請求項3、請
求項4、請求項5、請求項6、請求項7、請求項8、請
求項9、請求項10、請求項11又は請求項12の何れ
かに記載のデータ圧縮伸張装置。
13. The data conversion operation means is within a predetermined range when the operation time of the serial circuit for executing the serial operation is shorter than the entire operation time of the data compression / expansion device which operates according to the supplied system clock. The number of stages of adder / subtractor configuring the serial circuit is reduced, claim 1, claim 2, claim 3, claim 4, claim 5, claim 6, claim 7, claim 7. The data compression / decompression device according to claim 8, claim 9, claim 11, claim 12, or claim 12.
【請求項14】 前記データ変換演算手段は、シリアル
演算を実行するシリアル回路の動作時間が、供給された
システムクロックに従って動作するデータ圧縮伸張装置
の全体動作時間よりも小さいとき、所定の範囲内で該シ
リアル回路を構成する加減算器を遅延用素子を有しない
加減算器に置き換えるようにしたことを特徴とする請求
項1、請求項2、請求項3、請求項4、請求項5、請求
項6、請求項7、請求項8、請求項9、請求項10、請
求項11、請求項12又は請求項13の何れかに記載の
データ圧縮伸張装置。
14. The data conversion operation means is within a predetermined range when the operation time of the serial circuit for executing the serial operation is shorter than the entire operation time of the data compression / expansion device which operates according to the supplied system clock. The adder / subtractor constituting the serial circuit is replaced with an adder / subtractor having no delay element, claim 1, claim 2, claim 3, claim 4, claim 5, claim 6. The data compression / decompression device according to claim 7, claim 8, claim 9, claim 10, claim 11, claim 12, or claim 13.
【請求項15】 前記データ変換演算手段は、データに
対してシリアル演算により直交変換を実行する直交変換
手段であることを特徴とする請求項1、請求項2、請求
項3、請求項4、請求項5、請求項6、請求項7、請求
項8、請求項9、請求項10、請求項11、請求項1
2、請求項13又は請求項14の何れかに記載のデータ
圧縮伸張装置。
15. The orthogonal transforming means for performing orthogonal transform on data by serial operation according to claim 1, claim 2, claim 3, claim 4, claim 4. Claim 5, Claim 6, Claim 7, Claim 8, Claim 9, Claim 10, Claim 11, Claim 1
The data compression / decompression device according to claim 2, claim 13, or claim 14.
【請求項16】 前記データ変換演算手段は、データに
対してシリアル演算により離散コサイン変換(DCT)
を実行する離散コサイン変換手段であることを特徴とす
る請求項1、請求項2、請求項3、請求項4、請求項
5、請求項6、請求項7、請求項8、請求項9、請求項
10、請求項11、請求項12、請求項13又は請求項
14の何れかに記載のデータ圧縮伸張装置。
16. The data transform computing means performs discrete cosine transform (DCT) on data by serial computation.
It is a discrete cosine transforming means for executing the following, claim 1, claim 2, claim 3, claim 4, claim 5, claim 6, claim 7, claim 8, claim 9, and claim 9. The data compression / decompression device according to claim 10, claim 11, claim 12, claim 13 or claim 14.
【請求項17】 前記データ変換演算手段は、入力され
たデータを所定のクロックに応答して順次移動させるシ
リアル演算器を含んで構成されることを特徴とする請求
項1、請求項2、請求項3、請求項4、請求項5、請求
項6、請求項7、請求項8、請求項9、請求項10、請
求項11、請求項12、請求項13又は請求項14の何
れかに記載のデータ圧縮伸張装置。
17. The data converting / calculating means includes a serial calculating device for sequentially moving input data in response to a predetermined clock, and the data converting / calculating means comprises a serial calculating device. Any of claim 3, claim 4, claim 5, claim 6, claim 7, claim 8, claim 9, claim 10, claim 12, claim 13, or claim 14. The data compression / decompression device described.
【請求項18】 前記データ変換演算手段の加減算器が
有する遅延用素子は、クロックタイミング合わせのため
のフリップフロップであることを特徴とする請求項11
又は請求項12の何れかに記載のデータ圧縮伸張装置。
18. The delay element included in the adder / subtractor of the data conversion calculation means is a flip-flop for clock timing adjustment.
Alternatively, the data compression / decompression device according to claim 12.
【請求項19】 前記データ変換演算手段は、データ変
換演算式の係数の値を2のべきで表現したシリアル回路
により構成し、該シリアル回路によるシリアル演算によ
りデータ変換演算を実行するようにしたことを特徴とす
る請求項1、請求項2、請求項3、請求項4、請求項
5、請求項6、請求項7、請求項10、請求項11、請
求項12、請求項13又は請求項14の何れかに記載の
データ圧縮伸張装置。
19. The data conversion calculation means is configured by a serial circuit that expresses the coefficient value of the data conversion calculation expression as a power of 2, and the data conversion calculation is executed by the serial calculation by the serial circuit. Claim 1, Claim 2, Claim 3, Claim 4, Claim 5, Claim 6, Claim 7, Claim 10, Claim 11, Claim 12, Claim 13 or Claim. 15. The data compression / decompression device according to any one of 14.
【請求項20】 前記データ変換演算手段は、データ変
換演算式の係数の値を2のべきで表現するとともに、該
係数の値を2のべきで表現するとき所定以上ビット数が
大きくなる部分について該係数を整数の比に置き換えた
シリアル回路により構成し、該シリアル回路によるシリ
アル演算によりデータ変換演算を実行するようにしたこ
とを特徴とする請求項1、請求項2、請求項3、請求項
4、請求項5、請求項6、請求項7、請求項10、請求
項11、請求項12、請求項13又は請求項14の何れ
かに記載のデータ圧縮伸張装置。
20. The data conversion operation means expresses a coefficient value of a data conversion operation expression as a power of 2, and when a value of the coefficient is expressed as a power of 2, a portion in which the number of bits becomes larger than a predetermined value 4. A serial circuit in which the coefficient is replaced by an integer ratio, and a data conversion operation is executed by serial operation by the serial circuit. 4. The data compression / decompression device according to claim 4, claim 5, claim 6, claim 7, claim 10, claim 11, claim 12, claim 13, or claim 14.
【請求項21】 前記データ変換演算手段で用いられる
データ変換演算式は、該データ変換演算式の係数を、前
記量子化手段の量子化演算に用いる量子化係数に含ませ
るように作成したことを特徴とする請求項4、請求項
5、請求項6、請求項7又は請求項8何れかに記載のデ
ータ圧縮伸張装置。
21. The data conversion calculation formula used in the data conversion calculation means is created such that the coefficient of the data conversion calculation formula is included in the quantization coefficient used in the quantization calculation of the quantization means. The data compression / expansion device according to any one of claims 4, 5, 6, 7 and 8.
【請求項22】 前記量子化手段によるゲインの調整
は、前記データ変換演算手段の係数を整数の比に変える
ことにより生じたゲイン変化分を吸収させるように構成
された量子化テーブルにより行なわれることを特徴とす
る請求項3、請求項5又は請求項6の何れかに記載のデ
ータ圧縮伸張装置。
22. The adjustment of the gain by the quantizing means is performed by a quantization table configured to absorb a gain change caused by changing the coefficient of the data conversion computing means to an integer ratio. 7. The data compression / expansion device according to claim 3, 5, or 6.
【請求項23】 前記データ変換演算手段の係数の整数
の比への置き換えは、該係数を整数値に置き換えること
により行なうようにしたことを特徴とする請求項3、請
求項5、請求項6、請求項20又は請求項22の何れか
に記載のデータ圧縮伸張装置。
23. The method according to claim 3, wherein replacement of the coefficient of the data conversion calculation means by an integer ratio is performed by replacing the coefficient by an integer value. 23. The data compression / decompression device according to claim 20 or 22.
JP36089392A 1992-12-30 1992-12-30 Data compander Pending JPH06205391A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36089392A JPH06205391A (en) 1992-12-30 1992-12-30 Data compander

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36089392A JPH06205391A (en) 1992-12-30 1992-12-30 Data compander

Publications (1)

Publication Number Publication Date
JPH06205391A true JPH06205391A (en) 1994-07-22

Family

ID=18471359

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36089392A Pending JPH06205391A (en) 1992-12-30 1992-12-30 Data compander

Country Status (1)

Country Link
JP (1) JPH06205391A (en)

Similar Documents

Publication Publication Date Title
US7236997B2 (en) Filter processing apparatus and method
JPH06205391A (en) Data compander
JPH06205392A (en) Data compression / decompression device
WO2005122590A1 (en) Image encoding device, image decoding device, and integrated circuit used therein
JP2001346213A (en) Discrete cosine transform unit and its discrete cosine transform method
WO2007072644A1 (en) Two-dimensional filter arithmetic unit and method
US6724822B1 (en) Efficient motion compensation apparatus for digital video format down-conversion using generalized orthogonal transformation
JP3099564B2 (en) Data compression / decompression device
US9286654B2 (en) Image scaling processor and image scaling processing method
JPH06204885A (en) Data compression / decompression device
JP4516051B2 (en) Filter processing device, multiplier, and motion compensation processing device
JP2790911B2 (en) Orthogonal transform operation unit
JPH06204887A (en) Data compression / decompression device
WO2000035202A1 (en) Filter arithmetic device
JP4729505B2 (en) Method and apparatus for conversion of digital audio signal and inverse conversion of converted digital audio signal
JPH08307868A (en) Moving image decoder
JP3547567B2 (en) Discrete cosine transformer
JP2001298349A (en) Oversampling digital filter circuit
JPWO2000035202A1 (en) Filter Calculation Unit
JPH0645947A (en) Orthogonal converter and reverse orthogonal converter
JPH07177515A (en) Data compression / expansion device, image equipment, electronic camera and videophone device
JPH0583141A (en) Coding data processor
CN119848407A (en) Arithmetic circuit and computing device
JP2555937B2 (en) Discrete cosine transform circuit
JPH04222121A (en) Data compressor