JPS5911444A - Arithmetric device of number represented in floating decimal point - Google Patents

Arithmetric device of number represented in floating decimal point

Info

Publication number
JPS5911444A
JPS5911444A JP58114828A JP11482883A JPS5911444A JP S5911444 A JPS5911444 A JP S5911444A JP 58114828 A JP58114828 A JP 58114828A JP 11482883 A JP11482883 A JP 11482883A JP S5911444 A JPS5911444 A JP S5911444A
Authority
JP
Japan
Prior art keywords
length
exponent
floating point
register
bit
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.)
Granted
Application number
JP58114828A
Other languages
Japanese (ja)
Other versions
JPS616409B2 (en
Inventor
Hozumi Hamada
浜田 穂積
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 JP58114828A priority Critical patent/JPS5911444A/en
Publication of JPS5911444A publication Critical patent/JPS5911444A/en
Publication of JPS616409B2 publication Critical patent/JPS616409B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/14Conversion to or from non-weighted codes
    • H03M7/24Conversion to or from floating-point codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)

Abstract

PURPOSE:To express a numeral close to 1 with high accuracy, by attaining mutual conversion with an exponential part variable length floating decimal point representing value and an exponential part fixed length floating decimal point representing value where the length of the exponential part depends on the length of ''0'' or ''1'' train of the 1st half. CONSTITUTION:A mantissa register 12, a floating fraction register 11, an exponenial register 13, a counter 14, an FF15 and a two-input logical circuit 16 and the like are provided. If the length of the shift register 11 is denoted by k+1 bits, a right k bits excluding a code bit 17 is given in the shift register, and every time a trigger 31 for shift left, for example, is given, the bit is shifted left by one bit and every time a trigger 32 of shift right is given, the bit is shifted right by one bit. Further, the mantissa register 12 represents a shift register having k-bit length. Thus, the mutual conversion is attained with the exponential variable length floating decimal point representing value and the exponential fixed length floating decimal point representing value where the length of the exponential part depends on the length of ''0'' or ''1'' are the 1st half.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は浮動小数点数演算装置に関し、特に指数部可変
長表現方式による浮動小数点数演算装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to a floating point number arithmetic device, and more particularly to a floating point number arithmetic device using a variable length exponent representation method.

〔発明の背景〕[Background of the invention]

浮動小数点表現方式は大きな数も小さな数も高い精度で
取扱うことができるため、特に科学技術計算において利
用される表現方式である。
Floating point representation is a representation method used particularly in scientific and technical calculations because it can handle both large and small numbers with high precision.

しかしながら、従来の浮動小数点数演算装置は指数表示
部の長さが一定であったため、表現できる数の範囲が限
られるという欠点があり、また指数部の値が小さいため
少ない情報で済む場合にもそのスペースを仮数部の精度
を上げることに利用するというような柔軟性がないとい
う欠点があった。
However, in conventional floating-point arithmetic units, the length of the exponent display part is constant, so the range of numbers that can be expressed is limited. The drawback was that there was no flexibility to use that space to improve the precision of the mantissa.

従来の浮動小数点表現の代表的な例を第1図に示す。A typical example of conventional floating point representation is shown in FIG.

図において、1は数値の符号情報の1ビツト、2は指数
の符号情報の1ビツト、牛は指数の絶対値情報で2と4
とを合わせて指数部とも言う。凸は仮数部で6は指数部
と仮数部との境界である。
In the figure, 1 is 1 bit of numerical sign information, 2 is 1 bit of exponent sign information, and the cow is the absolute value information of the exponent, which is 2 and 4.
Together, it is also called the exponent part. The convex part is the mantissa part, and 6 is the boundary between the exponent part and the mantissa part.

従来の浮動小数点表現においては、上記指数部と仮数部
との境界0が固定されたものであった。
In conventional floating point representation, the boundary 0 between the exponent part and the mantissa part is fixed.

すなわち、指数部表示用のビット数が一定であった。That is, the number of bits for displaying the exponent part was constant.

このために前述の如き実用上の不都合があったわけであ
る。
This caused the practical inconveniences mentioned above.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、従来の浮動小数点表現方式の前述の如
き欠点を除去した指数部可変長浮動小数点表現方式によ
る浮動小数点数演算装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a floating-point arithmetic device using a variable-length exponent floating-point representation system that eliminates the above-mentioned drawbacks of conventional floating-point representation systems.

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

