JPH04307662A - Discrete cosine converter and adverse discrete cosine converter - Google Patents
Discrete cosine converter and adverse discrete cosine converterInfo
- Publication number
- JPH04307662A JPH04307662A JP3072662A JP7266291A JPH04307662A JP H04307662 A JPH04307662 A JP H04307662A JP 3072662 A JP3072662 A JP 3072662A JP 7266291 A JP7266291 A JP 7266291A JP H04307662 A JPH04307662 A JP H04307662A
- Authority
- JP
- Japan
- Prior art keywords
- data
- product
- output data
- output
- sum
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000002411 adverse Effects 0.000 title 1
- 230000015654 memory Effects 0.000 claims abstract description 11
- 238000000034 method Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 7
- 239000011159 matrix material Substances 0.000 description 6
- 238000007796 conventional method Methods 0.000 description 3
- 230000009466 transformation Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Landscapes
- Complex Calculations (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は離散コサイン変換装置と
逆離散コサイン変換装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a discrete cosine transform device and an inverse discrete cosine transform device.
【0002】0002
【従来の技術】一般に、N次の離散コサイン変換(以下
、DCTと記す)と逆離散コサイン変換(以下、IDC
Tと記す)を実行するDCT装置とIDCT装置は、N
×NのDCTまたはIDCT変換行列とN次の入力デー
タベクトルの乗算を行う装置であり、例えば図4に示す
ようにNを8とした場合、8個のデータからなる入力デ
ータベクトルが入力される入力端子400に、変換行列
の行方向の8個のDCTまたはIDCT変換係数と入力
データの積和演算を行う同一構成の8個の積和演算器4
10,411,412,…,417を並列に接続し、変
換結果である積和演算データを選択器480で順次選択
して出力端子481に出力する。積和演算器410は、
積和演算器の入力端子418から入力される入力データ
と係数メモリ420から読み出されたDCTまたはID
CT変換係数を乗算器430で乗算して、その出力デー
タとレジスタ450の出力データを加算器460で加算
して累算結果をレジスタ450に格納する。積和演算が
終了するとレジスタ450の積和演算データをレジスタ
470に格納する。積和演算が終了するとレジスタ45
0の積和演算データをレジスタ470に格納する。[Prior Art] In general, Nth-order discrete cosine transform (hereinafter referred to as DCT) and inverse discrete cosine transform (hereinafter referred to as IDC)
The DCT device and IDCT device that execute the
This is a device that multiplies a ×N DCT or IDCT transformation matrix by an N-order input data vector. For example, if N is 8 as shown in FIG. 4, an input data vector consisting of 8 data is input. At the input terminal 400, eight product-sum calculators 4 with the same configuration perform product-sum calculations of input data and eight DCT or IDCT transform coefficients in the row direction of the transformation matrix.
10, 411, 412, . The product-sum calculator 410 is
Input data input from the input terminal 418 of the product-sum calculator and DCT or ID read from the coefficient memory 420
The CT conversion coefficient is multiplied by a multiplier 430, the output data of the multiplier 430 is added to the output data of the register 450 by an adder 460, and the cumulative result is stored in the register 450. When the sum-of-products operation is completed, the sum-of-products operation data in the register 450 is stored in the register 470. When the product-sum operation is completed, register 45
The product-sum calculation data of 0 is stored in the register 470.
【0003】0003
【発明が解決しようとする課題】従来の方式では、N個
の入力データの変換のためにN×N回の乗算演算と、(
N−1)×N回の加算演算とを行う必要があるので、演
算量が多く演算回路の規模が大きくなるという欠点があ
った。[Problems to be Solved by the Invention] In the conventional method, N×N multiplication operations are performed to convert N pieces of input data, and (
Since it is necessary to perform addition operations N-1)×N times, there is a drawback that the amount of calculations is large and the scale of the calculation circuit becomes large.
【0004】本発明の目的は、DCTとIDCTの機能
を維持しながら演算量を減らし回路規模を削減させたD
CT装置とIDCT装置を提供することにある。An object of the present invention is to reduce the amount of computation and reduce the circuit scale while maintaining the functions of DCT and IDCT.
Our objective is to provide CT devices and IDCT devices.
【0005】[0005]
【課題を解決するための手段】本発明の離散コサイン変
換装置は、積和演算器を複数個配置して並列演算を行な
わせる離散コサイン変換装置において、N(Nは2のベ
キ乗の数)個の入力データを2個で1組とするN/2組
の組み合わせデータの系列を生成し2個のデータを同時
に出力するデータ組み合わせ器と、該データ組み合わせ
器から出力される2個のデータを加減算する加減算器と
、加減算器の出力データを入力データとするN/2個の
後記積和演算器と、該N/2個の積和演算器から2個ず
つ出力される第1,第2の積和演算データを順次選択す
る選択器とを有し、かつ前記N/2の積和演算器が入力
データと所定の乗算係数を記憶した係数メモリの出力デ
ータを乗算する乗算器と、該乗算器の出力データと後記
第1のレジスタの出力データを加算する加算器と、該加
算器の出力データを格納する第2のレジスタと、該第2
の出力データを格納する前記第1のレジスタと、該第1
のレジスタの出力データを格納する第3および第4のレ
ジスタとを有し、該第3および第4のレジスタの出力デ
ータを前記積和演算器の出力データとする構成を有する
。[Means for Solving the Problems] A discrete cosine transform device of the present invention is a discrete cosine transform device in which a plurality of product-sum calculation units are arranged to perform parallel calculations, and N (N is the number of powers of 2). A data combiner that generates a series of N/2 sets of combined data, each consisting of two pieces of input data, and simultaneously outputs the two pieces of data; An adder/subtracter that performs addition/subtraction, N/2 product-sum calculators (described below) that take the output data of the adders/subtractors as input data, and first and second product-sum calculators that output two each from the N/2 product-sum calculators. a selector that sequentially selects the product-sum calculation data of N/2 product-sum calculation units, and a multiplier for multiplying the input data by the output data of a coefficient memory in which the N/2 product-sum calculation units store predetermined multiplication coefficients; an adder that adds output data of the multiplier and output data of a first register described later; a second register that stores output data of the adder;
the first register storing output data of the first register;
and third and fourth registers for storing output data of the registers, and the output data of the third and fourth registers is configured to be the output data of the product-sum calculator.
【0006】また、本発明の逆離散コサイン変換装置は
、積和演算器を複数個配置して並列演算を行なわせる逆
離散コサイン変換装置において、N(Nは2のベキ乗の
数)個の入力データを入力データとするN/2個の後記
積和演算器と、該N/2個の積和演算器から出力される
第1の積和演算データを順次選択する第1の選択器と、
前記N/2個の積和演算器から出力される第2の積和演
算データを順次選択する第2の選択器と、前記第1と第
2の選択器の出力データを入力データとする加減算器と
を有し、かつ前記積和演算器が入力データと所定の乗算
係数を記憶した係数メモリの出力データを乗算する乗算
器と、該乗算器の出力データと後記第1のレジスタの出
力データを加算する加算器と、該加算器の出力データを
格納する第2のレジスタと、該第2の出力データを格納
する前記第1のレジスタと、該第1のレジスタの出力デ
ータを格納する第3および第4のレジスタとを有し、該
第3および第4のレジスタの出力データを前記積和演算
器の出力データとする構成を有する。Further, the inverse discrete cosine transform device of the present invention is an inverse discrete cosine transform device in which a plurality of product-accumulators are arranged to perform parallel operations. N/2 product-sum calculation units described below that take input data as input data; and a first selector that sequentially selects first product-sum calculation data output from the N/2 product-sum calculation units. ,
a second selector that sequentially selects second product-sum calculation data output from the N/2 product-sum calculation units; and addition/subtraction using the output data of the first and second selectors as input data. and a multiplier for multiplying the input data by the output data of a coefficient memory in which the product-sum calculation unit stores a predetermined multiplication coefficient, and the output data of the multiplier and the output data of the first register described below. a second register that stores output data of the adder; a first register that stores the second output data; and a second register that stores the output data of the first register. 3 and a fourth register, and the output data of the third and fourth registers is used as the output data of the product-sum calculator.
【0007】さらに、本発明の離散コサイン変換および
逆離散コサイン変換装置は、積和演算器を複数個配置し
て並列演算を行なわれる離散コサイン変換,逆離散コサ
イン変換装置において、N(Nは2のベキ乗の数)個の
入力データを2個で1組とするN/2組の組み合わせデ
ータの系列を生成し2個のデータを同時に出力するデー
タ組み合わせ器と、該データ組み合わせ器から出力され
る2個のデータを加減算する第1の加減算器と、該第1
の加減算器の出力データと前記入力データのどちらか一
方を選択する第1の選択器と、該第1の選択器の出力デ
ータを入力データとするN/2個の後記積和演算器と、
該N/2個の積和演算器の第1および第2の出力データ
を順次選択する第2の選択器と、前記N/2個の積和演
算器から出力される第1の積和演算データを順次選択す
る第3の選択器と、前記N/2個の積和演算器から出力
される第2の積和演算データを順次選択する第4の選択
器と、前記第3と第4の選択器の出力データを入力デー
タとする第2の加減算器と、前記第2の選択器の出力デ
ータと前記第2の加減算器の出力データのどちらか一方
を選択する第5の選択器とを有し、かつ前記積和演算器
は入力データと所定の乗算係数を記憶した係数メモリの
出力データを乗算する乗算器と、該乗算器の出力データ
と後記第1のレジスタの出力データを加算する加算器と
、該加算器の出力データを格納する第2のレジスタと、
該第2の出力データを格納する前記第1のレジスタと、
該第1のレジスタの出力データを格納する第3および第
4のレジスタとを有し、該第3,第4のレジスタの出力
データを前記積和演算器の出力データとする構成を有す
る。Furthermore, the discrete cosine transform and inverse discrete cosine transform apparatus of the present invention is a discrete cosine transform and inverse discrete cosine transform apparatus in which a plurality of product-accumulators are arranged to perform parallel operations. a data combiner that generates a series of N/2 sets of combination data in which two pieces of input data (the number of powers of ) are made into one set, and outputs the two pieces of data at the same time; a first adder/subtracter that adds and subtracts two data;
a first selector that selects either the output data of the adder/subtractor and the input data, and N/2 post-described product-sum calculators whose input data is the output data of the first selector;
a second selector that sequentially selects first and second output data of the N/2 product-sum calculators; and a first product-sum calculator output from the N/2 product-sum calculators. a third selector that sequentially selects data; a fourth selector that sequentially selects second product-sum calculation data output from the N/2 product-sum calculation units; a second adder/subtractor that receives the output data of the selector as input data; and a fifth selector that selects either the output data of the second selector or the output data of the second adder/subtractor. and the product-sum calculator includes a multiplier that multiplies input data by output data of a coefficient memory storing a predetermined multiplication coefficient, and adds the output data of the multiplier and the output data of the first register described below. a second register that stores output data of the adder;
the first register storing the second output data;
It has a third and fourth register that stores the output data of the first register, and has a configuration in which the output data of the third and fourth registers is used as the output data of the product-sum calculator.
【0008】[0008]
【作用】N(Nは2のベキ乗)次のDCTは、入力デー
タと出力データをそれぞれ[Operation] N (N is a power of 2) The next DCT converts input data and output data, respectively.
【0009】[0009]
【0010】0010
【0011】である。[0011]
【0012】DCT係数行列Cの各要素には、For each element of the DCT coefficient matrix C,
【001
3】001
3]
【0014】の関係があり、この関係を利用すると式(
2)は、Nが8の場合には式(8)のように変形できる
。There is a relationship as follows, and by using this relationship, the formula (
2) can be transformed into equation (8) when N is 8.
【0015】[0015]
【0016】さらに、式(8)は式(9),(10)の
ように2つの行列式に展開できる。Furthermore, equation (8) can be expanded into two determinants as shown in equations (9) and (10).
【0017】[0017]
【0018】式(9)(10)より、DCT演算は、N
個のデータからなる入力データベクトルの対称の位置に
ある2個の入力データを予め加減算することにより、式
(2)と比べてDCT係数との乗算回数を2分の1に減
らすことができる。From equations (9) and (10), the DCT operation is N
By adding and subtracting in advance two pieces of input data at symmetrical positions of an input data vector consisting of pieces of data, the number of times of multiplication with the DCT coefficient can be reduced to one-half compared to Equation (2).
【0019】以上より、第1の発明のDCT装置は、次
数Nの場合、N個の入力データをデータ組From the above, the DCT device of the first invention can combine N pieces of input data into a data set when the order is N.
【0020】[0020]
【0021】に変換するデータ組み合わせ器と、データ
組の2個のデータを加減算する加減算器と、加減算器の
出力データA data combiner that converts into
【0022】[0022]
【0023】が入力され式(9)と式(10)の演算を
交互に実行し2個の演算結果を出力するN/2個の積和
演算器と、積和演算器から出力されるN個のデータを順
次選択して積和演算器の出力データを並び変えるための
選択器とにより構成できる。その結果、従来方式に比べ
て演算回数と演算回路をそれぞれ半減できる。N/2 product-sum calculators which input the equation (9) and equation (10) alternately and output two calculation results; and a selector for sequentially selecting pieces of data and rearranging the output data of the product-sum calculator. As a result, the number of operations and the number of arithmetic circuits can be reduced by half compared to the conventional method.
【0024】N次のIDCTは、入力データと出力デー
タをそれぞれ[0024] N-order IDCT uses input data and output data respectively.
【0025】[0025]
【0026】式(11)を行列の形式で記述すると、式
(12)のようになる。When equation (11) is written in matrix form, it becomes equation (12).
【0027】[0027]
【0028】ここで、yはN×1の入力データベクトル
、xはN×1の出力データベクトル、DはN×NのID
CT係数行列で、Here, y is an N×1 input data vector, x is an N×1 output data vector, and D is an N×N ID.
In the CT coefficient matrix,
【0029】[0029]
【0030】である。IDCT係数行列Dの各要素には
、[0030] For each element of the IDCT coefficient matrix D,
【0031】[0031]
【0032】の関係があり、この関係を利用すると式(
12)は、Nが8の場合式(15),(16)のように
変形できる。There is a relationship as follows, and by using this relationship, the formula (
12) can be transformed into equations (15) and (16) when N is 8.
【0033】[0033]
【0034】さらに、式(15)は式(17),(18
)のように2つの行列式に展開できる。Furthermore, equation (15) is transformed into equations (17) and (18
) can be expanded into two determinants.
【0035】[0035]
【0036】式(16),(17),(18)より、I
DCT演算は、N個のデータからなる入力データ系列を
偶数番目と奇数番目に分けてDCT係数と積和演算し、
積和演算データを加減算することにより実現でき、かつ
式(12)に比べて乗算回数を2分の1に減らすことが
できる。From formulas (16), (17), and (18), I
DCT operation divides an input data series consisting of N data into even and odd numbers and performs a product-sum operation with DCT coefficients,
This can be realized by adding and subtracting product-sum calculation data, and the number of multiplications can be reduced to one-half compared to equation (12).
【0037】以上より、第2の発明のIDCT装置は、
次数Nの場合、N個の入力データFrom the above, the IDCT device of the second invention has the following features:
For order N, N input data
【0038】[0038]
【0039】を入力とし式(17)と式(18)の演算
を交互に実行し2個の演算結果を出力するN/2個の積
和演算器と、積和演算器から出力されるデータN/2 product-sum calculators that take as input, perform the calculations of equations (17) and (18) alternately, and output two calculation results, and the data output from the product-sum calculators.
【004
0】004
0]
【0041】のように組み合わせるデータ選択器と、1
組の2個のデータを加減算する加減算器により構成でき
る。その結果、従来方式に比べて演算回数と演算回路は
半減できる。A data selector that is combined as shown below, and 1
It can be configured by an adder/subtracter that adds and subtracts two sets of data. As a result, the number of calculations and the calculation circuit can be reduced by half compared to the conventional method.
【0042】また、第3の発明のDCTとIDCT兼用
装置は、第1の発明のDCT装置と第2の発明のIDC
T装置を組み合わせたもので、積和演算器を共通として
、積和演算器のデータの入力部と出力部に選択器を付加
してデータの流れを切り替えることにより、DCT演算
とIDCT演算を実現できるようにしたものである。Further, the DCT and IDCT combined device of the third invention is the DCT device of the first invention and the IDC device of the second invention.
This is a combination of T devices, with a common product-sum calculator, and a selector added to the data input and output parts of the product-sum calculator to switch the data flow, realizing DCT and IDCT calculations. It has been made possible.
【0043】[0043]
【実施例】次に本発明の実施例について図面を参照しな
がら説明する。Embodiments Next, embodiments of the present invention will be described with reference to the drawings.
【0044】図1は第1の発明の実施例を示すブロック
図である。図1において、DCT演算装置はNを8とし
、積和演算器を4個接続してDCT演算を実行する。
入力データFIG. 1 is a block diagram showing an embodiment of the first invention. In FIG. 1, the DCT calculation device executes the DCT calculation by setting N to 8 and connecting four product-sum calculation units. Input data
【0045】[0045]
【0046】は入力端子100に入力される。入力デー
タはデータ組み合わせ器101で2個1組にされて、is input to the input terminal 100. The input data is combined into two sets by the data combiner 101,
【
0047】[
0047
【0048】の順番で出力される。データ組み合わせ器
101の出力データは、加減算器102に入力される。
加減算器102は1個の入力データに対して加算と減算
を実行する。加減算器102から出力される加減算デー
タThey are output in the following order. Output data from the data combiner 101 is input to an adder/subtracter 102. Adder/subtractor 102 performs addition and subtraction on one piece of input data. Addition/subtraction data output from adder/subtractor 102
【0049】[0049]
【0050】は積和演算器110,111,112,1
13に入力される。積和演算器110,111,112
,113にある係数メモリ120,…には、それぞれD
CT係数[0050] are product-sum calculators 110, 111, 112, 1
13. Product-sum calculators 110, 111, 112
, 113, the coefficient memories 120, . . .
CT coefficient
【0051】[0051]
【0052】が格納されている。積和演算器110,1
11,112,113はそれぞれ式(9)と式(10)
の[0052] is stored. Product-sum calculator 110,1
11, 112, and 113 are equation (9) and equation (10), respectively.
of
【0053】[0053]
【0054】を求めるためにDCT係数と入力データの
積和演算を実行する。積和演算器110,111,11
2,113には、アキュムレータとして使用されるレジ
スタ150,160が直列に接続され2個の積和演算を
交互に実行できる構成を有し、また、2個の積和演算結
果を格納するための2個のレジスタ170,180がレ
ジスタ160の出力端子に並列に接続されている。レジ
スタ170,180,…のそれぞれにはDCT演算デー
タIn order to obtain the following, a sum-of-products operation is performed on the DCT coefficients and the input data. Product-sum calculators 110, 111, 11
2,113 has a configuration in which registers 150 and 160 used as accumulators are connected in series and can perform two product-sum operations alternately, and a register for storing the results of the two product-sum operations. Two registers 170 and 180 are connected in parallel to the output terminal of register 160. Each of the registers 170, 180, ... has DCT calculation data.
【0055】[0055]
【0056】が格納される。レジスタ170,180,
…に格納されたDCT演算データは選択器190により
順次選択され、[0056] is stored. registers 170, 180,
The DCT calculation data stored in... are sequentially selected by the selector 190,
【0057】[0057]
【0058】の順番で出力端子200より出力される。The signals are outputted from the output terminal 200 in the following order.
【0059】図2は第2の発明の実施例を示すブロック
図である。図2において、IDCT演算装置はNを8と
し、積和演算器を4個接続してIDCT演算を実行する
。入力データFIG. 2 is a block diagram showing an embodiment of the second invention. In FIG. 2, the IDCT calculation device executes the IDCT calculation by setting N to 8 and connecting four product-sum calculation units. Input data
【0060】[0060]
【0061】は入力端子100に入力される。入力デー
タは並列に接続された4個の積和演算器110,111
,112,113に入力される。積和演算器110,1
11,112,113にある係数メモリ120,…には
、それぞれIDCT係数is input to the input terminal 100. Input data is input to four product-sum calculators 110 and 111 connected in parallel.
, 112, 113. Product-sum calculator 110,1
Coefficient memories 120, .
【0062】[0062]
【0063】が格納される。[0063] is stored.
【0064】積和演算器110,111,112,11
3はそれぞれ式(17)と式(18)のProduct-sum calculators 110, 111, 112, 11
3 are the equations (17) and (18), respectively.
【0065】[0065]
【0066】を求めるためにIDCT係数と入力データ
の積和演算を実行する。積和演算器110,111,1
12,113には、アキュムレータとして使用されるレ
ジスタ150,160が直列に接続され2個の積和演算
を交互に実行できる構成を有し、また、2個の積和演算
結果を格納するための2個のレジスタ170,180が
レジスタ160の出力端子に並列に接続されている。レ
ジスタ170,180…のそれぞれには、積和演算デー
タIn order to obtain the following, a sum-of-products operation is performed on the IDCT coefficients and the input data. Product-sum calculators 110, 111, 1
12 and 113 have a configuration in which registers 150 and 160 used as accumulators are connected in series so that two product-sum operations can be executed alternately, and registers 150 and 160 used as accumulators are used to store the results of the two product-sum operations. Two registers 170 and 180 are connected in parallel to the output terminal of register 160. Each of the registers 170, 180... has product-sum operation data.
【0067】[0067]
【0068】が格納される。レジスタ270,…に格納
された積和演算データは選択器210により、[0068] is stored. The product-sum operation data stored in the registers 270, . . . are selected by the selector 210.
【006
9】006
9]
【0070】の順番で、レジスタ180,…に格納され
た積和演算データは選択器211によりThe product-sum operation data stored in the registers 180, . . . are selected by the selector 211 in the order of
【0071】[0071]
【0072】の順番で選択され、選択器210,211
の出力データは加減算器212に入力され、加減算デー
タSelectors 210 and 211
The output data is input to the adder/subtractor 212, and the added/subtracted data
【0073】[0073]
【0074】が出力端子200より出力される。##EQU1## is output from the output terminal 200.
【0075】図3は第3の発明の実施例を示すブロック
図である。図3において、DCT/IDCT演算装置は
Nを8とした場合、図1と図2を組み合わせてデータの
経路を選択器103,213により切り替えることによ
りDCT演算またはIDCT演算を実行する。FIG. 3 is a block diagram showing an embodiment of the third invention. In FIG. 3, when N is 8, the DCT/IDCT arithmetic device executes a DCT arithmetic operation or an IDCT arithmetic operation by combining FIG. 1 and FIG.
【0076】DCT演算を実行する場合は、選択器10
3,213はそれぞれ加減算器101と選択器190の
出力データを選択し、IDCT演算を実行する場合は、
選択器103,213はそれぞれ入力端子100と加減
算器212の出力データを選択する。When executing the DCT operation, the selector 10
3 and 213 select the output data of the adder/subtractor 101 and the selector 190, respectively, and when performing IDCT operation,
Selectors 103 and 213 select output data from input terminal 100 and adder/subtractor 212, respectively.
【0077】[0077]
【発明の効果】第1の発明の離散コサイン変換装置は、
並列接続された積和演算器にデータ組み合わせ器,加減
算器,選択器を接続し、積和演算器のアキュムレータを
2個直列に接続することにより、全体の演算量と演算回
路を約2分の1に削減でき、かつ演算時間の短縮が実現
できる。[Effects of the Invention] The discrete cosine transform device of the first invention has the following features:
By connecting a data combiner, adder/subtractor, and selector to a product-sum calculator connected in parallel, and connecting two accumulators of the product-sum calculator in series, the overall amount of calculation and calculation circuit can be reduced by about half. 1, and the calculation time can be shortened.
【0078】また第2の発明の逆離散コサイン変換装置
は、並列接続された積和演算器にデータ組み合わせ器,
加減算器,選択器を接続し、積和演算器のアキュムレー
タを2個直列に接続することにより、全体の演算量と演
算回路を約2分の1に削減でき、かつ演算時間の短縮が
実現できる。Further, the inverse discrete cosine transform device of the second invention includes a data combiner, a data combiner, and a product-sum calculator connected in parallel.
By connecting the adder/subtractor and selector and connecting two accumulators of the product-sum calculator in series, the overall amount of calculations and calculation circuits can be reduced to about half, and the calculation time can be shortened. .
【0079】更に第3の発明の離散コサイン変換装置お
よび逆離散コサイン変換装置は、並列接続された積和演
算器にデータ組み合わせ器,加減算器,選択器を接続し
、積和演算器のアキュムレータを2個直列に接続するこ
とにより、全体の演算量と演算回路を約2分の1に削減
できるDCT装置とIDCT装置が構成でき、かつ演算
時間の短縮が実現できる。Furthermore, in the discrete cosine transform device and inverse discrete cosine transform device of the third invention, a data combiner, an adder/subtractor, and a selector are connected to the product-sum calculator connected in parallel, and the accumulator of the product-sum calculator is connected in parallel. By connecting two devices in series, a DCT device and an IDCT device can be constructed that can reduce the total calculation amount and calculation circuit to about half, and the calculation time can be shortened.
【図面の簡単な説明】[Brief explanation of drawings]
【図1】第1の発明の(DCT演算装置)の一実施例を
示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a (DCT calculation device) of a first invention.
【図2】第2の発明の(IDCT演算装置)の一実施例
を示すブロック図である。FIG. 2 is a block diagram showing an embodiment of the (IDCT calculation device) of the second invention.
【図3】第3の発明の(DCT/IDCT演算装置)の
一実施例を示すブロック図である。FIG. 3 is a block diagram showing an embodiment of the (DCT/IDCT calculation device) of the third invention.
【図4】従来例を示すブロック図である。FIG. 4 is a block diagram showing a conventional example.
100,400 入力端子
101 データ組み合わせ器
102,212 加減算器
110〜113,
410〜417 積和演算器
120,420 係数メモリ
130,430 乗算器
140,460 加算器
150〜180,450,470 レジスタ19
0,210,211,213,480 選択器2
00,481 出力端子100,400 Input terminal 101 Data combiner 102,212 Adder/subtractor 110-113, 410-417 Product-sum calculator 120,420 Coefficient memory 130,430 Multiplier 140,460 Adder 150-180,450,470 Register 19
0,210,211,213,480 Selector 2
00,481 Output terminal
Claims (3)
を行なわせる離散コサイン変換装置において、N(Nは
2のベキ乗の数)個の入力データを2個で1組とするN
/2組の組み合わせデータの系列を生成し2個のデータ
を同時に出力するデータ組み合わせ器と、該データ組み
合わせ器から出力される2個のデータを加減算する加減
算器と、加減算器の出力データを入力データとするN/
2個の後記積和演算器と、該N/2個の積和演算器から
2個ずつ出力される第1,第2の積和演算データを順次
選択する選択器とを有し、かつ前記N/2の積和演算器
が入力データと所定の乗算係数を記憶した係数メモリの
出力データを乗算する乗算器と、該乗算器の出力データ
と後記第1のレジスタの出力データを加算する加算器と
、該加算器の出力データを格納する第2のレジスタと、
該第2の出力データを格納する前記第1のレジスタと、
該第1のレジスタの出力データを格納する第3および第
4のレジスタとを有し、該第3および第4のレジスタの
出力データを前記積和演算器の出力データとする構成を
有することを特徴とする離散コサイン変換装置。Claim 1: A discrete cosine transform device in which a plurality of product-sum calculation units are arranged to perform parallel calculations, in which N (N is a power of 2) input data are made into a set of two.
/A data combiner that generates two sets of combined data series and outputs the two data at the same time, an adder/subtractor that adds and subtracts the two data output from the data combiner, and inputs the output data of the adder/subtractor. N/ as data
It has two product-sum calculation units described below, and a selector that sequentially selects the first and second product-sum calculation data output two by two from the N/2 product-sum calculation units, and the A multiplier in which an N/2 product-sum calculator multiplies input data by the output data of a coefficient memory storing a predetermined multiplication coefficient, and an addition in which the output data of the multiplier is added to the output data of the first register described later. a second register storing output data of the adder;
the first register storing the second output data;
The method further includes third and fourth registers that store output data of the first register, and has a configuration in which the output data of the third and fourth registers is output data of the product-sum calculator. Characteristic discrete cosine transform device.
を行なわせる逆離散コサイン変換装置において、N(N
は2のベキ乗の数)個の入力データを入力データとする
N/2個の後記積和演算器と、該N/2個の積和演算器
から出力される第1の積和演算データを順次選択する第
1の選択器と、前記N/2個の積和演算器から出力され
る第2の積和演算データを順次選択する第2の選択器と
、前記第1と第2の選択器の出力データを入力データと
する加減算器とを有し、かつ前記積和演算器が入力デー
タと所定の乗算係数を記憶した係数メモリの出力データ
を乗算する乗算器と、該乗算器の出力データと後記第1
のレジスタの出力データを加算する加算器と、該加算器
の出力データを格納する第2のレジスタと、該第2の出
力データを格納する前記第1のレジスタと、該第1のレ
ジスタの出力データを格納する第3および第4のレジス
タとを有し、該第3および第4のレジスタの出力データ
を前記積和演算器の出力データとする構成を有すること
を特徴とする逆離散コサイン変換装置。2. In an inverse discrete cosine transform device in which a plurality of product-sum calculation units are arranged to perform parallel calculations, N(N
is a power of 2) input data as input data, and N/2 product-sum calculation units described below, and first product-sum calculation data output from the N/2 product-sum calculation units. a first selector that sequentially selects the second product-sum calculation data outputted from the N/2 product-sum calculation units; a multiplier having an adder/subtracter that takes output data of the selector as input data, and in which the product-sum calculator multiplies the input data and output data of a coefficient memory storing a predetermined multiplication coefficient; Output data and postscript 1
an adder that adds output data of the registers, a second register that stores the output data of the adder, the first register that stores the second output data, and an output of the first register. The inverse discrete cosine transform has a configuration in which it has third and fourth registers for storing data, and output data of the third and fourth registers is output data of the product-sum calculator. Device.
を行なわれる離散コサイン変換,逆離散コサイン変換装
置において、N(Nは2のベキ乗の数)個の入力データ
を2個で1組とするN/2組の組み合わせデータの系列
を生成し2個のデータを同時に出力するデータ組み合わ
せ器と、該データ組み合わせ器から出力される2個のデ
ータを加減算する第1の加減算器と、該第1の加減算器
の出力データと前記入力データのどちらか一方を選択す
る第1の選択器と、該第1の選択器の出力データを入力
データとするN/2個の後記積和演算器と、該N/2個
の積和演算器の第1および第2の出力データを順次選択
する第2の選択器と、前記N/2個の積和演算器から出
力される第1の積和演算データを順次選択する第3の選
択器と、前記N/2個の積和演算器から出力される第2
の積和演算データを順次選択する第4の選択器と、前記
第3と第4の選択器の出力データを入力データとする第
2の加減算器と、前記第2の選択器の出力データと前記
第2の加減算器の出力データのどちらか一方を選択する
第5の選択器とを有し、かつ前記積和演算器は入力デー
タと所定の乗算係数を記憶した係数メモリの出力データ
を乗算する乗算器と、該乗算器の出力データと後記第1
のレジスタの出力データを加算する加算器と、該加算器
の出力データを格納する第2のレジスタと、該第2の出
力データを格納する前記第1のレジスタと、該第1のレ
ジスタの出力データを格納する第3および第4のレジス
タとを有し、該第3,第4のレジスタの出力データを前
記積和演算器の出力データとする構成を有することを特
徴とする離散コサイン変換装置および逆離散コサイン変
換装置。3. In a discrete cosine transform or inverse discrete cosine transform device in which a plurality of product-accumulators are arranged to perform parallel operations, N (N is a power of 2) input data can be converted into two pieces of input data. a data combiner that generates a series of N/2 sets of combined data to be made into one set and outputs two pieces of data at the same time; a first adder/subtractor that adds and subtracts the two pieces of data output from the data combiner; , a first selector that selects either the output data of the first adder/subtractor or the input data, and N/2 post-described product sums whose input data is the output data of the first selector. a second selector that sequentially selects the first and second output data of the N/2 product-sum calculators; and a second selector that sequentially selects the first and second output data of the N/2 product-sum calculators; a third selector that sequentially selects product-sum calculation data; and a second selector that sequentially selects the product-sum calculation data of N/2 product-sum calculation units;
a fourth selector that sequentially selects product-sum operation data; a second adder/subtractor that receives output data of the third and fourth selectors as input data; and an output data of the second selector. a fifth selector that selects either one of the output data of the second adder/subtractor, and the product-sum calculator multiplies the input data and the output data of a coefficient memory storing a predetermined multiplication coefficient. a multiplier, the output data of the multiplier, and the first
an adder that adds output data of the registers, a second register that stores the output data of the adder, the first register that stores the second output data, and an output of the first register. A discrete cosine transform device comprising third and fourth registers for storing data, and configured to use output data of the third and fourth registers as output data of the product-sum calculator. and an inverse discrete cosine transform device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3072662A JP2822684B2 (en) | 1991-04-05 | 1991-04-05 | Discrete cosine transform device and inverse discrete cosine transform device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3072662A JP2822684B2 (en) | 1991-04-05 | 1991-04-05 | Discrete cosine transform device and inverse discrete cosine transform device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH04307662A true JPH04307662A (en) | 1992-10-29 |
JP2822684B2 JP2822684B2 (en) | 1998-11-11 |
Family
ID=13495806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3072662A Expired - Lifetime JP2822684B2 (en) | 1991-04-05 | 1991-04-05 | Discrete cosine transform device and inverse discrete cosine transform device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2822684B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010086547A (en) * | 1998-10-06 | 2010-04-15 | Texas Instr Inc <Ti> | Multiplyer/accumulator unit |
CN111538946A (en) * | 2020-04-24 | 2020-08-14 | 合肥工业大学 | Quick verification system for operation result |
CN111538945A (en) * | 2020-04-24 | 2020-08-14 | 合肥工业大学 | A fast verification system for operation results based on reconfigurable dish calculation unit |
-
1991
- 1991-04-05 JP JP3072662A patent/JP2822684B2/en not_active Expired - Lifetime
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010086547A (en) * | 1998-10-06 | 2010-04-15 | Texas Instr Inc <Ti> | Multiplyer/accumulator unit |
CN111538946A (en) * | 2020-04-24 | 2020-08-14 | 合肥工业大学 | Quick verification system for operation result |
CN111538945A (en) * | 2020-04-24 | 2020-08-14 | 合肥工业大学 | A fast verification system for operation results based on reconfigurable dish calculation unit |
CN111538945B (en) * | 2020-04-24 | 2023-03-14 | 合肥工业大学 | Operation result quick checking system based on reconfigurable dish calculation unit |
Also Published As
Publication number | Publication date |
---|---|
JP2822684B2 (en) | 1998-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2646778B2 (en) | Digital signal processor | |
JP3697717B2 (en) | Two-dimensional discrete cosine transform device and two-dimensional inverse discrete cosine transform device | |
JP2866754B2 (en) | Arithmetic processing unit | |
US4791598A (en) | Two-dimensional discrete cosine transform processor | |
US4601006A (en) | Architecture for two dimensional fast fourier transform | |
JPH04242860A (en) | Arithmetic device | |
JPH04242861A (en) | Inner product arithmetic circuit | |
JPH06103301A (en) | (8x8) discrete cosine transforming circuit and (8x8) discrete cosine inverse transforming circuit | |
Buijs et al. | Implementation of a fast Fourier transform (FFT) for image processing applications | |
JP2964172B2 (en) | DCT matrix operation circuit | |
JP2725544B2 (en) | DCT and inverse DCT operation device and operation method thereof | |
JPH04307662A (en) | Discrete cosine converter and adverse discrete cosine converter | |
US6023719A (en) | Signal processor and method for fast Fourier transformation | |
KR100444729B1 (en) | Fast fourier transform apparatus using radix-8 single-path delay commutator and method thereof | |
JP2646844B2 (en) | Discrete cosine transformer | |
KR940004478A (en) | 2D 4X4 Discrete Cosine Transform Circuit and 2D 4X4 Discrete Cosine Transform Circuit | |
JP3697716B2 (en) | Matrix data multiplier | |
JPS6373472A (en) | Product sum arithmetic method | |
JP3684314B2 (en) | Complex multiplier and complex correlator | |
JP2696903B2 (en) | Numerical calculator | |
JP3970442B2 (en) | Discrete cosine transform device and inverse discrete cosine transform device | |
JPH05174046A (en) | Arithmetic circuit | |
JP3697720B2 (en) | Digital signal processor device | |
JPH0540776A (en) | Two-dimensional DCT matrix arithmetic circuit | |
JP3396818B2 (en) | DCT operation circuit and IDCT operation circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19980804 |