JPH08123667A - High speed division circuit - Google Patents

High speed division circuit

Info

Publication number
JPH08123667A
JPH08123667A JP6257070A JP25707094A JPH08123667A JP H08123667 A JPH08123667 A JP H08123667A JP 6257070 A JP6257070 A JP 6257070A JP 25707094 A JP25707094 A JP 25707094A JP H08123667 A JPH08123667 A JP H08123667A
Authority
JP
Japan
Prior art keywords
data
circuit
divisor
quotient
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.)
Withdrawn
Application number
JP6257070A
Other languages
Japanese (ja)
Inventor
Kenji Shirasawa
謙二 白澤
Akira Yasusato
彰 安里
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6257070A priority Critical patent/JPH08123667A/en
Publication of JPH08123667A publication Critical patent/JPH08123667A/en
Withdrawn legal-status Critical Current

Links

Abstract

(57)【要約】 【目的】 連続したサイクルで有効データを入力するベ
クトルプロセッサにおける高速除算回路に関し、処理時
間を短縮して動作周波数を上げる。 【構成】 2組の被除数と除数を連続したサイクルで入
力し、2サイクル処理による除算を行い、1段目のサイ
クルで一方の組のデータの除算処理を行うとともに2段
目のサイクルでは他方の組の加減算処理以外の処理を行
う。
(57) [Abstract] [Purpose] A high-speed division circuit in a vector processor that inputs valid data in consecutive cycles reduces the processing time and raises the operating frequency. [Structure] Two sets of dividend and divisor are input in consecutive cycles, division is performed by two-cycle processing, one group of data is divided in the first cycle, and the other cycle is divided in the second cycle. Processing other than the addition / subtraction processing of the set is performed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は高速除算回路に関し、特
に連続したサイクルで有効データを入力するベクトルプ
ロセッサの高速除算回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a high speed division circuit, and more particularly to a high speed division circuit of a vector processor for inputting valid data in consecutive cycles.

【0002】四則演算の1つである除算(割算)をコン
ピュータで行うためには、そのまま除算することはでき
ず被除数から除数を繰り返し減算することにより求める
のが通常である。
In order to perform division (division), which is one of the four arithmetic operations, by a computer, it is impossible to perform division as it is, and it is usual to obtain it by repeatedly subtracting the divisor from the dividend.

【0003】これを図11により説明すると、まず、同
図(1)に示す例では10進数の「30」を「4」で除
算する場合、除数「4」の2の補数値「1100」を求め、
これを被除数「30」の2進数「011110」の内の上位4
ビット「0111」(これは除数のビット数と同ビット数)
に加算することにより、「10011」が求められる。
This will be explained with reference to FIG. 11. First, in the example shown in FIG. 1A, when the decimal number "30" is divided by "4", the two's complement value "1100" of the divisor "4" is calculated. Seeking,
This is the top 4 of the binary number "011110" of the dividend "30"
Bit "0111" (this is the same number of bits as the divisor)
By adding to, "10011" is obtained.

【0004】このうち、最上位ビット「1」は部分商と
して置いておき、4ビットの「0011」と被除数の次の下
位のビット「1」を上記の加算値の最下位ビットとして
加え、これにさらに除数「0100」の2の補数値「1100」
を加算する。
Of these, the most significant bit "1" is set as a partial quotient, and the four bits "0011" and the next least significant bit "1" of the dividend are added as the least significant bits of the addition value. In addition to the divisor “0100”, the two's complement value “1100”
Is added.

【0005】このようにして被除数のすべてのビットに
対する減算(2の補数値による加算)が終了するまで減
算を行い、各段階での部分商が最終的な商「111」=1
0進数で「7」となり、最終的な部分剰余が最終剰余
「0010」=10進数の「2」となる。すなわち、この除
算結果により、商は7で余りが2となる。
In this way, subtraction is performed until all the bits of the dividend are added (addition by the complement of 2), and the partial quotient at each stage is the final quotient "111" = 1.
The decimal residue is “7”, and the final partial remainder is the final residue “0010” = decimal number “2”. That is, as a result of this division, the quotient is 7 and the remainder is 2.