上記目的を達成するため、本発明の浮動小数点数演算装
置は指数部前半部の“0”の列あるいは“1″の列の長
さを検出または決定する手段と、該手段の出力により指
数部、仮数部を分離あるいは結合する手段とを備え、指
数部の長さが前半部のO″の列または“1″の列の長さ
により定まる指数部可変長浮動小数点表現による値と、
指数部固定長浮動小数点表現による値とで相互に変換を
行うことに特徴がある。
In order to achieve the above object, the floating point arithmetic device of the present invention includes means for detecting or determining the length of the string of "0" or string of "1" in the first half of the exponent part, and , means for separating or combining the mantissa parts, and the length of the exponent part is determined by the length of the O'' column or the "1" column in the first half, and a value in variable-length floating point representation of the exponent part;
The feature is that the exponent part can be converted to and from a fixed-length floating point representation.

〔発明の実施例〕[Embodiments of the invention]

本発明による浮動小数点数演算装置の具体的説明に入る
前に、本発明の演算装置に用いる指数部可変長浮動小数
点表現方式(以下、1本表現」、「本表現方式」の如く
称する。)について詳細に説明する。
Before going into a specific description of the floating-point number arithmetic device according to the present invention, we will explain the exponent variable-length floating-point representation method (hereinafter referred to as the “one-line representation” or “this representation method”) used in the arithmetic device of the present invention. will be explained in detail.

本表現方式の要点は、指数部の先行するパ0″の列ある
いはパ1″の列により指数部の長さを決定する点にある
。これにより、日常頻度高く出現する1に近い数値は、
指数部を短かく仮数部を長くとれるので、従来より精度
よく表現することができ、また、従来表現不可能であっ
た極端に大きな数。
The key point of this representation system is that the length of the exponent part is determined by the string of Pa0'' or Pa1'' that precedes the exponent part. As a result, numbers close to 1, which frequently appear in daily life, are
Because the exponent part can be shortened and the mantissa part long, it can be expressed more precisely than before, and it can also represent extremely large numbers that were previously impossible to represent.

極端に小さな数についても、指数部を長くとれるので表
現が可能になる。
Even extremely small numbers can be expressed because the exponent part can be long.

指数部の長さの決定法について以下、具体的に説明する
。数の、浮動小数点による本表現は以下の如く規定され
る。
The method for determining the length of the exponent part will be specifically explained below. The floating point representation of a number is defined as follows.

(1)本表現は数Oと無限大とを次の通り表現可能であ
る。
(1) This expression can express the number O and infinity as follows.

O“000  ・・・・・ O11 無限大 ” 100  ・・・・・ OI+以下、これ
以外の数について述べる。
O"000...O11 Infinity" 100...OI+ Below, other numbers will be described.

(11)数Xが指数eと仮imとで次のように表現され
るものとする。
(11) Assume that the number X is expressed by the exponent e and the temporary im as follows.

X四、 、 2e ここで、θは整数であり、またmはXの符号に従って次
のように規定されるものである。mについても次のよう
に規定される。
X4, , 2e Here, θ is an integer, and m is defined as follows according to the sign of X. m is also defined as follows.

a)X>Oのとき 1≦m < 2 、  m −m −1b)x(Qのと
き 一2≦m(−1、wr−m+2 また、;は次のように規定される。
a) When X>O, 1≦m<2, m−m−1b)x(When Q, 1≦m(−1, wr−m+2); is defined as follows.

IL)  6≧0のとき θ −e+1 b)Q<Oのとき e −−e 更にnは次のように規定される。IL) When 6≧0 θ −e+1 b) When Q<O e --e Furthermore, n is defined as follows.

n −(log2e ) +1 但し、記号〔〕はガウス記号であり、〔X〕はXを越え
ない最大の整数を表わす。
n − (log2e) +1 However, the symbol [ ] is a Gauss symbol, and [X] represents the largest integer not exceeding X.

(iii)本表現のビット配置は原則的には第1図に示
した配置lと同じである。但し、指数部の長さは可変で
あり、2 nビットである。
(iii) The bit arrangement of this representation is basically the same as the arrangement l shown in FIG. However, the length of the exponent part is variable and is 2 n bits.

Oφ符号情報のビット1はX>OのときO,x<0のと
き1である(従来の表現と同じ)。
Bit 1 of the Oφ code information is O when X>O, and 1 when x<0 (same as the conventional expression).

(V)指数部は次のように規定される。(V) The exponent part is defined as follows.

a)左nビットは1”の列である。a) The left n bits are a string of 1''s.

b)右nビットは、iを2進展開した長さnのビット列
の左端分“O″に変えたものである。
b) The right n bits are the left end of a bit string of length n obtained by binary expansion of i and changed to "O".

C)但し、X〈−1あるいはO<X<1のときは上記a
) 、 b)  で定まるものの1の補数である。
C) However, when X<-1 or O<X<1, the above a
) , b) is the one's complement of that determined by .

