JPH0385633A - Divisional arithmetic circuit - Google Patents

Divisional arithmetic circuit

Info

Publication number
JPH0385633A
JPH0385633A JP1224062A JP22406289A JPH0385633A JP H0385633 A JPH0385633 A JP H0385633A JP 1224062 A JP1224062 A JP 1224062A JP 22406289 A JP22406289 A JP 22406289A JP H0385633 A JPH0385633 A JP H0385633A
Authority
JP
Japan
Prior art keywords
data
divisor
memory
address
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
JP1224062A
Other languages
Japanese (ja)
Inventor
Ryohei Kato
良平 加藤
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP1224062A priority Critical patent/JPH0385633A/en
Publication of JPH0385633A publication Critical patent/JPH0385633A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute display precise arithmetic operation through simple configuration by obtaining the quotient by converting a divisor into a reciprocal and multiplying a dividend by it, and simultaneously, executing the arithmetic operation by bit-shifting the divisor and the dividend according to the absolute value of the divisor. CONSTITUTION:The table of the reciprocal of input data is formed previously in one area of a ROM 5, and simultaneously, the table of the reciprocal of the data obtained by bit-shifting the input data is formed previously in another area. The absolute value of divisor data from a RAM 1 is discriminated by an ALU 3, and when this absolute value is larger than a prescribed value, the divisor data is shifted by prescribed number of bits, and is converted by using other area of the ROM 5. Simultaneously with this, this converted data and the data obtained by shifting the dividend data from the RAM 1 by prescribed number of bits are multiplied by a multiplier 7, and the quotient is obtained. Thus, the highly precise divisional arithmetic operation can be executed through the simple configuration.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、例えば画像処理装置でアドレス計算等に用い
られる除算演算回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a division arithmetic circuit used for address calculation, etc., in an image processing device, for example.

〔発明の概要〕[Summary of the invention]

本発明は除算演算回路に関し、除数を逆数に変換して被
除算に乗算することによって商を得ると共に、除数の絶
対値に応じて除数及び被除数をビットシフトして演算を
行うことにより、簡単な構成で高精度の演算が行われる
ようにするものである。
The present invention relates to a division arithmetic circuit, which obtains a quotient by converting the divisor into a reciprocal and multiplying it by the dividend, and also performs a simple operation by bit-shifting the divisor and dividend according to the absolute value of the divisor. The configuration allows highly accurate calculations to be performed.

〔従来の技術〕[Conventional technology]

除算演算を行う回路として従来から、 ■ ALU等を用いてソフト的に行う ■ 除数及び被除数の全組合せについてその商を求めた
テーブルを用いる ■ 除数の逆数を求めたテーブルを用いて被除数と逆数
を乗算する などの手段が考えられている。
Conventionally, circuits that perform division operations have been: ■ Performed by software using ALU etc. ■ Use a table that calculates the quotient for all combinations of the divisor and dividend ■ Calculate the dividend and reciprocal using a table that calculates the reciprocal of the divisor Measures such as multiplication are being considered.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところがこのような回路において、■は演算時間が極め
て長くなり、また■ではテーブルのメモリのサイズが膨
大なものになってしまう。
However, in such a circuit, the computation time becomes extremely long in case 2, and the memory size of the table becomes enormous in case 2.

これに対して■では、演算時間やメモリのサイズも適当
であるが、除数の絶対値が大きくなるとその逆数の値は
小さくなり、このため除数の絶対値が大きいときに演算
の精度が著しく低下してしまう問題があった。
On the other hand, with ■, the calculation time and memory size are appropriate, but as the absolute value of the divisor increases, the value of its reciprocal decreases, so the accuracy of the calculation decreases significantly when the absolute value of the divisor is large. There was a problem.

この出願はこのような点に鑑み、簡単な構成で高精度の
除算演算が行われるようにするものである。
In view of these points, this application is intended to perform highly accurate division operations with a simple configuration.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、データストア用の第1のメモIJ(RA M
 (1) ”)とA L U (3)と係数ストア用の
