JPH03166623A - Divider circuit - Google Patents

Divider circuit

Info

Publication number
JPH03166623A
JPH03166623A JP1307032A JP30703289A JPH03166623A JP H03166623 A JPH03166623 A JP H03166623A JP 1307032 A JP1307032 A JP 1307032A JP 30703289 A JP30703289 A JP 30703289A JP H03166623 A JPH03166623 A JP H03166623A
Authority
JP
Japan
Prior art keywords
division
division table
circuit
result
dividend
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1307032A
Other languages
Japanese (ja)
Inventor
Kunio Sannomiya
三宮 邦夫
Yukifumi Tsuda
津田 幸文
Yuji Maruyama
祐二 丸山
Kazutoshi Iketani
池谷 和俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1307032A priority Critical patent/JPH03166623A/en
Publication of JPH03166623A publication Critical patent/JPH03166623A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To form the divider circuit of high accuracy and a high speed by dividing a dividend into two high order and low order groups, storing the respective division results as a high order division table and a low order division table, and adding the high order division result and the low order division result. CONSTITUTION:The circuit is provided with a high order division table 5 in which a result of division of a prescribed upper bit is stored, a high order division table reference circuit 6 for referring to the high order division table 5 corresponding to a value of the upper bit of a dividend and a divisor, and a low order division table 7 in which a result of division of a prescribed lower bit is stored. Also, this circuit is provided with a low order division table reference circuit 8 for referring to the low order division table 7 corresponding to a value of the lower bit of the dividend and the divisor, and an adder circuit for adding a result of reference of the high order division table reference circuit 6 and a result of reference of the low order division table reference circuit 8. In such a way, the dividing circuit of a high speed and high accuracy can be formed.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はデジタル演算を行う装置に置ける整数の除算を
行う除算回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a division circuit that performs integer division in a device that performs digital arithmetic operations.

従来の技術 従来ようデジタル演算において除算を行うには3つの手
法がある。即ち、第1はMPU (マイクロプロセッサ
ユニット)を使いプログラムの中で演算をさせる手法、
第2は浮動小数点演算用のLSIを使って演算をさせる
手法、第3は除算結果を予めテーブル化しておきテーブ
ル参照により演算させる手法である。第1の手法はMP
Uを制御する周辺回路とプログラムが必要となシ演算速
度は1マイクロ秒程度であり、第2の手法では浮動小数
点演算用のLSIを使う周辺回路と整数から浮動小数へ
の変換及び浮動小数から整数への変換制御が必要となう
演算速度は10マイクロ程度である。第1及び第2の手
法はその使い勝手の容易性や演算速度の点を考慮すると
ハードウェアの一部として除算演算を実現するには困難
である。このためハードウェアの一部として除算演算を
実現するには一般的に第3の手法が用いられる。第3の
手法では除数と被除数の発生する組合せの全てを予め計
算し記憶装置に除算用テーブルとして記憶させておき、
与えられたデータに対して除算用テ一プルを参照して演
算結果を求める手法である。
BACKGROUND OF THE INVENTION Conventionally, there are three methods for performing division in digital operations. That is, the first method is to use an MPU (microprocessor unit) to perform calculations within a program.
The second method is to perform calculations using an LSI for floating point calculations, and the third method is to create a table of division results in advance and perform calculations by referring to the table. The first method is MP
The calculation speed required by the peripheral circuit and program to control U is about 1 microsecond, and the second method requires a peripheral circuit using an LSI for floating point calculations, conversion from integer to floating point, and conversion from floating point to floating point. The calculation speed required to control conversion to integers is about 10 microns. Considering the ease of use and calculation speed of the first and second methods, it is difficult to implement the division operation as part of the hardware. Therefore, the third method is generally used to implement the division operation as part of the hardware. In the third method, all possible combinations of divisor and dividend are calculated in advance and stored in a storage device as a division table.
This is a method of calculating a calculation result by referring to a division table for given data.

