JPH07225673A - Arithemetic unit - Google Patents

Arithemetic unit

Info

Publication number
JPH07225673A
JPH07225673A JP6017184A JP1718494A JPH07225673A JP H07225673 A JPH07225673 A JP H07225673A JP 6017184 A JP6017184 A JP 6017184A JP 1718494 A JP1718494 A JP 1718494A JP H07225673 A JPH07225673 A JP H07225673A
Authority
JP
Japan
Prior art keywords
arithmetic
data
register
bit
negative
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
JP6017184A
Other languages
Japanese (ja)
Inventor
Hidetoshi Suzuki
秀俊 鈴木
Toshihiro Ishikawa
利広 石川
Yukihiro Fujimoto
幸広 藤本
Tomoaki Minamida
智昭 南田
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP6017184A priority Critical patent/JPH07225673A/en
Priority to US08/382,576 priority patent/US5517439A/en
Priority to GB9502358A priority patent/GB2286471B/en
Priority to DE19504864A priority patent/DE19504864C2/en
Publication of JPH07225673A publication Critical patent/JPH07225673A/en
Pending legal-status Critical Current

Links

Classifications

    • Y02B60/50

Abstract

PURPOSE:To reduce the amount of hardwares to be added and to efficiently perform arithmetic operations at the time of performing division by using a DSP. CONSTITUTION:This unit is provided with the arithmetic and logic circuit 4 of (n) bits capable of controlling whether to perform addition or subtraction by signals indicating the positive/negative of an arithmetic result performed one before, the register 2 of (n) bits for tentatively storing the output data at the arithmetic and logic circuit 4, the register 1 of (n) bits for outputting a divisor to the arithmetic and logic circuit 4, (n) stages of shift register 5 for successively storing the signals indicating the positive/negative of the arithmetic result of the arithmetic and logic circuit 4 and a shifter 3 for shifting the data of the register 2 to left for one bit, inserting the data of the most significant bit of the shift register 5 to a least significant bit and performing output to the arithmetic and logic circuit 4. The shitter conventionally provided with the bit length of 2n is replaced with the shifter 3 provided with an (n) bit length and the shift register 5 provided with the bit length of (n).

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、除算を行うディジタル
信号処理プロセッサ内部の演算装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an arithmetic unit inside a digital signal processor for performing division.

【0002】[0002]

【従来の技術】近年、ディジタル信号処理プロセッサ
(以下、DSPと略称する)は、移動体通信分野へのデ
ィジタルシステム導入の動きに合わせて、携帯電話など
への機器組込み用途のプロセッサとして注目されてい
る。
2. Description of the Related Art In recent years, a digital signal processor (abbreviated as DSP hereinafter) has been attracting attention as a processor for use in equipment such as a mobile phone in response to the movement of introducing a digital system into the field of mobile communication. There is.

【0003】このようなディジタル移動体通信において
は、DSPには電池での利用に際し、動作時間を長くす
るために消費電力が少ないことと、音声コーデックなど
の複雑なアプリケーションプログラムを実行するための
処理能力の向上とが要求される。また、低価格も要求さ
れる。
In such digital mobile communication, the DSP consumes less power in order to prolong the operating time when used with a battery, and the processing for executing a complicated application program such as a voice codec. Improvement of ability is required. Also, low price is required.

【0004】DSPでは、引き放し法を用いて除算を実
行することがある(例えば、DSP56116 Dig
ital Signal Processor Use
r′s Manual MOTOROLA INC,1
990)。以下、引き放し法で、所定の複数ビットであ
るnビットのデータをnビットのデータで除算する演算
装置の一例において図3に示す概略ブロック図を参照し
ながら説明する。
In DSP, division may be performed using the off-the-row method (eg, DSP56116 Dig.
ital Signal Processor Use
r's Manual MOTOROLA INC, 1
990). Hereinafter, an example of an arithmetic unit that divides n-bit data, which is a predetermined plurality of bits, by n-bit data by the release method will be described with reference to the schematic block diagram shown in FIG.