第2のメモリ (ROM(5))と出力の上下位桁を選
択できる乗算器(7)と制御装置(CP U(100)
)とからなり、上記第2のメモリにはその一の領域に入
力データの逆数のテーブルが形成されると共に他の領域
に上記人力データを所定ビットシフトしたデータの逆数
のテーブルが形成され、上記第1のメモリからの除数デ
ータの絶対値が上記ALUで判別され、この絶対値が所
定値以下のとき上記除数データが上記第2のメモリの一
の領域を用いて変換されると共にこの変換データと上記
第1のメモリからの被除数データとが上記乗算器で乗算
され、上記絶対値が所定値以上のとき上記除数データが
所定ビットシフトされて上記第2のメモリの他の領域を
用いて変換されると共にこの変換データと上記第1のメ
モリからの被除数データが所定ビットシフトされたデー
タとが上記乗算器で乗算されて商が得られるようにした
除算演算回路である。
The present invention provides a first memory IJ (RAM
(1) ”), ALU (3), a second memory for storing coefficients (ROM (5)), a multiplier (7) that can select the upper and lower digits of the output, and a control device (CPU (100)).
), in the second memory, a table of reciprocals of input data is formed in one area, and a table of reciprocals of data obtained by shifting the manual data by a predetermined bit is formed in another area, and The absolute value of the divisor data from the first memory is determined by the ALU, and when this absolute value is less than or equal to a predetermined value, the divisor data is converted using one area of the second memory, and the converted data is and the dividend data from the first memory are multiplied by the multiplier, and when the absolute value is greater than or equal to a predetermined value, the divisor data is shifted by a predetermined bit and converted using another area of the second memory. and the converted data and data obtained by shifting the dividend data from the first memory by a predetermined bit are multiplied by the multiplier to obtain a quotient.

〔作用〕[Effect]

これによれば、除数を逆数に変換するためのテーブルを
区分し、除数データの絶対値が所定値以上のとき除数デ
ータを所定ビットシフトして変換を行うと共に被除数デ
ータも所定ビットシフトして演算を行うことによって、
簡単な構成で高精度の除算演算を行うことができる。
According to this, a table for converting a divisor into a reciprocal is divided, and when the absolute value of the divisor data is greater than or equal to a predetermined value, the divisor data is shifted by a predetermined bit for conversion, and the dividend data is also shifted by a predetermined bit for calculation. By doing
High-precision division operations can be performed with a simple configuration.

〔実施例〕〔Example〕

第1図はハードウェアの構成を示す。この図において(
100)  は制御装置となるCPUであって、このC
P U(100)  と処理回路を構成する各部との間
はパスライン(101)  を通じて相互に接続されて
いる。
FIG. 1 shows the hardware configuration. In this figure (
100) is a CPU serving as a control device, and this C
The P U (100) and each part constituting the processing circuit are interconnected through a pass line (101).

そして(1)はデータストア用の第1のメモリとなるR
AMであって、このRA M (1)はパスライン(1
01)  を通じてCP U (100)  との間で
処理データ及び処理結果のデータの入出力が行われると
共に、アドレス及びリード・ライトの制御信号がCPU
(100)  から供給される。このRA M (1)
からのデータがレジスタ(2)を通じてA L U (
3)に供給され、このA L U (3)はCP U 
(100) からの制御信号で駆動される。
And (1) is R, which is the first memory for data storage.
AM, and this RAM (1) is a pass line (1
01) Processing data and processing result data are input and output to and from the CPU (100), and address and read/write control signals are sent to the CPU (100).
(100). This RAM (1)
The data from A L U (
3), and this ALU (3) is supplied to the CPU
(100) is driven by a control signal from.

このA L U (3)からのデータがレジスタ(4)
を通じて係数ストア用の第2のメモリとなるR OM 
(5)のアドレス人力に供給されると共に、A L U
 (3)からのデータのMSBがCP U(100) 
 に供給され、CPU(100)  からのデータがR
