JPH04148231A - Arithmetic circuit - Google Patents

Arithmetic circuit

Info

Publication number
JPH04148231A
JPH04148231A JP27026890A JP27026890A JPH04148231A JP H04148231 A JPH04148231 A JP H04148231A JP 27026890 A JP27026890 A JP 27026890A JP 27026890 A JP27026890 A JP 27026890A JP H04148231 A JPH04148231 A JP H04148231A
Authority
JP
Japan
Prior art keywords
output
arithmetic
register
bits
selector
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
JP27026890A
Other languages
Japanese (ja)
Inventor
Hiromi Ando
安藤 博美
Tomoyuki Kishi
智之 岸
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP27026890A priority Critical patent/JPH04148231A/en
Publication of JPH04148231A publication Critical patent/JPH04148231A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the number of operation steps at the time of accumulation, and to attain the high speed arithmetic processing by inputting the output of an arithmetic computing element to a register circuit after shifting it in a prescribed direction by a selector with a program instruction. CONSTITUTION:The output of the arithmetic computing element 27 is selected at every n-bits based on the program instruction, and the result of this selection is inputted to the prescribed input bit position of the register circuit 31. Namely, the selectors 28 to 30 are switched by the program instruction, and n-bits of the output of the arithmetic computing element 27 are inputted to the register circuit 31 after being shifted in the prescribed direction. Thus, the number of the operation steps at the time of the accumulation is reduced, and the high speed operation can be attained.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ディジタル信号処理プロセッサ等に設けられ
る演算回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an arithmetic circuit provided in a digital signal processor or the like.

(従来の技術) 従来、このような分野の技術としては、例えばANAL
OG  DEVICES社カタロク「ADSP−210
0ユーザ′−ズ・マニュアル」(1986)P、20−
27に記載されるものかあった。
(Prior art) Conventionally, as a technology in this field, for example, ANAL
OG DEVICES Catalog “ADSP-210
0 User's Manual" (1986) P, 20-
There was something described in 27.

以下、その構成を図を用いて説明する。The configuration will be explained below using figures.

第2図は、従来の演算回路の一構成例を示すブロック図
である。
FIG. 2 is a block diagram showing an example of the configuration of a conventional arithmetic circuit.

この演算回路は、入力データパス1.2と出力データバ
ス3との間に接続され、該入力データバス1,2には、
レジスタ4.5及び16ビット並列乗算器6からなる乗
算ブロックが接続されている。この乗算ブロックには、
累算用の40ビット加・減算器7が接続され、さらにそ
の出力側には、セレクタ8〜10を介して40ビットの
レジスタ回路11が接続されている。レジスタ回路11
は、下位16ビットのレジスタ11−2、上位16ビッ
トのレジスタ11−1、及び上位拡張8ビットのレジス
タ11−0より構成されている。レジスタ回#111は
、セレクタ12及び出力バッファ16を介して入力デー
タバス2に接続されると共に、出力バッファ13〜15
を介して出力データバス3に接続されている。
This arithmetic circuit is connected between an input data path 1.2 and an output data bus 3, and the input data buses 1, 2 include
A multiplication block consisting of a register 4.5 and a 16-bit parallel multiplier 6 is connected. This multiplication block contains
A 40-bit adder/subtractor 7 for accumulation is connected, and a 40-bit register circuit 11 is further connected to its output side via selectors 8-10. Register circuit 11
is composed of a lower 16-bit register 11-2, an upper 16-bit register 11-1, and an upper extended 8-bit register 11-0. Register circuit #111 is connected to input data bus 2 via selector 12 and output buffer 16, and is connected to output buffers 13 to 15.
It is connected to the output data bus 3 via.