【0005】図3において、101はnビットの長さを
持つレジスタであり、除数を保持している。102は2
nビット長を持つレジスタであり、上位のnビットには
0を保持し、下位のnビットには被除数を保持してい
る。103はレジスタ102のデータを1ビット左シフ
トするシフタであり、最下位ビットには最初0が挿入さ
れ、以降、演算結果の正負の信号を反転させたものが挿
入され、また、上位nビットを後述する算術論理演算回
路104に出力し、下位nビットをレジスタ102の下
位に出力する。104はレジスタ101およびシフタ1
03に接続し、nビット長を持ち、レジスタ102の正
負を示す信号に従って加算、若しくは減算を行い、演算
結果をレジスタ102の上位nビットに出力する算術論
理演算回路である。
In FIG. 3, reference numeral 101 denotes a register having a length of n bits, which holds a divisor. 102 is 2
It is a register having an n-bit length, in which the upper n bits hold 0 and the lower n bits hold the dividend. Reference numeral 103 denotes a shifter that shifts the data in the register 102 to the left by one bit. First, 0 is inserted in the least significant bit, and thereafter, a signal obtained by inverting the positive / negative signal of the operation result is inserted, and the upper n bits are set. It outputs to the arithmetic logic operation circuit 104 described later, and outputs the lower n bits to the lower part of the register 102. 104 is a register 101 and a shifter 1
03 is an arithmetic logic operation circuit having an n-bit length, performing addition or subtraction in accordance with a signal indicating whether the register 102 is positive or negative, and outputting the operation result to the upper n bits of the register 102.

【0006】以上のように構成された演算装置につい
て、以下、その除算動作と共に更に詳細に説明する。
The arithmetic unit configured as described above will be described in more detail below along with its division operation.

【0007】まず、算術論理演算回路104がレジスタ
102の保持するデータの正負を判定する。次に、レジ
スタ102の保持するデータをシフタ103で1ビット
左にシフトする。このとき、最下位ビットには最初0が
挿入され、以降、演算結果の正負の信号を反転させたも
のが挿入される。シフト結果の上位nビットは算術論理
演算回路104に出力する。シフト結果の下位nビット
はレジスタ102に出力する。次に、上記のように判定
したレジスタ102の値が負であれば、レジスタ101
の値とシフタ103の出力とを算術論理演算回路104
で加算する。上記のように判定したレジスタ102の値
が非負であれば、レジスタ101の値のシフタ103の
出力とを算術論理演算回路104で減算する。上記動作
を(n−1)回繰り返し、最後にレジスタ102の正負
を判定し、負の場合にはレジスタ102の最下位に0を
ヒットし、非負の場合には1をセットする。この結果、
商はレジスタ102の下位nビットに収められる。
First, the arithmetic logic operation circuit 104 determines whether the data held in the register 102 is positive or negative. Next, the data held in the register 102 is shifted to the left by 1 bit by the shifter 103. At this time, 0 is first inserted in the least significant bit, and thereafter, a signal obtained by inverting the positive and negative signals of the operation result is inserted. The upper n bits of the shift result are output to the arithmetic logic operation circuit 104. The lower n bits of the shift result are output to the register 102. Next, if the value of the register 102 determined as described above is negative, the register 101
Value and the output of the shifter 103 are arithmetic logic operation circuit 104
Add with. If the value of the register 102 determined as described above is non-negative, the arithmetic logic operation circuit 104 subtracts the value of the register 101 from the output of the shifter 103. The above operation is repeated (n-1) times, and finally, whether the register 102 is positive or negative is judged. When the value is negative, 0 is hit in the lowest order of the register 102, and when it is non-negative, 1 is set. As a result,
The quotient is stored in the lower n bits of the register 102.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記従
来例の演算装置では、シフタ103として2nのビット
長が必要となり、また、シフタ103からレジスタ10
2へのパスが必要になるため、ハードウェアが大きくな
る。この大きなハードウェアは、DSPを高価にし、動
作する部分が多いので、消費電力が大きいという問題を
引き起こす。
However, in the arithmetic unit of the above conventional example, the shifter 103 needs to have a bit length of 2n, and the shifter 103 to the register 10 is required.
The hardware becomes large because a path to 2 is required. This large hardware causes the DSP to be expensive and has many parts to operate, which causes a problem of high power consumption.

