JPS623370A - Multiplication accumulation circuit - Google Patents
Multiplication accumulation circuitInfo
- Publication number
- JPS623370A JPS623370A JP14148285A JP14148285A JPS623370A JP S623370 A JPS623370 A JP S623370A JP 14148285 A JP14148285 A JP 14148285A JP 14148285 A JP14148285 A JP 14148285A JP S623370 A JPS623370 A JP S623370A
- Authority
- JP
- Japan
- Prior art keywords
- input
- register
- arithmetic
- circuit
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Complex Calculations (AREA)
Abstract
Description
【発明の詳細な説明】
〔発明の属する分野〕
本発明は乗算器と加減算器を用いてデジタル信号を高速
に処理する乗算累積回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of the Invention] The present invention relates to a multiplication/accumulation circuit that processes digital signals at high speed using multipliers and adders/subtractors.
乗算累積回路は、ΣXt *yiおよびF=AxBfC
など主に行列演算やベクトル演算に代表される数式の実
行を必要とする情報処理装置、医療機器での高速フーリ
エ変換(FFT)やデジタルフィルタ処理に応用されて
いる。The multiply-accumulate circuit is ΣXt *yi and F=AxBfC
It is mainly applied to fast Fourier transform (FFT) and digital filter processing in information processing devices and medical equipment that require the execution of mathematical expressions such as matrix operations and vector operations.
この種従来の乗算累積回路としては、2つの演算データ
の乗算を行う乗算器と、この乗算器の出力の累積を行い
、外部に出力する加減算器とで演算処理するものが知ら
れている。As a conventional multiplication/accumulation circuit of this type, one is known that performs arithmetic processing using a multiplier that multiplies two pieces of arithmetic data and an adder/subtracter that accumulates the output of this multiplier and outputs the accumulated output to the outside.
かかる従来の乗算累積回路の一例を第3図に示し2 そ
の動作を第4図の動作タイムチャートを参照して説明す
る。ここでは、演算処理として2次方程式(Y=AX2
+BX+C)を−例ニアげる。An example of such a conventional multiplication/accumulation circuit is shown in FIG. 3. Its operation will be explained with reference to the operation time chart of FIG. 4. Here, we use a quadratic equation (Y=AX2
+BX+C) is given as a -example.
ここで、lは制御端子、2および3は入力端子、4は出
力端子、5はスキャン回路、6はプログラムメモリ、7
および8は入力レジスタ、9は0レジスタ、10は選択
回路、11は乗算器、12は加減算器、13は出力レジ
スタである。Here, l is a control terminal, 2 and 3 are input terminals, 4 is an output terminal, 5 is a scan circuit, 6 is a program memory, and 7
and 8 is an input register, 9 is a 0 register, 10 is a selection circuit, 11 is a multiplier, 12 is an adder/subtractor, and 13 is an output register.
まず、演算に先立って、2つの入力レジスタ7.8には
外部(図示しないが1例えばホストプロセッサ)よりそ
れぞれの入力端子2.3を経由して同じ数の変数値と定
数値が入力される0次に外部より入力端子lを経由して
演算指令信号aが入力されると、スキャン回路5は、予
め演算シーケーンスが組み入れられたプログラムメモリ
6の内容01〜C5を読み出して、演算処理を進める。First, prior to the calculation, the same number of variable values and constant values are input to the two input registers 7.8 from the outside (not shown, for example, a host processor) via their respective input terminals 2.3. 0 Next, when an arithmetic command signal a is input from the outside via the input terminal l, the scan circuit 5 reads out the contents 01 to C5 of the program memory 6 in which an arithmetic sequence has been incorporated in advance, and proceeds with the arithmetic processing. .
この演算処理の行程は、乗算器11では、入力レジスタ
7.8の変数値と定数値の乗算、加減算器12では乗算
器11の出力dと選択回路10で選択した0レジスタ9
あるいは加減算器12の出力eとの加減算をそれぞれ並
行し数式が完了するまである回数繰り返し、演算結果f
を出力レジスタ13を経由して、出力端子4へ出力して
完結する。第1表に2次方程式の演算処理の行程を示す
。In the multiplier 11, the variable value of the input register 7.8 is multiplied by the constant value, and in the adder/subtractor 12, the output d of the multiplier 11 is multiplied by the 0 register 9 selected by the selection circuit 10.
Alternatively, addition and subtraction with the output e of the adder/subtractor 12 are repeated a certain number of times until the formula is completed, and the calculation result f
is output to the output terminal 4 via the output register 13, and the process is completed. Table 1 shows the calculation process for quadratic equations.
第1表
ところが、このような乗算累積回路では、累積の初期値
を求めるためにOを記憶するハードウェアとしての0レ
ジスタ9を設け、変数側の入力レジスタ7に余分な値(
1)を記憶し、補助的な演算処理、例えばCXl+0を
行うことが必要となり、演算時間が長くなることになる
。特に、連続的に数式を処理する場合には、この余分な
処理が積み重なるため、演算時間が更に延びてしまうこ
とになり、回路としての処理使方が低下する欠点があっ
た。Table 1 However, in such a multiplication accumulation circuit, a 0 register 9 is provided as hardware for storing O in order to obtain the initial value of accumulation, and an extra value (
1) and perform auxiliary arithmetic processing, such as CXl+0, which increases the computation time. In particular, when formulas are processed continuously, this extra processing accumulates, further prolonging the computation time, which has the disadvantage of reducing the processing efficiency of the circuit.
そこで1本発明の目的は、上述した欠点を除去し、演算
時間を短縮することができる乗算累積回路を提供するこ
とにある。、1
〔発明の要点〕
かかる目的を達成するために、本発明は2つの入力レジ
スタと、その一方の入力レジスタの出力を受ける補助レ
ジスタとによって演算入力データ 1を記憶
するようにし、この補助レジスタに累積の
゛初期値を記憶させることによって演算時間を短縮
1.暇させる。SUMMARY OF THE INVENTION An object of the present invention is to provide a multiplication/accumulation circuit that can eliminate the above-mentioned drawbacks and shorten calculation time. , 1 [Summary of the Invention] In order to achieve the above object, the present invention stores calculation input data 1 using two input registers and an auxiliary register that receives the output of one of the input registers, and stores the operation input data 1 in the auxiliary register. cumulative to
゛Reduced calculation time by memorizing initial values
1. Let me have some free time.
以下に図面を参照して本発明の詳細な説明す
“る。The following is a detailed description of the invention with reference to the drawings.
“Ru.
本発明の一実施例を第1図に示し、その動作夕
]゛。An embodiment of the present invention is shown in FIG.
]゛.
イムチャートを第2図に示す。The time chart is shown in Figure 2.
ここで、第3図と同様の個所には同一符号を付してその
説明は省略する0本発明では、一方の入力レジスタ8の
出力を補助レジスター4に供給し。Here, the same parts as in FIG. 3 are denoted by the same reference numerals, and the explanation thereof will be omitted. In the present invention, the output of one input register 8 is supplied to the auxiliary register 4.
妓初に入力された累積の初期値を格納する。補助レジス
ター4の出力を選択回路10に供給する。Stores the cumulative initial value input at the beginning. The output of the auxiliary register 4 is supplied to the selection circuit 10.
プログラムメモリ6からの制御信号C2〜C5を、それ
ぞれ、入力レジスタ7と8、選択回路10、乗算器11
、加減算器12.出力レジスタ13に供給する。The control signals C2 to C5 from the program memory 6 are input to the input registers 7 and 8, the selection circuit 10, and the multiplier 11, respectively.
, adder/subtractor 12. It is supplied to the output register 13.
つぎに、演算処理の一例として、2次方程式(Y=AX
2+BX+C) を例にあげて第1図の乗算累積回路の
動作を説明する。Next, as an example of arithmetic processing, we will use the quadratic equation (Y=AX
2+BX+C) as an example, the operation of the multiplication/accumulation circuit shown in FIG. 1 will be explained.
まず、演算に先だって、数式に従い整列された演算デー
タは外部1例えばホストプロセッサ(図示せず)から入
力端子2を経由して入力レジスタ7に2つの変数値x2
およびXを供給し、入力端子3を経由して入力レジスタ
8と補助レジスタ14に供給し、これらレジスタ8およ
び13に合計で3つの定数値A&BおよびCを格納する
。この入力操作により、入力レジスタ8には後より入力
された2つの定数値AおよびBが保持されて、最初に入
力された累積の初期値Cが補助レジスタ14に記憶され
る。First, prior to calculation, calculation data arranged according to a mathematical formula is transferred from an external device 1, for example, a host processor (not shown), to an input register 7 via an input terminal 2, and input two variable values x2.
and X are supplied to the input register 8 and the auxiliary register 14 via the input terminal 3, and a total of three constant values A&B and C are stored in these registers 8 and 13. As a result of this input operation, the two constant values A and B that were input later are held in the input register 8, and the cumulative initial value C that was input first is stored in the auxiliary register 14.
次に、外部より、制御端子lを経由して、第2図に示す
ような演算指令信号aが入力されると、スキャン回路5
は、第2図に示すスキャン信号すのタイミングで、予め
演算シーケンスが組み込まれたプログラムメモリ6の内
容C8〜C5を読み出して、演算処理を進め、補助レジ
スタ14は記憶の更新を中止する。この演算処理の行程
は。Next, when an arithmetic command signal a as shown in FIG. 2 is input from the outside via the control terminal l, the scan circuit 5
At the timing of the scan signal shown in FIG. 2, the contents C8 to C5 of the program memory 6 in which the calculation sequence has been previously incorporated are read out, the calculation processing is proceeded, and the auxiliary register 14 stops updating the memory. What is the process of this calculation process?
第2図に示すように、乗算器11では入力レジスタ7.
8の変数値X2.Xと定数値A、Bとの乗算AX2
、BX、加減算器12では乗算器11の出力dと選択回
路lOで選択した補助レジスタ14(最初の演算時のみ
選ばれる)あるいは加減算器12の出力eとの加減算を
それぞれに並行し、数式が完了するまで、ある回数繰り
返す、加減算器12からの演算結果fを出力レジスタ1
3を経由し、出力端子4へ出力して演算を完結する。第
2表に2次方程式の演算処理の行程を示す。As shown in FIG. 2, in the multiplier 11, input registers 7.
8 variable value X2. Multiplication of X by constant values A and B AX2
, BX, the adder/subtractor 12 performs addition/subtraction between the output d of the multiplier 11 and the auxiliary register 14 (selected only at the first operation) selected by the selection circuit 1O or the output e of the adder/subtractor 12 in parallel, and the formula is The operation result f from the adder/subtractor 12 is output to the output register 1, which is repeated a certain number of times until completion.
3, and is output to the output terminal 4 to complete the calculation. Table 2 shows the calculation process for quadratic equations.
第 2 表
本発明では第2表に示すように、従来演算により求めて
いた累積の初期値を演算する前に補助レジスタ14に記
憶したことによって、演算時間を短縮できる。Table 2 In the present invention, as shown in Table 2, the calculation time can be shortened by storing the initial value of accumulation, which was conventionally calculated, in the auxiliary register 14 before calculation.
以上から明らかなように、本発明によれば、2つの入力
レジスタと、その一方の入力レジスタの出力を受ける補
助レジスタとによって演算入力データを記憶するため、
累積の初期値を演算で求める必要がなくなり、以て演算
時間を短縮できる効果がある。As is clear from the above, according to the present invention, calculation input data is stored using two input registers and an auxiliary register that receives the output of one of the input registers.
There is no need to calculate the initial value of accumulation, which has the effect of shortening the calculation time.
第1図は本発明の一実施例を示すブロック図、
第2図は第1図示の実施例の動作タイムチャート 図、
第3図は従来の乗算累積回路の一例を示すブロック図、
第4図は従来の乗算累積回路の動作タイムチャート図で
ある。
!・・・制御端子。
2.3・・・入力端子、
4・・・出力端子、
5・・・スキャン回路、
6・・・プログラムメモリ、
7.8・・・入力レジスタ、′−:・
9・・・Oレジスタ、
lO・・・選択回路、
11・・・乗算器、
12・・・加減算器、
〉ト滓69月凍オC寸fBB、2のプロ、70第1図
−へ h 聾 −
(d −o θ 、 θ (() Q
% 、を建東の衆耳取手貴riJΣ各のっ一ローフの
第3図FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is an operation time chart of the embodiment shown in FIG. 1. FIG. 3 is a block diagram showing an example of a conventional multiplication/accumulation circuit. 1 is an operation time chart of a conventional multiplication/accumulation circuit. ! ...Control terminal. 2.3...Input terminal, 4...Output terminal, 5...Scan circuit, 6...Program memory, 7.8...Input register,'-:・9...O register, lO...selection circuit, 11... multiplier,
12...addition/subtraction device, 〉To 69 month freezing o C dimension fBB, 2 pro, 70 Fig. 1 - h deaf - (d -o θ, θ (() Q
%, the third figure of each Noichi loaf of Kento's popular ear ToridekiriJΣ
Claims (1)
する回路において、 前記演算データを記憶する2つの入力レジスタと、該2
つの入力レジスタの一方の出力を記憶する補助レジスタ
とで構成された記憶回路と、前記2つの入力レジスタの
出力の乗算を行う乗算器と、該乗算器の出力と累積値と
を累積する加減算器と、前記補助レジスタの出力と前記
加減算器の出力とのいずれかを選択する選択回路とで構
成された演算回路と、 前記記憶回路および前記演算回路を制御するプログラム
メモリと、該プログラムメモリの内容を読み出すスキャ
ン回路とで構成された制御回路と を具えたことを特徴とする乗算累積回路。 2)特許請求の範囲第1項記載の乗算累積回路において
、前記補助レジスタに初期の累積値を記憶させることを
特徴とする乗算累積回路。[Claims] 1) A circuit that multiplies and then accumulates calculation data input from the outside, comprising: two input registers that store the calculation data;
a storage circuit configured with an auxiliary register that stores the output of one of the two input registers, a multiplier that multiplies the outputs of the two input registers, and an adder/subtractor that accumulates the output of the multiplier and the cumulative value. and a selection circuit that selects either the output of the auxiliary register or the output of the adder/subtractor, a program memory that controls the storage circuit and the arithmetic circuit, and the contents of the program memory. What is claimed is: 1. A multiplication/accumulation circuit, comprising: a scan circuit for reading out a control circuit; 2) The multiplication and accumulation circuit according to claim 1, wherein the auxiliary register stores an initial accumulation value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14148285A JPS623370A (en) | 1985-06-29 | 1985-06-29 | Multiplication accumulation circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14148285A JPS623370A (en) | 1985-06-29 | 1985-06-29 | Multiplication accumulation circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS623370A true JPS623370A (en) | 1987-01-09 |
| JPH031700B2 JPH031700B2 (en) | 1991-01-11 |
Family
ID=15292925
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14148285A Granted JPS623370A (en) | 1985-06-29 | 1985-06-29 | Multiplication accumulation circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS623370A (en) |
-
1985
- 1985-06-29 JP JP14148285A patent/JPS623370A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPH031700B2 (en) | 1991-01-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4949292A (en) | Vector processor for processing recurrent equations at a high speed | |
| Hao et al. | A three-dimensional DFT algorithm using the fast Hartley transform | |
| US8909687B2 (en) | Efficient FIR filters | |
| JPS6051733B2 (en) | Exponential function calculation device | |
| JPS5834037B2 (en) | address calculation device | |
| JPH031700B2 (en) | ||
| JPS6243774A (en) | Data processor | |
| JP2960595B2 (en) | Digital signal processor | |
| JP2696903B2 (en) | Numerical calculator | |
| JP2953918B2 (en) | Arithmetic unit | |
| KR930003410B1 (en) | Data processing apparatus having high-sped reference of stack data | |
| JPS63136710A (en) | Digital signal processing circuit | |
| JPH0652215A (en) | Matrix arithmetic processor | |
| JPS6162174A (en) | Information processor | |
| SU511590A1 (en) | Device for dividing numbers | |
| JPH06216715A (en) | Digital filter | |
| JPS5936781B2 (en) | Inner and outer integral methods of digital differential analyzer | |
| JPH04111517A (en) | Digital signal processing circuit | |
| JP3074910B2 (en) | Division device | |
| JPH0646399B2 (en) | Digital signal processing circuit | |
| JPH037971B2 (en) | ||
| JPS5985539A (en) | Division processor | |
| JPH01163830A (en) | Digital signal processor | |
| JPH06196967A (en) | Arithmetic processing method of digital filter | |
| JPS61138332A (en) | Digital operating circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |