JPS6244660B2 - - Google Patents

Info

Publication number
JPS6244660B2
JPS6244660B2 JP56142313A JP14231381A JPS6244660B2 JP S6244660 B2 JPS6244660 B2 JP S6244660B2 JP 56142313 A JP56142313 A JP 56142313A JP 14231381 A JP14231381 A JP 14231381A JP S6244660 B2 JPS6244660 B2 JP S6244660B2
Authority
JP
Japan
Prior art keywords
register
cycle
carry
contents
result
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
Application number
JP56142313A
Other languages
Japanese (ja)
Other versions
JPS5844537A (en
Inventor
Shigeo Sawada
Hideaki Shibata
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP14231381A priority Critical patent/JPS5844537A/en
Publication of JPS5844537A publication Critical patent/JPS5844537A/en
Publication of JPS6244660B2 publication Critical patent/JPS6244660B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/491Computations with decimal numbers radix 12 or 20.
    • G06F7/4915Multiplying; Dividing
    • G06F7/4917Dividing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Engineering & Computer Science (AREA)

Description

【発明の詳細な説明】[Detailed description of the invention]

本発明は、データ処理装置に用いられる10進除
算装置に関する。 従来の10進除算は、第1図に示すリストア方式
及び第2図イ,ロに示すノン・リストア方式とが
ある。図において、10Pは被除数あるいは中間
剰余(以下特に被除数と中間剰余を区別する必要
がない限り中間剰余と呼ぶ)、20Pは除数を、
CARYは演算結果のキヤリーを示す。第1図及び
第2図からわかるように、どちらの方式において
も、1桁の商と中間剰余を求めるためには、中間
剰余と除数との加算又は減算、及びその演算結果
の中のキヤリーの有無の判断の2つの処理ステツ
プを反復させなければならない。またリストア方
式においては、中間剰余の補正の処理ステツプを
追加する必要がある。なおノンリストア方式で
は、1桁の商を求めるごとに第2図イおよびロの
処理を交互に繰り返す。 そこで本発明は、第3図に示すように、中間剰
余と除数との加算という1つの処理のみを反復さ
せることのみにより、1桁の商と中間剰余を得る
ことを可能とし、従つて処理ステツプ数の少ない
10進除算装置を提供するものである。なお第3図
において、20P′はCARY=0の時除数であり、
CARY=1の時除数の補数である。又CARY=0
時のイニシヤルキヤリーは0で、CARY=1時の
イニシヤルキヤリーは1である。 以下、本発明の一実施例を説明する。 第4図は本発明に基く10進除算装置の機能的ブ
ロツク図であり、被除数あるいは中間剰余Aはレ
ジスタ1に、除数Bはレジスタ2に、前の演算の
結果のキヤリーはレジスタ5にそれぞれ格納され
る。6はキヤリーの発生した演算サイクルを記憶
するレジスタ、7は+1加算器で、レジスタ6と
加算器7でカウンタを構成する、3はレジスタ5
の内容が0の時レジスタ2の内容をそのまま、1
の時その補数を出力する選択回路、4はレジスタ
1と選択回路3からのデータに10進演算を行なう
演算器である。演算器4はレジスタ5の内容を線
11からイニシヤルキヤリーとして取込み、演算
結果を線10に、桁あふれが生じた場合のキヤリ
ーを線12にそれぞれ出力する。線10,12の
内容はそれぞれレジスタ1,5にセツトされる。 第4図の装置は一定のサイクルで動作が進行す
るようになつており、このサイクル毎に1つの処
理ステツプが実行される。そして1つの演算サイ
クル内では、第5図に示すように、演算動作と並
行してレジスタ5の内容を調べることにより、前
の演算サイクルで発生したキヤリーのチエツクを
行なう。このキヤリーチエツクにおいて、キヤリ
ーが1になつていれば次のサイクルでは演算サイ
クルの繰り返しを指示し、キヤリーが0になつて
いれば次のサイクルで中間剰余の桁ずらし等の処
理を指示する。また演算結果及び新たなキヤリー
は、当該演算サイクルの終りで発生する。 第4図は次の通り動作する。先ず、レジスタ1
に被除数Aを、レジスタ2に除数Bを、レジスタ
5に1、レジスタ6に−1をそれぞれ初期値とし
てセツトし、この後、第1の演算サイクルを起動
する。今、レジスタ5の内容が1であるから、選
択回路3の出力はBの補数であり、またイニシヤ
ルキヤリーは1である。従つてこの演算サイクル
では、演算器4はA++1=A−B、すなわち
AとBの減算を行なう。ここで線12に出力され
たキヤリーが1であると、A+Bの間には、A≧
Bなる大小関係が存在したことを示す。この場
合、加算器7が動作してレジスタ6の内容に+1
する。一方、この第1の演算サイクルの演算動作
と並行してレジスタ5の内容が調べられ、この時
1であるから第2の演算サイクルの繰り返しが指
示される。こうして第2の演算サイクルが起こ
り、レジスタ5の内容は1であるから、前と同様
の動作が行なわれる。またこの第2の演算サイク
ルと並行してレジスタ5の内容が調べられ、この
時1であるから第3の演算サイクルの繰返しが指
示される。 以上のようにして、線12に出力されるキヤリ
ーが1となる演算サイクルが続く限り、レジスタ
6の内容に+1し続け、2つ先の演算サイクルの
実行を指示し続ける。このようにして演算サイク
ルが繰り返されている途中において、線12に出
力されるキヤリーが0になると、レジスタ1のセ
ツトされる内容は目的とする中間剰余よる除数分
だけ少ない値となる。 線12に出力されたキヤリーが0になつた演算
サイクルにおいては、レジスタ6の更新は行なわ
れないが、1つ前の演算サイクルでのキヤリー1
であるから1つ先のサイクルでの演算サイクルは
指示されている。そこでこの演算サイクルが起動
されるが、この時レジスタ5の内容は0であるか
ら、選択回路3はレジスタ2の内容をそのまま出
力し、またイニシヤルキヤリーは0である。従つ
てこの演算サイクルでは、演算器4はA+B+0
=A+B、すなわち、AとBの加算を行ない、こ
の加算結果は必ず正の数あるいは0であり、目的
とする中間剰余に等しい。またこの時キヤリーが
必ず出力され、レジスタ6の内容が加算器7によ
り+1される。従つて、レジスタ6の内容は、初
期値−1が補正され、商を示す。一方、この演算
サイクルの演算動作と並行してレジスタ5の内容
が調べられ、この時0であるから、演算サイクル
の繰り返しは指示されず、レジスタ1にセツトさ
れた中間剰余の桁ずらし等の処理が指示される。
この桁ずらし等必要な処理が行なわれた後は、新
たな商の桁を求めるため前記と同様の動作が行な
われる。 以下、700÷3を演算する場合の具体例を表に
基き説明する。 表は縦にサイクル数をとり、横に演算開始前の
レジスタ5内のキヤリー、レジスタ1及びレジス
タ2の中間剰余A及び除数B、演算回路3におけ
る演算の種別、次サイクルにおいて演算ループを
繰り返すか桁ずらしの処理を行うかの動作指示、
さらに演算終了後のレジスタ1及びレジスタ5の
内容、そしてレジスタ6の内容の変化状態及び商
をとる。 表において、nサイクルは初期状態を示し、n
サイクルにおいてはレジスタ5には1が、レジス
タ1には被除数0700が、レジスタ2には除数0300
が、レジスタ6には−1が格納される。 n+1サイクルにおいては、レジスタ5のキヤ
リーが1であるので、n+2サイクルとして演算
ループが指定されると共に、0300の補数が選択回
The present invention relates to a decimal division device used in a data processing device. Conventional decimal division includes a restore method shown in FIG. 1 and a non-restore method shown in FIGS. 2A and 2B. In the figure, 10P is the dividend or intermediate remainder (hereinafter referred to as intermediate remainder unless there is a need to distinguish between the dividend and intermediate remainder), 20P is the divisor,
CARY indicates the carry of the operation result. As can be seen from Figures 1 and 2, in both methods, in order to obtain a one-digit quotient and an intermediate remainder, it is necessary to add or subtract the intermediate remainder and the divisor, and to add or subtract the carrier in the result of the operation. The two processing steps of presence/absence determination must be repeated. In addition, in the restore method, it is necessary to add a processing step for correcting the intermediate remainder. In the non-restore method, the processes in A and B in FIG. 2 are alternately repeated each time a one-digit quotient is obtained. Therefore, as shown in FIG. 3, the present invention makes it possible to obtain a one-digit quotient and an intermediate remainder by repeating only one process of adding the intermediate remainder and the divisor, and therefore, the processing steps can be reduced. few in number
It provides a decimal division device. In addition, in Figure 3, 20P' is the time divisor of CARY=0,
It is the complement of the time divisor when CARY=1. Also CARY=0
The initial carry at the time is 0, and the initial carry when CARY=1 is 1. An embodiment of the present invention will be described below. FIG. 4 is a functional block diagram of a decimal division device according to the present invention, in which the dividend or intermediate remainder A is stored in register 1, the divisor B is stored in register 2, and the carry of the result of the previous operation is stored in register 5. be done. 6 is a register that stores the arithmetic cycle in which a carry occurred; 7 is a +1 adder; register 6 and adder 7 constitute a counter; 3 is register 5;
When the content of is 0, the content of register 2 is left unchanged as 1
4 is an arithmetic unit that performs a decimal operation on the data from the register 1 and the selection circuit 3. The arithmetic unit 4 takes in the contents of the register 5 as an initial carry from a line 11, outputs the operation result to a line 10, and outputs a carry in the case of overflow to a line 12, respectively. The contents of lines 10 and 12 are set in registers 1 and 5, respectively. The apparatus of FIG. 4 operates in regular cycles, with one processing step being executed in each cycle. Within one calculation cycle, as shown in FIG. 5, the contents of register 5 are checked in parallel with the calculation operation to check for carries that occurred in the previous calculation cycle. In this carry check, if the carry is 1, it instructs to repeat the calculation cycle in the next cycle, and if the carry becomes 0, it instructs processing such as shifting the digits of the intermediate remainder in the next cycle. Also, the calculation result and new carry occur at the end of the calculation cycle. FIG. 4 operates as follows. First, register 1
Dividend A is set in register 2, divisor B is set in register 2, 1 is set in register 5, and -1 is set in register 6 as initial values, and then the first arithmetic cycle is started. Now, since the content of register 5 is 1, the output of selection circuit 3 is the complement of B, and the initial carry is 1. Therefore, in this calculation cycle, the calculation unit 4 performs A++1=A-B, that is, subtraction of A and B. Here, if the carry output to line 12 is 1, then between A+B, A≧
This shows that a size relationship B exists. In this case, adder 7 operates and adds 1 to the contents of register 6.
do. On the other hand, in parallel with the arithmetic operation of the first arithmetic cycle, the contents of the register 5 are checked, and since it is 1 at this time, repetition of the second arithmetic cycle is instructed. Thus, a second operation cycle occurs, and since the contents of register 5 are 1, the same operation as before is performed. Also, in parallel with this second operation cycle, the contents of register 5 are checked, and since it is 1 at this time, repetition of the third operation cycle is instructed. As described above, as long as the arithmetic cycle in which the carry output to the line 12 is 1 continues, the contents of the register 6 continue to be incremented by 1, and the execution of the next arithmetic cycle is continued. While the arithmetic cycle is being repeated in this manner, when the carry output to line 12 becomes 0, the content set in register 1 becomes a value smaller by the divisor of the target intermediate remainder. In the calculation cycle in which the carry output to line 12 becomes 0, the register 6 is not updated, but the carry 1 in the previous calculation cycle is
Therefore, the calculation cycle in the next cycle is specified. Therefore, this calculation cycle is started, but since the contents of register 5 are 0 at this time, selection circuit 3 outputs the contents of register 2 as is, and the initial carry is 0. Therefore, in this calculation cycle, the calculation unit 4 calculates A+B+0
=A+B, that is, A and B are added, and the result of this addition is always a positive number or 0, and is equal to the desired intermediate remainder. Also, at this time, a carry is always output, and the contents of the register 6 are incremented by 1 by the adder 7. Therefore, the contents of register 6 are corrected from the initial value -1 to indicate the quotient. On the other hand, the contents of register 5 are checked in parallel with the calculation operation of this calculation cycle, and since it is 0 at this time, the repetition of the calculation cycle is not instructed, and processing such as shifting the digit of the intermediate remainder set in register 1 is performed. is instructed.
After this digit shifting and other necessary processing is performed, the same operations as described above are performed to obtain new quotient digits. A specific example of calculating 700÷3 will be explained below based on a table. The table shows the number of cycles vertically, and horizontally the carry in register 5 before the start of the calculation, the intermediate remainder A and divisor B of registers 1 and 2, the type of calculation in calculation circuit 3, and whether the calculation loop will be repeated in the next cycle. Instructions on whether to perform digit shift processing,
Furthermore, the contents of register 1 and register 5 after the calculation is completed, and the state of change and quotient of the contents of register 6 are determined. In the table, n cycles indicate the initial state, n
In the cycle, register 5 contains 1, register 1 contains the dividend 0700, and register 2 contains the divisor 0300.
However, -1 is stored in register 6. In the n+1 cycle, the carry of register 5 is 1, so the arithmetic loop is designated as the n+2 cycle, and the complement of 0300 is the selection circuit.

【表】 3により選択され、演算回路4において(0700−
0300)が演算される。その結果、レジスタ1には
0400が格納される。演算の結果、キヤリーが1と
なり、レジスタ5に格納される。また、レジスタ
6が−1から0に加算される。 n+2サイクルにおいては(0400−0300)が演
算され、その結果0100がレジスタ1に格納され
る。他の動作はn+1サイクルと同じである。 n+3サイクルにおいては(0100−0300)が演
算され、その結果9800がレジスタ1に登録され
る。このとき、キヤリーは発生せず、レジスタ5
には0が格納される。さらに、キヤリーが発生し
ないためレジスタ6の加算は行われない。 n+4サイクルにおいては、レジスタ5の内容
が0であるので、次のサイクルの動作としては桁
ずらしが指示されると共に、0300が選択回路3に
より選択され、演算回路4において(9800+
0300)が演算される。演算回路4における演算結
果0100はレジスタ1に格納され、得られたキヤリ
ーはレジスタ5に格納される。レジスタ5の内容
が1となるので、レジスタ6の内容は1加算さ
れ、1から2になり、これが上位桁の商となる。 mサイクルにおいては、次の桁の商を得るた
め、中間剰余と商を1桁左にシフトする。 m+1サイクルにおいては、(1000−0300)が
演算され、その結果0700がレジスタ1に格納され
る。 m+2サイクルにおいては、(0700−0300)が
演算され、その結果0400がレジスタ1に格納され
る。 m+3サイクルにおいては、(0400−0300)が
演算され、その結果0100がレジスタ1に格納され
る。 m+4サイクルにおいては、(0100−0300)が
演算され、その結果9800がレジスタ1に格納され
る。このとき、キヤリーは発生せず、レジスタ5
には0が格納される。さらに、キヤリーが発生し
ないためレジスタ6の加算は行われない。 m+5サイクルにおいては、レジスタ5の内容
が0であるので、次サイクルの動作として桁ずら
しが指定されるとともに(9800+0300)が演算さ
れ、その結果0100がレジスタ1に格納される。ま
たレジスタ5の内容が1となるので、レジスタ6
の内容は1加算され、2から3になり、これが次
の桁の商となる。 pサイクルにおいては、次の桁の商を得るた
め、中間剰余と商を1桁左にシフトする。 p+1サイクルにおいては、(1000−0300)が
演算され、その結果0700がレジスタ1に格納され
る。 p+2サイクルにおいては、(0700−0300)が
演算され、その結果0400がレジスタ1に格納され
る。 p+3サイクルにおいては、(0400−0300)が
演算され、その結果0100がレジスタ1に格納され
る。 p+4サイクルにおいては、(0100−0300)が
演算され、その結果9800がレジスタ1に格納され
る。このとき、キヤリーは発生せず、レジスタ5
には0が格納される。さらに、キヤリーが発生し
ないためレジスタ6の加算は行われない。 p+5サイクルにおいては、レジスタ5の内容
が0であるので、次サイクルの動作として桁ずら
しが指定されるとともに(9800+0300)が演算さ
れ、その結果0100がレジスタ1に格納される。ま
たレジスタ5の内容が1となるので、レジスタ6
の内容は1加算され、2から3になり、これが下
位桁の商となる。 qサイクルにおいては、mサイクルと同様のシ
フト動作を行い、演算を終了する。レジスタ1の
上位2桁が余りとなる。 以上の実施例では、除算開始時の初期設定にお
いて、−1としたため、カウンタ6の最終的な値
が商となつたが、必ずしもこの方法をとる必要は
ない。0に初期設定しておいて、最後に最終的な
値から−1するようにしてもよいし、キヤリーが
0となつた時をもつてレジスタ6の値を商として
取込むようにしてもよい。 以上の如き10進除算装置によれば、商がi(i
=0、1、2、………9)であるとすると、(i
+2)サイクルで10進除算の1桁の商と中間剰余
を求めることができるから、平均
[Table] Selected by 3 and in arithmetic circuit 4 (0700-
0300) is calculated. As a result, register 1 contains
0400 is stored. As a result of the calculation, the carry becomes 1 and is stored in the register 5. Also, register 6 is added from -1 to 0. In the n+2 cycle, (0400-0300) is calculated and the result 0100 is stored in register 1. Other operations are the same as in the n+1 cycle. In the n+3 cycle, (0100-0300) is calculated, and as a result, 9800 is registered in register 1. At this time, no carry occurs and register 5
0 is stored in . Further, since no carry occurs, addition in register 6 is not performed. In the n+4 cycle, the contents of the register 5 are 0, so digit shifting is instructed as the operation for the next cycle, 0300 is selected by the selection circuit 3, and the arithmetic circuit 4 selects (9800+
0300) is calculated. The calculation result 0100 in the calculation circuit 4 is stored in the register 1, and the obtained carry is stored in the register 5. Since the contents of register 5 become 1, 1 is added to the contents of register 6, changing from 1 to 2, which becomes the quotient of the upper digits. In m cycles, the intermediate remainder and quotient are shifted one digit to the left in order to obtain the quotient of the next digit. In m+1 cycle, (1000-0300) is calculated and the result 0700 is stored in register 1. In cycle m+2, (0700-0300) is calculated and the result 0400 is stored in register 1. In the m+3 cycle, (0400-0300) is calculated and the result 0100 is stored in register 1. In the m+4 cycle, (0100-0300) is calculated and the result 9800 is stored in register 1. At this time, no carry occurs and register 5
0 is stored in . Further, since no carry occurs, addition in register 6 is not performed. In the m+5 cycle, the contents of register 5 are 0, so digit shift is specified as the next cycle's operation, and (9800+0300) is calculated, and 0100 is stored in register 1 as a result. Also, since the content of register 5 is 1, register 6
The contents of are added by 1 and become 2 to 3, which becomes the quotient of the next digit. In cycle p, the intermediate remainder and quotient are shifted one digit to the left in order to obtain the quotient of the next digit. In the p+1 cycle, (1000-0300) is calculated and the result 0700 is stored in register 1. In the p+2 cycle, (0700-0300) is calculated and the result 0400 is stored in register 1. In the p+3 cycle, (0400-0300) is calculated and the result 0100 is stored in register 1. In cycle p+4, (0100-0300) is calculated and the result 9800 is stored in register 1. At this time, no carry occurs and register 5
0 is stored in . Further, since no carry occurs, addition in register 6 is not performed. In the p+5 cycle, the contents of register 5 are 0, so digit shifting is specified as the next cycle's operation, and (9800+0300) is calculated, and 0100 is stored in register 1 as a result. Also, since the content of register 5 is 1, register 6
The content of is added by 1 and becomes 3 from 2, which becomes the quotient of the lower digits. In the q cycle, a shift operation similar to that in the m cycle is performed, and the calculation is completed. The upper two digits of register 1 are the remainder. In the above embodiment, the final value of the counter 6 becomes the quotient because the initial setting at the start of division is -1, but it is not necessary to use this method. It may be initialized to 0 and then subtracted by 1 from the final value, or the value of register 6 may be taken in as a quotient when the carry becomes 0. According to the decimal division device as described above, the quotient is i(i
= 0, 1, 2, ......9), then (i
+2) Since the one-digit quotient and intermediate remainder of decimal division can be found in cycles, the average

【式】サイクルの処理ステツプが 実行できる。これに対し、第1図のリストア方式
では、1桁の商が(2i+3)サイクルがかかるか
ら、平均
[Formula] The processing step of the cycle can be executed. On the other hand, in the restore method shown in Figure 1, it takes (2i + 3) cycles to process a single digit quotient, so the average

【式】サイクルの処理ス テツプを要し、また第2図イ,ロのノン・リスト
ア方式では、1桁の商が(2i+2)サイクルがか
かるから、平均
[Formula] It requires a processing step of cycles, and in the non-restore method shown in Figure 2 A and B, it takes (2i + 2) cycles to process a 1-digit quotient, so the average

【式】サイクルを 要する。 従つて第4図の10進除算装置によれば、従来に
比べて約2倍近く高速になることが判る。 以上本発明の一実施例について説明したが、本
発明によれば、第3図に示したように中間剰余と
除数との加算という一つの処理手順のみを反復さ
せることのみにより、1桁の商と中間剰余とを得
ることができるので、従来の方式と比較して、除
算動作を高速に行なえる効果がある。
[Formula] Requires a cycle. Therefore, it can be seen that the decimal division device shown in FIG. 4 is approximately twice as fast as the conventional one. One embodiment of the present invention has been described above. According to the present invention, a one-digit quotient can be obtained by repeating only one processing procedure, which is the addition of an intermediate remainder and a divisor, as shown in FIG. and an intermediate remainder can be obtained, which has the effect of allowing faster division operations compared to conventional methods.

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

第1図は従来のリストア方式により1桁の商と
中間剰余を求める10進除算の原理を示した図、第
2図イ,ロは従来のノン・リストア方式により、
1桁の商と中間剰余を求める10進除算の原理を示
した図、第3図は本発明による10指除算方式によ
り、1桁の商と中間剰余とを求める原理を示した
図、第4図は本発明の一実施例となる10進除算装
置の機能的ブロツク図、第5図は第4図の装置の
演算サイクルを説明するための図である。 第4図において、1,2,5……レジスタ、3
……選択回路、4……演算器、6……レジスタ、
7……加算器。
Figure 1 shows the principle of decimal division to obtain a one-digit quotient and intermediate remainder using the conventional restoration method.
Figure 3 is a diagram showing the principle of decimal division for determining a one-digit quotient and intermediate remainder. Figure 3 is a diagram showing the principle for determining a one-digit quotient and intermediate remainder using the 10-digit division method according to the present invention. The figure is a functional block diagram of a decimal division device according to an embodiment of the present invention, and FIG. 5 is a diagram for explaining the calculation cycle of the device of FIG. 4. In Fig. 4, 1, 2, 5... register, 3
...Selection circuit, 4...Arithmetic unit, 6...Register,
7... Adder.

Claims (1)

【特許請求の範囲】 1 演算サイクルを繰り返して10進除算を行なう
10進除算装置において、被除数あるいは中間剰
余、除数及び演算結果のキヤリーをそれぞれ格納
する第1、第2及び第3のレジスタと、上記第3
のレジスタに接続され、前の演算サイクルの演算
のキヤリーが1である場合には第2のレジスタの
除数の補数を、キヤリーが0である場合には第2
のレジスタの除数を選択する回路と、該選択回路
の出力を一方の入力とし上記第1のレジスタの内
容を他方の入力とし、前の演算サイクルの演算の
キヤリーをそのイニシヤルキヤリーとする10進加
算器と、キヤリー1が少なくとも連続的に出力さ
れる回数を計数するカウンタを有し、各演算サイ
クルにおいて、上記10進加算器による演算を行つ
て演算結果を上記第1のレジスタにセツトすると
共に、この演算と並行して前の演算サイクルでの
演算におけるキヤリーが1か0かに応じて次の演
算サイクルを繰り返すか否かを指示し、上記カウ
ンタの内容に基づいて商を求めることを特徴とす
る10進除算装置。 2 上記第3のレジスタ及びカウンタの初期値を
それぞれ1、−1にして除算動作を開始するよう
にしたことを特徴とする特許請求の範囲第1項記
載の10進除算装置。
[Claims] 1. Decimal division is performed by repeating the operation cycle.
The decimal division device includes first, second, and third registers each storing a dividend or an intermediate remainder, a divisor, and a carry of an operation result;
If the carry of the operation in the previous operation cycle is 1, the complement of the divisor of the second register is connected to the
a circuit for selecting the divisor of the register, the output of the selection circuit as one input, the contents of the first register as the other input, and the carry of the operation of the previous operation cycle as its initial carry. It has a decimal adder and a counter that counts the number of times that carry 1 is outputted at least continuously, and in each operation cycle, the decimal adder performs an operation and sets the result of the operation in the first register. In addition, in parallel with this operation, it instructs whether or not to repeat the next operation cycle depending on whether the carry in the operation in the previous operation cycle is 1 or 0, and calculates the quotient based on the contents of the counter. Characteristic decimal division device. 2. The decimal division device according to claim 1, wherein the initial values of the third register and the counter are set to 1 and -1, respectively, to start the division operation.
JP14231381A 1981-09-11 1981-09-11 Decimal dividing device Granted JPS5844537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14231381A JPS5844537A (en) 1981-09-11 1981-09-11 Decimal dividing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14231381A JPS5844537A (en) 1981-09-11 1981-09-11 Decimal dividing device

Publications (2)

Publication Number Publication Date
JPS5844537A JPS5844537A (en) 1983-03-15
JPS6244660B2 true JPS6244660B2 (en) 1987-09-22

Family

ID=15312446

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14231381A Granted JPS5844537A (en) 1981-09-11 1981-09-11 Decimal dividing device

Country Status (1)

Country Link
JP (1) JPS5844537A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52144936A (en) * 1976-05-28 1977-12-02 Fujitsu Ltd Decimal system division system
JPS5595148A (en) * 1979-01-10 1980-07-19 Hitachi Ltd Binary arithmetic circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52144936A (en) * 1976-05-28 1977-12-02 Fujitsu Ltd Decimal system division system
JPS5595148A (en) * 1979-01-10 1980-07-19 Hitachi Ltd Binary arithmetic circuit

Also Published As

Publication number Publication date
JPS5844537A (en) 1983-03-15

Similar Documents

Publication Publication Date Title
US6049815A (en) Method and apparatus for finite field multiplication
US20010054053A1 (en) Method and apparatus for finite field multiplication
JP2502836B2 (en) Preprocessing device for division circuit
US4692891A (en) Coded decimal non-restoring divider
JPS6248857B2 (en)
JPS6244660B2 (en)
JPH0628155A (en) Method and apparatus for division
JPH02194430A (en) Divider
US11494165B2 (en) Arithmetic circuit for performing product-sum arithmetic
US3551662A (en) Square root apparatus
JPS60247736A (en) Dividing circuit
JPH0326114A (en) Multiplication remainder computing element
JPS6155691B2 (en)
JP2664750B2 (en) Arithmetic device and arithmetic processing method
JP2777265B2 (en) High radix square root arithmetic unit
JP2553548B2 (en) Multiplicative residue computing device
JPH0368415B2 (en)
SU997031A1 (en) Multiplying device
JP3477866B2 (en) Divider division method
JPS60246437A (en) Dividing circuit
SU744583A1 (en) Device for detecting and correcting errors of arithmeric operations
SU633015A1 (en) Exponential function computing arrangement
JP2726479B2 (en) Division device
JPS60247735A (en) Decimal multiplying circuit
JPH05324274A (en) Binary/decimal converter