【0009】また、算術論理演算回路104で加算を行
うか減算を行うのかをレジスタ102の保持するデータ
の正負を示す信号により制御するので、制御が複雑であ
る。この複雑な制御を実現するためには大きなハードウ
ェアを要し、大きなハードウェアは、DSPを高価に
し、動作する部分が多いので、消費電力が大きいという
問題を引き起こす。
Further, since whether the arithmetic logic operation circuit 104 performs addition or subtraction is controlled by a signal indicating whether the data held in the register 102 is positive or negative, the control is complicated. A large amount of hardware is required to realize this complicated control, and the large amount of hardware causes a problem of high power consumption because the DSP is expensive and many parts operate.

【0010】本発明は、上記従来の問題を解決するもの
であり、少ないハードウェアで引き放し法の除算を実行
することができ、したがって、低コストで、低消費電力
の演算装置を提供することを目的とするものである。
The present invention solves the above-mentioned conventional problems, and is capable of executing the division method by the open-ended method with a small amount of hardware. Therefore, it is possible to provide a low-cost and low-power-consumption arithmetic unit. The purpose is.

【0011】[0011]

【課題を解決するための手段】上記目的を達成するため
の本発明の技術的手段は、一つ前に行った演算結果の正
負を示す信号により加算を行うか減算を行うか制御する
ことができ、所定の複数ビットであるnビットの算術演
算手段と、この算術演算手段の出力データを一時記憶す
る第1の記憶手段と、上記算術演算手段に演算データを
出力するnビットの第2の記憶手段と、上記算術演算手
段の演算結果の正負を示す信号を順次格納するn段のシ
フトレジスタと、上記第1の記憶手段のデータを1ビッ
ト左シフトし、最下位ビットに上記シフトレジスタの最
上位ビットのデータを挿入して上記算術演算手段に出力
するシフタとを備えたものである。
The technical means of the present invention for achieving the above object is to control whether addition or subtraction is performed by a signal indicating the plus or minus of the operation result performed immediately before. A plurality of predetermined n-bit arithmetic operation means, first storage means for temporarily storing output data of the arithmetic operation means, and n-bit second output means for outputting operation data to the arithmetic operation means. The storage means, an n-stage shift register for sequentially storing a signal indicating whether the arithmetic result of the arithmetic operation means is positive or negative, and the data of the first storage means are left-shifted by 1 bit and the least significant bit of the shift register is stored. And a shifter for inserting the data of the most significant bit and outputting it to the arithmetic operation means.

【0012】上記目的を達成するための本発明の他の技
術的手段は、所定の複数ビットであるnビットの加算を
行う算術演算手段と、この算術演算手段の出力データを
一時記憶する第1の記憶手段と、演算データを格納する
第2および第3の記憶手段と、上記算術演算手段の演算
結果の正負を示す信号によって上記第2および第3の記
憶手段のいずれかのデータを選択して上記算術演算手段
の入力に出力する選択手段と、上記算術演算手段の演算
結果の正負を示す信号を順次格納するシフトレジスタ
と、上記第1の記憶手段のデータを1ビット左シフト
し、最下位ビットに上記シフトジレスタの最上位ビット
のデータを挿入して上記算術演算手段に出力するシフタ
とを備えたものである。
Another technical means of the present invention for achieving the above object is an arithmetic operation means for performing addition of n bits, which are predetermined plural bits, and a first storage means for temporarily storing output data of the arithmetic operation means. Memory means, second and third memory means for storing operation data, and a signal indicating whether the arithmetic result of the arithmetic operation means is positive or negative, to select one of the second and third data means. Selecting means for outputting to the input of the arithmetic operation means, a shift register for sequentially storing a signal indicating whether the operation result of the arithmetic operation means is positive or negative, and the data in the first storage means is left-shifted by 1 bit to the maximum. A shifter for inserting the data of the most significant bit of the shift register into the lower bits and outputting the data to the arithmetic operation means.