【0006】また、同図(2)に示す例の場合には、上
記の同図(1)の例のように部分商が常に「1」とはな
らない段階が生ずるので、このように部分商が「0」の
場合には、次の段階では減算(2の補数による加算)を
行わずに除数を加算する。
Further, in the case of the example shown in FIG. 2B, there is a step in which the partial quotient is not always “1” as in the example of FIG. Is 0, the divisor is added without subtraction (addition by 2's complement) in the next stage.

【0007】このようにして、この例では商が「1001」
となり、最終的な部分剰余が「0000」となるので、10
進数では商が「9」で余りが「0」となる。
In this way, in this example, the quotient is "1001".
And the final partial remainder becomes “0000”, so 10
In radix, the quotient is "9" and the remainder is "0".

【0008】このようにして除算は処理時間が長くなる
が、さらに被除数と除数が連続したサイクルで入力され
るベクトルプロセッサにおいてはできるだけ迅速に上記
のような減算処理を行う必要がある。
In this way, although the division takes a long processing time, it is necessary to perform the above subtraction processing as quickly as possible in the vector processor in which the dividend and the divisor are input in a continuous cycle.

【0009】[0009]

【従来の技術】図12はベクトルプロセッサにおける従
来の除算回路を示したもので、除数及び被除数は図13
におけるタイムチャートにも示すようにオペランドOP
1としてそれぞれ除数レジスタ(a)及び被除数レジス
タ(d)でイネーブル信号生成回路(g)からのイネー
ブル信号によって保持される。
2. Description of the Related Art FIG. 12 shows a conventional division circuit in a vector processor. The divisor and dividend are shown in FIG.
Operand OP as shown in the time chart in
1 is held by the enable signal from the enable signal generating circuit (g) in the divisor register (a) and the dividend register (d), respectively.

【0010】制御回路(i)においては、図11に示し
たように最初はまず2の補数を生成して加算器(k)に
与えるとともに、制御回路(j)においては最初は被除
数レジスタ(d)に保持された被除数データ(但し、除
数と同じビット数のデータ)がそのまま加算器(k)に
送られる。
In the control circuit (i), the two's complement is first generated and given to the adder (k) as shown in FIG. 11, and in the control circuit (j), the dividend register (d) is first generated. The dividend data held in () (however, the data having the same number of bits as the divisor) is sent to the adder (k) as it is.

【0011】加算器(k)においては制御回路(i)及
び(j)の出力データの加算を行い、その結果を一旦演
算処理回路(l)で後処理した後、図13に示したよう
に部分商のデータを商用シフトレジスタ(o)に送ると
ともに、部分剰余のデータを部分剰余レジスタ(t)に
送る。
In the adder (k), the output data of the control circuits (i) and (j) are added, the result is once post-processed by the arithmetic processing circuit (l), and then as shown in FIG. The partial quotient data is sent to the commercial shift register (o), and the partial remainder data is sent to the partial remainder register (t).

【0012】またこの加算器(k)は演算処理回路
(l)を介して部分商のデータを制御データとして制御
レジスタ(n)にも与えている。
The adder (k) also supplies the partial quotient data as control data to the control register (n) through the arithmetic processing circuit (l).

【0013】このようにして、制御レジスタ(n)と商
用シフトレジスタ(o)と部分剰余レジスタ(t)には
それぞれ図13に示すようにデータ1−1がクロックサ
イクル“2”で同時に格納されることとなる。
In this way, the data 1-1 is simultaneously stored in the control register (n), the commercial shift register (o) and the partial remainder register (t) at the clock cycle "2" as shown in FIG. The Rukoto.

【0014】そして、次のクロックサイクルにおいて
は、制御回路(i)で制御レジスタ(n)からの制御デ
ータに基づき、この制御データが図11に示したように
正の場合には減算を行うため除数レジスタ(a)からの
除数データの2の補数を生成して加算器(k)に与え
る。また、制御データが負の場合には加算を行うため除
数レジスタ(a)からの除数データをそのまま加算器
(k)に与える。
In the next clock cycle, the control circuit (i) performs subtraction when the control data is positive as shown in FIG. 11 based on the control data from the control register (n). A two's complement of the divisor data from the divisor register (a) is generated and given to the adder (k). Further, when the control data is negative, the divisor data from the divisor register (a) is given to the adder (k) as it is for addition.

【0015】制御回路(j)においては、部分剰余レジ
スタ(t)からの部分剰余に被除数レジスタ(d)から
被除数データのうちの前回のクロックサイクルで取り出
された除数データと同じビット数のデータの次の下位の
1ビットデータを取り込み、部分剰余レジスタ(d)か
らの部分剰余データと組み合わされた一つの被除数デー
タを加算器(k)に送る。
In the control circuit (j), the partial remainder from the partial remainder register (t) has the same number of bits of data as the divisor data extracted in the previous clock cycle of the dividend data from the dividend register (d). The next lower 1-bit data is fetched, and one dividend data combined with the partial remainder data from the partial remainder register (d) is sent to the adder (k).

【0016】加算器(k)はレジスタ(l)を経由して
部分商と部分剰余のデータをそれぞれレジスタ(o)及
び(t)に送るとともに制御データを制御レジスタ
(n)に与えることにより、図13に示すようなデータ
1−2をそれぞれのレジスタにクロックサイクル“3”
で同時に格納することとなる。
The adder (k) sends the partial quotient and the partial remainder data to the registers (o) and (t) via the register (l), respectively, and gives control data to the control register (n). Data 1-2 as shown in FIG. 13 is sent to each register in the clock cycle “3”.
Will be stored at the same time.

【0017】このようにして図11に示したような演算
工程を経て例えば図13に示す例においては5つのクロ
ックサイクルで1つのオペランドOP1に対する最終的
な商及び剰余を出力している。
Thus, in the example shown in FIG. 13, for example, in the example shown in FIG. 13, the final quotient and remainder for one operand OP1 are output through the operation steps shown in FIG.

【0018】[0018]

【発明が解決しようとする課題】このような従来の除算
回路において、除算を行うためのオペランドが複数個入
力される場合には、図15に示すように、1つのオペラ
ンドOP1が入力されてから5クロックサイクル後にそ
れに対する最終商及び剰余が出力され、それから始めて
次のオペランドOP2に対する最終商及び剰余が次の5
クロックサイクル後に求められることとなる。
In such a conventional division circuit, when a plurality of operands for division are input, as shown in FIG. 15, one operand OP1 is input. After 5 clock cycles, the final quotient and the remainder for it are output, and starting from that, the final quotient and the remainder for the next operand OP2 are the next 5
It will be required after a clock cycle.

【0019】このため、ベクトルプロセッサのようにデ
ータが連続して入力してくるような場合には、各入力オ
ペランドを待機させなければならず、結果として処理時
間がかかり動作周波数を上げる上で問題となっていた。
Therefore, in the case where data is continuously input like a vector processor, each input operand must be made to wait, resulting in a long processing time and a problem in increasing the operating frequency. It was.

【0020】従って本発明は、連続したサイクルで有効
データを入力するベクトルプロセッサにおける高速除算
回路において、処理時間を短縮して動作周波数を上げる
ことを目的としている。
Therefore, an object of the present invention is to shorten the processing time and increase the operating frequency in a high speed division circuit in a vector processor which inputs valid data in consecutive cycles.

【0021】[0021]

【課題を解決するための手段及び作用】[Means and Actions for Solving the Problems]

〔1〕上記の目的を達成するため、本発明に係る高速除
算回路は、図1に原理的に示すように、連続したサイク
ルで入力される除数の1組目のデータを格納する除数レ
ジスタ(a)と、2組目の除数のデータを格納する除数
テンポラリレジスタ(b)と、該除数レジスタ(a)又
は該除数テンポラリレジスタ(b)のデータを第1のデ
ータ選択回路(h)の出力信号により交互に選択して出
力する除数セレクタ(c)と、連続したサイクルで入力
される被除数の1組目のデータを格納する被除数レジス
タ(d)と、2組目の被除数のデータを格納する被除数
テンポラリレジスタ(e)と、各レジスタ(a〜e)に
データを格納するためのイネーブル信号を生成する第1
のイネーブル信号生成回路(g)と、該被除数レジスタ
(d)又は該被除数テンポラリレジスタ(e)のデータ
を該第1のデータ選択回路(h)の出力信号により交互
に選択して出力する被除数セレクタ(f)と、該除数セ
レクタ(c)のデータを加算結果の正負を示す制御デー
タにより2の補数値又はそのままの値として各組毎に出
力する第1の制御回路(i)と、最初だけ該被除数セレ
クタ(f)のデータを選択し、その後は該被除数セレク
タ(f)の残りのデータの最上位ビットを最下位ビット
とし加算結果の部分剰余データを1ビット上位にシフト
したデータを上位ビットとする一つのデータを出力する
第2の制御回路(j)と、両制御回路(i,j)の出力
データを入力して1組目及び2組目の加算処理を交互に
行って該制御データと部分商データと該部分剰余データ
とを出力する加算器(k)と、該加算器(k)の出力デ
ータを保持する演算処理結果レジスタ(l)と、該レジ
スタ(l)から出力される1組目及び2組目の被除数及
び除数に対する部分商データをそれぞれ格納する第1及
び第2の商用シフトレジスタ(o,p)と、両商用シフ
トレジスタ(o,p)にデータを格納するためのイネー
ブル信号を生成する第2のイネーブル信号生成回路
(q)と、両商用シフトレジスタ(o,p)に最終商が
格納されたときに第2のデータ選択回路の出力信号によ
り外部へ出力するデータを選択する商セレクタ(r)
と、該制御データを格納して該第1の制御回路(i)に
与える制御レジスタ(n)と、該部分剰余データを格納
して該第2の制御回路(j)へ与える部分剰余レジスタ
(t)と、を備えている。
[1] In order to achieve the above object, the high-speed division circuit according to the present invention, as shown in principle in FIG. 1, stores a divisor register ( a), a divisor temporary register (b) for storing data of the second set of divisors, and data of the divisor register (a) or the divisor temporary register (b) output from the first data selection circuit (h) A divisor selector (c) that selects and outputs the signals alternately, a dividend register (d) that stores the first set of data of the dividend input in consecutive cycles, and a data of the second set of dividends. A dividend temporary register (e) and a first register for generating an enable signal for storing data in each register (a to e)
Of the enable signal generation circuit (g) and the dividend register (d) or the dividend temporary register (e) are alternately selected by the output signal of the first data selection circuit (h) and output. (F) and a first control circuit (i) that outputs the data of the divisor selector (c) as a two's complement value or a value as it is according to the control data indicating whether the addition result is positive or negative, and only for the first time The data of the dividend selector (f) is selected, and thereafter, the most significant bit of the remaining data of the dividend selector (f) is used as the least significant bit, and the partial remainder data of the addition result is shifted by one bit to the upper bit. The second control circuit (j) which outputs one data and the output data of both control circuits (i, j) are input and the addition processing of the first set and the second set is alternately performed to perform the control. Day And the partial quotient data and the partial remainder data are output, an arithmetic processing result register (l) that holds the output data of the adder (k), and the register (l) are output. To store data in the first and second commercial shift registers (o, p) that store partial quotient data for the first and second sets of dividend and divisor, respectively, and both commercial shift registers (o, p) Second enable signal generation circuit (q) for generating the enable signal of the second data selection circuit, and when the final quotient is stored in both commercial shift registers (o, p), it is output to the outside by the output signal of the second data selection circuit. Quotient selector (r) for selecting data
A control register (n) for storing the control data and giving it to the first control circuit (i), and a partial remainder register (n) for storing the partial remainder data and giving it to the second control circuit (j). t) and.

【0022】即ち、本発明では、2組の被除数と除数を
連続したサイクルで入力することが条件なので、除数レ
ジスタ(a)と被除数レジスタ(d)の他に除数テンポ
ラリーレジスタ(b)と被除数テンポラリーレジスタ
(e)を設けている。
That is, according to the present invention, since two sets of dividend and divisor are input in consecutive cycles, the divisor temporary register (b) and dividend temporary are provided in addition to the divisor register (a) and the dividend register (d). A register (e) is provided.

【0023】そして、1組目の除数データと被除数デー
タは図2のタイムチャート図に示すようにそれぞれ除数
レジスタ(a)及び被除数レジスタ(d)において第1
のイネーブル信号生成回路(g)からのイネーブル信号
により保持され、また2組目の除数データ及び被除数デ
ータは図3に示すようにそれぞれ除数テンポラリーレジ
スタ(b)及び被除数テンポラリーレジスタ(e)に保
持される。
The divisor data and dividend data of the first set are first stored in the divisor register (a) and the dividend register (d), respectively, as shown in the time chart of FIG.
Is held by the enable signal from the enable signal generation circuit (g), and the second set of divisor data and dividend data are held in the divisor temporary register (b) and the dividend temporary register (e), respectively, as shown in FIG. It

【0024】このような1組目及び2組目の除数データ
及び被除数データはそれぞれ除数セレクタ(c)及び被
除数セレクタ(f)に送られるが、図2及び図3に示す
ように1組目の除数データ及び被除数データがそれぞれ
セレクタ(c)及び(f)から出力されるようにデータ
選択回路(h)によって制御される。
The divisor data and dividend data of the first set and the second set are sent to the divisor selector (c) and the dividend selector (f), respectively. As shown in FIGS. The data selection circuit (h) controls so that the divisor data and the dividend data are output from the selectors (c) and (f), respectively.

【0025】除数セレクタ(c)及び被除数セレクタ
(f)から出力された除数データ及び被除数データはそ
れぞれ第1の制御回路(i)及び第2の制御回路(j)
に送られ、図14について説明したのと同様の演算処理
が行われて演算処理結果レジスタ(l)から部分商デー
タと部分剰余データと制御データとに別れて出力される
こととなる。
The divisor data and the dividend data output from the divisor selector (c) and the dividend selector (f) are the first control circuit (i) and the second control circuit (j), respectively.
Then, the same arithmetic processing as that described with reference to FIG. 14 is performed, and the partial quotient data, the partial remainder data, and the control data are separately output from the arithmetic processing result register (l).

【0026】ただし、この場合部分商は1組目と2組目
のデータをそれぞれ商用シフトレジスタ(o)及び
(p)にそれぞれ保持させ、これらのシフトレジスタ
(o)及び(p)のデータをデータ選択回路(s)によ
って制御される商セレクタ(r)から商データとして取
り出すようにしている。
However, in this case, the partial quotient causes the commercial shift registers (o) and (p) to hold the data of the first set and the second set, respectively, and the data of these shift registers (o) and (p) are held. The quotient data is extracted from the quotient selector (r) controlled by the data selection circuit (s).

【0027】このようにして、1組目のオペランドOP
1に対する処理データ1−1は図1に2段目として示す
ようにそれぞれレジスタ(t)と(o)と(n)とから
それぞれ出力されるが、この間、加算器(k)において
は同図に1段目として示すように演算処理は行われてい
ないことが判る。
In this way, the first set of operands OP
The processed data 1-1 for 1 is output from the registers (t), (o), and (n), respectively, as shown in the second stage of FIG. It can be seen that the arithmetic processing is not performed as shown in the first stage.