発明が解決しようとする課題 この第3の手法はその構成の容易さや高速処理の点で非
常に有効である。しかし近年のデジタル処理に釦いては
演算精度も重要な配慮点であり、演算精度を高めると記
憶装置の記憶容量の大きさの問題から第3の手法も実現
が困難になってくる。
Problems to be Solved by the Invention This third method is very effective in terms of ease of configuration and high-speed processing. However, in recent digital processing, calculation accuracy is an important consideration, and if the calculation accuracy is increased, the third method becomes difficult to implement due to the problem of the storage capacity of the storage device.

例えば2つの12ビットのA/D変換器の出力に対する
除算を行う場合、除数、被除数共に12ビットであるた
め224個、即ち16777216個の要素を持つテー
ブルを作る必要があり、演算結果を12ピット求めるに
は32メガバイトの記憶装置が必要になってくる。
For example, when performing division on the outputs of two 12-bit A/D converters, since both the divisor and dividend are 12 bits, it is necessary to create a table with 224 elements, that is, 16777216 elements, and the result of the operation is divided into 12 bits. This requires a 32 megabyte storage device.

本発明は、上記課題に鑑み、記憶装置の容量を、削減し
、かつ高速・高精度の除算回路を提供することである。
SUMMARY OF THE INVENTION In view of the above problems, it is an object of the present invention to reduce the capacity of a storage device and provide a high-speed, high-precision division circuit.

課題を解決するための手段 上記の目的を達成すべく、本発明は、所定の上位ピット
の除算結果を格納した上位の除算用テーブルと、被除数
の上位ビットの値と除数とに対応した前記上位の除算用
テーブルを参照する上位の除算用テーブル参照回路と、
所定の下位ビソトの除算結果を格納した下位の除算用テ
ーブルと、被除数の下位ビットの値と除数とに対応する
前記下位の除算用テーブルを参照する下位の除算用テー
ブル参照回路と、上位の除算用テーブル参照回路の参照
結果と下位の除算用テーブル参照回路の参照結果とを加
算する加算回路とを設けるものである。
Means for Solving the Problems In order to achieve the above object, the present invention provides an upper division table that stores division results of predetermined upper pits, and an upper division table that stores the division results of predetermined upper pits, and an upper division table reference circuit that references the division table of;
a lower division table storing a predetermined lower bit division result; a lower division table reference circuit that references the lower division table corresponding to the lower bit value of the dividend and the divisor; and an upper division table. An adder circuit is provided for adding the reference result of the division table reference circuit and the reference result of the lower division table reference circuit.

作用 本発明では被除数の集合をA1被除数の集合Aの有効桁
をNAビット、除数の集合をB1除数の集合Bの有効桁
をNBビソト、商の集合をC1商の集合Cの有効桁をN
c,とする。AとBの各元の除算をテーブル参照方式で
行う場合はテーブルは2の(NA+NB)乗個必要とな
る。次に、N2 = NA / 2   (切上げ計算
)とし、被除数の集合Aのうち上位N2ビソトがゼロで
なくその他のピットがゼロである部分集合をAU1上位
N2ビットがゼロである部分集合をAL,Aの元をa,
AuO元をaU,A4,の元をalとすると、 a”aU+aL と表すことが出来るass aLが存在する。即ち、a
に対してBの元で除算を施すと、 a      aU      aL −  =  −  +  − bb      b となる。
In the present invention, the set of dividends is A1, the significant digits of set A of dividends are NA bits, the set of divisors is B1, the significant digits of set B of divisors are NB bits, the set of quotients is C1, the significant digits of set C of quotients are N bits.
c. When division of each element of A and B is performed using a table reference method, 2 to the power of (NA+NB) tables are required. Next, set N2 = NA / 2 (round up calculation), and of the set A of dividends, the subset where the upper N2 bits are not zero and the other pits are zero is AU1, the subset where the upper N2 bits are zero is AL, The element of A is a,
If the AuO element is aU and the element of A4 is al, there is ass aL that can be expressed as a"aU+aL. That is, a
When , is divided under B, aaU aL − = − + − bb b .