【0013】そして、上記各技術的手段において、記憶
手段としてレジスタを用い、選択手段としてマルチプレ
クサを用いることができる。
In each of the above technical means, a register can be used as the storage means and a multiplexer can be used as the selection means.

【0014】[0014]

【作用】したがって、本発明によれば、シフトレジスタ
が算術演算手段から出力する正負のデータを順に記憶
し、最上位ビットのデータをシフタの最下位のビットに
挿入するので、従来、2nのビット長を持つシフタをn
のビット長を持つシフタと、nのビット長を持つシフト
レジスタとに置き換えることができる。これによりシフ
タの大きさを小さくし、シフタから第1の記憶手段への
パスをなくすことができる。
Therefore, according to the present invention, since the shift register sequentially stores the positive and negative data output from the arithmetic operation means and inserts the data of the most significant bit into the least significant bit of the shifter, it is conventionally 2n bits. N long shifter
It can be replaced with a shifter having a bit length of n and a shift register having a bit length of n. This makes it possible to reduce the size of the shifter and eliminate the path from the shifter to the first storage means.

【0015】また、第2と第3の二つの記憶手段の片側
に除数を格納し、残り側に除数の2の補数を格納するの
で、算術演算手段は常に加算のみを行い、供給するデー
タを選択手段が演算結果の正負を示す符号により選択す
る。これにより算術演算手段は常に同一の動作となり、
制御が容易となる。
Further, since the divisor is stored on one side of the second and third storage means and the two's complement of the divisor is stored on the remaining side, the arithmetic operation means always performs addition only and supplies the supplied data. The selection means selects with a sign indicating whether the calculation result is positive or negative. As a result, the arithmetic operation means always have the same operation,
Control becomes easy.

【0016】[0016]

【実施例】【Example】

(実施例1)以下、本発明の第1の実施例について図面
を参照しながら説明する。
(Embodiment 1) Hereinafter, a first embodiment of the present invention will be described with reference to the drawings.

【0017】図1は本発明の第1の実施例における演算
装置を示す概略ブロック図である。図1において、1は
nのビット長を持ち、後述する算術論理演算回路4に接
続するレジスタであり、除数を保持している。2はnの
ビット長を持ち、後述する算術論理演算回路4の出力を
入力とし、後述するシフタ3に接続するレジスタであ
り、最初に0を保持している。3はレジスタ2のデータ
を1ビット左シフトし、後述するシフトレジスタ5の第
n段目のデータを最下位ビットに挿入するシフタであ
る。4はnのビット長を持つ算術論理演算回路であり、
レジスタ2のデータが負であれば加算を行い、非負であ
れば減算を行い、演算結果をレジスタ2に格納する。ま
た、演算結果の正負を示す信号を後述するシフトレジス
タ5に入力する。演算結果の正負を示す信号は、次命令
が加算を行うか減算を行うか制御する信号となる。5は
nの段数を持つシフトレジスタであり、算術論理演算回
路4から出力される演算結果の正負を示す信号が入力さ
れ、第n段目がシフタ3と接続され、シフタ3が1ビッ
ト左シフトを実行したときには最下位ビットにデータを
挿入するようになっている。このシフトレジスタ5は最
初に被除数を保持している。
FIG. 1 is a schematic block diagram showing an arithmetic unit according to the first embodiment of the present invention. In FIG. 1, 1 is a register having a bit length of n and connected to an arithmetic logic operation circuit 4 described later, and holds a divisor. Reference numeral 2 is a register having a bit length of n, the input of which is an output of an arithmetic logic operation circuit 4 which will be described later, and which is connected to a shifter 3 which will be described later. Reference numeral 3 is a shifter for shifting the data in the register 2 to the left by 1 bit and inserting the data of the nth stage of the shift register 5 described later into the least significant bit. 4 is an arithmetic logic operation circuit having a bit length of n,
If the data in register 2 is negative, addition is performed, if non-negative, subtraction is performed, and the operation result is stored in register 2. In addition, a signal indicating whether the operation result is positive or negative is input to the shift register 5 described later. The signal indicating whether the operation result is positive or negative serves as a signal for controlling whether the next instruction performs addition or subtraction. Reference numeral 5 is a shift register having n stages, to which a signal indicating whether the operation result output from the arithmetic logic operation circuit 4 is positive or negative is input, the nth stage is connected to the shifter 3, and the shifter 3 is shifted left by 1 bit. When is executed, data is inserted in the least significant bit. The shift register 5 initially holds the dividend.