【0028】即ち、図2に縦線で示したサイクルにおい
ては演算処理が行われないこととなるので、この期間を
利用して2組目のオペランドOP2に対する処理を行う
こととなる。
That is, since the arithmetic processing is not performed in the cycle shown by the vertical line in FIG. 2, the processing for the second set of operand OP2 is performed using this period.

【0029】この結果、図3に示すように図2に縦線で
示した部分にはオペランドOP2に対する演算結果が保
持されることとなる。
As a result, as shown in FIG. 3, the operation result for the operand OP2 is held in the portion shown by the vertical line in FIG.

【0030】したがって、この例のように被除数データ
及び除数データを2組入力して2サイクル処理を行う場
合には、オペランドOP1に対する最終商及び剰余が出
力されるまでのサイクル数は従来より1サイクル多くか
かるが、ベクトルデータのようにデータが連続して入力
する場合には、動作性能が上がることとなる。
Therefore, when two sets of dividend data and divisor data are input and two-cycle processing is performed as in this example, the number of cycles until the final quotient and the remainder for the operand OP1 are output is one cycle. Although it takes a lot of time, when data is continuously input like vector data, the operation performance is improved.

【0031】〔2〕上記の高速除算回路において、被除
数と除数のデータのビット数が同じで該部分商データを
1ビットづつ求める場合、該第1の制御回路が、該除数
セレクタからのデータを用いた2の補数生成回路と、該
補数生成回路からのデータと該除数セレクタからのデー
タを入力する減数セレクタと、該減数セレクタの選択制
御信号を該制御データから生成する第3のデータ選択回
路とで構成され、該第2の制御回路が、該部分剰余レジ
スタの部分剰余データを1ビット左シフトして出力する
シフト回路と、該被除数セレクタの出力データと該シフ
ト回路の出力データとを入力する被減数セレクタと、該
被減数セレクタの選択制御信号を生成する第4のデータ
選択回路とで構成されるようにしてもよい。
[2] In the above high-speed division circuit, when the dividend and the data of the divisor have the same number of bits and the partial quotient data is obtained bit by bit, the first control circuit outputs the data from the divisor selector. A used two's complement generation circuit, a subtraction selector for inputting the data from the complement generation circuit and the data from the divisor selector, and a third data selection circuit for generating a selection control signal of the subtraction selector from the control data. The second control circuit inputs a shift circuit for left-shifting the partial remainder data of the partial remainder register by 1 bit and outputting it, and output data of the dividend selector and output data of the shift circuit. And a fourth data selection circuit for generating a selection control signal of the minuend selector.

【0032】そして、該減数セレクタが除算処理として
被除数から除数を減ずる場合は該第3のデータ選択回路
の出力信号に基づき該補数生成回路の出力データを選択
し、被除数に除数を加える場合は該除数セレクタの出力
データを選択する。
When the divisor selector subtracts the divisor from the dividend as division processing, the output data of the complement generation circuit is selected based on the output signal of the third data selection circuit, and when the divisor is added to the dividend, the output data of the complement generation circuit is selected. Select the output data of the divisor selector.

【0033】〔3〕上記の高速除算回路において、被除
数のデータのビット数が除数のデータのビット数より大
きく該部分商データを1ビットづつ求める場合、該第1
の制御回路が、該除数セレクタからのデータを用いた2
の補数生成回路と、該補数生成回路からのデータと該除
数セレクタからのデータを入力する減数セレクタと、該
減数セレクタの選択制御信号を該制御データから生成す
る第3のデータ選択回路とで構成され、該第2の制御回
路が、該被除数セレクタの上位側から除数データと同じ
ビット数のデータを選択するための桁下ろしデータセレ
クタと、該データセレクタから下位1ビットのデータを
出力させるための選択制御信号を生成する第4のデータ
選択回路と、該部分剰余レジスタの部分剰余データを1
ビット左シフトして出力するシフト回路と、該被除数セ
レクタの出力データ又は該データセレクタの出力データ
を最下位ビットとし該シフト回路の出力データを上位ビ
ットとする一つのデータを選択する被減数セレクタと、
該被減数セレクタのための選択制御信号を生成する第5
のデータ選択回路とで構成されるようにしてもよい。
[3] In the above high-speed division circuit, when the number of bits of the data of the dividend is larger than the number of bits of the data of the divisor, the partial quotient data is obtained bit by bit,
Control circuit using the data from the divisor selector.
Complementary generation circuit, a subtraction selector for inputting the data from the complement generation circuit and the data from the divisor selector, and a third data selection circuit for generating a selection control signal for the subtraction selector from the control data. The second control circuit outputs a carry-down data selector for selecting data having the same number of bits as the divisor data from the upper side of the dividend selector, and outputting the lower 1-bit data from the data selector. The fourth data selection circuit for generating a selection control signal and the partial remainder data of the partial remainder register are set to 1
A shift circuit that shifts the output to the left by a bit, and a subdivided value selector that selects one of the output data of the dividend selector or the output data of the data selector as the least significant bit and the output data of the shift circuit as the upper bit,
Fifth for generating a selection control signal for the minuend selector
It may be configured with the data selection circuit.

【0034】そして、除算処理として最初に被除数から
除数を減ずる処理をする時のみ該被除数セレクタの出力
データを該被減数セレクタで選択する。
Then, only when the divisor is first subtracted from the dividend as the division processing, the output data of the dividend selector is selected by the dividend selector.

【0035】〔4〕上記の高速除算回路において、該第
1の制御回路が、該補数生成回路の代わりに該除数セレ
クタの出力データのビット反転を行うインバータ回路を
用い、該加算器が除算処理として被除数から除数を減ず
る場合は該第3のデータ選択回路の出力信号を桁上がり
データとして“1”を入力し、被除数に除数を加える場
合は該桁上がりデータを入力しないようにしてもよい。
[4] In the above high-speed division circuit, the first control circuit uses an inverter circuit that performs bit inversion of output data of the divisor selector instead of the complement generation circuit, and the adder performs division processing. When subtracting the divisor from the dividend, "1" is input as the carry data for the output signal of the third data selection circuit, and when adding the divisor to the dividend, the carry data may not be input.

【0036】〔5〕上記のいずれかの高速除算回路は、
被除数のデータのビット数が除数のデータのビット数と
同じで商予測法を用いて部分商を4ビットずつ求める場
合にも適用できる。
[5] One of the above high-speed division circuits is
It can also be applied to the case where the number of bits of the data of the dividend is the same as the number of bits of the data of the divisor and the partial quotient is obtained by 4 bits using the quotient prediction method.

【0037】即ち、テーブルを有し該除数セレクタから
のデータの上位9ビットで示される数の各々について部
分剰余の上位5ビットとの関係から得られる予測商を該
テーブルから出力する商予測回路と、該商予測回路の出
力データを保持して該レジスタとのタイミングを合わせ
るためのタイミングレジスタと、該タイミングレジスタ
のデータと該加算器からの該部分剰余とのタイミングを
合わせるための制御レジスタと、該制御レジスタを介し
て該テーブルからの予測商と該部分剰余とを比較して一
致する予測商を検出する予測商検出回路と、該予測商デ
ータを2回格納する予測商レジスタと、該予測商レジス
タのデータ及び該部分剰余データの符号関係に基づいて
該予測商を補正する商補正回路と、該予測商データを示
す制御信号を生成するための制御部を更に備え、該第1
の制御回路の代わりに、該除数セレクタの値を該制御部
からの該予測商に基づいてシフトするシフト回路と、該
シフト回路の出力データの2の補数を生成する補数生成
回路と、該シフト回路及び該補数生成回路の出力データ
を入力して該予測商に基づきデータを選択する除倍数セ
レクタとで構成された第3の制御回路を用いてもよい。
That is, a quotient prediction circuit which has a table and outputs a prediction quotient obtained from the relationship with the upper 5 bits of the partial remainder for each of the numbers indicated by the upper 9 bits of the data from the divisor selector from the table. A timing register for holding the output data of the quotient prediction circuit and adjusting the timing with the register, and a control register for adjusting the timing of the data of the timing register with the timing of the partial remainder from the adder, A prediction quotient detection circuit that detects the matching prediction quotient by comparing the prediction quotient from the table and the partial remainder via the control register, a prediction quotient register that stores the prediction quotient data twice, and the prediction quotient A quotient correction circuit that corrects the predicted quotient based on the sign relationship between the quotient register data and the partial remainder data, and a control signal that indicates the predicted quotient data Further comprising a control unit of the order, first
Instead of the control circuit, the shift circuit shifts the value of the divisor selector based on the predicted quotient from the control unit, the complement generation circuit that generates the two's complement of the output data of the shift circuit, and the shift circuit. A third control circuit composed of a circuit and a divisor selector that inputs output data of the complement generation circuit and selects data based on the predicted quotient may be used.

【0038】そして、除算処理として予め4ビットの商
を予測し、予測商と次に生成される部分剰余を用いて商
を補正し、これを繰り返すことで最終商を求めることが
できる。
Then, as a division process, a 4-bit quotient is predicted in advance, the quotient is corrected using the predicted quotient and the partial remainder generated next, and the final quotient can be obtained by repeating this.

【0039】[0039]

【実施例】図4は本発明に係る高速除算回路の実施例
(1)を示しており、この実施例では図1に示した高速
除算回路において、被除数と除数のデータのビット数
(ビット幅)が同じで部分商のデータを1ビットづつ求
める場合を示している。
FIG. 4 shows an embodiment (1) of a high-speed division circuit according to the present invention. In this embodiment, in the high-speed division circuit shown in FIG. ) Are the same and the data of the partial quotient are obtained bit by bit.