ここで予めAuの全ての元に対するBの全ての元での除
算の結果を上位の除算用テーブルをして記憶しておき、
Ax,の全での元に対するBの全ての元での除算の結果
を下位の除算用テーブルをして記憶してフ・<ことで、
上式の右辺の第1項と第2項はテーブル参照により求め
ることが出来る。
Here, the results of dividing all elements of Au by all elements of B are stored in advance in an upper division table,
By storing the result of division of all elements of B by all elements of Ax, in a lower division table,
The first and second terms on the right side of the above equation can be determined by referring to a table.

この様にして求めた除算結果を加算することにより演算
を実現できる。かかる構成で除算をすることによシ除算
用テーブルの要素の数は2の(N2+NB+1)乗個で
充分であシ、従来のテーブル参照方式に比べてテーブル
の要素数を削減できる。
The calculation can be realized by adding the division results obtained in this way. By performing division in this configuration, the number of elements in the division table is sufficient to be 2 to the power of (N2+NB+1), and the number of table elements can be reduced compared to the conventional table reference method.

実施例 以下、図を参照しながら本発明の一実施例について説明
する。
EXAMPLE Hereinafter, an example of the present invention will be described with reference to the drawings.

図は本発明の除算回路の実施例を示すプロノク図である
。図にかいて、1は被除数の入力信号線、2は除数の入
力信号線、3は被除数の入力信号線の上位の入力信号線
、4は被除数の入力信号線の下位の入力信号線、5は上
位の除算用テーブル、6は上位の除算用テーブル参照回
路、7は下位の除算用テーブル、8は下位の除算用テー
ブル参照回路、9は加算回路、10は出力信号線である
。本実施例にふ・いては、被除数の入力信号線1は12
本、除数の入力信号線1は12本、上位の入力信号線3
は6本、下位の入力信号線3は6本、出力信号線10は
12本である。これは被除数の有効桁が12ビット、被
除数の有効桁の上位及び下位がそれぞれ6ピット、除数
が12ビット、商が12ビノトであることを示している
The figure is a diagram showing an embodiment of the division circuit of the present invention. In the figure, 1 is an input signal line for the dividend, 2 is an input signal line for the divisor, 3 is an input signal line above the input signal line for the dividend, 4 is an input signal line below the input signal line for the dividend, 5 6 is an upper division table, 7 is a lower division table, 8 is a lower division table reference circuit, 9 is an addition circuit, and 10 is an output signal line. In this embodiment, the input signal line 1 of the dividend is 12
There are 12 input signal lines 1 for the divisor, and 12 input signal lines for the upper input signal line 3.
There are 6 lines, 6 lines for lower input signal lines 3, and 12 lines for output signal lines 10. This indicates that the effective digits of the dividend are 12 bits, the upper and lower significant digits of the dividend are 6 pits each, the divisor is 12 bits, and the quotient is 12 bits.

以下、本実施例の動作について説明する。上位の除算用
テーブル5には被除数の上位6ビットの全ての値と除数
の全ての値との組合せによる除算結果の値が格納されて
いる。第1表に上位の除算用テーブル5の一部を示す。
The operation of this embodiment will be explained below. The upper division table 5 stores the values of division results obtained by combining all the values of the upper 6 bits of the dividend and all the values of the divisor. Table 1 shows a part of the upper division table 5.

又、下位の除算用テーブル7には被除数の下位6ビット
の全ての値と除数の全ての値との組合せによる除算結果
の値が格納されている。第2表に下位の除算用テーブル
7の一部を示す。被除数は被除数の入力信号線1に入力
されそのうちの上位6本が上位の除算用テーブル参照回
路6に導かれ、下位6本が下位の除算用テーブル参照回
路8に導かれる。
Further, the lower division table 7 stores the values of division results obtained by combining all the values of the lower 6 bits of the dividend and all the values of the divisor. Table 2 shows a part of the lower division table 7. The dividend is input to the dividend input signal line 1, of which the upper six lines are led to the upper division table reference circuit 6, and the lower six lines are guided to the lower division table reference circuit 8.