【0018】以上のように構成された演算装置につい
て、以下、その除算動作と共に更に詳細に説明する。
The arithmetic unit configured as described above will be described in more detail below along with its division operation.

【0019】(1)まず、レジスタ2から供給されたデ
ータを1ビット左にシフトすると、最下位のビットには
シフトレジスタ5の最下位ビットの値が挿入される。
(1) First, when the data supplied from the register 2 is shifted to the left by 1 bit, the value of the least significant bit of the shift register 5 is inserted into the least significant bit.

【0020】ここで、レジスタ2には最初0が格納され
ていて、1ビット左シフトし、最下位ビットにシフトレ
ジスタ5の最上位ビットが挿入されている状態であるの
で、必ず非負である。
Since 0 is initially stored in the register 2 and left-shifted by 1 bit and the most significant bit of the shift register 5 is inserted in the least significant bit, it is always non-negative.

【0021】(2)次に、レジスタ1の値とシフタ3の
出力とを算術論理演算回路4で減算する。
(2) Next, the arithmetic logic operation circuit 4 subtracts the value of the register 1 from the output of the shifter 3.

【0022】(3)次に、上記(2)の演算結果が非負
であれば、シフトレジスタ5は1、つまり、サインビッ
トの反転したものを入れてシフトする。一方、上記
(2)の演算結果が負であれば、シフトレジスタ5は
0、つまり、サインビットの反転したものを入れてシフ
トする。
(3) Next, if the operation result of (2) above is non-negative, the shift register 5 shifts by inserting 1, that is, an inverted sign bit. On the other hand, if the operation result of (2) above is negative, the shift register 5 shifts by inserting 0, that is, an inverted sign bit.

【0023】(4)次に、シフタ3がレジスタ2から供
給されたデータを1ビット左にシフトすると、最下位の
ビットにはシフトレジスタ5の最上位ビットの値が挿入
される。
(4) Next, when the shifter 3 shifts the data supplied from the register 2 to the left by one bit, the value of the most significant bit of the shift register 5 is inserted into the least significant bit.

【0024】(5)次に、一つの前の演算結果が非負で
あれば、レジスタ5の値とシフタ3の出力とを算術論理
演算回路4で減算する。一方、一つ前の演算結果が負で
あれば、レジスタ5の値とシフタ3の出力とを算術論理
演算回路4で加算する。この加算結果はとレジスタ2は
保存する。
(5) Next, if the previous operation result is non-negative, the value of the register 5 and the output of the shifter 3 are subtracted by the arithmetic logic operation circuit 4. On the other hand, if the previous operation result is negative, the arithmetic logic operation circuit 4 adds the value of the register 5 and the output of the shifter 3. This addition result is saved in the register 2.

【0025】(6)次に、上記(5)の演算結果が非負
であれば、シフトレジスタは1、つまり、サインビット
の反転したものを入れてシフトする。一方、上記(5)
の演算結果が負であれば、シフトレジスタは0、つま
り、サインビットの反転したものを入れてシフトする。
(6) Next, if the operation result of (5) above is non-negative, the shift register shifts by inserting 1, that is, an inverted version of the sign bit. On the other hand, the above (5)
If the result of the operation is negative, the shift register shifts by inserting 0, that is, the inverted sign bit.

