JP3259489B2 - Decimal divider - Google Patents

Decimal divider

Info

Publication number
JP3259489B2
JP3259489B2 JP30956193A JP30956193A JP3259489B2 JP 3259489 B2 JP3259489 B2 JP 3259489B2 JP 30956193 A JP30956193 A JP 30956193A JP 30956193 A JP30956193 A JP 30956193A JP 3259489 B2 JP3259489 B2 JP 3259489B2
Authority
JP
Japan
Prior art keywords
register
quotient
partial
divisor
predicted
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.)
Expired - Fee Related
Application number
JP30956193A
Other languages
Japanese (ja)
Other versions
JPH07160480A (en
Inventor
敏光 永田
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 JP30956193A priority Critical patent/JP3259489B2/en
Publication of JPH07160480A publication Critical patent/JPH07160480A/en
Application granted granted Critical
Publication of JP3259489B2 publication Critical patent/JP3259489B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は10進除算器に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a decimal divider.

【0002】[0002]

【従来の技術】図6は従来の10進除算器の概念図であ
る。従来、10進除算器は、被除数から除数を繰り返し
て減算し、余りが負になったとき、それまでの繰り返し
回数から1を引いた値をその桁の商(部分商)とし、引
きすぎた被除数に除数を加えて余り(部分剰余)として
1桁分の演算結果を得、次に部分商と部分剰余とを1桁
左シフト(10倍)して、同様に次の桁の処理として部
分剰余からの除数の減算と引きすぎ補正を行なうこと
を、桁数回繰り返すことが基本であった。その改良型と
して部分商予測方式がある。これは、被除数の上位数桁
と除数の上位数桁とから部分商1桁の値を1以下の誤差
で予測することができることを利用したものである。予
測範囲の値の大きい数値を予測部分商とし、除数の予測
部分商倍の値を部分剰余から減算し、結果の剰余が負で
あれば1倍分の補正をする。これは筆算による除算と基
本的に同じである。例えば除数の1倍、2倍、4倍、8
倍をあらかじめ作成して除倍数保持回路3にセットして
おき(または除数から生成して)、部分商予測回路5に
よって予測した部分商の値になるように除数の1倍、2
倍、4倍、8倍を組み合わせて減算する方式である。例
えば予測部分商が7であるとすると、部分剰余(被除
数)レジスタ1の内容から、順に除倍数保持回路3の除
数の4倍、2倍、1倍の値を選択して減算する。これに
より直接除数を繰り返して減算するときの7回に対して
3回で済み、また予測が正しくて引きすぎ補正を必要と
しない場合があり、高速化される。しかし、この場合依
然として桁当たり最大3回の減算を必要とし、約半分の
確率で引きすぎの補正が必要である。
2. Description of the Related Art FIG. 6 is a conceptual diagram of a conventional decimal divider. Conventionally, a decimal divider repeatedly subtracts a divisor from a dividend, and when the remainder becomes negative, a value obtained by subtracting 1 from the number of repetitions up to that point is used as a quotient (partial quotient) of the digit, and is excessively subtracted. The divisor is added to the dividend to obtain the remainder (partial remainder) of one digit, and then the partial quotient and the partial remainder are shifted left by one digit (10 times). Basically, the subtraction of the divisor from the remainder and the correction of excessive subtraction are repeated several times. As an improved type, there is a partial quotient prediction method. This utilizes the fact that the value of one digit of the partial quotient can be predicted with an error of 1 or less from the upper several digits of the dividend and the upper several digits of the divisor. A numerical value having a large value in the prediction range is used as a predicted partial quotient, and the value of the predicted partial quotient of the divisor is subtracted from the partial remainder. If the resulting remainder is negative, the correction is made by a factor of one. This is basically the same as division by hand. For example, 1 times, 2 times, 4 times, 8 times divisor
A double is created in advance and set in the divisor holding circuit 3 (or generated from the divisor).
This is a method of performing subtraction by combining doubling, quadrupling, and doubling. For example, assuming that the predicted partial quotient is 7, four times, twice and one times the divisor of the divisor holding circuit 3 are sequentially selected and subtracted from the contents of the partial remainder (dividend) register 1. As a result, only three times are required for seven times when the divisor is repeatedly repeated and subtraction is performed, and there are cases where the prediction is correct and excessive correction is not required, thereby increasing the speed. However, this still requires a maximum of three subtractions per digit, and the correction of overdraw is required with about half the probability.

【0003】[0003]

【発明が解決しようとする課題】本発明は桁当たりの除
数の倍数の減算回数を少なくし、また引きすぎ補正の確
率を下げることにより、高速にした10進除算器を実現
することを目的としている。
SUMMARY OF THE INVENTION It is an object of the present invention to realize a high-speed decimal divider by reducing the number of times a multiple of a divisor per digit is reduced and reducing the probability of overdrawing correction. I have.

【0004】[0004]

【課題を解決するための手段】図1は本発明の原理構成
図である。最初は入力された10進の被除数を保持し、
演算サイクル毎に生成される部分剰余を保持する部分剰
余レジスタ1と、入力された10進の除数を保持する除
数レジスタ2と、除数レジスタの内容の倍数を生成する
除倍数生成回路3と、部分剰余レジスタ1の内容から、
除倍数生成回路3の出力を減算して部分剰余レジスタ1
にシフト入力する、10進加算器を主体とした部分剰余
演算回路4と、部分剰余演算回路4の出力の上位桁の値
と、除数レジスタ2の上位桁の値とから1桁の部分商を
予測する部分商予測回路5と、予測された部分商を保持
する予測部分商保持レジスタ6と、部分剰余演算回路4
の出力の符号により部分商を−1して補正し、商レジス
タにセットする部分商補正回路7と、全体を制御する制
御回路9とを備え、制御回路9は予測部分商保持レジス
タ6の内容に従って除倍数を選択して部分剰余から除倍
数を減算し、部分剰余演算回路4の出力の符号により部
分剰余と部分商とを補正して、10進1桁ずつの部分商
を求める除算器である点は従来と変わりはない。
FIG. 1 is a block diagram showing the principle of the present invention. At first, it holds the input decimal dividend,
A partial remainder register 1 for holding a partial remainder generated for each operation cycle, a divisor register 2 for holding an input decimal divisor, a divisor generating circuit 3 for generating a multiple of the content of the divisor register, From the contents of the remainder register 1,
The output of the divisor generating circuit 3 is subtracted to obtain a partial remainder register 1
A partial remainder arithmetic circuit 4 mainly composed of a decimal adder, which is shifted in, and a one-digit partial quotient is calculated from the value of the upper digit of the output of the partial remainder arithmetic circuit 4 and the value of the upper digit of the divisor register 2. A partial quotient prediction circuit 5 for predicting, a predicted partial quotient holding register 6 for holding the predicted partial quotient, and a partial remainder operation circuit 4
A partial quotient correction circuit 7 for correcting the partial quotient by -1 according to the sign of the output of, and setting the quotient in a quotient register, and a control circuit 9 for controlling the whole. , And subtracts the divisor from the partial remainder, corrects the partial remainder and the partial quotient by the sign of the output of the partial remainder calculation circuit 4, and obtains a partial quotient for each decimal digit by a divider. Some points are the same as before.

【0005】本発明は、除倍数生成回路3は、除数の1
倍、2倍、4倍、6倍、8倍の値、すなわち除数そのも
のの他に除数の偶数倍の値を生成するように構成し、予
測部分商保持レジスタ6の内容が1でない奇数かどうか
を判定する奇偶判定回路10を設ける。
According to the present invention, the divisor generating circuit 3 uses the divisor 1
A double, a quadruple, a quadruple, a sixfold, and an eightfold value, that is, a value that is an even multiple of the divisor in addition to the divisor itself, and whether the content of the predicted partial quotient holding register 6 is an odd number other than 1 Is provided.

【0006】制御回路9は、桁ごとの演算サイクルで、
奇偶判定回路10の出力に従って、予測商が1か偶数のと
き、部分剰余演算回路4によって部分剰余レジスタ1の
内容から除数の予測商倍を減算して部分剰余レジスタ1
にセットし、減算結果の符号が正なら予測部分商保持レ
ジスタ6の内容を商レジスタ8にシフト入力して次の桁
の演算サイクルに移り、減算結果の符号が負なら補助演
算サイクルを起動して、部分剰余レジスタ1の内容に除
数の1倍を加算し、予測部分商保持レジスタ6の内容を
−1して商レジスタ8にシフト入力し、予測商が1でな
い奇数のとき、除数の予測商−1倍の数を減算して部分
剰余レジスタ1にセットし、補助演算サイクルを起動し
て、除数の1倍を減算し、減算結果の符号が正なら結果
を部分剰余レジスタ1にセットし、予測部分商保持レジ
スタ6の内容を商レジスタ8にシフト入力し、減算結果
の符号が負なら部分剰余レジスタ1の内容を更新しない
ようにし、予測部分商保持レジスタ6の内容を−1して
商レジスタ8にシフト入力することにより商を求めるよ
うに構成する。
The control circuit 9 performs an operation cycle for each digit,
When the predicted quotient is 1 or even according to the output of the odd / even judgment circuit 10, the partial remainder operation circuit 4 subtracts the predicted quotient multiple of the divisor from the content of the partial remainder register 1 to obtain the partial remainder register 1.
If the sign of the subtraction result is positive, the contents of the predicted partial quotient holding register 6 are shifted into the quotient register 8 and the operation proceeds to the next digit operation cycle. If the sign of the subtraction result is negative, the auxiliary operation cycle is started. Then, one time of the divisor is added to the content of the partial remainder register 1 and the content of the predicted partial quotient holding register 6 is decremented by one and input to the quotient register 8. When the predicted quotient is an odd number other than 1, the prediction of the divisor is performed. The quotient minus one is subtracted and set in the partial remainder register 1, the auxiliary operation cycle is started, one time of the divisor is subtracted, and if the sign of the subtraction result is positive, the result is set in the partial remainder register 1. The contents of the predicted partial quotient holding register 6 are shifted and input to the quotient register 8, and if the sign of the subtraction result is negative, the contents of the partial remainder register 1 are not updated. Quotient register 8 Configured to determine the quotient by reset input.

【0007】なお、除倍数生成回路3によって除数レジ
スタ2から直接除倍数を生成する代わりに、除倍数保持
回路を設け、除算の演算処理に先立って除数の偶数倍の
数値を部分剰余演算回路4の加算器によって計算し、結
果を保持させておくようにしてもよい。
Instead of generating the divisor directly from the divisor register 2 by the divisor generating circuit 3, a divisor holding circuit is provided, and a value of an even multiple of the divisor is written to the partial remainder operation circuit 4 prior to the division operation processing. , And the result may be held.

【0008】[0008]

【作用】図2に部分商の予測値と処理の説明とをまとめ
たものを示す。部分商予測値が0または1の場合は、そ
の値を除数の倍数値として選択して演算は1サイクルで
終了する。部分商予測値が偶数の場合もその値を除数の
倍数値として選択して減算を第1サイクルで行ない、そ
の結果の符号が正ならば同様にして終了する。結果の符
号が負ならば補助サイクルを起動して、引きすぎた1倍
分を加算し、部分商予測値も−1して補正し確定部分商
とする。
FIG. 2 shows a summary of the predicted values of the partial quotients and the explanation of the processing. When the partial quotient prediction value is 0 or 1, the value is selected as a multiple of the divisor, and the operation ends in one cycle. Even when the partial quotient predicted value is an even number, the value is selected as a multiple of the divisor and subtraction is performed in the first cycle, and if the sign of the result is positive, the process is similarly terminated. If the sign of the result is negative, the auxiliary cycle is started, the excessively subtracted one is added, and the partial quotient predicted value is also reduced by -1 to make it a fixed partial quotient.

【0009】部分商予測値が1でない奇数の場合は、1
だけ少ない偶数値を除数の倍数値として選択して減算を
第1サイクルで行なう。この場合、予測商より1だけ小
さい値を用いたのであるから、結果の符号は必ず正であ
る。補助サイクルを起動して残りの1倍分を減算し、そ
の結果が正である場合はその結果が正しく、負である場
合は引きすぎである。負である場合の引きすぎ分は除数
の1倍に決まっているので結果を部分剰余レジスタ1に
セットするのを禁止することにより正しい部分剰余を部
分剰余レジスタ1に残すことができる。従って、さらに
補正のための補助サイクルを起動する必要はない。予測
部分商は−1して補正する。
If the partial quotient predicted value is an odd number other than 1, 1
The even number that is as small as possible is selected as a multiple of the divisor, and the subtraction is performed in the first cycle. In this case, since the value smaller than the predicted quotient by 1 is used, the sign of the result is always positive. Activate the auxiliary cycle and subtract the remaining one, and if the result is positive, the result is correct; if negative, the result is too much. Since the amount of overdrawing in the case of a negative value is determined to be one time the divisor, the correct partial remainder can be left in the partial remainder register 1 by prohibiting the result from being set in the partial remainder register 1. Therefore, there is no need to start an auxiliary cycle for correction. The predicted partial quotient is corrected by −1.

【0010】以上のように、除算は1桁あたり、1また
は2サイクルで処理することができる。
As described above, division can be processed in one or two cycles per digit.

【0011】[0011]

【実施例】以下、図面を参照して本発明の実施例を説明
する。図3は本発明の実施例の構成図である。図1と同
一の機能のものは、同一の符号を付して示す。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 3 is a configuration diagram of an embodiment of the present invention. Those having the same functions as those in FIG. 1 are denoted by the same reference numerals.

【0012】図において、除倍数生成回路3は、除数レ
ジスタ2の1桁ごとに2倍、4倍、6倍、8倍の値2桁
を生成する論理回路とその補数に変換する論理回路およ
び出力の選択回路とよりなる。倍数出力の2桁は上位C
と下位Sとに分け、補数に変換する場合は1桁ごとに行
なう。結果として、除倍数生成回路3は除数レジスタ2
の内容の0倍、+1倍、−1倍、−2倍、−4倍、−6
倍、−8倍の出力を上位側の値Cと下位側の値Sとに分
けた2数として出力する。出力する倍数は、制御回路9
が予測部分商保持レジスタ6に従って選択する。
In the figure, a divisor generating circuit 3 includes a logic circuit for generating two digits of double, four times, six times, and eight times for each digit of the divisor register 2, a logic circuit for converting to a complement thereof, and It consists of an output selection circuit. The 2 digits of the multiple output are the upper C
And the lower-order S, and the conversion to the complement is performed for each digit. As a result, the divisor generating circuit 3 stores the divisor register 2
0 times, +1 times, -1 times, -2 times, -4 times, -6 times the contents of
The output of doubling and -8 times is output as two numbers divided into an upper value C and a lower value S. The output multiple is determined by the control circuit 9
Selects according to the predicted partial quotient holding register 6.

【0013】3入力10進加算器4は部分剰余演算器で
あり、部分剰余レジスタ1の出力と除倍数生成回路3の
2つの出力とを加算する。除倍数生成回路3の2つの出
力が補数になっている場合は結果として減算処理とな
る。この3入力10進加算器はどのように構成してもよ
いが、「特願平5−300711」に開示した10進加
算器のように構成すれば高速にできる。
The three-input decimal adder 4 is a partial remainder arithmetic unit, and adds the output of the partial remainder register 1 and the two outputs of the divisor generation circuit 3. If the two outputs of the divisor generation circuit 3 are complements, the result is a subtraction process. This three-input decimal adder may be configured in any manner, but if it is configured like the decimal adder disclosed in Japanese Patent Application No. 5-300711, the speed can be increased.

【0014】制御処理は、予測商が奇数であるとき次の
桁の処理を高速化するため予測部分商保持レジスタのバ
ックアップレジスタ6bを設けてある点を除けば、基本的
に課題を解決するための手段および作用の項で述べたこ
とと同じである。図4のタイムチャート、図5の演算例
を参照して具体的数値の演算例を説明する。以下レジス
タ、加算器の内容は左詰めで表現する。
The control process basically solves the problem except that a backup register 6b of a predicted partial quotient holding register is provided to speed up processing of the next digit when the predicted quotient is an odd number. This is the same as that described in the section of the means and operation. An example of calculation of specific numerical values will be described with reference to the time chart of FIG. 4 and the calculation example of FIG. Hereinafter, the contents of the register and the adder are expressed left-justified.

【0015】初めに、部分剰余レジスタ1に被除数とし
て2468が、除数レジスタ2には208がセットされ
ているものとする。部分剰余演算器(加算器)の出力2
468と除数レジスタ2の内容208との上位桁から次
の部分商は1であると予測される。 演算サイクル1において、予測部分商保持レジスタ6
の内容が1であるので、208×1=208を部分剰余
レジスタ1から減算して388が部分剰余レジスタ1に
セットされる。部分剰余演算器(加算器)の出力388
と除数レジスタ2の内容208の上位桁から次の部分商
予測値は1であると予測される。 演算サイクル2において、同様に208×1=208
を部分剰余レジスタ1から減算して1880が部分剰余
レジスタ1にセットされる。部分剰余演算器(加算器)
の出力1800と除数レジスタ2の内容208の上位桁
から次の部分商予測値は9であると予測される。 演算サイクル3において、予測部分商保持レジスタ6
の内容が9(奇数)であるので、208×8=1664
を部分剰余レジスタ1から減算して136が部分剰余レ
ジスタ1にセットされる。次の桁の部分商の予測値は6
であると予測され、予測部分商保持レジスタのバックア
ップレジスタ6bに保持される。演算サイクル4において
補助サイクルが起動される。演算サイクル4では、部分
剰余演算器(加算器)の出力136から201×1=2
08を減算して、負の値−72となる。この結果は部分
剰余レジスタ1入力ゲートを閉じてセットしない。ま
た、予測部分商保持レジスタ6へバックアップレジスタ
6bの値を移す。このため部分剰余と次の桁の部分商の予
測値とは演算サイクル3において行なった値が保持され
る。 演算サイクル5において、予測部分商保持レジスタ6
の内容が6(偶数)であるので、208×6=1248
を部分剰余レジスタ1から減算して1120が部分剰余
レジスタ1にセットされる。結果が正であるので補正の
必要はない。次の桁の部分商の予測値は5であると予測
される。 演算サイクル6において、予測部分商保持レジスタ6
の内容が5(奇数)であるので、208×4=832を
部分剰余レジスタ1から減算して2880が部分剰余レ
ジスタ1にセットされる。次の桁の部分商の予測値が4
であると予測され予測部分商保持レジスタのバックアッ
プレジスタ6bにセットされる。補助サイクルとして演算
サイクル7が起動される。演算サイクル7では、部分剰
余レジスタの出力288から201×1=208を減算
して、正の値+80となる。この場合は演算サイクル4
と違って部分剰余レジスタ1の入力ゲートを開いて値を
更新する。また、予測部分商保持レジスタ6にバックア
ップレジスタ6bから次の桁の部分商の予測値4がセット
される。 演算サイクル8において、予測部分商保持レジスタ6
の内容が4(偶数)であるので、208×4=832を
部分剰余レジスタ1から減算して−32が部分剰余レジ
スタ1にセットされる。結果が負であるので補正の必要
があり、補助サイクルとして演算サイクル9が起動され
る。演算サイクル9では、部分剰余レジスタの出力−3
2に、201×1=208を加算して、引きすぎの補正
を行なって正の値176となる。部分商も−1補正を行
なう。 以下同様にして演算する。
First, it is assumed that 2468 is set as the dividend in the partial remainder register 1 and 208 is set in the divisor register 2. Output 2 of partial remainder arithmetic unit (adder)
The next partial quotient is predicted to be 1 from the upper digit of 468 and the contents 208 of the divisor register 2. In operation cycle 1, predicted partial quotient holding register 6
Is 1 so that 208 × 1 = 208 is subtracted from the partial remainder register 1 and 388 is set in the partial remainder register 1. Output 388 of partial remainder arithmetic unit (adder)
And the next partial quotient prediction value is predicted to be 1 from the upper digit of the contents 208 of the divisor register 2. In operation cycle 2, similarly, 208 × 1 = 208
Is subtracted from the partial remainder register 1 and 1880 is set in the partial remainder register 1. Partial remainder arithmetic unit (adder)
From the output 1800 of the divisor register 2 and the upper digit of the content 208 of the divisor register 2, the next partial quotient prediction value is predicted to be 9. In operation cycle 3, predicted partial quotient holding register 6
Is 9 (odd number), so that 208 × 8 = 1664
Is subtracted from the partial remainder register 1, and 136 is set in the partial remainder register 1. The predicted value of the partial quotient of the next digit is 6
And is held in the backup register 6b of the predicted partial quotient holding register. In operation cycle 4, an auxiliary cycle is started. In the operation cycle 4, 201 × 1 = 2 from the output 136 of the partial remainder operation unit (adder)
08 is subtracted to a negative value -72. This result is not set by closing the partial remainder register 1 input gate. In addition, the backup register
Transfer the value of 6b. Therefore, the value obtained in operation cycle 3 is retained as the partial remainder and the predicted value of the partial quotient of the next digit. In the operation cycle 5, the predicted partial quotient holding register 6
Is 6 (even number), 208 × 6 = 1248
Is subtracted from the partial remainder register 1, and 1120 is set in the partial remainder register 1. No correction is needed because the result is positive. The predicted value of the partial quotient of the next digit is predicted to be 5. In operation cycle 6, predicted partial quotient holding register 6
Is 5 (odd number), 208 × 4 = 832 is subtracted from the partial remainder register 1, and 2880 is set in the partial remainder register 1. Predicted value of partial quotient of next digit is 4
Is set in the backup register 6b of the predicted partial quotient holding register. An operation cycle 7 is started as an auxiliary cycle. In the operation cycle 7, 201 × 1 = 208 is subtracted from the output 288 of the partial remainder register to obtain a positive value +80. In this case, operation cycle 4
Unlike this, the input gate of the partial remainder register 1 is opened to update the value. Further, the predicted value 4 of the partial quotient of the next digit is set in the predicted partial quotient holding register 6 from the backup register 6b. In the operation cycle 8, the predicted partial quotient holding register 6
Is 4 (even number), 208 × 4 = 832 is subtracted from the partial remainder register 1 and −32 is set in the partial remainder register 1. Since the result is negative, it needs to be corrected, and the operation cycle 9 is started as an auxiliary cycle. In the operation cycle 9, the output of the partial remainder register -3
By adding 201 × 1 = 208 to 2 and correcting for excessive pulling, a positive value 176 is obtained. The partial quotient also performs -1 correction. Hereinafter, the calculation is performed in the same manner.

【0016】このようにして商レジスタ8には、確定部
分商が求められるたびに、シフト入力され、11865
3・・の値が残る。
In this way, every time a fixed partial quotient is obtained, it is shifted into the quotient register 8, and 11865 is input.
The value of 3 ... remains.

【0017】[0017]

【発明の効果】以上説明したように、本発明によれば1
0進除算において、1桁当たり、1または2サイクルで
演算することができる高速除算器を実現することができ
る。
As described above, according to the present invention, 1
In the zero-base division, a high-speed divider capable of performing one or two cycles per digit can be realized.

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

【図1】 本発明の原理構成図FIG. 1 is a diagram showing the principle configuration of the present invention.

【図2】 部分商予測値と処理の説明図FIG. 2 is an explanatory diagram of partial quotient prediction values and processing

【図3】 実施例の構成図FIG. 3 is a configuration diagram of an embodiment.

【図4】 実施例のタイムチャートFIG. 4 is a time chart of the embodiment.

【図5】 演算例FIG. 5 Operation example

【図6】 従来の10進除算器の概念図FIG. 6 is a conceptual diagram of a conventional decimal divider.

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

1 部分剰余レジスタ 2 除数レジスタ 3 除倍数生成回路(除倍数保持回路) 4 部分剰余演算回路(10進加算器) 5 部分商予測回路 6 予測部分商保持レジスタ 6b バックアップ
レジスタ 7 部分商補正回路 8 商レジスタ 9 制御回路 10 奇偶判定回路
REFERENCE SIGNS LIST 1 partial remainder register 2 divisor register 3 divisor generating circuit (divisor holding circuit) 4 partial remainder arithmetic circuit (decimal adder) 5 partial quotient prediction circuit 6 predicted partial quotient holding register 6 b backup register 7 partial quotient correction circuit 8 quotient Register 9 control circuit 10 odd / even judgment circuit

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 最初は入力された10進の被除数を保持
し、演算サイクル毎に生成される部分剰余を保持する部
分剰余レジスタと、 入力された10進の除数を保持する除数レジスタと、 除数レジスタの内容の1倍、2倍、4倍、6倍、8倍の
倍数を生成する除倍数生成回路と、 部分剰余レジスタの内容から、除倍数生成回路の選択さ
れた出力を加減算して部分剰余レジスタにシフト入力す
る部分剰余演算回路と、 部分剰余演算回路の出力の上位桁の値と、除数レジスタ
の上位桁の値とから1桁の部分商を予測する部分商予測
回路とその出力を保持する予測部分商保持レジスタと予測部分商を−1して補正する部分商補正回路と予測部分商が1でない奇数かどうかを判定する奇偶判定
回路と演算結果の商を保持する商レジスタと 、 全体を制御する制御回路とを備え、 制御回路は、 桁ごとの演算サイクルで、予測部分商の値に従って除倍
数生成回路の出力を選択して得た除倍数を部分剰余から
減算し、 奇偶判定回路の出力に従って 予測部分商が、1または偶数のとき 減算結果の符号が正なら予測部分商保持レジスタの内容
を商レジスタにシフト入力して次の桁の演算サイクルに
移り、 減算結果の符号が負なら補助演算サイクルを起動して、
部分剰余レジスタの内容に除数の1倍を加算し、予測
商保持レジスタの内容を−1して商レジスタにシフト
入力し、 予測商が1でない奇数のとき、除数の(予測部分商−
1)倍の数を減算して部分剰余レジスタに入力し、補助
演算サイクルを起動して、除数の1倍を減算し、 減算結果の符号が正なら減算結果を部分剰余レジスタに
セットし、予測部分商保持レジスタの内容を商レジスタ
にシフト入力し、 減算結果の符号が負なら部分剰余レジスタの内容を更新
せず、予測部分商保持レジスタの内容を−1して商レジ
スタにシフト入力するように制御することにより商を求
める10進除算器。
1. A partial remainder register that initially holds an input decimal dividend and holds a partial remainder generated in each operation cycle, a divisor register that holds an input decimal divisor, and a divisor. 1x, 2x, 4x, 6x, 8x of register contents
The divisor generation circuit that generates the divisor and the content of the partial remainder register select the divisor generation circuit.
Adds and subtracts the output and shifts it into the partial remainder register.
Prediction portion holding the parts partial remainder calculation circuit that, the upper digit value of the output of the partial remainder calculation circuit, and its output partial quotient prediction circuit for predicting the order of magnitude of the partial quotient from the upper digit value of the divisor register A quotient holding register , a partial quotient correction circuit for correcting the predicted partial quotient by -1 and an odd / even determination for determining whether the predicted partial quotient is an odd number other than 1
Circuit , a quotient register for holding the quotient of the operation result, and a control circuit for controlling the whole, wherein the control circuit performs the scaling according to the value of the predicted partial quotient in the operation cycle for each digit.
The divisor obtained by selecting the output of the number generator is calculated from the partial remainder
Subtraction, in accordance with the output of the parity judgment circuit, the predicted partial quotient is 1 or when an even number, the contents of the sign of the subtraction result is positive if the predicted partial quotient holding register and shift to the quotient register to the next digit of the operation cycle If the sign of the subtraction result is negative, start the auxiliary operation cycle,
One time of the divisor is added to the contents of the partial remainder register, and the prediction unit
The content of the quotient holding register is decremented by 1 and shifted into the quotient register. When the predicted quotient is an odd number other than 1, the divisor (predicted partial quotient−
1) Subtract the doubled number and input it to the partial remainder register, start the auxiliary operation cycle, subtract 1 times the divisor, and if the sign of the subtraction result is positive, set the subtraction result in the partial remainder register and predict Shift the contents of the partial quotient holding register into the quotient register, and update the contents of the partial remainder register if the sign of the subtraction result is negative.
Without the determined quotient by controlling so as to shift input to the quotient register decrements the contents of the prediction partial quotient holding register
Decimal divider Mel.
【請求項2】 除倍数生成回路の代わりに、除倍数保持
回路を設け、演算処理に先立って除数の偶数倍の数値を
保持させておくことを特徴とする請求項1に記載の10
進除算器。
2. The apparatus according to claim 1, wherein a divisor holding circuit is provided instead of the divisor generating circuit, and a numerical value of an even multiple of the divisor is held prior to arithmetic processing.
Decimal divider.
JP30956193A 1993-12-10 1993-12-10 Decimal divider Expired - Fee Related JP3259489B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30956193A JP3259489B2 (en) 1993-12-10 1993-12-10 Decimal divider

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30956193A JP3259489B2 (en) 1993-12-10 1993-12-10 Decimal divider

Publications (2)

Publication Number Publication Date
JPH07160480A JPH07160480A (en) 1995-06-23
JP3259489B2 true JP3259489B2 (en) 2002-02-25

Family

ID=17994507

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30956193A Expired - Fee Related JP3259489B2 (en) 1993-12-10 1993-12-10 Decimal divider

Country Status (1)

Country Link
JP (1) JP3259489B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6064435B2 (en) * 2012-08-21 2017-01-25 富士通株式会社 Arithmetic circuit, arithmetic processing device, and division method
JP2022121055A (en) 2021-02-08 2022-08-19 キオクシア株式会社 Arithmetic device and arithmetic circuit

Also Published As

Publication number Publication date
JPH07160480A (en) 1995-06-23

Similar Documents

Publication Publication Date Title
US7472149B2 (en) Arithmetic unit for approximating function
JP2835153B2 (en) High radix divider
JP3418460B2 (en) Double precision division circuit and method
JP3259489B2 (en) Decimal divider
JPH053614B2 (en)
EP0379998B1 (en) Divider for carrying out high speed arithmetic operation
JPH0479015B2 (en)
JPH01302425A (en) Floating decimal point adder/subtracter circuit
JP3544821B2 (en) Division circuit
JPH06259227A (en) Arithmetic unit
JP3415569B2 (en) Decimal data division method and program recording medium therefor
JP3231298B2 (en) Multiplication device
JP3230349B2 (en) Decimal multiplier
JP2928027B2 (en) Decimal-binary conversion circuit
JPS60160438A (en) Dividing device
JPS60247736A (en) Dividing circuit
JP3482102B2 (en) Absolute distance calculation circuit
JP3205020B2 (en) Arithmetic unit
JPH0387924A (en) Decimal integer division circuit
JPH1049347A (en) Multiplicator
JPS626258B2 (en)
JP3261600B2 (en) Remainder multiplier
JPH08123667A (en) Fast dividing circuit
JP3477866B2 (en) Divider division method
JPH0754458B2 (en) Multiplication circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20011113

LAPS Cancellation because of no payment of annual fees