以上の構成において、入力データパス1.2からの16
ビットパラレルデータは、レジスタ4゜5に入り、乗算
器6の入力端子XI、YIに入力される。乗算器6で乗
算した32ビットの乗算積は、出力端子Pから出力され
、加・減算器7へ入力されてレジスタ回路11内のデー
タと加・減算される。また、16ビットを越えるデータ
の乗算が行えるように、乗算器6の入力端子XI、YI
には、2つの補数、またはバイナリ−フォーマットのデ
ータを入力できる。この事により、プログラム命令に基
づき、2つの補数同士の乗算、バイナリ−と2の補数の
ミックス乗算、及びバイナリ−同士の乗算が行える。
In the above configuration, the input data path 1.2 to 16
The bit parallel data enters the register 4.5 and is input to the input terminals XI and YI of the multiplier 6. The 32-bit product multiplied by the multiplier 6 is output from the output terminal P, input to the adder/subtracter 7, and added to/subtracted from the data in the register circuit 11. In addition, input terminals XI and YI of the multiplier 6 are provided so that data exceeding 16 bits can be multiplied.
can accept data in two's complement or binary format. This allows two's complement multiplication, mixed binary and two's complement multiplication, and binary multiplication to be performed based on program instructions.

ここで、16ビットを越える32ビット長同士の乗算に
゛ついて考える。通常、32ビット同士の乗算を行って
も、この演算を次の演算処理に使用するため、乗算結果
の上位32ビットだけを必要とする場合が多い。そこで
、この32ビット同士の乗算で32ビットの出力を得る
ことを考える。
Here, we will consider multiplication between 32-bit lengths exceeding 16 bits. Normally, even if 32 bits are multiplied, only the upper 32 bits of the multiplication result are often needed because this operation is used for the next operation. Therefore, consider obtaining a 32-bit output by multiplying these 32 bits together.

例えば、32ビットのデータX(Xの下位16ビットX
O,Xの上位16ビットXi)と、32ビットのデータ
Y(Yの下位16ビットYO,Yの上位16ビットYl
)により、xxy=zを行つ。
For example, 32 bits of data X (lower 16 bits of
O, the upper 16 bits of X
), perform xxy=z.

第3図は、16ビット並列乗算器を用いた32ビット乗
算方法を示す図である。この図に示すように、まず初め
にデータX、Yの下位16ビットのxoxyoの乗算を
行い、その結果をレジスタ11−0.11−1.11−
2に格納する。そして、レジスタ11−1のデータをセ
レクタ12、出力バッファ16、入力データバス2、及
びセレクタ10を経由してレジスタ11−2へ転送し、
同様にレジスタ11−0のデータをレジスタ11−1へ
転送する(16ビット右シフト操作)。
FIG. 3 is a diagram showing a 32-bit multiplication method using a 16-bit parallel multiplier. As shown in this figure, first, the lower 16 bits of data X and Y are multiplied by xoxyo, and the result is multiplied by
Store in 2. Then, the data in the register 11-1 is transferred to the register 11-2 via the selector 12, the output buffer 16, the input data bus 2, and the selector 10,
Similarly, data in register 11-0 is transferred to register 11-1 (16-bit right shift operation).