【0026】(7)上記(4)、(5)、(6)の動作
を(n−2)回繰り返す。 (8)最後に、算術論理演算回路4はレジスタ2の正負
を判定し、負の場合にはレジスタ2の最下位に0をセッ
トし、非負の場合には1をセットする。
(7) The operations (4), (5) and (6) are repeated (n-2) times. (8) Finally, the arithmetic logic operation circuit 4 determines whether the register 2 is positive or negative. When the register 2 is negative, 0 is set in the lowest order of the register 2, and when it is nonnegative, 1 is set.

【0027】以上のようにして、除算を実行することが
でき、商はシフトレジスタ5に納められる。
The division can be executed as described above, and the quotient is stored in the shift register 5.

【0028】従来例では除数・被除数のデータビット長
の2倍のビット長を持つシフタを要していたが、本実施
例によれば、除数・被除数のデータビット長のシフタ3
で済むようになり、また、シフタ3からレジスタ2への
直接のパスをなくすことができる。
In the conventional example, a shifter having a bit length twice the data bit length of the divisor / dividend was required, but according to this embodiment, a shifter 3 having a data bit length of the divisor / dividend is used.
In addition, the direct path from the shifter 3 to the register 2 can be eliminated.

【0029】(実施例2)以下、本発明の第2の実施例
について図面を参照しながら説明する。
(Second Embodiment) A second embodiment of the present invention will be described below with reference to the drawings.

【0030】図2は本発明の第2の実施例における演算
装置を示す概略ブロック図である。本実施例において
は、図2に示すように、レジスタ1とレジスタ6の出力
をレジスタ2の正負の判定結果に従って選択するマルチ
プレクサ7を備えている点に特徴を有する。
FIG. 2 is a schematic block diagram showing an arithmetic unit according to the second embodiment of the present invention. As shown in FIG. 2, the present embodiment is characterized in that a multiplexer 7 for selecting the outputs of the registers 1 and 6 according to the positive / negative judgment result of the register 2 is provided.

【0031】上記第1の実施例では、一つ前の演算の正
負を判定し、その判定結果に従って算術論理演算回路4
で加算、若しくは減算を行っている。本実施例において
は、初めに、レジスタ1に除数、レジスタ6には除数2
の補数をとったものを格納する。そして、一つ前の演算
の正負に従って選択するマルチプレクサ7を制御するこ
とで、算術論理演算回路4では常に加算を実行する点が
異なる。
In the first embodiment, the sign of the preceding operation is judged and the arithmetic logic operation circuit 4 is judged according to the judgment result.
Is adding or subtracting. In the present embodiment, first, the register 1 has a divisor and the register 6 has a divisor 2
Stores the complement of. The difference is that the arithmetic logic operation circuit 4 always performs addition by controlling the multiplexer 7 that selects according to the sign of the previous operation.

【0032】その他の部分については上記第1の実施例
と同様であるので、同一部分には同一符号を付してその
説明を省略する。
Since the other parts are the same as those in the first embodiment, the same parts are designated by the same reference numerals and the description thereof will be omitted.

【0033】以上の構成において、以下、上記第1の実
施例と異なる動作について説明する。
In the above configuration, the operation different from that of the first embodiment will be described below.