【0040】このため、第1の制御回路(i)は、除数
セレクタ(c)からのデータを用いた2の補数生成回路
(A)と、この補数生成回路(A)からのデータと除数
セレクタ(c)からのデータを入力する減数セレクタ
(B)と、この減数セレクタ(B)の選択制御信号を制
御レジスタ(n)からの制御データより生成する第3の
データ選択回路(C)とで構成している。
Therefore, the first control circuit (i) uses the data from the divisor selector (c) to generate a two's complement generating circuit (A), the data from the complement generating circuit (A) and the divisor selector. A subtraction selector (B) for inputting data from (c) and a third data selection circuit (C) for generating a selection control signal of the subtraction selector (B) from control data from a control register (n). I am configuring.

【0041】また、第2の制御回路(j)は、部分剰余
レジスタ(t)からの部分剰余データを1ビット左にシ
フトして出力するシフト回路(D)と、被除数セレクタ
(f)の出力データとシフト回路(D)の出力データと
を入力する被減数セレクタ(E)と、この被減数セレク
タ(E)の選択制御信号を生成する第4のデータ選択回
路(F)とで構成している。
The second control circuit (j) shifts the partial remainder data from the partial remainder register (t) to the left by one bit and outputs it, and the output of the dividend selector (f). It is composed of a minuend selector (E) for inputting data and output data of the shift circuit (D) and a fourth data selection circuit (F) for generating a selection control signal of the minuend selector (E).

【0042】つぎに、この実施例において4回のフロー
で最終商及び剰余を求めるための動作を、被除数及び除
数のデータ2組を連続したサイクルで入力した場合を示
す図3のタイムチャートを参照して以下に説明する。
Next, referring to the time chart of FIG. 3, which shows the operation for obtaining the final quotient and the remainder in the flow of four times in this embodiment, two data sets of the dividend and the divisor are input in consecutive cycles. And will be described below.

【0043】(1)クロックサイクル“0”における動
作: 1組目データの処理=外部より除数、被除数(OP
1)が入力される。 2組目データの処理=なし。
(1) Operation in clock cycle "0": Processing of first set data = divisor and dividend (OP
1) is input. Processing of the second set of data = None.

【0044】(2)クロックサイクル“1”における動
作: 1組目データの処理(1段目回路における処理)=ク
ロックサイクル“1”の立ち上がりで1組目のデータを
除数、被除数レジスタ(a,d)に格納する。格納のた
めのイネーブル信号はイネーブル信号生成回路(g)で
生成される。
(2) Operation in clock cycle "1": processing of first group of data (processing in first stage circuit) = divisor of first group of data at rising edge of clock cycle "1", dividend register (a, Store in d). The enable signal for storing is generated by the enable signal generation circuit (g).

【0045】被除数レジスタ(d)から被除数セレクタ
(f)に入力したデータ、並びに除数レジスタ(a)か
ら除数セレクタ(c)に入力したデータは、データ選択
回路(h)で生成された選択信号により選択される。
The data input from the dividend register (d) to the dividend selector (f) and the data input from the divisor register (a) to the divisor selector (c) are selected by the selection signal generated by the data selection circuit (h). To be selected.

【0046】被除数セレクタ(f)から被減数セレクタ
(E)に入力したデータは、データ選択回路(C)で生
成された選択信号を用いてそのまま選択され、また除数
セレクタ(c)から出力したデータは2の補数生成回路
(A)で除数の2の補数値を生成し、減数セレクタ
(B)に入力したデータは、データ選択回路(C)で生
成された選択信号により選択される。
The data inputted from the dividend selector (f) to the dividend selector (E) is selected as it is by using the selection signal generated by the data selection circuit (C), and the data output from the divisor selector (c) is The 2's complement generation circuit (A) generates a 2's complement value of the divisor and the data input to the subtraction selector (B) is selected by the selection signal generated by the data selection circuit (C).

【0047】こうして、被減数セレクタ(E)と減数セ
レクタ(B)で選択されたデータは加算器(k)に入力
されて演算される。
In this way, the data selected by the minuend selector (E) and the subtrahend selector (B) are input to the adder (k) and operated.

【0048】2組目データの処理=外部より除数、被
除数(OP2)が入力される。
Processing of second set data = divisor and dividend (OP2) are input from the outside.

【0049】(3)クロックサイクル“2”における動
作: 1組目データの処理(2段目回路における処理)=ク
ロックサイクル“2”の立ち上がりで加算器(k)の処
理結果を演算処理結果レジスタ(l)に格納する。演算
結果から符号、商、部分剰余の分別を行う。
(3) Operation in clock cycle "2": processing of the first set of data (processing in the second stage circuit) = calculation result register of the processing result of the adder (k) at the rising edge of clock cycle "2" Store in (l). The sign, quotient, and partial remainder are separated from the operation result.

【0050】2組目データの処理(1段目回路におけ
る処理)=クロックサイクル“2”の立ち上がりで2組
目のデータを、除数、被除数テンポラリレジスタ(b,
e)に格納する。格納のためのイネーブル信号はイネー
ブル信号生成回路(g)で生成される。
Processing of the second set of data (processing in the first stage circuit) = The data of the second set is divided by the rising edge of the clock cycle "2", and the divisor and dividend temporary registers (b,
Store in e). The enable signal for storing is generated by the enable signal generation circuit (g).

【0051】被除数テンポラリレジスタ(e)から被除
数セレクタ(f)に入力したデータ、並びに除数テンポ
ラリレジスタ(b)から除数セレクタ(c)に入力した
データは、データ選択回路(h)で生成された選択信号
により選択される。
The data input from the dividend temporary register (e) to the dividend selector (f) and the data input from the divisor temporary register (b) to the divisor selector (c) are selected by the data selection circuit (h). Selected by signal.

【0052】被除数セレクタ(f)から被減数セレクタ
(E)に入力したデータは、データ選択回路(F)で生
成された選択信号を用いてそのまま選択され、また除数
セレクタ(c)から出力したデータは2の補数生成回路
(A)で除数の2の補数値を生成し、減数セレクタ
(B)に入力したデータは、データ選択回路(C)で生
成された選択信号により選択される。
The data input from the dividend selector (f) to the dividend selector (E) is selected as it is by using the selection signal generated by the data selection circuit (F), and the data output from the divisor selector (c) is The 2's complement generation circuit (A) generates a 2's complement value of the divisor and the data input to the subtraction selector (B) is selected by the selection signal generated by the data selection circuit (C).

【0053】こうして、被減数セレクタ(E)と減数セ
レクタ(B)で選択されたデータは加算器(k)に入力
されて演算される。
In this way, the data selected by the minuend selector (E) and the subtrahend selector (B) are input to the adder (k) to be calculated.

【0054】(4)クロックサイクル“3”における動
作: 1組目データの処理(1段目回路における処理)=ク
ロックサイクル“3”の立ち上がりで、クロックサイク
ル“2”で求めた符号、商、部分剰余を制御レジスタ
(n)、商用シフトレジスタ(o)、部分剰余レジスタ
(t)に格納する。但し、商用シフトレジスタ(o)に
は、イネーブル信号生成回路(q)で生成されたイネー
ブル信号を用いて2サイクル連続して格納する。
(4) Operation in clock cycle "3": Processing of first set of data (processing in first stage circuit) = sign, quotient obtained in clock cycle "2" at the rising edge of clock cycle "3", The partial remainder is stored in the control register (n), the commercial shift register (o), and the partial remainder register (t). However, in the commercial shift register (o), the enable signal generated by the enable signal generation circuit (q) is used to continuously store for two cycles.

【0055】それから、シフト回路(D)では、部分剰
余レジスタ(t)の値を1ビット左にシフトして出力
し、被減数セレクタ(E)でこの値を選択し、減数セレ
クタ(B)では制御レジスタ(n)の値を選択制御信号
として用いて、被除数に除数を加える時は除数セレクタ
(c)の値を選択し、被除数から除数を減ずる時は除数
セレクタ(c)の値の2の補数値を選択して加算器
(k)に入力する。
Then, in the shift circuit (D), the value of the partial remainder register (t) is shifted to the left by 1 bit and output, and this value is selected by the minuend selector (E), and is controlled by the subtraction selector (B). By using the value of the register (n) as a selection control signal, the value of the divisor selector (c) is selected when the divisor is added to the dividend, and the value of the divisor selector (c) is complemented by 2 when the divisor is subtracted from the dividend. Select a numerical value and input it to the adder (k).

【0056】2組目データの処理(2段目回路におけ
る処理)=クロックサイクル“3”の立ち上がりで、加
算器(k)の処理結果を演算処理結果レジスタ(l)に
格納する。演算結果から符号、商、部分剰余の分別を行
う。
Processing of the second set of data (processing in the second stage circuit) = At the rising edge of the clock cycle "3", the processing result of the adder (k) is stored in the arithmetic processing result register (l). The sign, quotient, and partial remainder are separated from the operation result.

【0057】(5)クロックサイクル“4”における動
作: 1組目データの処理(2段目回路における処理)クロ
ックサイクル“4”の動作と同様。 2組目データの処理(1段目回路における処理)=ク
ロックサイクル“4”の立ち上がりで、クロックサイク
ル“3”で求めた符号、商、部分剰余を制御レジスタ
(n)、商用シフトレジスタ(p)、部分剰余レジスタ
(t)に格納する。但し、商用シフトレジスタ(p)に
は、イネーブル信号生成回路(q)で生成されたイネー
ブル信号を用いて2サイクル連続して格納する。
(5) Operation in clock cycle "4": Processing of first set of data (processing in second stage circuit) Same as operation in clock cycle "4". Processing of the second set of data (processing in the first-stage circuit) = At the rise of the clock cycle “4”, the code, quotient, and partial remainder obtained in the clock cycle “3” are stored in the control register (n) and the commercial shift register (p). ), And the partial remainder register (t). However, in the commercial shift register (p), the enable signal generated by the enable signal generation circuit (q) is used to store it continuously for two cycles.