OM (5)のアドレス入力のMSBに供給される。
The data from this ALU (3) is stored in the register (4).
ROM serves as a second memory for coefficient storage through
(5) As well as being supplied to address manpower, ALU
(3) MSB of data from CPU (100)
data from the CPU (100) is supplied to R
Applied to the MSB of the address input of OM (5).

このROM (5)からのデータがレジスタ(6)を通
じて出力の上下位桁の選択できる乗算器(7)に供°給
される。さらにA L U (3)からのデータがレジ
スタ(8)を通じて乗算器(7)に供給される。そして
この乗算器(7)からの出力が、CP U (100)
 からの制御信号にてその上下位桁が選択されて、この
出力データがレジスタ(9)を通じてRA M (1)
に供給される。
Data from this ROM (5) is supplied through a register (6) to a multiplier (7) that can select the upper and lower digits of the output. Furthermore, data from A L U (3) is supplied to a multiplier (7) through a register (8). The output from this multiplier (7) is the CPU (100)
The upper and lower digits are selected by the control signal from , and this output data is sent to RAM (1) through register (9).
supplied to

なおレジスタ(2) (4) (6) (8) (9)
はそれぞれCP U (100)からのクロックイネー
ブル信号にて駆動される。
Note that registers (2) (4) (6) (8) (9)
are each driven by a clock enable signal from the CPU (100).

さらに第2図は演算の処理手段を説明するための図であ
って、この図においてRA M (1)のp番地の内容
(除数)でq番地の内容(被除数)を割り、商をr番地
に格納(1= r )とするものであp る。
Furthermore, FIG. 2 is a diagram for explaining the processing means of the calculation, and in this figure, the contents of address q (dividend) are divided by the contents of address p (divisor) of RAM (1), and the quotient is transferred to address r. p (1=r).

そしてこの例では各数値のデータが16ビ、ソト(数値
15ビツト及び符号lピッ)(MSB))に対して、R
OM (5)のアドレス入力が11ビツト (アドレス
数2K)で、各アドレスのデータが16ビツトの場合と
する。この場合にROM (5)の各アドレスには、n
 (Q<n玉1023 ”)番地に、(n +0.5)
−’ 但しn=0のとき’0111111111111111
 ”またm (1024二m玉2047)番地に((m
−1024+0.5) X 2 )但しm=1024の
とき’0111111111111111”のテーブル
が形成されている。
In this example, the data for each numerical value is 16 bits, soto (15 bits of numerical value and sign 1 bit) (MSB)), and R
Assume that the address input of OM (5) is 11 bits (2K addresses) and the data of each address is 16 bits. In this case, each address of ROM (5) has n
(Q<n ball 1023”) address, (n +0.5)
-' However, when n=0, '0111111111111111
``Also at address m (1024 2m ball 2047) ((m
-1024+0.5) X 2 ) However, when m=1024, a table of '0111111111111111' is formed.