(VD仮数部は次のように規定される。(The VD mantissa is defined as follows.

百の2進展開形を 0Tb1b2b3・・・・・ とするとき、ビット列 ”b  b  b  ・・・・・” 1  2  3 の左から必要なだけの長さのものである。The binary expansion of 100 0Tb1b2b3... , the bit string "b b b b..." 1 2 3 The length is as long as necessary from the left side.

以上の規定により任意のビット列の表現する数が一慧に
定まる。
The number expressed by any bit string is determined by the above rules.

例として、数100の場合について具体的に説明する。As an example, a case of several hundred numbers will be specifically explained.

数100は、次のように表現される。The number 100 is expressed as follows.

100−  (25/16) X 26従って前述の規
定により> 9−6.n+−25/16であり、またe
−7,m−9/16. n−3である。
100- (25/16) X 26 Therefore, according to the above provisions > 9-6. n+-25/16 and e
-7,m-9/16. It is n-3.

第2図は、本表現による浮動小数点表現を示すものであ
る。符号ビット1は数値が正であるから“O″であり、
n −3であるから、指数部の左5ビツト3&は1”の
列、右3ピツ)3bはiを2進展開した値”111’″
の先頭の°゛1″をO″に変えた“011”である。仮
数部5aは百の2進展開形が0.100100000 
・・−−− であるから“100100000・・・・・”である。
FIG. 2 shows floating point representation according to this representation. Sign bit 1 is “O” because the number is positive;
Since n - 3, the left 5 bits 3& of the exponent part are 1'' columns, and the right 3 bits) 3b is the binary expansion of i, ``111'''.
It is “011” with the first “゛1” changed to O”. The binary expanded form of the mantissa part 5a is 0.100100000.
...---, so it is "100100000...".

上述した如く、本表現では指数部の先行する0”の列あ
るいはi 1 uの列が指数部の長さを決定する。
As mentioned above, in this representation, the string of 0''s or the string of i 1 u preceding the exponent determines the length of the exponent.

以下、本発明の実施例を、図面に基づいて詳細に説明す
る。
Hereinafter, embodiments of the present invention will be described in detail based on the drawings.

第3図は、本発明の一実施例を示す浮動小数点数演算装
置の要部を示すブロック図である。図において、11は
浮動小数点数レジスタ、12は仮数部レジスタ、13は
指数部レジスタ、14はカウンタ、15はフリップフロ
ップ、そして16は2人力の論理回路である。
FIG. 3 is a block diagram showing the main parts of a floating point arithmetic device according to an embodiment of the present invention. In the figure, 11 is a floating point register, 12 is a mantissa register, 13 is an exponent register, 14 is a counter, 15 is a flip-flop, and 16 is a two-person logic circuit.

浮動小数点数レジスタ11の長さをに+1ビツトとする
。符号ビット17を除いた右にビットはシフト・レジス
タであり、以下の機能を有する。
Assume that the length of floating point register 11 is +1 bit. The bits to the right except sign bit 17 are shift registers with the following functions.

(1−1)左シフトのトリガ31が与えられるたびに1
ビツトだけ左シフトする。
(1-1) 1 every time the left shift trigger 31 is given
Shift left by one bit.

(ニー2)右シフトのトリガδ、2が与えられるたびに
1ビツトだけ右シフトする。
(Knee 2) Shifts to the right by 1 bit each time the right shift trigger δ, 2 is applied.

(1−3)仮数部レジスタ12へ値の転送を行なう。(1-3) Transfer the value to the mantissa register 12.

仮数部レジスタ12は長さにビットを有するシフト・レ
ジスタであり、以下の機能を有する。
The mantissa register 12 is a shift register having bits in length and has the following functions.

(1−4)左シフトのトリガ33が与えられるたびに1
ビツトだけ左シフトする。
(1-4) 1 every time the left shift trigger 33 is given
Shift left by one bit.

(1−5)右シフトのトリガ34が与えられるたびごと
に1ビツトだけ右シフトする。
(1-5) Shift to the right by 1 bit each time the right shift trigger 34 is applied.

(]、−6)浮動小数点数レジスタ11へ値の転送を行
なう。指数部レジスタ13は長さにビットを有するシフ
ト・レジスタであり、以下の機能を有する。
(], -6) Transfer the value to the floating point register 11. The exponent register 13 is a shift register having bits in length and has the following functions.

(1−7)左シフトのトリノj35が与えらJl、るた
びに1ビツトたけ左シフトする。
(1-7) Left-shifted Torino j35 shifts left by 1 bit each time Jl is given.

(1−8)右シフトのトリガ36が与えられるたびに1
ビツトだけ右シフトする。
(1-8) 1 every time the right shift trigger 36 is given.
Shift right by one bit.

(1−9)値増加トリガ37により1だけ(+gj f
i:増ず。
(1-9) Only 1 (+gj f
i: Increase.

(1−10)値減少トリガ38により1だi−J値を減
する。
(1-10) The i-J value is decreased by 1 using the value decrease trigger 38.

(1−11)補数トリガ39により、−斉に各ビットの
値の0″と1”を反転する。
(1-11) The complement trigger 39 simultaneously inverts the values of each bit from 0'' to 1''.

(1−12)すべてのビットが°O″であること全検出
する。2人力論理回路16は入力40と人力41の値に
従って第牛図(こ示ず如き出力分発生する。なお、前記
各シフト・レジスタでシフトするにあたって、時にこと
わらないかぎりあふれたビットの・117報は失われ、
供給されるべきビットは“0°′である。
(1-12) It is fully detected that all bits are °O''. The two-manpower logic circuit 16 generates outputs as shown in the diagram (not shown) according to the values of the input 40 and the manpower 41. When shifting with a shift register, unless otherwise noted, 117 bits of overflow information are lost.
The bit to be supplied is "0°".

上述の構成を有する本実施例装訂の作用について以下に
説明する。
The operation of the present embodiment having the above-described configuration will be explained below.

本表現によるデータの演算は次の手順で行なわれる。Data calculations using this expression are performed in the following steps.

(1) ”○″あるいは1″の列の計数a指数部と仮数
部の分離 (3)加減算の場合、指数部の値の調整(4)演 算 (5)正規化 (6)指数部と仮数部の結合 (7)0″あるいは′1”の列の挿入 このうち、手+11ij (2)〜(6)は従来のl:
1数部固定長浮動小数点表現について行なわれる。手順
(1)と(7)が本表現によるデータの処理に関する手
順であり、これについて詳細に説明する。
(1) Separation of the exponent part and mantissa of counting a column of "○" or 1" (3) In the case of addition and subtraction, adjustment of the value of the exponent part (4) Operation (5) Normalization (6) Exponent part and Combining mantissas (7) Inserting a string of 0'' or '1'' Among these, hand +11ij (2) to (6) are conventional l:
This is done for a one-part fixed-length floating-point representation. Steps (1) and (7) are steps related to data processing using this expression, and will be explained in detail.

(1) ” 0 ’あるいは′1″の列の計数a)カウ
ンタ14の値をOにセットする。浮動小数点数レジスタ
11の符号ビット17を除いた第1ビツト18の値を7
リツプ・フロップ15にセットする。
(1) Counting columns of "0" or "1" a) Set the value of the counter 14 to O. The value of the first bit 18 of the floating point register 11 excluding the sign bit 17 is set to 7.
Set to lip flop 15.

b)浮動小数点数レジスタ11の前記第1ビツト18を
論理回路16の人力40に入れる。
b) Enter said first bit 18 of floating point number register 11 into input 40 of logic circuit 16;

フリップ・70ツブ15の値を論理回路16の人力41
に入れる。このときの論理回路16の出力(” l ”
)をカウンタ14で計数する。
Flip 70 knobs 15 values to logic circuit 16 human power 41
Put it in. The output of the logic circuit 16 at this time ("l"
) is counted by the counter 14.

C)次のステップd)を°勘理回路16の出力がO″に
なるまで繰返し、その回数をカウンタ14で計数する。
C) The next step d) is repeated until the output of the logic circuit 16 becomes O'', and the counter 14 counts the number of times.

d)浮動小数点数レジスタ11を前記機能(1)により
左シフトする。幼しく前記第1ビツト18に来た値を論
理回路10の入力40に入れる。フリップ・フロップ1
5の値を論理回路16の入力41に入れる。
d) Shift the floating point number register 11 to the left using the function (1). The value that recently arrived at the first bit 18 is applied to the input 40 of the logic circuit 10. flip flop 1
A value of 5 is input to the input 41 of the logic circuit 16.

e)論理回路16の出力がO”となった時点における浮
動小数点数レジスタ11の前記第1ピツ)18の値を反
転する。
e) Invert the value of the first bit 18 of the floating point register 11 at the time when the output of the logic circuit 16 becomes O''.

2指数部と仮数部の分離 a)浮動小数点数レジスタ11の前記第1ピツ)18の
値を論理回路16の入力40に入れる。フリップ・フロ
ップ15の値をiX[回路16の入力41に入れる。カ
ウンタ14の値を1減するとともに、このときの論理回
路16の出力を供給ビットとして、前記機能(1−7)
により指数部レジスタ13を左シフトする。
2 Separation of exponent and mantissa parts a) Enter the value of the first bit) 18 of the floating point register 11 into the input 40 of the logic circuit 16. The value of the flip-flop 15 is applied to the input 41 of the iX[circuit 16. The value of the counter 14 is decremented by 1, and the output of the logic circuit 16 at this time is used as a supply bit to perform the function (1-7).
The exponent part register 13 is shifted to the left.

b)次のステップc)、d)をカウンタ14の値を1ず
つ減じながら、0になるまで縁返す。
b) Repeat steps c) and d) while decrementing the value of the counter 14 by 1 until it reaches 0.

C)浮動小数点数レジスタ11を前記機能0−1)によ
り左シフトする。新しく前記第1ビツト18に来た値を
■埋回路16の入力40に入れる。フリップ・フロップ
15の値を@埋回路16の入力41に入れる。
C) Shift the floating point number register 11 to the left according to function 0-1). The value that has newly arrived at the first bit 18 is input to the input 40 of the filling circuit 16. The value of the flip-flop 15 is input to the input 41 of the @embedding circuit 16.

d)論理回路16の出力を供給ビットとして、前記機能
(1−7)により指数部レジスタ13を左シフトする。
d) Using the output of the logic circuit 16 as a supply bit, shift the exponent register 13 to the left by the function (1-7).

e)カウンタ14が0になった時点におりる前記指数部
レジスタ13から′、前記機能(1−10)により値1
を減する。
e) From the exponent register 13 when the counter 14 reaches 0, the value 1 is set by the function (1-10).
Reduce.

f)符号ビット17と7リツプ・70ツブ15の値を論
理回路16に入力し、出力の値パ1”が出る場合は前記
機能(1−n)により補数をとる。
f) Input the values of the sign bit 17 and the 7-lip/70-bit 15 to the logic circuit 16, and if the output value Pa1'' is obtained, take the complement using the function (1-n).

g)前記機能(1−3)により、浮動小数点数レジスタ
11の値を仮数部レジスタ12に転送する。また、符号
ビット17の値も仮数部レジスタ12の符号ビット19
へ転送され、符号ビット17の値をインバータ22によ
り反転させた値が仮数部レジスタ12の小数点の位置2
0の左のビットに転送される。
g) Transfer the value of the floating point register 11 to the mantissa register 12 by the function (1-3). Also, the value of sign bit 17 is also the value of sign bit 19 of significand register 12.
The value obtained by inverting the value of the sign bit 17 by the inverter 22 is transferred to the decimal point position 2 of the mantissa register 12.
Transferred to the bit to the left of 0.

この状態において、指数部レジスタ13には前記・の値
が、(負数は2の補数である整数として)入っており、
仮数部レジスタ12には前記mの値が(負数は2の補数
である小数として)入っている。前述の具体例、数10
0の場合の第2図に対応する指数部レジスタ13.仮数
部レジスタ12の内容な第5図に示した。
In this state, the value of . is stored in the exponent register 13 (negative numbers are integers that are two's complements),
The mantissa register 12 stores the value of m (a negative number is a decimal number that is two's complement). Specific example of the above, number 10
Exponent register 13 corresponding to FIG. 2 in case of 0. The contents of the mantissa register 12 are shown in FIG.

手順(3) 、 (4) 、 (5)については省略し
で、手順(6)の説明に移る。
Steps (3), (4), and (5) will be omitted, and the explanation will move on to step (6).

(6)指数部と仮数部の結合 a)前記機能0−6)により仮数部レジスタ12から浮
動小数点数レジスタ11へその内容を転送する。
(6) Combination of exponent and mantissa parts a) Transfer the contents from the mantissa register 12 to the floating point register 11 using the function 0-6).

b)論理回路16の入力40に指数部レジスタ13の符
号ビット21を、入力41に仮数部レジスタ12の符号
ビット19を入れ、/B 力を7リツプ・フロップ15
に入れる。
b) Put the sign bit 21 of the exponent register 13 into the input 40 of the logic circuit 16 and the sign bit 19 of the mantissa register 12 into the input 41, and input the /B output to the 7 rip-flop 15.
Put it in.

C)符号ピッ)21の値が“l ++のとき、前記機能
(]、−n)により指数部レジスタ13の補数をとる。
C) Sign pip) When the value of 21 is "l++," the function (], -n) takes the complement of the exponent register 13.

d)前記機能(1−9)により指数部レジスタ13の値
を1だけ増す。カウンタ14の値を0にする。
d) Increase the value of the exponent register 13 by 1 using the function (1-9). Set the value of the counter 14 to 0.

θ)次のf>Eカウンタl+の値を増しながら、前記機
能(l−止)により、指数部レジスタ13の値がOにな
るまで繰返す。
θ) Next f>E While incrementing the value of the counter l+, repeat until the value of the exponent register 13 reaches O by the function (l-stop).

f)指数部レジスタ13を前記機能(1−8)により右
に1ビツトだけシフトする。あふれたビットを論理回路
16の人力40に、7リツプ・フロップ15の値を論理
回路160入力41に入れ、その出力を、浮動φ数点数
レジスタ11艙前記機能(1−2)によって右に1ビツ
トだけシフトする場合に左端から供給するビットとして
用いる。
f) Shift the exponent register 13 to the right by one bit using the function (1-8). The overflowing bits are input to the input 40 of the logic circuit 16, the value of the 7-lip flop 15 is input to the input 41 of the logic circuit 160, and the output is input to the right by the function (1-2) of the floating φ number point register 11. Used as bits supplied from the left end when shifting by bits.

■゛0″あるいは1″の列の挿入 a)−浮動小数点数レジスタ11の第1ビツト18の値
を反転する。
(2) Inserting a string of ``0'' or 1'' a) - Invert the value of the first bit 18 of the floating point register 11.

b)Offff中ンタ14の値(手順(6)のステップ
e))だけ次のC)を実行する。
b) Execute the next step C) for the value of the off-interval 14 (step e of procedure (6)).

C)フリップ・フロップ15の値配供給ビットとして、
前記機能(1−8)により指数部レジスタ13の内容を
右に1ビツトだけシフトする。
C) As the distribution supply bit of flip-flop 15,
The function (1-8) shifts the contents of the exponent register 13 to the right by one bit.

以上述べた如き作用により、本発明の浮動小数点数演算
装置は従来の指数部固定長浮動小数点表現による値と、
新しい表現方式である指数部可変長浮動小数点表現によ
る値とを相互に変換することが可能であり、これにより
従来の演算装置を利用して有効な表現方式である指数部
可変長浮動小数点表現を実用化することが可能になるも
のである。
Due to the above-described operation, the floating point arithmetic device of the present invention can process values expressed by conventional exponent fixed-length floating point numbers,
It is possible to convert values between variable-length exponent floating-point representation, which is a new representation method, and this makes it possible to use conventional arithmetic units to convert exponent variable-length floating-point representation, which is an effective representation method. This makes it possible to put it into practical use.

なお、上記実施例の各構成要素は実質的に同等の機能を
有する他の具体的手段に置換可能であることは言うまで
もない。
It goes without saying that each component of the above embodiment can be replaced with other specific means having substantially the same function.

以上述べた如く、本発明の演算装置は、指数部の長さが
該指数部前半部の0″の列あるいは“l”の列の長さに
よって定まる指数部可変長浮動小数点表現によるデータ
の演算装置であって、前記指数部前半部の“O″あるい
は“1″の列の長さを検出する手段、該検出手段の出力
にまり前記データを指数部固定長浮動小数点表現による
指数部と仮数部とに分離する手段、該分離した指数部と
仮数部の値に基づいて演算を行なう演算手段、演算結果
の指数部の値によって前記指数部可変長浮動小数点表現
を形成するに必要な’ (J ”の列あるいは“1″の
列を選択するとともにその匿さを決定する手段および該
決起に基づいて演算結果の指数部、仮数部を結合させる
手段を備えた指数部可変長表現方式による浮動小数点数
演算装置であり、これにより、日′yg頻度高く出現す
る1に近い数値は従来より精度よく表現され、また極端
に大きな数、極端に小さな数についても表現可能な指数
部可変長表現方式を有効に利用することが可能となると
いう顕著な効果を奏する。
As described above, the arithmetic device of the present invention performs data operations using variable-length floating point representation of the exponent part, where the length of the exponent part is determined by the length of the 0'' string or the "l" string in the first half of the exponent part. A device for detecting the length of a string of "O" or "1" in the first half of the exponent part, and converting the data from the output of the detecting means into an exponent part and a mantissa in a fixed-length floating point representation of the exponent part. means for separating the exponent part and the mantissa part, an arithmetic means for performing an operation based on the values of the separated exponent part and the mantissa part, and a calculation means necessary for forming the exponent part variable-length floating point representation by the value of the exponent part of the operation result. Floating using a variable-length exponent representation method, which is equipped with a means for selecting a column of ``J'' or a column of ``1'' and determining its concealment, and a means for combining the exponent and mantissa parts of the operation result based on the selection. This is a decimal point arithmetic device that allows numbers close to 1, which frequently appear, to be expressed more accurately than before, and also uses a variable-length exponent expression method that can express extremely large and extremely small numbers. This has the remarkable effect of making it possible to use the information effectively.

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

第1図は指数部固定長浮動小数点表現を示す図、第2図
は指数部可変長浮動小数点表現を示す図、第5図は本発
明の一実施例を示す演算装置のブロック図、第4図は論
理回路の入出力の関係を示す図、第5図は第4図におけ
るレジスタの内容を示す図である。 1に浮動小数点数レジスタ、12:仮数部レジスタ、1
3:指数部レジスタ、14:カウンタ、15:フリップ
・7四ツブ、lO;論理回路、22:インバータ。
FIG. 1 is a diagram showing a fixed-length floating-point representation of the exponent part, FIG. 2 is a diagram showing a variable-length floating-point representation of the exponent part, FIG. 5 is a block diagram of an arithmetic unit showing an embodiment of the present invention, and FIG. 5 is a diagram showing the input/output relationship of the logic circuit, and FIG. 5 is a diagram showing the contents of the registers in FIG. 4. 1: floating point register, 12: mantissa register, 1
3: Exponent register, 14: Counter, 15: Flip/7-piece, IO: Logic circuit, 22: Inverter.

Claims (1)

【特許請求の範囲】 ■指数部前半部の“O″の列あるいは“1”の列の長さ
を検出または決定する手段と、該手段の出力により指数
部、仮数部を分離あるいは結合する手段とを備え、指数
部の長さが前半部のo″の列または“1″の列の長さに
より定まる指数部可変長浮動小数点表現による値と、指
数部固定長浮動小数点表現による値とで、相互に変換を
行うことを特徴とする浮動小数点数演算装置。 e)前記分離結合手段は、指数部可変長浮動小数点表現
による値を、指数部固定長浮動小数点表現による指数部
と仮数部に分離することを特徴とする特許請求の範囲第
1項記載の浮動小数点数演算装置。 (3)前記分離結合手段は、指数部固定長浮動小数点表
現による指数部のo”の列または“1”の列を選択する
とともに、その長さを決定し、その決定にもとづき指数
部、仮数部を結合して指数部可変長浮動小数点表現によ
る値に変換することを特徴とする特許請求の範囲第1項
または第2項記載の浮動小数点数演算装置。 (4)指数部の長さが該指数部前半部の゛0”の列ある
いは°1”の列の長さによって定まる指数部可変長浮動
小数点表現によるデータの演算装置であって、前記指数
部前半部の“0”の列あるいは“1″の列の長さを検出
する手段、該検出手段の出力により前記データを指数部
固定長浮動小数点表現による指数部と仮数部とに分離す
る手段、該分離した指数部と仮数部の値に基づいて演算
を行なう演算手段、演算結果の指数部の値によって前記
指数部可変長浮動小数点表現を形成するに必要なOII
の列あるいは“1″の列を選択するとともにその長さを
決定する手段および該決定に基づいて槙算結果の指数部
、仮数部を結合させる手段を備えたことを特徴とする浮
動小数点数演算装置。
[Claims] ■Means for detecting or determining the length of the "O" string or "1" string in the first half of the exponent part, and means for separating or combining the exponent part and the mantissa part using the output of the means. and a value in variable length floating point representation for the exponent part whose length is determined by the length of the o'' column or "1" column in the first half, and a value in fixed length floating point representation for the exponent part. , a floating point number arithmetic device characterized in that the exponent part is a variable length floating point representation, and the exponent part is a value expressed as a variable length floating point number, and the exponent part is converted into an exponent part and a mantissa part in fixed length floating point representation. Floating point arithmetic device according to claim 1, characterized in that: (3) the separating and combining means separates the exponent from a string of "o" or "1" of the exponent in fixed-length floating point representation; , the length of the column is determined, and based on the determination, the exponent part and the mantissa part are combined and the exponent part is converted into a value expressed as a variable-length floating point number. or the floating point arithmetic device according to item 2. (4) An arithmetic device for data in which the length of the exponent part is determined by the length of the string of '0' or the string of '1' in the first half of the exponent part, wherein the exponent part is expressed as a variable-length floating point number. means for detecting the length of a string of "0"s or a string of "1"s in the first half; means for separating the data into an exponent part and a mantissa part expressed by a fixed-length floating point exponent part based on the output of the detecting means; an arithmetic means for performing an arithmetic operation based on the values of the separated exponent and mantissa;
A floating point number operation characterized by comprising means for selecting a column of 1 or a column of "1" and determining its length, and means for combining an exponent part and a mantissa part of the result of the multiplication based on the determination. Device.
JP58114828A 1983-06-24 1983-06-24 Arithmetric device of number represented in floating decimal point Granted JPS5911444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58114828A JPS5911444A (en) 1983-06-24 1983-06-24 Arithmetric device of number represented in floating decimal point

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58114828A JPS5911444A (en) 1983-06-24 1983-06-24 Arithmetric device of number represented in floating decimal point

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP61294816A Division JPS62143132A (en) 1986-12-12 1986-12-12 Floating-point data processor
JP61294817A Division JPS62143133A (en) 1986-12-12 1986-12-12 Floating-point data processor

Publications (2)

Publication Number Publication Date
JPS5911444A true JPS5911444A (en) 1984-01-21
JPS616409B2 JPS616409B2 (en) 1986-02-26

Family

ID=14647701

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58114828A Granted JPS5911444A (en) 1983-06-24 1983-06-24 Arithmetric device of number represented in floating decimal point

Country Status (1)

Country Link
JP (1) JPS5911444A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0174028A2 (en) * 1984-09-05 1986-03-12 Hitachi, Ltd. Apparatus for processing floating-point data having exponents of variable length
JPS61127033A (en) * 1984-11-26 1986-06-14 Hitachi Ltd Arithmetic processor
JPH03269497A (en) * 1990-03-19 1991-12-02 Yamaha Corp Waveform signal generating device
US5563522A (en) * 1993-05-25 1996-10-08 Mitsubishi Denki Kabushiki Kaisha Microwave band probing apparatus

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62178410A (en) * 1986-01-31 1987-08-05 Nissan Motor Co Ltd Strut mount insulator
JPH01197108A (en) * 1988-02-02 1989-08-08 Nissan Motor Co Ltd Front suspension
JPH02253026A (en) * 1989-03-27 1990-10-11 Mazda Motor Corp Strut mount structure for vehicle

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5221860A (en) * 1975-08-11 1977-02-18 Kubota Ltd Healthmeter

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5221860A (en) * 1975-08-11 1977-02-18 Kubota Ltd Healthmeter

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0174028A2 (en) * 1984-09-05 1986-03-12 Hitachi, Ltd. Apparatus for processing floating-point data having exponents of variable length
JPS61127033A (en) * 1984-11-26 1986-06-14 Hitachi Ltd Arithmetic processor
JPH0795262B2 (en) * 1984-11-26 1995-10-11 株式会社日立製作所 Processor
JPH03269497A (en) * 1990-03-19 1991-12-02 Yamaha Corp Waveform signal generating device
JP2605916B2 (en) * 1990-03-19 1997-04-30 ヤマハ株式会社 Waveform signal generator
US5563522A (en) * 1993-05-25 1996-10-08 Mitsubishi Denki Kabushiki Kaisha Microwave band probing apparatus

Also Published As

Publication number Publication date
JPS616409B2 (en) 1986-02-26

Similar Documents

Publication Publication Date Title
US4758972A (en) Precision rounding in a floating point arithmetic unit
JPS59149539A (en) Fixed-to-floating point converting device
US9495131B2 (en) Multi-input and binary reproducible, high bandwidth floating point adder in a collective network
US5111421A (en) System for performing addition and subtraction of signed magnitude floating point binary numbers
US6205461B1 (en) Floating point arithmetic logic unit leading zero count using fast approximate rounding
JPH04290122A (en) Numerical expression conversion device
JPS5911444A (en) Arithmetric device of number represented in floating decimal point
US20200183650A1 (en) Radix-1000 decimal floating-point numbers and arithmetic units using a skewed representation of the fraction
KR19980082906A (en) How to Convert Floating-Point Numbers to Integer Types
KR920003493B1 (en) Operation circuit based on floating-point representation
JP2018097864A (en) Leading zero anticipation
JPS62143133A (en) Floating-point data processor
GB1145661A (en) Electronic calculators
Nguyen et al. A combined IEEE half and single precision floating point multipliers for deep learning
Gosling Design of large high-speed floating-point-arithmetic units
JPH0241049B2 (en)
JPH0216632A (en) Fixed point number/floating point number converting circuit
Kumar et al. Simulation And Synthesis Of 32-Bit Multiplier Using Configurable Devices
JPH0778724B2 (en) Divider
JP2993119B2 (en) Floating point arithmetic unit
JPH0324614A (en) Shifting arithmetic unit
JPH0285922A (en) Arithmetic circuit
JPH0814790B2 (en) Processor
CN116521124A (en) Vector floating point multiply-add device suitable for multiple precision floating point operations
JPS6126135A (en) Conversion circuit of floating point data