【0058】それから、シフト回路(D)では、部分剰
余レジスタ(t)の値を1ビット左にシフトして出力
し、被減数セレクタ(E)でこの値を選択し、減数セレ
クタ(B)では制御レジスタ(n)の値を選択制御信号
として用いて、被除数に除数を加える時は除数セレクタ
(c)の値を選択し、被除数から除数を減ずる時は除数
セレクタ(c)の値の2の補数値を選択して加算器
(k)に入力する。
Then, in the shift circuit (D), the value of the partial remainder register (t) is shifted to the left by one bit and output, and this value is selected by the minuend selector (E) and controlled by the subtractor selector (B). By using the value of the register (n) as a selection control signal, the value of the divisor selector (c) is selected when the divisor is added to the dividend, and the value of the divisor selector (c) is complemented by 2 when the divisor is subtracted from the dividend. Select a numerical value and input it to the adder (k).

【0059】以下、クロックサイクル“3”、”4”の
動作を繰り返し交互に行い、クロックサイクル“9”に
は1組目のデータに対する演算結果が出力され、クロッ
クサイクル“10”には2組目のデータに対する演算結
果が出力されることとなる。
Thereafter, the operations of the clock cycles "3" and "4" are repeatedly performed alternately, the operation result for the first set of data is output in the clock cycle "9", and the two sets are output in the clock cycle "10". The calculation result for the eye data is output.

【0060】図5は本発明に係る高速除算回路の実施例
(2)の構成を示したもので、この実施例においては、
上記の実施例(1)と同様に被除数と除数のデータのビ
ット数が同じで部分商のデータを1ビットづつ求める場
合において、第1の制御回路(i)の補数生成回路
(A)の代わりに除数セレクタ(c)の出力データのビ
ット反転を行うインバータ回路(H)を用い、加算器
(k)が除算処理として被除数から除数を減ずる場合は
データ選択回路(C)からの選択信号によって減数セレ
クタ(B)がインバータ回路(H)からのデータを選択
するとともに、このデータ選択回路(C)の選択信号を
桁上がりデータとして“1”を入力するようにしてい
る。また、被除数に除数を加える場合は除数セレクタ
(c)からの出力データを減数セレクタ(B)が選択す
るようにデータ選択回路(C)は制御を行い、桁上がり
データは入力しないようにしている。
FIG. 5 shows the configuration of an embodiment (2) of the high speed division circuit according to the present invention. In this embodiment,
As in the case of the above embodiment (1), when the data of the dividend and the divisor have the same number of bits and the data of the partial quotient are obtained bit by bit, instead of the complement generation circuit (A) of the first control circuit (i) When the adder (k) subtracts the divisor from the dividend as division processing, an inverter circuit (H) that bit-inverts the output data of the divisor selector (c) is used for subtraction by the selection signal from the data selection circuit (C). The selector (B) selects the data from the inverter circuit (H) and inputs "1" as carry data for the selection signal of the data selection circuit (C). Further, when a divisor is added to the dividend, the data selection circuit (C) controls the output data from the divisor selector (c) so that the subtraction selector (B) selects the carry data. .

【0061】図6は本発明に係る高速除算回路の実施例
(3)を示したもので、この実施例においては第1の制
御回路(i)は図4に示した実施例(1)における制御
回路(i)と同様の構成を有しているが、第2の制御回
路(j)は、被除数セレクタ(f)の上位側から除数デ
ータと同じビット数のデータを選択するための桁下ろし
データセレクタ(J)と、このデータセレクタ(J)か
ら下位1ビットのデータを出力させるための選択信号を
生成する第4のデータ選択回路(K)と、部分剰余レジ
スタ(t)の部分剰余データを1ビット左シフトして出
力するシフト回路(D)と、被除数セレクタ(f)の出
力データまたはデータセレクタ(J)の出力データを最
下位ビットとしシフト回路(D)の出力データを上位ビ
ットとする1つのデータを選択する被減数セレクタ
(E)と、この被減数セレクタ(E)のための選択制御
信号を生成する第5のデータ選択回路(F)とで構成さ
れている。
FIG. 6 shows an embodiment (3) of the high speed division circuit according to the present invention. In this embodiment, the first control circuit (i) is the same as the embodiment (1) shown in FIG. The second control circuit (j) has the same structure as the control circuit (i), but the second control circuit (j) is a carry-down for selecting data having the same number of bits as the divisor data from the upper side of the dividend selector (f). A data selector (J), a fourth data selection circuit (K) for generating a selection signal for outputting data of lower 1 bit from the data selector (J), and partial remainder data of a partial remainder register (t). Of the shift circuit (D) that shifts to the left by 1 bit and outputs the output data of the dividend selector (f) or the output data of the data selector (J) as the least significant bit and the output data of the shift circuit (D) as the most significant bit. One to do A minuend selector (E) to select the over motor, the selection control signal is constituted de fifth data selection circuit (F) and for generating for the minuend selector (E).

【0062】そして、除算処理として最初に被除数から
除数を減ずる処理を行うときのみ被除数セレクタ(f)
の出力データを被減数セレクタ(E)から出力選択する
ようにデータ選択回路(F)が制御するようにしてい
る。
Then, the dividend selector (f) is set only when the process of subtracting the divisor from the dividend is first performed as the division process.
The data selection circuit (F) controls so that the output data of (1) is selected from the minuend selector (E).

【0063】図7は本発明に係る高速除算回路の実施例
(4)を示したもので、この実施例では図6に示した実
施例(3)において第1の制御回路(i)を図5に示し
た実施例(2)と同様にインバータ回路(H)と減数セ
レクタ(B)とデータ選択回路(C)とで構成した点が
異なっている。
FIG. 7 shows an embodiment (4) of the high speed division circuit according to the present invention. In this embodiment, the first control circuit (i) in the embodiment (3) shown in FIG. 6 is shown. Similar to the embodiment (2) shown in FIG. 5, the inverter circuit (H), the subtraction selector (B) and the data selection circuit (C) are different.

【0064】従ってその動作は上記の実施例(2)と
(3)とを併せたものとなっている。
Therefore, the operation is a combination of the above embodiments (2) and (3).

【0065】図8は本発明に係る高速除算回路の実施例
(5)を示したものでありこの実施例では上記の実施例
と異なり商予測法を用いている。
FIG. 8 shows an embodiment (5) of the high speed division circuit according to the present invention. In this embodiment, unlike the above embodiments, the quotient prediction method is used.

【0066】ここで、商予測法を若干説明すると、例え
ば被除数「7543」を除数「3」で除算する場合、その検
算は図9(1)に示すようにして行われるのが通常であ
るが、商予測方式の場合には同図(2)に示すように、
まず被除数「7543」における「7」に対して「2」を立
て、この部分剰余と次の値「5」からなる被除数「15」
に対して今度は一定の商予測法によって決まる商「6」
を立て、この結果、部分剰余が「-3」となるので今度は
次の値「4」を部分剰余「-30 」に対して加算すること
により部分剰余が「-26 」となり、さらにこれに対して
も同様にして商予測法を当てはめて商「9」が得られる
ので、これによる部分剰余は「1」となり、最後の被除
数「3」を加えた値「13」に対して最後の商「1」を割
り当てることにより、その部分剰余は「1」となる。
Here, the quotient prediction method will be briefly described. For example, when the dividend “7543” is divided by the divisor “3”, the verification is usually performed as shown in FIG. 9 (1). In the case of the quotient prediction method, as shown in (2) of FIG.
First, "2" is set for "7" in the dividend "7543", and the dividend "15" that consists of this partial remainder and the next value "5"
Against this, the quotient "6" determined by a certain quotient forecasting method
As a result, the partial remainder becomes “−3”, so by adding the next value “4” to the partial remainder “−30”, the partial remainder becomes “−26”. Similarly, since the quotient prediction method is applied to obtain the quotient "9", the partial remainder due to this is "1", and the last quotient is added to the value "13" to which the last dividend "3" is added. By assigning "1", the partial remainder becomes "1".

【0067】このとき、部分剰余が正であるか負である
かによってその前後関係から補正を行うこととなる。
At this time, depending on whether the partial remainder is positive or negative, correction is performed from the context.

【0068】すなわち、同図(2)の例では、商「2」
は正から正になっているので補正せずにそのままの値
「2」を採用し、次の商「6」は正から負に変化してい
るのでこの商「6」から1を減じて「5」とし、次の商
「9」については負から正に変わっているのでこの商
「9」に対する2の補数「1」を採用し、さらに最後の
商「4」については正から正になっているので、補正せ
ずにそのままの値「4」を出力することとなり、この結
果、商は「2514」となり最終的な剰余は「1」となる。
That is, in the example of FIG. 2B, the quotient "2"
Is a positive value, the value "2" is used as it is without correction. The next quotient "6" is changing from positive to negative. 5 ”, since the next quotient“ 9 ”has changed from negative to positive, the two's complement“ 1 ”for this quotient“ 9 ”is adopted, and the final quotient“ 4 ”is changed from positive to positive. Therefore, the value "4" is output as it is without correction, and as a result, the quotient becomes "2514" and the final remainder becomes "1".

【0069】このように、商予測法においては部分剰余
上位5ビットと除数上位9ビットの関係から1つの商を
予測するためのテーブルが必要であり、またこのような
テーブルから求めたときの部分剰余の符号の変化によっ
て一旦求めた商を補正することとなる。
As described above, the quotient prediction method requires a table for predicting one quotient from the relationship between the partial upper 5 bits and the divisor upper 9 bits, and the portion obtained from such a table is used. The quotient once obtained is corrected by the change of the sign of the remainder.