【0034】上記(5)のステップで、前回の演算結果
が負であれば、マルチプレクサ7は、除数を保持するレ
ジスタ1を選択して出力させ、算術論理演算回路4はレ
ジスタ1の値とシフタ3の出力とを加算する。一方、上
記(5)のステップで、前回の演算結果が非負であれ
ば、マルチプレクサ7は、除数の2の補数を保持したレ
ジスタ6を選択して出力させ、算術論理演算回路4はレ
ジスタ6の値とシフタ3の出力とを加算する(つまり減
算を行うことを相当する。)。
In the step (5), if the previous operation result is negative, the multiplexer 7 selects and outputs the register 1 holding the divisor, and the arithmetic logic operation circuit 4 sets the value of the register 1 and the shifter. And the output of 3 are added. On the other hand, in the step (5), if the previous operation result is non-negative, the multiplexer 7 selects the register 6 holding the 2's complement of the divisor and outputs it. The value and the output of the shifter 3 are added (that is, the subtraction is performed).

【0035】本実施例においては、算術論理演算回路4
は常に加算を行うので、ハードウェアの構成が容易とな
る。
In the present embodiment, the arithmetic logic operation circuit 4
Since the addition is always performed, the hardware configuration becomes easy.

【0036】[0036]

【発明の効果】以上説明したように本発明によれば、シ
フタのサイズを小さくし、シフタからレジスタへの直接
のパスをなくすことができる。したがって、小さなハー
ドウェアで除算を行うことができる。これにより動作部
分が小さくなり、消費電力を減らすことができる。
As described above, according to the present invention, it is possible to reduce the size of the shifter and eliminate the direct path from the shifter to the register. Therefore, division can be performed with small hardware. As a result, the operating portion becomes smaller and the power consumption can be reduced.

【0037】また、算術演算手段が常に加算するように
すれば、制御回路を簡易にすることができる。
Further, if the arithmetic operation means always add, the control circuit can be simplified.

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

【図1】本発明の第1の実施例における演算装置を示す
概略ブロック図
FIG. 1 is a schematic block diagram showing an arithmetic unit according to a first embodiment of the present invention.

【図2】本発明の第2の実施例における演算装置を示す
概略ブロック図
FIG. 2 is a schematic block diagram showing an arithmetic unit according to a second embodiment of the present invention.

【図3】従来の演算装置を示す概略ブロック図FIG. 3 is a schematic block diagram showing a conventional arithmetic unit.

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

1 レジスタ 2 レジスタ 3 シフタ 4 算術論理演算回路 5 シフトレジスタ 6 レジスタ 7 マルチプレクサ 1 register 2 register 3 shifter 4 arithmetic logic operation circuit 5 shift register 6 register 7 multiplexer