以下余白 第1表 上位の除算用テーブルの一部分を示す表第2表 下位の除算用テーブルの一部を示す表 又、除数は除数の入力信号線に入力され、上位の除算用
テーブル参照回路6及び下位の除算用テーブル参照回路
8に導かれる。次に、上位の除算テーブル参照回路6で
は、被除数の上位6ビノトと除数12ビットとで番地計
算を行い上位の除算用テーブル5を参照することで上位
6ビントに対する除算結果を得て、後段の加算回路9に
その結果を渡す。下位の除算テーブル参照回路8では、
被除数の下位6ビノトと除数l2ビソトとで番地計算を
行い下位の除算用テーブル7を参照することで下位6ビ
ットに対する除算結果を得て、後段の加算回路9にその
結果を渡す。加算回路9では、上位6ビットに対する除
算結果と下位6ビソトに対する除算結果を加算して目的
の除算結果を得る。
Table 1 below shows a part of the upper division table Table 2 shows a part of the lower division table Also, the divisor is input to the divisor input signal line, and the upper division table reference circuit 6 and is led to the lower division table reference circuit 8. Next, the upper division table reference circuit 6 calculates the address using the upper 6 bits of the dividend and the 12 bits of the divisor, and refers to the upper division table 5 to obtain the division result for the upper 6 bits. The result is passed to the adder circuit 9. In the lower division table reference circuit 8,
Address calculation is performed using the lower 6 bits of the dividend and the divisor l2 bits, and by referring to the lower division table 7, the division result for the lower 6 bits is obtained, and the result is passed to the adder circuit 9 at the subsequent stage. The adder circuit 9 adds the division result for the upper 6 bits and the division result for the lower 6 bits to obtain the desired division result.

本実施例においては、上位の除算用テーブル5と下位の
除算用テーブル7とでそれぞれ2メガバイトの記憶容量
を必要とした。又、テーブル参照は120ナノ秒以下、
上位6ビットに対する除算結果と下位6ビットに対する
除算結果を加算は20ナノ秒以下の高速で実現できた。
In this embodiment, the upper division table 5 and the lower division table 7 each require a storage capacity of 2 megabytes. Also, table references are less than 120 nanoseconds,
Addition of the division results for the upper 6 bits and the division results for the lower 6 bits was achieved at a high speed of 20 nanoseconds or less.

なお、本実施例においては被除数を上位、下位の2つの
グループに分割し、それぞれの除算結果を除算用テーブ
ルとして記憶しておき、テーブル参照によシ除算をする
構成としたが、被除数を更に多くの部分に分割しそれぞ
れの除算結果を各々除算用テーブルとして記憶してむき
、テーブル参照により除算をする構成を実現でき、後者
の場合はより効果的な記憶容量の削減効果を期待できる
In this embodiment, the dividend is divided into two groups, upper and lower, and the results of each division are stored as a division table, and the division is performed by referring to the table. It is possible to realize a configuration in which the division is divided into many parts, each division result is stored as a division table, and the division is performed by referring to the table. In the latter case, a more effective storage capacity reduction effect can be expected.

発明の効果 以上のように本発明は整数の除算をするに際して、被除
数を上位、下位の2つのグループに分割し、それぞれの
除算結果を上位の除算用テーブル及び下位の除算用テー
ブルとして記憶してふ・き、テーブル参照によジ上位の
除算結果と下位の除算結果を求め、上位の除算結果と下
位の除算結果を加算することで、容易に高精度かつ高速
な除算回路を実現でき、その効果は大きい。
Effects of the Invention As described above, when dividing an integer, the present invention divides the dividend into two groups, upper and lower, and stores the results of each division as an upper division table and a lower division table. By looking up the table to find the upper division result and lower division result, and then adding the upper division result and lower division result, it is possible to easily realize a high-precision and high-speed division circuit. The effect is great.

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