【0070】このようなことから、図8に示した実施例
(5)においては被除数のデータのビット数が除数のビ
ット数と同じで商予測法を用いて部分商を4ビットづつ
求める場合において、テーブルを有し除数セレクタ
(c)からのデータの上位9ビットで示される数の各々
について部分剰余の上位5ビットとの関係から得られる
予測商を該テーブルから出力する商予測回路(S)と、
この商予測回路(S)の出力データを保持して演算処理
結果レジスタ(l)とのタイミングを合わせるためのタ
イミングレジスタ(R)と、このタイミングレジスタ
(R)のデータと加算器(k)からの部分剰余とのタイ
ミングを合わせるための制御レジスタ(N)と、この制
御レジスタ(N)を介して商予測回路(S)のテーブル
からの予測商と上記の部分剰余とを比較して一致する予
測商を検出する予測商検出回路(U)と、この予測商デ
ータを2回格納する予測商レジスタ(V)と、この予測
商レジスタ(V)のデータ及び上記の部分剰余データの
符号関係に基づいて上記の予測商を補正する商補正回路
(W)と、上記の予測商データを示す制御信号を生成す
るための制御部(X)をさらに設けている。
From the above, in the embodiment (5) shown in FIG. 8, in the case where the number of bits of the data of the dividend is the same as the number of bits of the divisor, the partial quotient is obtained every 4 bits by using the quotient prediction method. , A quotient prediction circuit (S) for outputting a prediction quotient obtained from the relation with the upper 5 bits of the partial remainder for each of the numbers indicated by the upper 9 bits of the data from the divisor selector (c), from the table. When,
From the timing register (R) for holding the output data of the quotient prediction circuit (S) and adjusting the timing with the arithmetic processing result register (l), and the data of the timing register (R) and the adder (k) Control register (N) for matching the timing with the partial remainder of the above, and the predicted quotient from the table of the quotient prediction circuit (S) is compared with the above partial remainder via this control register (N) and they match. A predictive quotient detection circuit (U) for detecting a predictive quotient, a predictive quotient register (V) for storing the predictive quotient data twice, and a code relation between the data of the predictive quotient register (V) and the partial remainder data described above. A quotient correction circuit (W) that corrects the predicted quotient based on the above, and a control unit (X) that generates a control signal indicating the predicted quotient data are further provided.

【0071】また、上記の第1の制御回路(i)の代わ
りに第3の制御回路(Y)を用いており、この第3の制
御回路(Y)は除数セレクタ(c)の値を制御部(X)
からの予測商に基づいてシフトするシフト回路(L)
と、このシフト回路(L)の出力データの2の補数を生
成する補数生成回路(A)と、シフト回路(L)及び補
数生成回路(A)の出力データを入力して予測商に基づ
きデータを選択する除倍数セレクタ(M)とで構成して
いる。
A third control circuit (Y) is used instead of the first control circuit (i), and the third control circuit (Y) controls the value of the divisor selector (c). Department (X)
Shift circuit (L) that shifts based on the predicted quotient from
And the output data of the shift circuit (L) and the complement generation circuit (A), and the data generated on the basis of the predicted quotient. And a divisor selector (M) for selecting.

【0072】そして、除算処理として予め4ビットの商
を予測し、予測商と次に生成される部分剰余を用いて商
を補正し、これを繰り返すことで最終商を求めている。
Then, as a division process, a 4-bit quotient is predicted in advance, the quotient is corrected using the predicted quotient and the partial remainder generated next, and this is repeated to obtain the final quotient.

【0073】このような実施例(5)の動作を次に詳細
に説明するため、次式に示すような被除数データと除数
データ(16進表示)を例にとる。
In order to describe the operation of the embodiment (5) in detail below, the dividend data and the divisor data (hexadecimal display) as shown in the following expressions will be taken as an example.

【0074】[0074]

【数1】 [Equation 1]

【0075】このようなデータの場合、演算処理結果レ
ジスタ(l)から制御レジスタ(N)に与えられる部分
剰余は最初は被除数であるので、一回目の部分剰余の上
位5ビット“15” (HEX)を除数の上位9ビット“1A
1”(HEX) で除算することとなる。
In the case of such data, the partial remainder given from the operation result register (l) to the control register (N) is first the dividend, so the upper 5 bits "15" (HEX) of the first partial remainder (HEX ) Is the upper 9 bits of the divisor "1A
It will be divided by 1 ”(HEX).

【0076】したがって、商予測回路(S)において
は、除数の上位9ビット(1回目は“1A1”) を見
て、これに対する予測商の全てをタイミングレジスタ
(R)に対して出力する。
Therefore, the quotient prediction circuit (S) looks at the upper 9 bits of the divisor ("1A1" for the first time) and outputs all predicted quotients to the timing register (R).

【0077】この商予測回路(S)に備わっているテー
ブルでは除数の上位9ビットと部分剰余上位5ビットと
の関係から求められる予測商を示している。
The table provided in this quotient prediction circuit (S) shows the predicted quotient obtained from the relationship between the upper 9 bits of the divisor and the upper 5 bits of the partial remainder.

【0078】すなわち、ある除数に対して部分剰余は一
つしかないが、部分剰余は減算処理を行った後に最終的
に決定されるので、その前に予め「このような部分剰余
が出てくればこういう予測商が求められる」ということ
を前提にして求めたものである。
That is, there is only one partial remainder for a given divisor, but the partial remainder is finally determined after the subtraction processing. This is the assumption.

【0079】したがって上記の例では、除数の上位9ビ
ットが“1A1”であるのでこれと組合せ可能な部分剰
余5ビット全てに対して予測商を求める。この予測商デ
ータには、相応する部分剰余番号を付けておき、タイミ
ングレジスタ(R)を介して制御レジスタ(N)に送ら
れる。
Therefore, in the above example, since the upper 9 bits of the divisor are "1A1", the prediction quotient is obtained for all the partial remainder 5 bits that can be combined with this. A corresponding partial remainder number is attached to the predicted quotient data and sent to the control register (N) via the timing register (R).

【0080】制御レジスタ(N)では、演算処理結果レ
ジスタ(l)から送られてくる部分剰余データ(ただ
し、一回目は被除数がそのまま出力される)が制御レジ
スタ(N)に与えられるので、さらに予測商検出回路
(U)においてはレジスタ(l)からの部分剰余“1
5” (HEX)を用いて、商予測回路(S)で部分剰余番号
“15”を付けた予測商の“D”を引き当て、この予測
商“D”を予測商レジスタ(V)に格納するとともに制
御部(X)を介してシフト回路(L)及び除倍数セレク
タ(M)に与えている。
In the control register (N), the partial remainder data (however, the dividend is output as it is at the first time) sent from the arithmetic processing result register (l) is given to the control register (N). In the prediction quotient detection circuit (U), the partial remainder "1" from the register (l)
5 "(HEX) is used to allocate the prediction quotient" D "with the partial remainder number" 15 "in the quotient prediction circuit (S), and this prediction quotient" D "is stored in the prediction quotient register (V). At the same time, it is given to the shift circuit (L) and the multiplication factor selector (M) via the control unit (X).

【0081】なお、この制御回路(X)は予測商が
“D”(HEX) になることが判ったので除数を“D倍”す
るように制御信号を作り出すもので、この“D倍”はシ
フト回路(L)に送られて実現することができる。
Since it has been found that the prediction quotient of this control circuit (X) is "D" (HEX), it produces a control signal so that the divisor is "D times". This "D times" is It can be realized by sending it to the shift circuit (L).

【0082】一方、加算器(k)においては、部分剰余
の上位5ビット目に除数の最上位ビットを合わせて次式
に示すように加減算を行う。
On the other hand, in the adder (k), the most significant bit of the divisor is added to the upper 5 bits of the partial remainder, and addition and subtraction are performed as shown in the following equation.

【0083】[0083]

【数2】 [Equation 2]

【0084】なお、上記の式において、(1)は除数×
1倍を加算する場合を示しており、(2)は除数×1倍
を減算する場合を示している。
In the above equation, (1) is the divisor ×
The case where 1 times is added is shown, and (2) shows the case where divisor × 1 times is subtracted.

【0085】したがって、上記のように予測商が“D”
(HEX) として求まったので、シフト回路(L)では
“D”=13に相当するように、除数を(−8)倍、
(−4)倍、(−1)倍したデータを部分剰余に加算す
る。これを式で表すと次式のようになる。
Therefore, the predicted quotient is "D" as described above.
Since it is obtained as (HEX), in the shift circuit (L), the divisor is multiplied by (-8) times so as to correspond to "D" = 13.
The data multiplied by (-4) times and (-1) times is added to the partial remainder. This can be expressed by the following equation.

【0086】[0086]

【数3】 (Equation 3)

【0087】なお、上記の式においては予測商“D”に
よって減算する場合を示しており、除倍数セレクタ
(M)は制御部(X)からの制御信号により3つの除数
データを出力することとなるので、加算器(k)はこれ
と部分剰余データとを合わせて4つのデータ入力を有す
る加算器となる。
The above equation shows the case of subtraction by the prediction quotient "D", and the divisor selector (M) outputs three divisor data by the control signal from the control unit (X). Therefore, the adder (k) is an adder having four data inputs in combination with the partial remainder data.

【0088】このようにして予測商“D”によって部分
剰余は「010000011 」であることが求められ、また上記
の式により符号は正であることが判ったので、正の場合
は2段構成の予測商レジスタ(V)に格納しておいた予
測商“D”を商補正回路(W)でなにも補正せずにその
まま正式な商として出力することとなる。
In this way, the partial remainder was found to be "010000011" by the predicted quotient "D", and it was found from the above equation that the sign was positive. The predicted quotient "D" stored in the predicted quotient register (V) is directly output as the official quotient without any correction by the quotient correction circuit (W).

