JPS5834852B2 - Enzanshiyorihoushiki - Google Patents
EnzanshiyorihoushikiInfo
- Publication number
- JPS5834852B2 JPS5834852B2 JP8370375A JP8370375A JPS5834852B2 JP S5834852 B2 JPS5834852 B2 JP S5834852B2 JP 8370375 A JP8370375 A JP 8370375A JP 8370375 A JP8370375 A JP 8370375A JP S5834852 B2 JPS5834852 B2 JP S5834852B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- signal
- exponent
- shift register
- calculation
- 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
Links
- 238000003672 processing method Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 4
- 230000003111 delayed effect Effects 0.000 description 3
- 230000007423 decrease Effects 0.000 description 1
Description
【発明の詳細な説明】
本発明は数値データを指数部と仮数部で表現して演算処
理するいわゆる指数表示型計算機における演算処理方式
に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an arithmetic processing method in a so-called exponent display type computer that expresses numerical data using an exponent part and a mantissa part and performs arithmetic processing.
一般に計算機における偵昇精度は相対精度によって決定
され、しかも関数計算においてはその関数を求めるに適
切な近似式を用いて演算を行なう関係上、1つの関数計
算の演算結果を得るまでに、多種の演算を何回も繰り返
して行なうので、その各々の演算過程の結果数の有効数
字が1桁多いか否か(こよって解の精度は大きく左右さ
れる。In general, reconnaissance accuracy in a computer is determined by relative accuracy, and in function calculations, calculations are performed using approximation formulas appropriate for calculating the function. Since the calculations are repeated many times, the accuracy of the solution is greatly influenced by whether or not the number of significant digits in the result of each calculation process is one digit higher.
また、関数計算、例えば対数計算三角関数1.逆三角関
数、双曲線関数、指数計算等を行なう場合、その演算処
理過程で(1−X)(但しO≦Xく1〕という演算が比
較的頻繁に出現する。Also, functional calculations, such as logarithm calculation trigonometric functions 1. When performing inverse trigonometric functions, hyperbolic functions, exponential calculations, etc., the calculation (1-X) (where O≦X×1) appears relatively frequently in the calculation process.
一方、指数表示型計算機即ち例えば数値
(0,0009956)を〔9,9560000(仮数
部)XIO’(指数部)〕の形態のデータとしてレジス
タ(こ記憶し、演算処理する計算機において、この(1
−X)((0≦x<11))の演算を計算機に通常用い
られている減算フローで行なった場合には、被演算数と
演算数の桁合せを行なった後に減算をするので、どうし
てもその演算結果の有効数字の桁数は、上記桁合せ段階
でレジスタの内容を右シフトした桁分だけ少ない桁数と
なってしまう。On the other hand, in an exponential display type calculator, for example, a computer that stores a numerical value (0,0009956) as data in the form of [9,9560000 (mantissa part) XIO' (exponent part)] and processes this (1
-X) ((0≦x<11)) If the operation is performed using the subtraction flow normally used in computers, the subtraction is performed after digit alignment of the operand and the operand, so it is unavoidable. The number of significant digits of the operation result is reduced by the number of digits by which the contents of the register were shifted to the right in the digit matching step.
その−例を例えば計算機が8桁表示の場合を例にとって
説明すれば、演算レジスタは第1図aに示すように入力
データにおける有効数字部分を記憶する仮数部1、前記
入力データの小数点位Gと対する位取りを示す指数デー
タを記憶する指数部2、上記指数の正負判別用サイン情
報を記憶する指数サイン部3からなっている。For example, if a computer has an 8-digit display, the arithmetic register has a mantissa part 1 that stores the significant figure part of the input data, and a decimal place G of the input data, as shown in FIG. 1a. It consists of an exponent part 2 that stores exponent data indicating the scale for the exponent, and an exponent sign part 3 that stores sign information for determining whether the exponent is positive or negative.
例えばこの指数サイン部3の記憶内容が(0)(2進化
情報)であれば「+」、〔1〕であれが「−」を表わし
ている。For example, if the stored content of the index sign section 3 is (0) (binary information), it represents "+", and if it is [1], it represents "-".
また、上記仮数部1は9桁分の記憶容量で、下位の8桁
に対して仮数データが記憶され、最上位桁即ち9桁目の
MSDは演算中に桁上げ即ち8桁目の演算からのボロー
又はキャリーが生じた場合の予備として設けられている
。In addition, the mantissa part 1 has a storage capacity for 9 digits, and the mantissa data is stored for the lower 8 digits, and the MSD of the most significant digit, that is, the 9th digit, is carried during the operation, that is, from the operation of the 8th digit. This is provided as a backup in case of a borrow or carry.
しかして、1−X((MX< 1 )、(’x= 0.
99912345) )の演算動作を行う場合第1図す
に示すように第1のレジスタ4aに被演算数(1,00
00000)の値が(1,0000000X10°〕の
形で記憶され、第2のレジスタ4bに演算数Xの値例え
ば(0,99912345)が[: 9.999123
45X10−りの形でレジスタ4bに記憶させる。Therefore, 1-X((MX<1), ('x=0.
99912345) ), the operand (1,00
00000) is stored in the form of (1,0000000X10°), and the value of the operator X, for example (0,99912345), is stored in the second register 4b as [: 9.999123
It is stored in the register 4b in the form of 45x10-ri.
すなわち、レジスタ4bを例にすれば仮数部1に(99
912345)、指数部2に指数(IOJを示す〔01
〕、指数サイン部3には指数が・「−」であることを示
す〔1〕が記憶される。In other words, taking register 4b as an example, the mantissa part 1 has (99
912345), the index part 2 indicates the index (IOJ [01
], and [1] indicating that the exponent is "-" is stored in the exponent sign section 3.
そして、その記瞳後、第1及び第2のレジスタ4 a
y 4 bの記憶された数値データの小数点位置を揃え
るために第1図Cに示すように第2のレジスタ4bの指
数部の内容を〔01〕→(0,0)にし仮数部のデータ
を右シフ1へして1桁下げて(09991234)と1
〜、i−xつまり(1−0,9991234)の演算を
行い、第1図dに示すように(0,0008766)の
結果を得る。After the recording, the first and second registers 4 a
In order to align the decimal point positions of the numerical data stored in y 4 b, the content of the exponent part of the second register 4b is changed from [01] to (0, 0) as shown in FIG. 1C, and the data of the mantissa part is Shift right to 1 and lower it by 1 digit (09991234) to 1
.about., i-x, that is, (1-0,9991234) is calculated, and the result (0,0008766) is obtained as shown in FIG. 1d.
次いで第1図eに示すように(8,766X]、0 4
)の指数形に変換する。Then, as shown in Figure 1e, (8,766X], 0 4
) into exponential form.
そして、この(]、−X)の演算を基に例えば対数計算 等の関数計算が行なわれる。Then, based on this operation of (], -X), for example, logarithm calculation Functional calculations such as the following are performed.
このように従来の指数型計算機(こおける1 −Xの演
算方式では、通常の減算ルーチンを使用するので被演算
数と演算数の桁合わせを行う為(こ被演算数Xの値を右
シフトして、桁下げしているので、下位桁がそのシフト
動作(こ伴い順次切捨てられることになりその減算結果
の真値に対する有効精度の桁数が少なくなってしまいこ
の精度の落ちた演算結果を何回も用いて種々の演算を行
い、演算結果を得るとその演算結果の精度は大きく低下
するという欠点がある。In this way, in the conventional exponential calculator (1 - As the digits are lowered, the lower digits are sequentially truncated due to the shift operation, and the number of effective precision digits for the true value of the subtraction result is reduced. It has a disadvantage that when it is used many times to perform various calculations and obtain the calculation results, the accuracy of the calculation results decreases significantly.
本発明は上記の点【こ鑑みてなされたもので、1−Xの
演算を行う場合にXが〔1〕より小さくても有効数の桁
落ちを生じることなく、高い精度が得られ、もって関数
計算における演算結果の精度の向上が計られる演算処理
方式を提供することを目的とする。The present invention has been made in view of the above points, and when performing the calculation of 1-X, even if X is smaller than [1], high accuracy can be obtained without causing loss of significant numbers. An object of the present invention is to provide an arithmetic processing method that improves the accuracy of arithmetic results in functional calculations.
以下図面を参照して本発明の一実施例を説明する。An embodiment of the present invention will be described below with reference to the drawings.
第2図において10はシフトレジスタで、第1図aて説
明したように仮数部11.指数部12、指数サイン部1
3からなっており、その出力信号は例えは4ビツトの遅
延回路14を介してアンド回路15の一方の入力端に加
えられ、このアンド回路15の出力はオア回路16を介
してシフ1〜レジスタ10に帰環される。In FIG. 2, 10 is a shift register, and as explained in FIG. 1a, the mantissa part 11. Exponent part 12, exponent sign part 1
The output signal is applied to one input terminal of an AND circuit 15 via a 4-bit delay circuit 14, and the output of this AND circuit 15 is sent via an OR circuit 16 to shift 1 to registers. It is reduced to 10.
また、シフ1〜レジスク10の出力信号はシフトレジス
タ10の仮数部11の内容がシフトレジスタ10より出
力している期間だけ゛1″信号となる仮数部11を指定
する仮数部タイミング+綻信号T1と共にアンド回路1
7に加えられ、このアンド回路17の出力信号は被演算
信号Xとしてアダー回路18のX入力端子に加えられる
。In addition, the output signals of shift 1 to register 10 are the mantissa part timing + failure signal T1 that specifies the mantissa part 11 which becomes the "1" signal only during the period when the content of the mantissa part 11 of the shift register 10 is output from the shift register 10. AND circuit 1
7, and the output signal of the AND circuit 17 is applied as the signal X to be operated on to the X input terminal of the adder circuit 18.
さらに上記シフトレジスタ10の出力信号は指数サイン
部12を指定する指数サイン部タイミング指定信号即ち
シフトレジスタ10の指数サイン部の内容がシフ1〜レ
ジスク10より出力する期間だけパ1′”となる信号T
3及び図示しない制御部より発せられる(X−1)演算
を実行せよの1−X命令と共にアンド回路19に加えら
れる。Furthermore, the output signal of the shift register 10 is an exponent sign section timing designation signal that specifies the exponent sign section 12, that is, a signal in which the contents of the exponent sign section of the shift register 10 become P1''' only during the period from shift 1 to output from the register 10. T
3 and a 1-X command to execute the (X-1) operation issued by a control section (not shown) to the AND circuit 19.
そL〜てこのアンド回路19の出力信号は判断回路20
へ送られる。The output signal of the AND circuit 19 from L to L is sent to the judgment circuit 20.
sent to.
この判断回路20は1−X命令が写えられた際に指数サ
イン部13の内容が〔1〕か〔O〕か、つまりシフトレ
ジスタ10に置数された被演算数が〔1〕より小さいか
否かを判断し、〔1〕より小さいと判断した場合に゛′
1″信号を出力する。This judgment circuit 20 determines whether the content of the exponent sign section 13 is [1] or [O] when the 1-X instruction is captured, that is, the operand placed in the shift register 10 is smaller than [1]. If it is determined that it is smaller than [1], then
Outputs a 1″ signal.
この判断回路20の出力信号は、減算信号としてアダー
回路18へ加えられると共にシフトレジスタ10の仮数
部最上位桁MSDを指定するタイミング信号即ち仮数部
最上位桁MSDの内容がシフトレジスタ10より出力す
るタイミングの時だけl″である信号TMと共にアンド
回路21へ加えられる。The output signal of this judgment circuit 20 is applied as a subtraction signal to the adder circuit 18, and at the same time, a timing signal that specifies the most significant digit MSD of the mantissa part of the shift register 10, that is, the contents of the most significant digit MSD of the mantissa part is output from the shift register 10. It is applied to the AND circuit 21 together with the signal TM which is l'' only at the timing.
上記アンド回路21の出力は被演算数〔1〕としてアダ
ー回路18へ加えられる。The output of the AND circuit 21 is added to the adder circuit 18 as an operand [1].
アダー回路18は、各入力端に与えられると1−Xの演
算を行い、その演算結果をオア回路22を介してアンド
回路23の一方の入力端に加えられる。The adder circuit 18 performs a calculation of 1-X when applied to each input terminal, and adds the result of the operation to one input terminal of an AND circuit 23 via an OR circuit 22.
このアンド回路23の出力信号はオア回路16を介して
シフ1へレジスタ10に送られる。The output signal of the AND circuit 23 is sent to the register 10 to shift 1 via the OR circuit 16.
また、上記判断回路20の出力信号は小数点コード発生
回路24へ動作指令として送られる。Further, the output signal of the judgment circuit 20 is sent to the decimal point code generation circuit 24 as an operation command.
この小数点コード発生回路24は判断回路20から゛1
″信号が与えられることによって小数点コード例えば(
101)を発生し、アンド回路25の一方の入力端に供
給する。This decimal point code generation circuit 24 is
” signal is given by giving the decimal point code e.g. (
101) and supplies it to one input terminal of the AND circuit 25.
このアンド回路25の他方の入力端には、シフトレジス
タ10の指数部12及び指数サイン部13を指定するタ
イミング信号T2が与えられており、このタイミング信
号T2に同期してアンド回路25から小数点コードが出
力され、オア回路22に加えられる。A timing signal T2 that specifies the exponent part 12 and exponent sign part 13 of the shift register 10 is given to the other input terminal of the AND circuit 25, and a decimal point code is sent from the AND circuit 25 in synchronization with this timing signal T2. is output and added to the OR circuit 22.
また前記アンド回路19の出力信号はインバータ26を
介してディレードフリップフロップ回路27へ送られる
。Further, the output signal of the AND circuit 19 is sent to a delayed flip-flop circuit 27 via an inverter 26.
このディレードフリップフロップ回路27はワードクロ
ツクパルスクeに同期して入力を読込み、クロックパル
スφ2に同期して信号を出力する。This delayed flip-flop circuit 27 reads an input in synchronization with the word clock pulse e, and outputs a signal in synchronization with the clock pulse φ2.
上記クロックパルスφeは1ワードタイムの同期、つま
りシフトレジスタ10の内容が一巡する毎(こ1発出力
される。The clock pulse φe is output in synchronization with one word time, that is, every time the contents of the shift register 10 complete one cycle.
また、クロックパルスφ2はφeに比し充分周期の短い
パルスである。Further, the clock pulse φ2 has a sufficiently short period compared to φe.
しかして、上記フリップフロップ27の出力信号は、4
ビツトの遅延回路28を介してアンド回路15の他方の
入力端に加えられると共に、さらにインバータ29を介
してアンド回路23の他方の入力端に加えられる。Therefore, the output signal of the flip-flop 27 is 4
The signal is applied to the other input terminal of the AND circuit 15 via the bit delay circuit 28, and is further applied to the other input terminal of the AND circuit 23 via the inverter 29.
次に上記のように構成された本発明の動作について説明
する。Next, the operation of the present invention configured as described above will be explained.
今、例えば演算処理過程に於いて演算数Xの値、例えば
(0,99912345)が(9,99912345X
10 ’)の形で入力回路(図示せず)を介してシフ
トレジスタ10に挿入されたとするとシフトレジスタ1
0には第3図aに示すように仮数部11に(99912
345)、指数部12に〔01〕、指数サイン部13に
〔1〕が記憶される。Now, for example, in the calculation process, the value of the calculation number X, for example (0,99912345) is (9,99912345X
10') into the shift register 10 via an input circuit (not shown), the shift register 1
0 has (99912
345), [01] is stored in the exponent part 12, and [1] is stored in the exponent sign part 13.
一方、アンド回路19の出力は最初゛0”でインバータ
26の出力が1”′となっているので、フリップフロッ
プ回路27(こ1゛1”信号が読込まれている。On the other hand, since the output of the AND circuit 19 is initially "0" and the output of the inverter 26 is 1"', the flip-flop circuit 27 (this 1"1" signal is read).
このフリップフロップ回路27の出力は4ビツトの遅延
回路28を介してアンド回路15に加わり、そのゲート
を開いている。The output of this flip-flop circuit 27 is applied to the AND circuit 15 via a 4-bit delay circuit 28, and its gate is opened.
このため前記シフトレジスタ10に置数された情報は、
4ビツトの遅延回路14、アンド回路15、オア回路1
6を介してシフトレジスタ10に循環保持される。Therefore, the information placed in the shift register 10 is
4-bit delay circuit 14, AND circuit 15, OR circuit 1
6 and is held in a circular manner in the shift register 10.
そして、1−Xの演算を行う場合にはアンド回路19に
1−X命令が与えられる。When performing a 1-X operation, a 1-X instruction is given to the AND circuit 19.
この1−X命令が与えられると、指数サイン部タイミン
グ信号T3によってアンド回路19のゲートが開かれ、
シフトレジスタ10から読出された指数サイン部13の
内容がアンド回路19から出力される。When this 1-X command is given, the gate of the AND circuit 19 is opened by the exponent sign part timing signal T3,
The contents of the exponent sign section 13 read from the shift register 10 are output from the AND circuit 19.
このアンド回路19から出力される指数サイン部13の
内容は判断回路20に送られて演算数Xが〔1〕より小
さいか否か判断されん判断回路20は指数サイン部13
の内容が〔1〕であれば、演算数Xの内容が〔1〕より
小さいと判断し、アダー回路18に減算信号を与えると
共にアンド回路21に〔1〕信号(2進コードで000
1)を与える。The contents of the exponent sign section 13 outputted from the AND circuit 19 are sent to the judgment circuit 20, which judges whether the arithmetic number X is smaller than [1].
If the content of is [1], it is determined that the content of the arithmetic number
1).
また、アンド回路21にはMSDタイミング指定信号T
Mが与えられるので、アンド回路21からはMSDタイ
ミング指定信号TMに同期して〔1〕信号が出力される
。The AND circuit 21 also has an MSD timing designation signal T.
Since M is given, the AND circuit 21 outputs a [1] signal in synchronization with the MSD timing designation signal TM.
このアンド回路21の出力は、被演算数〔1〕としてア
ダー回路18へ送られる。The output of this AND circuit 21 is sent to the adder circuit 18 as an operand [1].
さらに、このアダー回路18にはシフトレジスタ10か
ら読出される仮数部11の内容(99,912,345
)がアンド回路17を介して与えられる。Furthermore, the contents of the mantissa part 11 read from the shift register 10 (99,912,345
) is given via the AND circuit 17.
従ってアダー回路18は第3図すに示すようにD oo
oo ooo。Therefore, the adder circuit 18 is connected to Doo as shown in FIG.
oooooo.
−99912345=00087655)の演算を行う
。-99912345=00087655).
すなわち、演算数Xの内容は桁下げせずにそのままとし
、被演算数〔1〕をあたかもMSDの桁に1桁桁上げし
たごとくして、1−Xの演算を実行している。In other words, the contents of the operand X are left as they are without being downgraded, and the operation 1-X is executed as if the operand [1] were incremented by one digit to the MSD digit.
一方、前記アンド回路19から指数サイン部13の内容
〔1〕が出力されるとインバータ26の出力が0″とな
りワードクロックパルスφeに同期してフリップフロッ
プ回路27にO”信号が読込まれる。On the other hand, when the content [1] of the exponent sign section 13 is output from the AND circuit 19, the output of the inverter 26 becomes 0'', and an O'' signal is read into the flip-flop circuit 27 in synchronization with the word clock pulse φe.
このフリップフロップ回路27に読込まれた゛O″信号
は次に半ビット遅れて到来するクロックパルスφ2に同
期して出力され、さらに遅延回路28で4 bit即ち
1桁遅れてアンド回路15のゲートが閉じ、シフトレジ
スト10の循環動作が禁示される。The "O" signal read into the flip-flop circuit 27 is then outputted in synchronization with the clock pulse φ2 that arrives with a delay of half a bit, and the gate of the AND circuit 15 is closed in the delay circuit 28 with a delay of 4 bits, that is, one digit. , the circulation operation of the shift register 10 is prohibited.
また、この際インバータ29の出力が1′′即ちシフト
レジスタ10のLSDがアダー回路18から出力されて
いるタイミングでアンド回路23のゲートが開かれるの
で、前記アダー回路18の演算結果はオア回路22、ア
ンド回路23、オア回路16を介してシフトレジスタ1
0に入力される。Also, at this time, the gate of the AND circuit 23 is opened at the timing when the output of the inverter 29 is 1'', that is, the LSD of the shift register 10 is output from the adder circuit 18, so the calculation result of the adder circuit 18 is transferred to the OR circuit 22. , the shift register 1 via the AND circuit 23 and the OR circuit 16.
It is input to 0.
このシフトレジスタ10への入力情報は上記アダー回路
18において4ビツトの遅延を生じるので、シフトレジ
スタ10が循環動作している場合と同じタイミングでシ
フトレジスタ10の仮数部11に置数される。Since the input information to the shift register 10 is delayed by 4 bits in the adder circuit 18, it is placed in the mantissa part 11 of the shift register 10 at the same timing as when the shift register 10 is in circular operation.
また、前記小数点コード発生回路24は判断回路20か
ら゛1″信号が出力された際に動作し、小数点コード(
101)を発生する。Further, the decimal point code generation circuit 24 operates when the determination circuit 20 outputs the "1" signal, and the decimal point code (
101) is generated.
この小数点コード(101)は指数部タイミングT2V
c同期してアンド回路25から出力され、さらにオア回
路22、アンド回路23、オア回路16を介してシフト
レジスタ10に入力され、指数部12及びサイン部13
に置数される。This decimal point code (101) is the exponent timing T2V
c is synchronously outputted from the AND circuit 25, further inputted to the shift register 10 via the OR circuit 22, AND circuit 23, and OR circuit 16, and the exponent part 12 and the sign part 13
The number is placed in .
この結果第3図Cに示すようにシフトレジスタ10の仮
数部11にアダー回路18の演算結果(0008765
5)、指数部12に〔01〕、指数サイン部13に〔1
〕がそれぞれ置数される。As a result, as shown in FIG. 3C, the operation result of the adder circuit 18 (0008765
5), [01] in the exponent part 12, [1] in the exponent sign part 13
] are set respectively.
一方、前記フリップフロップ回路27は゛°0″信号を
読込んだ後、次のワードクロックパルスφeが与えられ
るまで、つまリ、1ワードタイムの間その状態を保持し
、アンド回路15のゲートを閉じているが、次のワード
クロックパルスφeが与えられる時点では1−X命令が
なくなるのでアンド回路19の出力が°゛0″0″イン
パーク26がQ 111となっているので、次のワード
クロックパルスφeに同期して゛1′′信号を読込み、
半ビット遅れて到来すめクロックパルスφ2により゛]
″信号を出力する。On the other hand, after reading the "°0" signal, the flip-flop circuit 27 maintains its state for one word time until the next word clock pulse φe is applied, and closes the gate of the AND circuit 15. However, at the time when the next word clock pulse φe is applied, there is no 1-X instruction, so the output of the AND circuit 19 becomes °゛0″0″ Impark 26 becomes Q111, so the next word clock pulse Read the ``1'' signal in synchronization with the pulse φe,
Because the clock pulse φ2 arrives with a delay of half a bit,
″Outputs a signal.
このフリップフロップ回路27から゛°1パ信号が出さ
れることによってアンド回路23のゲートが閉じ、アン
ド回路15のゲートが開かれる。When the flip-flop circuit 27 outputs the ``1'' signal, the gate of the AND circuit 23 is closed and the gate of the AND circuit 15 is opened.
このためシフトレジスタ10に置数された情報は、遅延
回路14、アンド回路15、オア回路16を介し2て再
び循環保持される。Therefore, the information placed in the shift register 10 is circulated and held again via the delay circuit 14, AND circuit 15, and OR circuit 16.
そして、上記シフトレジスタ10の仮数部11の内容は
第3図dに示すように有効数値が表示最上位桁に達する
まで桁上げすると共にその桁上げ数に応じて位取りを示
すために指数部12の記憶内容を大きくする。The contents of the mantissa part 11 of the shift register 10 are carried up until the effective value reaches the most significant digit of the display, as shown in FIG. Increase the memory content of.
第3図の例では仮数部11の内容を3桁桁上げすると共
に指数部12の内容を〔04〕とする。In the example shown in FIG. 3, the contents of the mantissa part 11 are carried up by three digits, and the contents of the exponent part 12 are set to [04].
これらの制御は演算部脚部(図示せず)によって行われ
る。These controls are performed by a computing unit leg (not shown).
以上の演算動作によって(8,7655X1.0 ’
)の解が得られるが、これは(1−X)すなわち(1−
0,99912345)の真値である。By the above calculation operation, (8,7655X1.0'
), which is (1-X) or (1-
0,99912345).
また、]、−[の演算を行う場合において、演算数Xの
値が〔1〕以上の場合には、判断回路20の判断結果に
従って一般的な演算フローにより演算動作が行われる。Furthermore, when performing the calculations of ] and -[, if the value of the calculation number X is [1] or more, the calculation operation is performed according to the general calculation flow according to the judgment result of the judgment circuit 20.
第4図は本発明の他の実施例を示すもので、第2図にお
けるアンド回路21を省略すると共に、アダー回路18
とオア回路22との間にアンド回路31を設け、このア
ンド回路31にインバータ32を介してMSDタイミン
グ信号を与えてゲート制御を行い、アダー回路18から
出力されるボロー信号をカットするようにしたものであ
る。FIG. 4 shows another embodiment of the present invention, in which the AND circuit 21 in FIG. 2 is omitted and the adder circuit 18 is omitted.
An AND circuit 31 is provided between the AND circuit 22 and an MSD timing signal is applied to the AND circuit 31 via an inverter 32 to perform gate control and cut the borrow signal output from the adder circuit 18. It is something.
すなわち、第2図に示した実施例では]−Xの演算に際
してMSDを指定するタイミングで被演算数〔1〕をア
ダー回路18に与えるようにしたものであるのに対し、
第4図に示す実施例ではアンド回路21を省略して(0
−X)の演算を行わせ、この演算によって生じるボロー
信号をMSDタイミング信号TMによりカットするよう
にしたもので、第2図の実施例と同一結果を得ることが
できる。That is, in the embodiment shown in FIG. 2, the operand [1] is given to the adder circuit 18 at the timing of specifying the MSD when calculating -X.
In the embodiment shown in FIG. 4, the AND circuit 21 is omitted and (0
-X) is performed, and the borrow signal generated by this calculation is cut by the MSD timing signal TM, and the same result as the embodiment shown in FIG. 2 can be obtained.
また、第4図ではアンド回路31を設けてポローカット
を行うようにしたが、アダー回路18自身でボローカッ
ト機能を有するものを使用すれば、アンド回路31を設
けなくてもよい。Further, in FIG. 4, the AND circuit 31 is provided to perform the borrow cut, but if the adder circuit 18 itself has a borrow cut function, the AND circuit 31 may not be provided.
さらに、前記第2図及び第4図の実施例では、小数点コ
ード発生回路24を設けた場合について示したが、1−
Xの演算を行う場合に指数部12及び指数サイン部13
の内容をシフトレジスタ10の入力側に戻して循環記憶
するようにすれば、小数点コード発生回路24を省略で
きる。Furthermore, in the embodiments shown in FIGS. 2 and 4, the case where the decimal point code generation circuit 24 is provided is shown.
When calculating X, the exponent part 12 and the exponent sign part 13
The decimal point code generation circuit 24 can be omitted by returning the contents to the input side of the shift register 10 and storing them in circulation.
また、前記実施例では何れも4ビツトの遅延回路14,
28を設けた場合について示したが、アダー回路18の
演算結果をシフトレジスタ10に入力する場合にシフト
レジスタ10のシフト用クロックパルスを4ビツト分抜
いてタイミング調整を行うようにすれば、遅延回路14
,28を設けなくてもよく、要は本発明の要旨を逸脱し
ない範囲で種々の応用が可能である。Further, in each of the above embodiments, the 4-bit delay circuit 14,
28 is provided, but when the calculation result of the adder circuit 18 is input to the shift register 10, if the timing is adjusted by removing 4 bits of the shift clock pulse of the shift register 10, the delay circuit 14
, 28 may not be provided, and various applications are possible without departing from the gist of the present invention.
以上述べたように本発明によれば、1−Xの演算を行う
場合にXが〔]〕より小さくても桁落ちを生じることな
く、演算精度を向上することができる。As described above, according to the present invention, when performing the calculation of 1-X, even if X is smaller than []], the calculation precision can be improved without causing a loss of digits.
また、演算に際して演算数の桁下げのステップを必要と
しないので、演算ステップ数が減少し、演算速度を向上
することができる。Furthermore, since there is no need for a step to lower the number of digits during calculation, the number of calculation steps is reduced, and the calculation speed can be improved.
さらに、被演算数を記憶保持するレジスタを必要としな
いで演算出来る為きわめて有利となる。Furthermore, it is extremely advantageous because the calculation can be performed without requiring a register for storing operands.
第1図は従来の演算処理方式を説明するための演算レジ
スタの内容を示す図、第2図は本発明の一実施例を示す
構成図、第3図は同実施例の動作を説明するための演算
レジスタの内容を示す図、第4図は本発明の他の実施例
を示す構成図である。
10・・・・・・シフトレジスタ、14,28・・・・
・・4ビツト遅延回路、18・・・・・・アダー回路、
20・・・・・・判断回路、24・・・・・・小数点コ
ード発生回路。Fig. 1 is a diagram showing the contents of an arithmetic register to explain a conventional arithmetic processing method, Fig. 2 is a block diagram showing an embodiment of the present invention, and Fig. 3 is a diagram to explain the operation of the embodiment. FIG. 4 is a block diagram showing another embodiment of the present invention. 10...Shift register, 14,28...
...4-bit delay circuit, 18...adder circuit,
20... Judgment circuit, 24... Decimal point code generation circuit.
Claims (1)
えられた場合に上記記憶手段に記憶された演算数Xが1
より小さいか否か判定する判定回路と、この判定回路に
より演算数Xが1より小さいと判定された場合に上記演
算数Xの小数点位置を上記動量手段の有効最上位桁に合
わせる手段と、該手段によって上記演算数の小数点合せ
が終了した後1−Xに関する演算を行う手段とを具備し
たことを特徴とする演算処理方式。1 A storage means in which an arithmetic number X is stored, and an arithmetic number
a determination circuit for determining whether the operation number X is smaller than 1; a means for adjusting the decimal point position of the operation number An arithmetic processing method comprising: means for performing an arithmetic operation on 1-X after the decimal point adjustment of the arithmetic number is completed by the means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8370375A JPS5834852B2 (en) | 1975-07-08 | 1975-07-08 | Enzanshiyorihoushiki |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8370375A JPS5834852B2 (en) | 1975-07-08 | 1975-07-08 | Enzanshiyorihoushiki |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS527640A JPS527640A (en) | 1977-01-20 |
| JPS5834852B2 true JPS5834852B2 (en) | 1983-07-29 |
Family
ID=13809843
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8370375A Expired JPS5834852B2 (en) | 1975-07-08 | 1975-07-08 | Enzanshiyorihoushiki |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5834852B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2545709B2 (en) * | 1986-04-02 | 1996-10-23 | 航空宇宙技術研究所長 | Instrument landing gear using head-up display |
-
1975
- 1975-07-08 JP JP8370375A patent/JPS5834852B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS527640A (en) | 1977-01-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3418460B2 (en) | Double precision division circuit and method | |
| JPH02259826A (en) | Apparatus and method for converting format of floating point data in miroprocessor | |
| US4992969A (en) | Integer division circuit provided with a overflow detector circuit | |
| JPH0139131B2 (en) | ||
| JPH05250146A (en) | Arithmetic operation circuit executing integer involution processing | |
| US3290493A (en) | Truncated parallel multiplication | |
| JPS58182754A (en) | arithmetic processing unit | |
| US4410956A (en) | Exponential operation device | |
| JPS5834852B2 (en) | Enzanshiyorihoushiki | |
| US4308589A (en) | Apparatus for performing the scientific add instruction | |
| US4075705A (en) | Calculator for determining cubic roots | |
| JP2019101962A (en) | Control device | |
| US3692990A (en) | Decimal point processing system dealing with overflow | |
| US7237000B2 (en) | Speed of execution of a conditional subtract instruction and increasing the range of operands over which the instruction would be performed correctly | |
| JPH0325809B2 (en) | ||
| JP2664750B2 (en) | Arithmetic device and arithmetic processing method | |
| US3624375A (en) | Binary coded decimal to binary conversion apparatus | |
| JPS59106043A (en) | Pipeline calculation circuit | |
| JP2615746B2 (en) | Bit operation circuit | |
| JPH03245225A (en) | Floating decimal-point addition/subtraction device | |
| SU1462299A1 (en) | Device for performing coordinate conversion | |
| JPS5839336B2 (en) | Digital processing method for automatic control system | |
| JPH0215089B2 (en) | ||
| JPS6146856B2 (en) | ||
| JPH0225538B2 (en) |