次に、データX、Yの上位ビットXi、Ylと下位ビッ
トxo、yoの乗算を交互(XIXYO。
Next, the upper bits Xi, Yl of data X, Y are multiplied by the lower bits xo, yo alternately (XIXYO).

X0XYI>に行い、この乗算結果とレジスタ回路11
内のデータを加・減算器7で累算する。その後、前記の
16ビット右シフト操作と同様に、レジスタ11−1の
データをレジスタ11−2へ、レジスタ11−〇のデー
タをレジスタ11−1へ転送する。最後に、データX、
Yの上位ビットX1、Ylの乗算を行い、この乗算結果
とレジスタ回路11内のデータとを加・減算器7で累算
し、演算が終了する。この演算結果は、出力データバス
3を介してメモリ等へ転送される。
X0XYI>, and this multiplication result and register circuit 11
The data within is accumulated by the adder/subtractor 7. Thereafter, similarly to the 16-bit right shift operation described above, the data in register 11-1 is transferred to register 11-2, and the data in register 11-0 is transferred to register 11-1. Finally, data X,
The upper bits X1 and Yl of Y are multiplied, and the result of this multiplication and the data in the register circuit 11 are accumulated by the adder/subtractor 7, and the operation is completed. This calculation result is transferred to a memory or the like via the output data bus 3.

(発明が解決しようとする課題) しかしながら、上記構成の演算回路では、16ビット並
列乗算器6を用いて32ビットの乗算を行う場合、16
ビット右シフト操作が必要で、その操作のために、レジ
スタ回B11の内容を入力データバス2を介して移動し
なければならず、それによって演算ステップ数が多くが
がり、演算速度の高速化が困難であった。
(Problem to be Solved by the Invention) However, in the arithmetic circuit with the above configuration, when performing 32-bit multiplication using the 16-bit parallel multiplier 6,
A bit right shift operation is required, and for this operation the contents of register B11 must be moved via the input data bus 2, which increases the number of calculation steps and increases the calculation speed. It was difficult.

本発明は前記従来技術が持っていた課題として、演算ス
テ7プ数の増大により、演算速度の高速化が困難である
という点について解決した演算回路を提供するものであ
る。
The present invention provides an arithmetic circuit that solves the problem of the prior art, which is that it is difficult to increase the arithmetic speed due to the increase in the number of arithmetic steps.

(課題を解決するための手段) 本発明は、前記課題を解決するために、2つの固定ビッ
ト長n(但し、nは正の整数)の入力データを乗算する
n×n乗算器と、前記乗算器の出力側に設けられ20ビ
ットより長いビット長の算術演算器と、前記算術演算器
の出力側に設けられ前記算術演算器と同一ビット長のデ
ータを一時記憶するレジスタ回路を備えた演算回路にお
いて、プログラム命令に基づき前記算術演算器の出力を
nビット毎に選択しその選択結果を前記レジスタ回路の
所定の入力ビット位置へ入力するセレクタを設けている
(Means for Solving the Problem) In order to solve the problem, the present invention provides an n×n multiplier that multiplies two pieces of input data of fixed bit length n (where n is a positive integer); An operation comprising an arithmetic operation unit provided on the output side of a multiplier and having a bit length longer than 20 bits, and a register circuit provided on the output side of the arithmetic operation unit and temporarily storing data of the same bit length as the arithmetic operation unit. The circuit is provided with a selector that selects the output of the arithmetic operation unit every n bits based on a program instruction and inputs the selection result to a predetermined input bit position of the register circuit.

(作用) 本発明によれば、以上のように演算回路を構成したので
、プログラム命令によってセレクタが切換えられ、算術
演算器の出力がnビット、所定方向ヘシフトされてレジ
スタ回路へ入力される。これにより、累算時における演
算ステップ数が減少する。従って、前記課題を解決でき
るのである。
(Operation) According to the present invention, since the arithmetic circuit is configured as described above, the selector is switched by a program instruction, and the output of the arithmetic operation unit is shifted by n bits in a predetermined direction and input to the register circuit. This reduces the number of calculation steps during accumulation. Therefore, the above problem can be solved.

(実施例) 第1図は、本発明の一実施例を示す演算回路の構成ブロ
ック図である。
(Embodiment) FIG. 1 is a configuration block diagram of an arithmetic circuit showing an embodiment of the present invention.

この演算回路は、入力データパス21.22と出力デー
タパス23との間に接続され、該入力データバス21.
22には、レジスタ24.25が接続されている。レジ
スタ24.25の出力端子は、16ビット並列乗算器2
6の入力端子XI。
This arithmetic circuit is connected between an input data path 21.22 and an output data path 23, and is connected between the input data bus 21.22 and the output data path 23.
22 is connected to registers 24 and 25. The output terminals of registers 24 and 25 are connected to 16-bit parallel multiplier 2.
6 input terminal XI.

XIにそれぞれ接続され、その乗算器26の出力端子が
累算用の40ビット算術演算器27の一方の入力端子に
接続されている。
XI respectively, and the output terminal of the multiplier 26 is connected to one input terminal of a 40-bit arithmetic operation unit 27 for accumulation.

算術演算器27は、加・減算器あるいは算術論理ユニッ
ト(ALU)等で構成され、その出力端子R2,R1,
ROが、入力データバス22と共に2人力1出力のセレ
クタ28及び3人力1出力のセレクタ29.30の入力
端子に接続されている。即ち、出力端子R2がセレクタ
28.29の入力端子に、出力端子R1がセレクタ29
..30の入力端子に、出力端子ROがセレクタ30の
入力端子に、それぞれ接続され、さらに入力データバス
22が各セレクタ28〜30の入力端子に接続されてい
る。
The arithmetic operation unit 27 is composed of an adder/subtractor or an arithmetic logic unit (ALU), and has output terminals R2, R1,
The RO is connected together with the input data bus 22 to the input terminals of the two-man power one-output selector 28 and the three-man power one-output selector 29,30. That is, the output terminal R2 is the input terminal of the selector 28, 29, and the output terminal R1 is the input terminal of the selector 29.
.. .. The output terminal RO is connected to the input terminal of the selector 30, and the input data bus 22 is connected to the input terminal of each of the selectors 28-30.

セレクタ28〜30は、プログラム命令により、入力の
1つを選択する回路であり、それらの出力端子には40
ビットのレジスタ回路31が接続されている。レジスタ
回n31は、下位16ビットのレジスタ31−2、上位
の16ビットのレジスタ31−1、及び上位拡張8ビッ
トのレジスタ31−0より構成されている。レジスタ3
1−0〜31−2の出力端子は、算術演算器27の他方
の入力端子に共通接続され、さらにプログラム命令によ
り切換えられる3人力l出力のセレクタ32及び出力バ
ッファ36を介して入力データバス32に接続されると
共に、出力バッファ33,34゜35を介して出力デー
タパス23に接続されている。出力バッファ33〜36
は、プログラム命令により出力が制御されるトライステ
ートバッファ等で構成されている。
The selectors 28 to 30 are circuits that select one of the inputs according to a program instruction, and have 40 output terminals at their output terminals.
A bit register circuit 31 is connected. The register circuit n31 is composed of a lower 16-bit register 31-2, an upper 16-bit register 31-1, and an upper extended 8-bit register 31-0. register 3
The output terminals 1-0 to 31-2 are commonly connected to the other input terminal of the arithmetic operation unit 27, and are further connected to the input data bus 32 via a selector 32 and an output buffer 36 with three outputs that are switched by a program command. and to the output data path 23 via output buffers 33, 34 and 35. Output buffers 33-36
consists of a tri-state buffer whose output is controlled by program instructions.

第4図は第1図における2人力1出力のセレクタ28の
一構成例を示す回路図、及び第5図は第1図における3
人力1出力のセレクタ29.30の一構成例を示す回路
図である。
FIG. 4 is a circuit diagram showing an example of the configuration of the selector 28 with two human power and one output in FIG. 1, and FIG.
FIG. 3 is a circuit diagram showing a configuration example of a selector 29.30 with one output of human power.

第4図のセレクタ28は、インバータ41.2人力のア
ンドゲート(以下、ANDゲートという)42.43、
及び2人力のオアゲート(以下、ORゲートという)4
4より構成されている。このセレクタ28では、制御信
号Cが“H′°レベルのとき、入力端子INIの信号が
出力端子OUTに出力され、制御信号Cが“L°゛レベ
ルのとき、入力端子INOの信号が出力端子OUTに出
力される。 第5図のセレクタ29.30は、インバー
タ51.52.53,54.3人力ANDゲート55.
56.57、及び3人力ORゲート58より構成され、
制御信号C1,C2が“L”レベルのとき、入力端子I
NOの信号が出力端子OUTに出力される。制御信号C
1=”H”レベル、C2= it L e+レベルのと
き、入力端子INIの信号が出力端子OUTに出力され
、C1=“°L′°レベル、C2=“H”レベルのとき
、入力端子IN2の信号が出力端子OUTに出力される
The selector 28 in FIG. 4 includes an inverter 41.2 a manual AND gate (hereinafter referred to as an AND gate) 42.43,
and a two-person OR gate (hereinafter referred to as OR gate) 4
It is composed of 4. In this selector 28, when the control signal C is at the "H'° level, the signal at the input terminal INI is output to the output terminal OUT, and when the control signal C is at the "L°" level, the signal at the input terminal INO is output to the output terminal. Output to OUT. Selectors 29, 30 in FIG. 5 are connected to inverters 51, 52, 53, 54.
56, 57, and a three-man OR gate 58,
When the control signals C1 and C2 are at "L" level, the input terminal I
A NO signal is output to the output terminal OUT. Control signal C
When 1 = "H" level and C2 = it L e+ level, the signal of the input terminal INI is output to the output terminal OUT, and when C1 = "°L'° level" and C2 = "H" level, the signal of the input terminal IN2 is outputted to the output terminal OUT. The signal is output to the output terminal OUT.

以上のように構成される演算回路の動作を、16ビット
を越える32ビット長同士の乗算を例にとり説明する。
The operation of the arithmetic circuit configured as described above will be explained using an example of multiplication between 32-bit lengths exceeding 16 bits.

例えば、2つのデータX(Xの下位16ビットX01X
の上位16ビットXi)とデータY(Yの下位16ビッ
トYO1Yの上位16ヒツトYl)により、xxy=z
を行う。
For example, two data X (lower 16 bits of X
xxy=z by the upper 16 bits of Y
I do.

第3図に示すように、まず初めにデータX、 Yの下位
16ビットxo、yoを入力データバス21.22から
レジスタ24.25へ格納する。そして両レジスタ24
.25からの出力を乗算器26に入力し、該乗算器26
で乗算を行う。この乗算結果は、算術演算器27を通過
してセレクタ28〜30へ送られる。この時、プログラ
ム命令に基づく制御信号C1,C2により、セレクタ2
9゜30を介して、算術演算器27の出力端子R1から
出力される信号をレジスタ31−2に入力し、出力端子
R2から出力される信号をレジスタ31−1に入力し、
格納する(16ビット右シフト操作)。
As shown in FIG. 3, first, the lower 16 bits xo and yo of data X and Y are stored from the input data bus 21.22 to the register 24.25. and both registers 24
.. The output from 25 is input to a multiplier 26, and the multiplier 26
Multiply by . This multiplication result passes through the arithmetic operator 27 and is sent to the selectors 28-30. At this time, the selector 2 is controlled by the control signals C1 and C2 based on the program command.
9. The signal output from the output terminal R1 of the arithmetic operation unit 27 is input to the register 31-2 through the 9°30, and the signal output from the output terminal R2 is input to the register 31-1.
Store (16-bit right shift operation).

次に、データXの上位16ビットX1とデータYの下位
16ビットYOを入力データバス21゜22からレジス
タ24.25に格納する。そして、両レジスタ24.2
5からの出力を乗算器26で乗算し、算術演算器27に
より、レジスタ310〜31−2の内容と乗算結果を累
算する。算術演算器27において、出力端子ROからの
出力信号はセレクタ30を介してレジスタ31−2に、
出力端子R1からの出力信号はセレクタ29を介してレ
ジスタ31−1に、出力端子R2からの出力信号はセレ
クタ28を介してレジスタ31−0に、それぞれ格納さ
れる。
Next, the upper 16 bits X1 of data X and the lower 16 bits YO of data Y are stored from the input data bus 21.degree. 22 into registers 24.25. And both registers 24.2
5 is multiplied by the multiplier 26, and the arithmetic operation unit 27 accumulates the contents of the registers 310 to 31-2 and the multiplication result. In the arithmetic operation unit 27, the output signal from the output terminal RO is sent to the register 31-2 via the selector 30.
The output signal from the output terminal R1 is stored in the register 31-1 via the selector 29, and the output signal from the output terminal R2 is stored in the register 31-0 via the selector 28.

データXの下位16ビットXOとデータYの上位16ビ
ットY1は、入力データパス21.22からセレクタ2
4.25に格納される。そして両レジスタ24.25か
らの出力は、乗算器26で乗算され、算術演算器27に
より、乗算結果とレジスタ31−0〜31−2の内容と
が累算される。
The lower 16 bits XO of data X and the upper 16 bits Y1 of data Y are transferred from the input data path 21.
4.25. The outputs from both registers 24 and 25 are multiplied by a multiplier 26, and an arithmetic operator 27 accumulates the multiplication results and the contents of registers 31-0 to 31-2.

命令プログラムに基づく制御信号C1,C2によってセ
レクタ29.30が切換えられ、算術演算器27の出力
端子R1からの出力信号がレジスタ31−2に、出力端
子R2がらの出力信号がレジスタ31−1に、それぞれ
格納される(16ビット右シフト操作)。
The selectors 29 and 30 are switched by control signals C1 and C2 based on the instruction program, and the output signal from the output terminal R1 of the arithmetic operation unit 27 is sent to the register 31-2, and the output signal from the output terminal R2 is sent to the register 31-1. , respectively (16-bit right shift operation).

16ビット右シフト操作後、データXの上位16ビット
X1とデータYの上位ビットY1を入力データパス21
.22からレジスタ24.25に格納する。そして両レ
ジスタ24.25からの出力に対して乗算器26で乗算
を行い、算術演算器27により、レジスタ31−0〜3
1−2の内容と乗算結果を累算する。算術演算器27の
出力端子ROからの出力信号はセレクタ30を介してレ
ジスタ31−2に、出力端子R1からの出力信号はセレ
クタ29を介してレジスタ31−1に、出力端子R2か
らの出力信号はセレクタ28を介してレジスタ31−0
に、それぞれ格納される。これにより演算か終了し、そ
の演算結果が出力バッファ33〜35及び出力データパ
ス23を介してメモリ等へ転送される。
After the 16-bit right shift operation, the upper 16 bits X1 of data X and the upper bit Y1 of data Y are input to data path 21.
.. 22 to registers 24 and 25. Then, the multiplier 26 multiplies the outputs from both registers 24 and 25, and the arithmetic operator 27 multiplies the outputs from the registers 31-0 to 31-0.
Accumulate the contents of 1-2 and the multiplication results. The output signal from the output terminal RO of the arithmetic operator 27 is sent to the register 31-2 via the selector 30, the output signal from the output terminal R1 is sent to the register 31-1 via the selector 29, and the output signal from the output terminal R2 is sent to the register 31-2. is the register 31-0 via the selector 28.
are stored respectively. This completes the calculation, and the result of the calculation is transferred to a memory or the like via the output buffers 33 to 35 and the output data path 23.

このように、本実施例では、16ビット右シフト操作を
行う場合、命令プログラムに基づく制御信号C1,C2
により、算術演算器27の出力をセレクタ29.30を
介して16ビット右シフトが行えるようにしたので、演
算ステップ数を削減でき、それによって演算処理を高速
化できる。
In this way, in this embodiment, when performing a 16-bit right shift operation, the control signals C1 and C2 based on the instruction program are
As a result, the output of the arithmetic operator 27 can be shifted to the right by 16 bits via the selectors 29 and 30, so the number of calculation steps can be reduced, thereby speeding up the calculation process.

なお、本発明は上記実施例に限定されず、被演算処理ビ
ット数を16ビット以外の数にし、それに応じて乗算器
26及び算術演算器27等の処理ビット数を変更したり
、あるいはセレクタ28〜30を第4図及び第5図以外
の回路で構成する等、種々の変形が可能である。
Note that the present invention is not limited to the above-mentioned embodiments, and the number of bits to be processed by an operation may be set to a number other than 16 bits, and the number of bits processed by the multiplier 26, the arithmetic operator 27, etc. may be changed accordingly, or the number of bits processed by the selector 28 may be changed accordingly. Various modifications are possible, such as configuring 30 with circuits other than those shown in FIGS. 4 and 5.

(発明の効果) 以上詳細に説明したように、本発明によれば、プログラ
ム命令により、算術演算器の出力をセレクタでnビット
、所定方向にシフトしてレジスタ回路へ入力する構成に
したので、累算時において演算ステップ数を削減でき、
演算処理を高速化できる。さらに、音声処理等で使用さ
れる倍精度演算を本発明を用いて実行すれば、演算ステ
ップ数の削減と、それによる処理速度の高速化が期待で
きる。
(Effects of the Invention) As described in detail above, according to the present invention, the output of the arithmetic operation unit is shifted by n bits in a predetermined direction using a selector according to a program instruction, and is input to the register circuit. The number of calculation steps can be reduced during accumulation,
Computation processing can be accelerated. Furthermore, if double-precision arithmetic operations used in audio processing and the like are executed using the present invention, it is expected that the number of arithmetic steps will be reduced and the processing speed will be increased thereby.

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

第1図は本発明の実施例を示す演算回路の構成ブロック
図、第2図は従来の演算回路の構成ブロック図、第3図
は16ビット並列乗算器による32ビット乗算方法を説
明する図、第4図は第1図中の2人力1出力のセレクタ
の回路図、第5図は第1図中の3人力1出力のセレクタ
の回路図である。 26・・・乗算器、27・・・算術演算器。28・・・
2人力1出力のセレクタ、29.30・・・3人力1出
力のセレクタ、31・・・レジスタ回路、31−0〜3
1−2・・・レジスタ。
FIG. 1 is a configuration block diagram of an arithmetic circuit showing an embodiment of the present invention, FIG. 2 is a configuration block diagram of a conventional arithmetic circuit, and FIG. 3 is a diagram explaining a 32-bit multiplication method using a 16-bit parallel multiplier. FIG. 4 is a circuit diagram of the two-man power one output selector shown in FIG. 1, and FIG. 5 is a circuit diagram of the three-man power one output selector shown in FIG. 26... Multiplier, 27... Arithmetic operator. 28...
2 human power 1 output selector, 29. 30... 3 human power 1 output selector, 31... register circuit, 31-0 to 3
1-2...Register.

Claims (1)

【特許請求の範囲】 2つの固定ビット長n(但し、nは正の整数)の入力デ
ータを乗算するn×n乗算器と、前記乗算器の出力側に
設けられ2nビットより長いビット長の算術演算器と、
前記算術演算器の出力側に設けられ前記算術演算器と同
一ビット長のデータを一時記憶するレジスタ回路を備え
た演算回路において、 プログラム命令に基づき前記算術演算器の出力をnビッ
ト毎に選択しその選択結果を前記レジスタ回路の所定の
入力ビット位置へ入力するセレクタを設けたことを特徴
とする演算回路。
[Claims] An n×n multiplier that multiplies two input data of fixed bit length n (where n is a positive integer), and a multiplier provided on the output side of the multiplier that has a bit length longer than 2n bits. an arithmetic operator;
In an arithmetic circuit that is provided on the output side of the arithmetic operator and includes a register circuit that temporarily stores data of the same bit length as the arithmetic operator, the output of the arithmetic operator is selected every n bits based on a program instruction. An arithmetic circuit comprising a selector for inputting the selection result to a predetermined input bit position of the register circuit.
JP27026890A 1990-10-08 1990-10-08 Arithmetic circuit Pending JPH04148231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27026890A JPH04148231A (en) 1990-10-08 1990-10-08 Arithmetic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27026890A JPH04148231A (en) 1990-10-08 1990-10-08 Arithmetic circuit

Publications (1)

Publication Number Publication Date
JPH04148231A true JPH04148231A (en) 1992-05-21

Family

ID=17483888

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27026890A Pending JPH04148231A (en) 1990-10-08 1990-10-08 Arithmetic circuit

Country Status (1)

Country Link
JP (1) JPH04148231A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6298364B1 (en) 1993-03-08 2001-10-02 Sharp Kabushiki Kaisha Digital signal processing operation apparatus that allows combined operation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6298364B1 (en) 1993-03-08 2001-10-02 Sharp Kabushiki Kaisha Digital signal processing operation apparatus that allows combined operation

Similar Documents

Publication Publication Date Title
US6009451A (en) Method for generating barrel shifter result flags directly from input data
EP0136834A2 (en) A digital circuit performing an arithmetic operation with an overflow
US5177703A (en) Division circuit using higher radices
JPH0690668B2 (en) Fuzzy computing device
JPH11327875A (en) Arithmetic circuit
JPH04148231A (en) Arithmetic circuit
JPH10187416A (en) Floating point arithmetic unit
JPS62197868A (en) Linear approximation conversion circuit for pipeline construction
JP2807170B2 (en) Arithmetic unit
JP2951685B2 (en) Fixed-point arithmetic unit
KR0176883B1 (en) Complex number multiplier
US6035310A (en) Method and circuit for performing a shift arithmetic right operation
JPH1063500A (en) Signal processor
US6041341A (en) Method and circuit for adding operands of multiple size
KR100194678B1 (en) Multiplier with Shifter
JPH10198552A (en) Multiplier
JP2907276B2 (en) Arithmetic processing unit
JPH029366B2 (en)
JPH0553759A (en) Fixed decimal point arithmetic unit
JPH0580978A (en) Arithmetic processing circuit
JPH05233226A (en) Accumulative adder
JPH01237831A (en) Divider
JPH0253819B2 (en)
JPH0427587B2 (en)
JPH07191830A (en) Arithmetic unit