【0089】また、このような部分剰余の上位9ビット
は“083 ”(HEX) になり、次の予測商は予測商生成回路
(U)により“5”(HEX) と求められるので、加算器
(k)においては次式のように加算が行われることとな
る。
Further, the upper 9 bits of such a partial remainder becomes "083" (HEX), and the next predicted quotient is obtained as "5" (HEX) by the predicted quotient generation circuit (U). In (k), addition is performed as in the following equation.

【0090】[0090]

【数4】 [Equation 4]

【0091】したがって、この場合も部分剰余の結果は
正であるので、上記と同様に商補正回路(W)では予測
商“5”に補正をかけずそのまま正式な商として出力す
ることとなる。
Therefore, in this case as well, the result of the partial remainder is positive, so that the quotient correction circuit (W) outputs the formal quotient as it is without correcting the predicted quotient "5" as in the above case.

【0092】図11には1組のデータが上記のように予
測商演算を行われる場合のタイムチャートが示されてい
る。
FIG. 11 shows a time chart when a set of data is subjected to the prediction quotient operation as described above.

【0093】[0093]

【発明の効果】以上説明したように本発明に係る高速除
算回路によれば、2組の被除数と除数を連続したサイク
ルで入力し、2サイクル処理による除算を行い、1段目
のサイクルで一方の組のデータの除算処理を行うととも
に2段目のサイクルでは他方の組の加減算処理以外の処
理を行うように構成しているので、2サイクル処理は1
サイクル処理に比べると最終商が出力されるまでのサイ
クル数は1サイクル多くかかるが、動作性能は、 動作性能=(動作周波数÷サイクル数)×求められる商
の個数 で表されるので、従来の場合には、50MHz ÷8×2組
=12.5であるのに対し、本発明の場合には100MH
z ÷9サイクル×2組=22.2となって倍近くまでサ
イクル動作周波数を上げることができることとなる。
As described above, according to the high-speed division circuit of the present invention, two sets of dividend and divisor are input in consecutive cycles, division is performed by two-cycle processing, and one cycle is executed in the first cycle. Is configured to perform the division processing of the data of the group and the processing other than the addition / subtraction processing of the other group in the cycle of the second stage.
Compared to the cycle processing, the number of cycles until the final quotient is output takes one more cycle, but the operating performance is expressed by: operating performance = (operating frequency ÷ number of cycles) × number of required quotients. In the case of 50 MHz / 8 × 2 sets = 12.5, in the case of the present invention, 100 MH
z / 9 cycles × 2 sets = 22.2, which means that the cycle operating frequency can be increased to nearly double.

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

【図1】本発明に係る高速除算回路の構成を原理的に示
したブロック図である。
FIG. 1 is a block diagram showing in principle the configuration of a high-speed division circuit according to the present invention.

【図2】本発明に係る高速除算回路の動作を説明するた
めのタイムチャート図(その1)である。
FIG. 2 is a time chart diagram (1) for explaining the operation of the high-speed division circuit according to the present invention.

【図3】本発明に係る高速除算回路の動作を説明するた
めのタイムチャート図(その2)である。
FIG. 3 is a time chart diagram (No. 2) for explaining the operation of the high-speed division circuit according to the present invention.

【図4】本発明に係る高速除算回路の実施例(1)を示
したブロック図である。
FIG. 4 is a block diagram showing an embodiment (1) of the high-speed division circuit according to the present invention.

【図5】本発明に係る高速除算回路の実施例(2)を示
したブロック図である。
FIG. 5 is a block diagram showing an embodiment (2) of the high-speed division circuit according to the present invention.

【図6】本発明に係る高速除算回路の実施例(3)を示
したブロック図である。
FIG. 6 is a block diagram showing an embodiment (3) of the high-speed division circuit according to the present invention.

【図7】本発明に係る高速除算回路の実施例(4)を示
したブロック図である。
FIG. 7 is a block diagram showing an embodiment (4) of the high-speed division circuit according to the present invention.

【図8】本発明に係る高速除算回路の実施例(5)を示
したブロック図である。
FIG. 8 is a block diagram showing an embodiment (5) of the high-speed division circuit according to the present invention.

【図9】本発明に係る高速除算回路に用いる商予測法の
説明図である。
FIG. 9 is an explanatory diagram of a quotient prediction method used in the high speed division circuit according to the present invention.

【図10】本発明に係る高速除算回路における1組のデ
ータの商予測法による動作タイムチャート図である。
FIG. 10 is an operation time chart diagram of a quotient prediction method for a set of data in the high-speed division circuit according to the present invention.

【図11】基本的な除算の方法を説明するための図であ
る。
FIG. 11 is a diagram for explaining a basic division method.

【図12】従来から知られている除算回路の構成を示し
たブロック図である。
FIG. 12 is a block diagram showing a configuration of a conventionally known division circuit.

【図13】従来例の動作タイムチャート図(その1)で
ある。
FIG. 13 is an operation time chart diagram (1) of a conventional example.

【図14】従来例の動作タイムチャート図(その2)で
ある。
FIG. 14 is an operation time chart diagram (part 2) of the conventional example.

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