図は本発明の一実施例における除算回路のブロック結線
図である。 1・・・被除数の入力信号、2・・・除数の入力信号、
3・・・被除数の入力信号の上位の入力信号、4・・・
被除数の入力信号の下位の入力信号、5・・上位の除算
用テーブル、6・・上位の除算用テーブル参照回路、7
・・・下位の除算用テーブル、8・・・下位の除算用テ
ーブル参照回路、9・・・加算回路、10・出力信号。
The figure is a block diagram of a division circuit in one embodiment of the present invention. 1...Dividend input signal, 2...Divisor input signal,
3... Upper input signal of the input signal of the dividend, 4...
Lower input signal of dividend input signal, 5... Upper division table, 6... Upper division table reference circuit, 7
. . . Lower division table, 8. Lower division table reference circuit, 9. Addition circuit, 10. Output signal.

Claims (1)

【特許請求の範囲】[Claims]  所定の上位ビットの除算結果を格納した上位の除算用
テーブルと、被除数の上位ビットの値と除数とに対応し
た前記上位の除算用テーブルを参照する上位の除算用テ
ーブル参照回路と、所定の下位ビットの除算結果を格納
した下位の除算用テーブルと、被除数の下位ビットの値
と除数とに対応する前記下位の除算用テーブルを参照す
る下位の除算用テーブル参照回路と、前記上位の除算用
テーブル参照回路の参照結果と前記下位の除算用テーブ
ル参照回路の参照結果とを加算する加算回路とを具備す
る除算回路。
an upper division table that stores division results of predetermined upper bits; an upper division table reference circuit that refers to the upper division table that corresponds to the value of the upper bits of the dividend and the divisor; and a predetermined lower division table. a lower division table that stores bit division results; a lower division table reference circuit that references the lower division table corresponding to the lower bit value of the dividend and the divisor; and the upper division table. A division circuit comprising: an addition circuit that adds the reference result of the reference circuit and the reference result of the lower division table reference circuit.
JP1307032A 1989-11-27 1989-11-27 Divider circuit Pending JPH03166623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1307032A JPH03166623A (en) 1989-11-27 1989-11-27 Divider circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1307032A JPH03166623A (en) 1989-11-27 1989-11-27 Divider circuit

Publications (1)

Publication Number Publication Date
JPH03166623A true JPH03166623A (en) 1991-07-18

Family

ID=17964216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1307032A Pending JPH03166623A (en) 1989-11-27 1989-11-27 Divider circuit

Country Status (1)

Country Link
JP (1) JPH03166623A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002029546A1 (en) * 2000-09-26 2002-04-11 Hitachi, Ltd. Computing unit and electronic circuit device using it

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62172430A (en) * 1986-01-24 1987-07-29 Fuji Xerox Co Ltd Division circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62172430A (en) * 1986-01-24 1987-07-29 Fuji Xerox Co Ltd Division circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002029546A1 (en) * 2000-09-26 2002-04-11 Hitachi, Ltd. Computing unit and electronic circuit device using it
US7243119B1 (en) * 2000-09-26 2007-07-10 Hitachi, Ltd. Floating point computing unit

Similar Documents

Publication Publication Date Title
GB1063014A (en) Improvements in or relating to electronic digital computers
KR890015121A (en) Division calculator
US5038315A (en) Multiplier circuit
US3678259A (en) Asynchronous logic for determining number of leading zeros in a digital word
JPS6125245A (en) Rounding process circuit
US4727507A (en) Multiplication circuit using a multiplier and a carry propagating adder
JPH03166623A (en) Divider circuit
US3223831A (en) Binary division apparatus
SU991417A2 (en) Division device
JPS62549B2 (en)
JP3166781B2 (en) Adder circuit
SU813414A2 (en) Digital device for taking logarithms of binary numbers
JPH0371331A (en) Multiplier
JPH0585924B2 (en)
US20190303102A1 (en) Output value generator circuit, processor, output value generation method and non-transitory computer readable medium
SU620978A1 (en) Arrangement for raising number-pulse code to the second power
JPS6188334A (en) Divider circuit
JPH0285922A (en) Arithmetic circuit
SU1024912A1 (en) Device for computing function z-sqrt(x 2 + y 2)
JPH0325527A (en) Digital signal processor
JPS61118835A (en) Hardware divider
JP2699658B2 (en) Square root arithmetic unit
JPS5972541A (en) Data processor
SU622090A1 (en) Sine and cosing function computing arrangement
JPS6175926A (en) Hardware divider