さらに前準備としてA L U (3)の0番地メモリ
は予め1024″”の数値を格納しておく。
Further, as a preliminary preparation, the memory at address 0 of ALU (3) stores a numerical value of 1024'''' in advance.

そして図において処理がスタートされると、最初のステ
ップ〔1〕でCP U (100)  からp番地のア
ドレスをRA M (1)に供給してこのときの出力デ
ータをレジスタ(2)に保持する。さらにステップ〔2
〕で次のクロックの供給によってレジスタ(2)のデー
タをA L U (3)の1番地メモリに格納してその
MSBをCP U (100)  に出力する。これに
よってCPUでは除数の符号を判別し、ここでMSBI
t 111のとき除数は負、MSB−”0″のとき除数
は非負である。
When the process starts in the figure, the first step [1] is to supply the address p from the CPU (100) to the RAM (1) and hold the output data at this time in the register (2). . Further step [2
] When the next clock is supplied, the data in the register (2) is stored in the memory at address 1 of the ALU (3), and its MSB is output to the CPU (100). By this, the CPU determines the sign of the divisor, and here the MSBI
When t111, the divisor is negative, and when MSB-"0", the divisor is non-negative.

このステップ〔2〕にてMSB=”0”のときはステッ
プ〔3八〕でA L U (3)の1番地メモリの内容
から0番地メモリの内容を減算して結果のMSBをc 
P U (100)  に出力する。またステップ〔2
〕にてMSB=”l”のときはステップ〔3B〕でAL
 U (3)の1番地メモリの内容に0番地メモリの内
容を加算して結果のMSBをCP U(100)  に
出力する。これによってCP U(100) では除数
の絶対値の大小が判別される。
If MSB="0" in this step [2], then in step [38] the content of the memory at address 0 is subtracted from the content of memory at address 1 of ALU (3), and the resulting MSB is c.
Output to P U (100). Also step [2
], when MSB="l", AL in step [3B]
Adds the contents of the memory at address 0 to the contents of memory at address 0 of U (3) and outputs the MSB of the result to CPU (100). As a result, the CPU (100) determines whether the absolute value of the divisor is large or small.

すなわちステ・ツブ〔3八〕でMSB=”0”のときは
除数の絶対値が0番地メモリに格納された所定値(”1
024″′)より大であり、MSB=”1”のときは所
定値より小である。またステップ〔3B〕でMSB=“
1”のときは除数の絶対値が所定値よすステあり、MS
B−”0″゛のときは所定値より小である。
In other words, when MSB="0" in STEP [38], the absolute value of the divisor is the predetermined value ("1") stored in the memory at address 0.
024″′), and when MSB="1", it is smaller than the predetermined value. Also, in step [3B], MSB="
1”, the absolute value of the divisor is set to the specified value, MS
When B-"0", it is smaller than the predetermined value.

そしてステップ〔3A〕でMSB=”0”のときはステ
ップ〔4A〕でA L U (3)の1番地メモリの内
容を5ビツトシフトダウンし、ステップ〔5A〕でこの
1番地メモリの内容をレジスタ(4)に保持する。
Then, when MSB="0" in step [3A], the contents of memory at address 1 of ALU (3) are shifted down by 5 bits in step [4A], and the contents of memory at address 1 are shifted down in step [5A]. Hold in register (4).

さらにステップ〔6A〕でCP U(100) が′1
″のデータを出力し、ステップ〔7A〕でROM (5
)の出力データをレジスタ(6)に保持する。
Furthermore, in step [6A], CPU (100) is '1
” data, and in step [7A], ROM (5
) is held in register (6).

これに対してステップ〔3B〕でMSB−”1”のとき
はステップ〔4B〕でステップ〔4A〕と同様にA L
 U (3)の1番地メモリの内容を5ビ・ソトシフト
ダウンし、ステップ〔5B〕でこの1番地メモリの内容
を0″から減算してレジスタ(4)に保持する。さら(
こステ・ンプ〔6B〕でステ・ンプ〔6八〕と同様にC
P U(100) が11111のデータを出力し、ス
テ・ンプ〔7B〕でステ・ンプ〔7八〕と同様(こRO
M (5)の出力データをレジスタ(6)に保持する。
On the other hand, when the MSB is "1" in step [3B], A L is sent in step [4B] as in step [4A].
The contents of the memory at address 1 in U (3) are shifted down by 5 bits, and in step [5B] the contents of memory at address 1 are subtracted from 0'' and held in register (4).Furthermore, (
C in this step [6B] as well as step [68]
P U (100) outputs data 11111, and step 7B outputs the same data as step 78 (this RO
The output data of M (5) is held in the register (6).

一方ステップ〔3八〕でMSB−“1”のときは直接ス
テップ〔5C〕でステップ〔5A〕と同様にAL U 
(3)の1番地メモリの内容をレジスタ(4)に保持す
る。さらにステップ〔6C〕でCP U (100) 
 が“0”のデータを出力し、ステップ〔7C〕でRO
M(5)の出力データをレジスタ(6)に保持する。
On the other hand, when the MSB is "1" in step [38], the ALU is directly transferred to step [5C] in the same way as step [5A].
The contents of memory at address 1 in (3) are held in register (4). Furthermore, in step [6C] CPU (100)
outputs “0” data, and in step [7C] RO
The output data of M(5) is held in register (6).

またステップ〔3B〕でMSB=”O″′のときは直接
ステップ〔5D〕でステップ〔5B〕と同様にAL U
 (3)の1番地メモリの内容を“0″′から減算して
レジスタ(4)に保持する。さらにステップ〔6D〕で
ステップ〔6C〕と同様にCP U(100)  が0
”のデータを出力し、ステップ〔7D〕でROM (5
)の出力データをレジスタ(6)に保持する。
Also, when MSB="O"' in step [3B], the ALU
The contents of memory at address 1 in (3) are subtracted from "0"' and held in register (4). Furthermore, in step [6D], CPU (100) is 0 as in step [6C].
" data is output, and in step [7D] it is stored in the ROM (5
) is held in register (6).

続いてステップ〔8A〕〜〔8D〕でRA M (1)
にq番地のアドレスを供給して出力データをレジスタ(
2)に保持する。そしてステップ〔2〕でMSB゛0”
のときはステップC9A )(9C:]で次のクロック
の供給によってレジスタ(2)のデータをA L U 
(3)の2番地メモリに格納する。またステップ〔2〕
でMSB−”1”のときはステップ[9B〕[:90〕
で次のクロックの供給によってレジスタ(2)のデータ
0 を” o ”から減算してA L U (3)の2番地
メモリに格納する。
Then, in steps [8A] to [8D], RAM (1)
Supply the address of address q to , and store the output data in the register (
2). And in step [2] MSB゛0”
At step C9A) (9C:], the data in register (2) is ALU by supplying the next clock.
(3) Store in memory at address 2. Also step [2]
When the MSB is “1”, step [9B] [:90]
When the next clock is supplied, data 0 in register (2) is subtracted from "o" and stored in memory at address 2 of ALU (3).

さらにステップ〔3A〕でMSB−”0″′及びステッ
プ〔3B〕でMSB=”1”のときはステップ〔10〕
でA L U (3)の2番地メモリの内容を4ビツト
シフトダウンし、ステップ〔11〕でこの2番地メモリ
の内容をレジスタ(8)に保持する。これに対してステ
ップ〔3八〕でMSB=”1”及びステップ〔3B〕で
MSB−“0゛′のときは直接ステップ〔11〕でA 
L U (3)の2番地メモリの内容をレジスタ(8)
に保持する。
Furthermore, when MSB=“0″′ in step [3A] and MSB=“1” in step [3B], step [10]
At step [11], the contents of the memory at address 2 of ALU (3) are shifted down by 4 bits, and at step [11], the contents of memory at address 2 are held in register (8). On the other hand, if MSB = "1" in step [38] and MSB - "0" in step [3B], A is directly determined in step [11].
Register (8) the contents of memory at address 2 of L U (3)
to hold.

そしてステップ〔12〕でレジスタ(6)のデータとレ
ジスタ(8)のデータを乗算器(7)で乗算し、その上
下位桁をc p u(100) からの制御信号で選択
してレジスタ(9)に保持する。さらにステップ〔13
〕でRA M (1)にr番地とライト制御信号を供給
してレジスタ(9)のデータをRA M (1)のr番
地に格納する。
Then, in step [12], the data in register (6) and the data in register (8) are multiplied by the multiplier (7), and the upper and lower digits are selected by the control signal from c p u (100), and the data in register ( 9). Further step [13
] supplies address r and a write control signal to RAM (1) and stores the data in register (9) at address r of RAM (1).

すなわちこの回路において、除数pの値が一32768
二p<−1024のとき q’−(−) 6 (切捨) p’=(−)p(切捨) 2 逆数: ((p’+0.5) x 2 )1024< 
p < 0のとき q’−(−1)q p’−(−1)p 逆数:  (p’+0.5) 0≦p <1024のとき q ’−q p ’−p 逆数:  (p’+0.5) 1024≦p <32768のとき q’−()q 6 (切捨) p’=()p(切捨) 2 逆数: ((p’+0.5) x 2 )としてq′×
(逆数)によって商rが求められる。
That is, in this circuit, the value of the divisor p is 132768
2 When p<-1024, q'-(-) 6 (truncated) p'=(-)p (truncated) 2 Reciprocal: ((p'+0.5) x 2 )1024<
When p < 0, q'-(-1)q p'-(-1) p Reciprocal: (p'+0.5) When 0≦p<1024, q'-q p'-p Reciprocal: (p' +0.5) When 1024≦p<32768, q'-()q 6 (truncated) p'=()p (truncated) 2 Reciprocal: ((p'+0.5) x 2 ) as q'×
The quotient r is determined by (reciprocal).

なおこの場合に逆数を求める際に0.5を加算している
のは四捨五入に対応するものである。また絶対値が大き
い範囲で逆数を2倍の数値で求めることによって演算の
精度を向上させている。
Note that in this case, adding 0.5 when calculating the reciprocal number corresponds to rounding off. In addition, the accuracy of calculation is improved by calculating the reciprocal with a double value in a range where the absolute value is large.

さらに上述の目的では、除数及び被除数はそれぞれ整数
及び実数のいずれであっても演算を行うことができる。
Furthermore, for the above-mentioned purpose, the divisor and the dividend can be operated on either integers or real numbers, respectively.

その場合に、除数及び被除数が共に整数同士または実数
同士のときはいずれも整数同士を見做して演算を行い、
ステップ〔12〕で出力データの下位桁を選択(四捨五
入不可)する。
In that case, when the divisor and dividend are both integers or real numbers, the calculation is performed considering the integers,
In step [12], the lower digits of the output data are selected (rounding is not possible).

これに対して除数が整数で被除数が実数のときはそのま
ま演算を行うと共に、ステップ〔12〕で出力データの
上位桁を選択(四捨五入可)する。
On the other hand, when the divisor is an integer and the dividend is a real number, the calculation is performed as is, and in step [12], the upper digit of the output data is selected (rounding is possible).

なおこの回路は、 (被除数の絶対値)<(除数の絶対値)の場合に適用さ
れる。
Note that this circuit is applied when (absolute value of dividend) < (absolute value of divisor).

こうして上述の回路によれば、除数を逆数に変換するた
めのテーブルを区分し、除数データの絶対値が所定値以
上のとき除数データを所定ビットシフトして変換を行う
と共に被除数データも所定1つ ビットシフトして演算を行うことによって、簡単な構成
で高精度の除算演算を行うことができるものである。
In this way, according to the above-mentioned circuit, the table for converting the divisor into the reciprocal is divided, and when the absolute value of the divisor data is greater than or equal to a predetermined value, the divisor data is shifted by a predetermined bit to perform the conversion, and the dividend data is also converted into a predetermined one. By performing operations with bit shifting, highly accurate division operations can be performed with a simple configuration.

なお上述のROM (5)は、RAMで構成して演算処
理の前に逆数テーブルをストアするようにしてもよい。
Note that the above-mentioned ROM (5) may be configured with a RAM to store the reciprocal table before calculation processing.

〔発明の効果〕〔Effect of the invention〕

この発明によれば、除数を逆数に変換するためのテーブ
ルを区分し、除数データの絶対値が所定値以上のとき除
数データを所定ビットシフトして変換を行うと共に被除
数データも所定ビットシフトして演算を行うことによっ
て、簡単な構成で高精度の除算演算を行うことができる
ようになった。
According to this invention, a table for converting a divisor into a reciprocal is divided, and when the absolute value of the divisor data is greater than or equal to a predetermined value, the divisor data is shifted by a predetermined bit for conversion, and the dividend data is also shifted by a predetermined bit. By performing this calculation, it became possible to perform highly accurate division calculations with a simple configuration.

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

第1図は本発明による除算演算回路のハードウェアの一
例の構成図、第2図は演算の処理手順を説明するための
図である。 (1)はRA M 、 (2) (4) (6) (8
) (9)はレジスタ、(3)はALU、(5)はRO
M、(7)は乗算器、(100)  はCPU。 4 (101) はパスライ ンである。
FIG. 1 is a block diagram of an example of the hardware of a division arithmetic circuit according to the present invention, and FIG. 2 is a diagram for explaining the processing procedure of the arithmetic operation. (1) is RAM, (2) (4) (6) (8
) (9) is a register, (3) is an ALU, (5) is an RO
M, (7) is a multiplier, and (100) is a CPU. 4 (101) is a pass line.

Claims (1)

【特許請求の範囲】 データストア用の第1のメモリとALUと係数ストア用
の第2のメモリと出力の上下位桁を選択できる乗算器と
制御装置とからなり、 上記第2のメモリにはその一の領域に入力データの逆数
のテーブルが形成されると共に他の領域に上記入力デー
タを所定ビットシフトしたデータの逆数のテーブルが形
成され、 上記第1のメモリからの除数データの絶対値が上記AL
Uで判別され、 この絶対値が所定値以下のとき上記除数データが上記第
2のメモリの一の領域を用いて変換されると共にこの変
換データと上記第1のメモリからの被除数データとが上
記乗算器で乗算され、上記絶対値が所定値以上のとき上
記除数データが所定ビットシフトされて上記第2のメモ
リの他の領域を用いて変換されると共にこの変換データ
と上記第1のメモリからの被除数データが所定ビットシ
フトされたデータとが上記乗算器で乗算されて商が得ら
れるようにした除算演算回路。
[Claims] The second memory includes a first memory for storing data, an ALU, a second memory for storing coefficients, a multiplier that can select upper and lower digits of the output, and a control device. A table of reciprocals of input data is formed in one area, and a table of reciprocals of data obtained by shifting the input data by a predetermined bit is formed in the other area, and the absolute value of the divisor data from the first memory is Above AL
When the absolute value is less than or equal to a predetermined value, the divisor data is converted using one area of the second memory, and this converted data and the dividend data from the first memory are When the absolute value is greater than or equal to a predetermined value, the divisor data is shifted by a predetermined bit and converted using another area of the second memory, and this converted data and the first memory are converted. A division arithmetic circuit configured to obtain a quotient by multiplying the dividend data by the data obtained by shifting the dividend data by a predetermined bit in the multiplier.
JP1224062A 1989-08-30 1989-08-30 Divisional arithmetic circuit Pending JPH0385633A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1224062A JPH0385633A (en) 1989-08-30 1989-08-30 Divisional arithmetic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1224062A JPH0385633A (en) 1989-08-30 1989-08-30 Divisional arithmetic circuit

Publications (1)

Publication Number Publication Date
JPH0385633A true JPH0385633A (en) 1991-04-10

Family

ID=16807975

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1224062A Pending JPH0385633A (en) 1989-08-30 1989-08-30 Divisional arithmetic circuit

Country Status (1)

Country Link
JP (1) JPH0385633A (en)

Similar Documents

Publication Publication Date Title
JPH04127364A (en) Product sum calculating device
JPH01125626A (en) Reciprocal calculating method
US20080208945A1 (en) Method to compute an approximation to the reciprocal of the square root of a floating point number in ieee format
JPH03171324A (en) Circuit and method for calculating square root of operand
JPS62191926A (en) Arithmetic unit
JPH03105614A (en) Matrix computation circuit
JPS5939774B2 (en) Exponential function calculation method
JPH0385633A (en) Divisional arithmetic circuit
JPH0585924B2 (en)
JPH0584928B2 (en)
JPH07253874A (en) Arithmetic unit
JP2508286B2 (en) Square root calculator
JPH06105421B2 (en) Inverse trigonometric function calculator
JPH0566924A (en) Product sum computing element
JPS63118936A (en) Arithmetic unit with double accuracy
JP3460780B2 (en) Numerical arithmetic unit
JPS62274426A (en) Coordinate converting device
JPH0335701B2 (en)
JPS6194144A (en) Floating point adder circuit
JPH02146621A (en) Arithmetic processing unit
JPS6225208B2 (en)
JPH0285922A (en) Arithmetic circuit
Pinkiewicz et al. Design of a composite arithmetic unit for rational numbers
JPH0414173A (en) Fixed point product sum computing element
JPH03184403A (en) Signal generation circuit