(a) 除数レジスタ (b) 除数テンポラリーレジスタ (c) 除数セレクタ (d) 被除数レジスタ (e) 被除数テンポラリーレジスタ (f) 被除数セレクタ (g),(q) イネーブル信号生成回路 (h),(s) データ選択回路 (i),(j) 制御回路 (k) 加算器 (l) 演算処理結果レジスタ (n) 制御レジスタ (o),(p) 商用シフトレジスタ (t) 部分剰余レジスタ (r) 商セレクタ 図中、同一符号は同一または相当部分を示す。 (A) Divisor register (b) Divisor temporary register (c) Divisor selector (d) Dividend register (e) Dividend temporary register (f) Dividend selector (g), (q) Enable signal generation circuit (h), (s) Data selection circuit (i), (j) Control circuit (k) Adder (l) Operation processing result register (n) Control register (o), (p) Commercial shift register (t) Partial remainder register (r) Quotient selector In the drawings, the same reference numerals indicate the same or corresponding parts.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 連続したサイクルで入力される除数の1
組目のデータを格納する除数レジスタと、 2組目の除数のデータを格納する除数テンポラリレジス
タと、 該除数レジスタ又は該除数テンポラリレジスタのデータ
を第1のデータ選択回路の出力信号により交互に選択し
て出力する除数セレクタと、 連続したサイクルで入力される被除数の1組目のデータ
を格納する被除数レジスタと、 2組目の被除数のデータを格納する被除数テンポラリレ
ジスタと、 各レジスタにデータを格納するためのイネーブル信号を
生成する第1のイネーブル信号生成回路と、 該被除数レジスタ又は該被除数テンポラリレジスタのデ
ータを該第1のデータ選択回路の出力信号により交互に
選択して出力する被除数セレクタと、 該除数セレクタのデータを加算結果の正負を示す制御デ
ータにより2の補数値又はそのままの値として各組毎に
出力する第1の制御回路と、 最初だけ該被除数セレクタのデータを選択し、その後は
該被除数セレクタの残りのデータの最上位ビットを最下
位ビットとし加算結果の部分剰余データを1ビット上位
にシフトしたデータを上位ビットとする一つのデータを
出力する第2の制御回路と、 両制御回路の出力データを入力して1組目及び2組目の
加算処理を交互に行って該制御データと部分商データと
該部分剰余データとを出力する加算器と、 該加算器の出力データを保持する演算処理結果レジスタ
と、 該演算結果レジスタから出力される1組目及び2組目の
被除数及び除数に対する部分商データをそれぞれ格納す
る第1及び第2の商用シフトレジスタと、 両商用レジスタにデータを格納するためのイネーブル信
号を生成する第2のイネーブル信号生成回路と、 両シフトレジスタに最終商が格納されたときに第2のデ
ータ選択回路の出力信号により外部へ出力するデータを
選択する商セレクタと、 該制御データを格納して該第1の制御回路に与える制御
レジスタと、 該部分剰余データを格納して該第2の制御回路へ与える
部分剰余レジスタと、 を備えたことを特徴とする高速除算回路。
1. A divisor of 1 entered in consecutive cycles
The divisor register for storing the data of the second set, the divisor temporary register for storing the data of the second divisor, and the data of the divisor register or the divisor temporary register are alternately selected by the output signal of the first data selection circuit. Output, the dividend register that stores the first set of data of the dividend that is input in consecutive cycles, the dividend temporary register that stores the data of the second set of dividends, and the data stored in each register. A first enable signal generation circuit for generating an enable signal for performing the operation, and a dividend selector that alternately selects and outputs the data of the dividend register or the dividend temporary register by the output signal of the first data selection circuit, The data of the divisor selector is set to the two's complement value or its value according to the control data indicating whether the addition result is positive or negative. The first control circuit that outputs each value as each value, and the data of the dividend selector is first selected, and then the most significant bit of the remaining data of the dividend selector is the least significant bit and the part of the addition result The second control circuit that outputs one data whose upper bit is the data obtained by shifting the remainder data to the upper bit and the output data of both control circuits are input, and the addition processing of the first set and the second set is alternately performed. To output the control data, the partial quotient data, and the partial remainder data, an operation processing result register holding the output data of the adder, a first set output from the operation result register, and First and second commercial shift registers for storing partial quotient data for the second set of dividend and divisor, respectively, and an enable signal for storing data in both commercial registers A second enable signal generation circuit, a quotient selector that selects data to be output to the outside by an output signal of the second data selection circuit when the final quotient is stored in both shift registers, and stores the control data. A high-speed division circuit comprising: a control register to be given to the first control circuit; and a partial remainder register for storing the partial remainder data and giving it to the second control circuit.
【請求項2】 請求項1に記載の高速除算回路におい
て、被除数と除数のデータのビット数が同じで該部分商
データを1ビットづつ求める場合、 該第1の制御回路が、該除数セレクタからのデータを用
いた2の補数生成回路と、該補数生成回路からのデータ
と該除数セレクタからのデータを入力する減数セレクタ
と、該減数セレクタの選択制御信号を該制御データから
生成する第3のデータ選択回路とで構成され、 該第2の制御回路が、該部分剰余レジスタの部分剰余デ
ータを1ビット左シフトして出力するシフト回路と、該
被除数セレクタの出力データと該シフト回路の出力デー
タとを入力する被減数セレクタと、該被減数セレクタの
選択制御信号を生成する第4のデータ選択回路とで構成
され、 該減数セレクタが除算処理として被除数から除数を減ず
る場合は該第3のデータ選択回路の出力信号に基づき該
補数生成回路の出力データを選択し、被除数に除数を加
える場合は該除数セレクタの出力データを選択すること
を特徴とした高速除算回路。
2. The high-speed division circuit according to claim 1, wherein when the dividend and the data of the divisor have the same number of bits and the partial quotient data is obtained bit by bit, the first control circuit outputs from the divisor selector. 2's complement generation circuit using the data of the above, a subtraction selector for inputting the data from the complement generation circuit and the data from the divisor selector, and a third control circuit for generating a selection control signal of the subtraction selector from the control data. And a data selection circuit, wherein the second control circuit shifts the partial remainder data of the partial remainder register to the left by 1 bit and outputs the shift remainder, output data of the dividend selector and output data of the shift circuit. And a fourth data selection circuit that generates a selection control signal for the minuend selector. When the divisor is reduced from the third data selection circuit, the output data of the complement generation circuit is selected based on the output signal of the third data selection circuit, and when the divisor is added to the dividend, the output data of the divisor selector is selected. High speed division circuit.
【請求項3】 請求項1に記載の高速除算回路におい
て、被除数のデータのビット数が除数のデータのビット
数より大きく該部分商データを1ビットづつ求める場
合、 該第1の制御回路が、該除数セレクタからのデータを用
いた2の補数生成回路と、該補数生成回路からのデータ
と該除数セレクタからのデータを入力する減数セレクタ
と、該減数セレクタの選択制御信号を該制御データから
タ生成する第3のデータ選択回路とで構成され、 該第2の制御回路が、該被除数セレクタの上位側から除
数データと同じビット数のデータを選択するための桁下
ろしデータセレクタと、該データセレクタから下位1ビ
ットのデータを出力させるための選択制御信号を生成す
る第4のデータ選択回路と、該部分剰余レジスタの部分
剰余データを1ビット左シフトして出力するシフト回路
と、該被除数セレクタの出力データ又は該データセレク
タの出力データを最下位ビットとし該シフト回路の出力
データを上位ビットとする一つのデータを選択する被減
数セレクタと、該被減数セレクタのための選択制御信号
を生成する第5のデータ選択回路とで構成されており、
除算処理として最初に被除数から除数を減ずる処理をす
る時のみ該被除数セレクタの出力データを該被減数セレ
クタで選択することを特徴とした高速除算回路。
3. The high-speed division circuit according to claim 1, wherein when the number of bits of the data of the dividend is larger than the number of bits of the data of the divisor, and the partial quotient data is obtained bit by bit, the first control circuit: A two's complement generation circuit using data from the divisor selector, a subtraction selector for inputting data from the complement generation circuit and data from the divisor selector, and a selection control signal for the divisor selector from the control data. A third data selection circuit for generating, the second control circuit selects a carry-down data selector for selecting data having the same number of bits as the divisor data from the upper side of the dividend selector, and the data selector. From the fourth data selection circuit for generating a selection control signal for outputting the lower 1-bit data from the A shift circuit for outputting the shifted output, a minuend selector for selecting one data whose output data of the dividend selector or output data of the data selector is the least significant bit and output data of the shift circuit is the most significant bit, and the minuend. And a fifth data selection circuit for generating a selection control signal for the selector,
A high-speed division circuit characterized in that the output data of the dividend selector is selected by the dividend selector only when first performing a process of subtracting the divisor from the dividend as the division processing.
【請求項4】 請求項2又は3に記載の高速除算回路に
おいて、該第1の制御回路が、該補数生成回路の代わり
に該除数セレクタの出力データのビット反転を行うイン
バータ回路を用い、該加算器が除算処理として被除数か
ら除数を減ずる場合は該第3のデータ選択回路の出力信
号を桁上がりデータとして“1”を入力し、被除数に除
数を加える場合は該桁上がりデータを入力しないことを
特徴とした高速除算回路。
4. The high-speed division circuit according to claim 2, wherein the first control circuit uses an inverter circuit that performs bit inversion of output data of the divisor selector instead of the complement generation circuit, When the adder subtracts the divisor from the dividend as division processing, "1" is input as carry data for the output signal of the third data selection circuit, and when the divisor is added to the dividend, do not input the carry data. High-speed division circuit.
【請求項5】 請求項1乃至4のいずれかに記載の高速
除算回路において、被除数のデータのビット数が除数の
データのビット数と同じで商予測法を用いて部分商を4
ビットずつ求める場合、 テーブルを有し該除数セレクタからのデータの上位9ビ
ットで示される数の各々について部分剰余の上位5ビッ
トとの関係から得られる予測商を該テーブルから出力す
る商予測回路と、該商予測回路の出力データを保持して
該レジスタとのタイミングを合わせるためのタイミング
レジスタと、該タイミングレジスタのデータと該加算器
からの該部分剰余とのタイミングを合わせるための制御
レジスタと、該制御レジスタを介して該テーブルからの
予測商と該部分剰余とを比較して一致する予測商を検出
する予測商検出回路と、該予測商データを2回格納する
予測商レジスタと、該予測商レジスタのデータ及び該部
分剰余データの符号関係に基づいて該予測商を補正する
商補正回路と、該予測商データを示す制御信号を生成す
るための制御部を更に備え、 該第1の制御回路の代わりに、該除数セレクタの値を該
制御部からの該予測商に基づいてシフトするシフト回路
と、該シフト回路の出力データの2の補数を生成する補
数生成回路と、該シフト回路及び該補数生成回路の出力
データを入力して該予測商に基づきデータを選択する除
倍数セレクタとで構成された第3の制御回路を用い、除
算処理として予め4ビットの商を予測し、予測商と次に
生成される部分剰余を用いて商を補正し、これを繰り返
すことで最終商を求めることを特徴とした高速除算回
路。
5. The high speed division circuit according to claim 1, wherein the number of bits of the data of the dividend is the same as the number of bits of the data of the divisor, and the partial quotient is 4 by using the quotient prediction method.
A quotient prediction circuit that has a table and outputs a prediction quotient obtained from the relationship with the upper 5 bits of the partial remainder for each of the numbers indicated by the upper 9 bits of the data from the divisor selector, A timing register for holding the output data of the quotient prediction circuit and adjusting the timing with the register, and a control register for adjusting the timing of the data of the timing register with the timing of the partial remainder from the adder, A prediction quotient detection circuit that detects the matching prediction quotient by comparing the prediction quotient from the table and the partial remainder via the control register, a prediction quotient register that stores the prediction quotient data twice, and the prediction quotient A quotient correction circuit that corrects the predicted quotient based on the sign relationship between the quotient register data and the partial remainder data, and a control signal that indicates the predicted quotient data. And a shift circuit for shifting the value of the divisor selector based on the predicted quotient from the control unit, instead of the first control circuit, and output data of the shift circuit. A third control circuit including a complement generating circuit that generates a two's complement and a divisor selector that inputs the output data of the shift circuit and the complement generating circuit and selects data based on the predicted quotient is used. A high-speed division circuit characterized in that a 4-bit quotient is predicted in advance as a division process, the quotient is corrected using a predicted quotient and a partial remainder generated next, and the final quotient is obtained by repeating this.
JP6257070A 1994-10-21 1994-10-21 High speed division circuit Withdrawn JPH08123667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6257070A JPH08123667A (en) 1994-10-21 1994-10-21 High speed division circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6257070A JPH08123667A (en) 1994-10-21 1994-10-21 High speed division circuit

Publications (1)

Publication Number Publication Date
JPH08123667A true JPH08123667A (en) 1996-05-17

Family

ID=17301333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6257070A Withdrawn JPH08123667A (en) 1994-10-21 1994-10-21 High speed division circuit

Country Status (1)

Country Link
JP (1) JPH08123667A (en)

Similar Documents

Publication Publication Date Title
JPH0368416B2 (en)
JPH1195982A (en) Circuit, method and system for arithmetic processing
JPH07234778A (en) Arithmetic circuit
JPH08314697A (en) Signed / unsigned multi-purpose multiplier
JPH11134175A (en) Multiplying / subtracting units and arithmetic units
JP2777265B2 (en) High radix square root arithmetic unit
JP3477866B2 (en) Divider division method
JP2608090B2 (en) High radix non-restoring divider
JP2607759B2 (en) Divider
US5483477A (en) Multiplying circuit and microcomputer including the same
JPH10133856A (en) Multiplying method and multiplier with rounding function
JP3122622B2 (en) Division device
JPH02114324A (en) Multiplier
JP3851024B2 (en) Multiplier
JP2000172487A (en) Multiplier circuit and method therefor
JPH07160480A (en) Decimal divider
JP2001092639A (en) Division and square root arithmetic unit
JP3230349B2 (en) Decimal multiplier
JPH1049347A (en) Multiplicator
JPH0435777B2 (en)
JP3205020B2 (en) Arithmetic unit
JPH0816366A (en) Divider and its division method
JPH0368415B2 (en)
JPH11134174A (en) Arithmetic circuit
JPH06180640A (en) Device and method for division

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020115