───────────────────────────────────────────────────── フロントページの続き (72)発明者 南田 智昭 石川県金沢市彦三町二丁目1番45号 株式 会社松下通信金沢研究所内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Tomoaki Minanda 2-45, Hikosancho, Kanazawa, Ishikawa Prefecture Matsushita Communication Kanazawa Research Institute

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 一つ前に行った演算結果の正負を示す信
号により加算を行うか減算を行うか制御することがで
き、所定の複数ビットであるnビットの算術演算手段
と、この算術演算手段の出力データを一時記憶する第1
の記憶手段と、上記算術演算手段に演算データを出力す
るnビットの第2の記憶手段と、上記算術演算手段の演
算結果の正負を示す信号を順次格納するn段のシフトレ
ジスタと、上記第1の記憶手段のデータを1ビット左シ
フトし、最下位ビットに上記シフトレジスタの最上位ビ
ットのデータを挿入して上記算術演算手段に出力するシ
フタとを備えた演算装置。
1. An arithmetic operation unit of n bits, which is a predetermined plurality of bits, can be controlled by performing addition or subtraction according to a signal indicating the positive or negative of the operation result performed immediately before, and this arithmetic operation. First storing the output data of the means
Storage means, an n-bit second storage means for outputting operation data to the arithmetic operation means, an n-stage shift register for sequentially storing a signal indicating whether the operation result of the arithmetic operation means is positive or negative, An arithmetic unit provided with a shifter for shifting the data in the memory means 1 to the left by 1 bit, inserting the data of the most significant bit of the shift register into the least significant bit, and outputting the data to the arithmetic operation means.
【請求項2】 所定の複数ビットであるnビットの加算
を行う算術演算手段と、この算術演算手段の出力データ
を一時記憶する第1の記憶手段と、演算データを格納す
る第2および第3の記憶手段と、上記算術演算手段の演
算結果の正負を示す信号によって上記第2および第3の
記憶手段のいずれかのデータを選択して上記算術演算手
段の入力に出力する選択手段と、上記算術演算手段の演
算結果の正負を示す信号を順次格納するシフトレジスタ
と、上記第1の記憶手段のデータを1ビット左シフト
し、最下位ビットに上記シフトジレスタの最上位ビット
のデータを挿入して上記算術演算手段に出力するシフタ
とを備えた演算装置。
2. Arithmetic operation means for performing addition of n bits which are a predetermined plurality of bits, first storage means for temporarily storing output data of the arithmetic operation means, and second and third for storing operation data. Storage means, selection means for selecting one of the data stored in the second and third storage means by a signal indicating whether the arithmetic result of the arithmetic operation means is positive or negative, and outputting the selected data to the input of the arithmetic operation means. A shift register for sequentially storing a signal indicating whether the arithmetic result of the arithmetic operation means is positive or negative, and the data in the first storage means are left-shifted by 1 bit, and the data of the most significant bit of the shift register is inserted into the least significant bit. An arithmetic unit comprising a shifter for outputting to the arithmetic operation means.
JP6017184A 1994-02-14 1994-02-14 Arithemetic unit Pending JPH07225673A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP6017184A JPH07225673A (en) 1994-02-14 1994-02-14 Arithemetic unit
US08/382,576 US5517439A (en) 1994-02-14 1995-02-02 Arithmetic unit for executing division
GB9502358A GB2286471B (en) 1994-02-14 1995-02-07 Arithmetic unit for executing division
DE19504864A DE19504864C2 (en) 1994-02-14 1995-02-14 Calculator for performing a division

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6017184A JPH07225673A (en) 1994-02-14 1994-02-14 Arithemetic unit

Publications (1)

Publication Number Publication Date
JPH07225673A true JPH07225673A (en) 1995-08-22

Family

ID=11936866

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6017184A Pending JPH07225673A (en) 1994-02-14 1994-02-14 Arithemetic unit

Country Status (1)

Country Link
JP (1) JPH07225673A (en)

Similar Documents

Publication Publication Date Title
US7159100B2 (en) Method for providing extended precision in SIMD vector arithmetic operations
US5542074A (en) Parallel processor system with highly flexible local control capability, including selective inversion of instruction signal and control of bit shift amount
EP0754998A1 (en) An arithmetic unit
US5517439A (en) Arithmetic unit for executing division
JPH07168753A (en) Modulo addition circuit and its operation method
JP3683773B2 (en) Floating point unit that uses a standard MAC unit to perform SIMD operations
US6038675A (en) Data processing circuit
US6282558B1 (en) Data processing system and register file
JPH11327875A (en) Arithmetic circuit
JPH07225673A (en) Arithemetic unit
US7028163B2 (en) Apparatus for controlling multi-word stack operations using a multi-bank stack in digital data processors
US6725360B1 (en) Selectively processing different size data in multiplier and ALU paths in parallel
JPH10503311A (en) Galois field polynomial multiply / divide circuit and digital signal processor incorporating the same
JP2003241960A (en) Processor, and computation instruction processing method and computation control method therein
JP3454393B2 (en) Data processing device
EP1237070A2 (en) Denormalization circuit
US6792442B1 (en) Signal processor and product-sum operating device for use therein with rounding function
GB2344980A (en) Digital matched filter correlates received spread spectrum signals to save power.
JP3250363B2 (en) Arithmetic unit
JP5464770B2 (en) Method and apparatus for accessing memory core multiple times during one clock cycle
JP2001092658A (en) Data processing circuit and data processor
JP2002182905A (en) Digital signal processing processor
JP2001134438A (en) Address generating circuit for reducing power consumption
JP2002182904A (en) Data processor
JPH07120254B2 (en) Shifter