JPS6017534A - Floating-point numeral normalized circuit - Google Patents

Floating-point numeral normalized circuit

Info

Publication number
JPS6017534A
JPS6017534A JP58124501A JP12450183A JPS6017534A JP S6017534 A JPS6017534 A JP S6017534A JP 58124501 A JP58124501 A JP 58124501A JP 12450183 A JP12450183 A JP 12450183A JP S6017534 A JPS6017534 A JP S6017534A
Authority
JP
Japan
Prior art keywords
mantissa
circuit
register
shift
value
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
JP58124501A
Other languages
Japanese (ja)
Inventor
Yuji Tsukui
津久井 裕二
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP58124501A priority Critical patent/JPS6017534A/en
Publication of JPS6017534A publication Critical patent/JPS6017534A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F5/00Methods or arrangements for data conversion without changing the order or content of the data handled
    • G06F5/01Methods or arrangements for data conversion without changing the order or content of the data handled for shifting, e.g. justifying, scaling, normalising
    • G06F5/012Methods or arrangements for data conversion without changing the order or content of the data handled for shifting, e.g. justifying, scaling, normalising in floating-point computations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To perform shifting to a mantissa by plural times and shorten processing time which is needed for normalization by consisting a titled circuit combined a circuit which determines the shift number of the mantissa, a shifter for shifting the mantissa and a circuit which subtracts an index. CONSTITUTION:The titled circuit is constituted by combinating the shift-number determination circuit which determines the shift number of the mantissa, the shifter for shifting the mantissa and the operation circuit for subtracting the index. For example, the shift number SH of the mantissa by inputting values from the most significant bit to 4-bit A1-A4 of the mantissa register 1 is outputted. Next, the shifter 6 is shifted to the left by only the SH value by inputting the shift number SH to the shift controller 9, and the contents of the mantissa register 1 is shifted to the left by the SH value by inputting the contents of the mantissa register 1 to the shifter 6. The contents of the index of the index register 2 is subtracted by only the SH value by inputting the shift number SH to the X side of the operation circuit 10 and inputting the contents of the index register 2 to the Y side, and normalize the floating-point numeral.

Description

【発明の詳細な説明】 この発明は、仮数が2の補数で表4つされ基数が2であ
る浮動小数点数値を正規化する回路において、仮数のシ
フトを複数ビットずつ行うことによって処理時間を短縮
することを目的とした浮動小数点数値正規化回路に関″
1″るものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention reduces processing time by shifting the mantissa by multiple bits in a circuit that normalizes a floating point number whose mantissa is represented by 2's complement in four tables and whose base is 2. Regarding floating-point numerical normalization circuits aimed at
1".

さて仮数が2の補数で表わされ、基数が2の浮動小数点
数を正規化するには仮数の最上位ヒツトと次のビットの
値が異なるように丁れはよい。第1図は従来の浮動小数
点数値正規化回路の一例を・示すもので9図中(1)は
シフト機能を有し仮数の値を保持する仮数レジスタ、(
2)は指数の値苓で保持する指数レジスタ、(31けエ
クスクル−シブORゲート。
Now, the mantissa is expressed as a two's complement number, and in order to normalize a floating point number with a base of 2, it is sufficient that the value of the most significant bit of the mantissa differs from the value of the next bit. Figure 1 shows an example of a conventional floating-point value normalization circuit. In Figure 9, (1) is a mantissa register that has a shift function and holds the value of the mantissa;
2) is an exponent register that holds the exponent value (a 31-digit exclusive OR gate).

Sはその出力信号、14)は指数の値を1だけ減じる一
1回路である。従来の浮動小数点数値正規回路は以上の
ように構成されでいるから仮数レジスタO)の最上位ビ
ットと次のビットをエクスクル−シブORケート(3)
に入力することによってそねら2つのビットの値が異っ
ているかどうか計、1べ、出力信号Sが0”であIr、
ば2っのビットの値が等しいので仮数レジスタ(1)の
内容を左に1ビツトシフトすると同時に指数レジスタ(
2)の内容を一1回路(4)によって1だけ減じる。こ
の操作を出力信号(s)が“1″となるまで繰り返し実
行することによって正規化を行う回路である。
S is its output signal, and 14) is an 11 circuit that subtracts the value of the index by 1. Since the conventional floating point number regular circuit is configured as above, the most significant bit of the mantissa register O) and the next bit are exclusively ORed (3)
If the output signal S is 0'' and Ir,
Since the values of the second bit are the same, the contents of the mantissa register (1) are shifted to the left by one bit, and at the same time the contents of the exponent register (1) are shifted to the left by one bit.
The contents of 2) are reduced by 1 by the -1 circuit (4). This circuit performs normalization by repeatedly performing this operation until the output signal (s) becomes "1".

−とCろが上記従来、の回路でd仮数のシフ1−は常ζ
こ1ビツトずつしか行えないため、一般に正規化の処理
時間が長くなってし゛まう欠点があつムー。
In the conventional circuit described above, the shift 1- of the d mantissa is always ζ
Since this can only be done one bit at a time, the drawback is that the normalization process generally takes a long time.

この発明は、従来の回路の欠点を改良するために、仮数
に施丁シフト数を決定するシフト数決定回路と仮数をシ
フトするためのシフタ、および指数な減算−[るための
演算回路を組み合イつせて構成することによって仮数の
シフトを複数ビットずつ行い、それによって正規化に要
する処理時間を短縮することを可能にした浮動小数点数
値正規化回路を提供することを目的とする。
In order to improve the drawbacks of conventional circuits, this invention combines a shift number determining circuit for determining the number of shifts applied to the mantissa, a shifter for shifting the mantissa, and an arithmetic circuit for exponential subtraction. It is an object of the present invention to provide a floating-point value normalization circuit which can shift a mantissa by a plurality of bits by configuring the same, thereby shortening the processing time required for normalization.

第2図はこの発明の一実施例の構成を示すブロック図で
ある。図中(11,f21け従来のものと同一であって
それぞれ仮数および指数の値を保持するレジスタである
。(5)は仮数レジスタ(1)の最上位ビットからそれ
以下の4ビツトまでの値A1〜A4 を入力″1−るこ
とによって出力として仮数部に施すシフト数SHを得る
ことが可能なシフト数決定回路。
FIG. 2 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, (11 and f21 are registers that are the same as the conventional one and hold the mantissa and exponent values, respectively. (5) is the value from the most significant bit of the mantissa register (1) to the following 4 bits. A shift number determination circuit capable of obtaining the shift number SH to be applied to the mantissa part as an output by inputting A1 to A4.

(6)は仮数レジスタ(1)の内容ケ1ビットだけシフ
ト可能な1ビツトシフト(7)と仮数レジスタ(11の
内容を2ビツトだけシ;71−可能な2ビツトシツク(
8)とによって構成される最高3ビツトまでシフト可能
なシック9(9)はシフ)・数決定回路(5)の出力S
Rの値だけ仮数レジスタ(1)の内容が左lこシフトさ
れるようにシフタ(6)をコントロールするシフタコン
トローラ、Onはシフト数決定回路(5)の出力たけ指
数レジスタの内容を減じるための演算回路である。
(6) is a 1-bit shift (7) that can shift the contents of the mantissa register (1) by 1 bit; and a 2-bit shift (71) that can shift the contents of the mantissa register (11) by 2 bits;
8), which can shift up to 3 bits (9) is the output S of the number determining circuit (5)
A shifter controller controls the shifter (6) so that the contents of the mantissa register (1) are shifted to the left by the value of R. On is a shifter controller that controls the shifter (6) so that the contents of the mantissa register (1) are shifted left by the value of R. It is an arithmetic circuit.

次lこ1以上のように構成されたこの発明の浮動小数点
数値正規化回路の動作について説明する。
The operation of the floating point value normalization circuit according to the present invention, which is configured as follows:

浮動小数点数値の仮数が仮数レジスタ(1)に指数が指
数レジスタ(2)にそれぞれ保持されている7、仮数レ
ジスタ(1)の最上位ビットから以下4ビツトまでの値
A1〜A4をシフト数決定回路(5)に入力することζ
こよって仮数に施丁シフト数SHが出力される。ここで
、入力A1〜A4に対する出力SRは表の通りである、
The mantissa of the floating point value is held in the mantissa register (1) and the exponent is held in the exponent register (2).7, The value A1 to A4 from the most significant bit of the mantissa register (1) to the following 4 bits is determined by the number of shifts. Input to circuit (5) ζ
Thus, the binding shift number SH is output as the mantissa. Here, the output SR for inputs A1 to A4 is as shown in the table.
.

表シフト数決定回路の真理値表 またSHは2ビツトの2進数で表わされる。SHをシフ
トコントロール(9)に入力することによってシフタ(
6)はEIHの値だけ左にシフトするようにコントロー
ルされる。仮数レジスタ(1)の内容をシフタ(6)に
入力することによって仮数レジスタ+1+の内容は左に
SHの値だけシフトされる。同時に、SHを演算回路a
1のY側に入力、指数レジスタの内容な演習2回路+1
(IのY側に入力することによって指数レジスタ(2)
の内容がSRの値だけ減ぜられる。
The truth table or SH of the table shift number determining circuit is represented by a 2-bit binary number. By inputting SH to the shift control (9), the shifter (
6) is controlled to shift to the left by the value of EIH. By inputting the contents of the mantissa register (1) to the shifter (6), the contents of the mantissa register +1+ are shifted to the left by the value of SH. At the same time, SH is connected to arithmetic circuit a.
Input to Y side of 1, contents of exponent register Exercise 2 circuit +1
(Exponent register (2) by inputting to the Y side of I
The contents of are reduced by the value of SR.

このようにして正規化が行われるが、 SH= 11(
2)のときは正規化が終了していない可能性があるので
上で述べた動作を繰り返して実行する必要がある。
Normalization is performed in this way, but SH= 11 (
In case 2), there is a possibility that normalization has not been completed, so it is necessary to repeat the operation described above.

以上のよ−うに、この発明の浮動小数点数値正規化回路
によりは、正規化における仮数のシフトが複数ビットず
つ行うことができるので、正規化における処理時間を短
縮することができる。
As described above, according to the floating point value normalization circuit of the present invention, the mantissa can be shifted by a plurality of bits during normalization, so that the processing time during normalization can be shortened.

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

第1図は従来の浮動小数点数値正規化回路の一例を示す
図、第2図はこの発明の浮動小数点数値正規化回路の一
実施例の構成を示す図であり、(1)は仮数レジスタ、
(2)は指数レジスタ、(3)はエクスクル−シブOR
ゲート、f51はシフト数決定回路。 (6)はシフタ、(711dlビツトシフタ、(8)は
2ビツトシフタ、(9)はシフタコントローラ、 to
nは演算回路である。 なお図中同一あるいけ相当部分には同一符号を付して示
しである。
FIG. 1 is a diagram showing an example of a conventional floating-point value normalization circuit, and FIG. 2 is a diagram showing the configuration of an embodiment of the floating-point value normalization circuit of the present invention. (1) is a mantissa register;
(2) is an exponent register, (3) is an exclusive OR
The gate f51 is a shift number determining circuit. (6) is a shifter, (711dl bit shifter, (8) is a 2-bit shifter, (9) is a shifter controller, to
n is an arithmetic circuit. Note that the same reference numerals are given to the same or corresponding parts in the figures.

Claims (1)

【特許請求の範囲】 仮数が2の補数で表4つされ基数が2である浮動小数点
数値を正規化する回路において仮数の値を保持する仮数
レジスタと、指数を保持する指数レジスタと、上記仮数
レジスタの最上位ビットからそ2主以下のある特定のピ
ッ14での値を入力し。 仮数6と施丁シフト数を決定するシフト数決定回路と、
上記シフト数決定回路の出力に基づいて上言己仮数レジ
スタの仮数をシフトするシフタと、上記シフト数決定回
路の出力だは上記指数レジスタの内容を減じろ1こめの
演算回路とを具備したことを特徴とした浮動小数点数値
正規化回路。
[Scope of Claims] A circuit for normalizing a floating point number whose mantissa is expressed as a two's complement number and has a base of 2, comprising: a mantissa register that holds the value of the mantissa; an exponent register that holds the exponent; and the mantissa. Input the value at a certain pin 14 below the most significant bit of the register. a shift number determination circuit that determines the mantissa 6 and the number of shifts;
A shifter that shifts the mantissa of the mantissa register based on the output of the shift number determining circuit, and an arithmetic circuit that subtracts the contents of the exponent register from the output of the shift number determining circuit. A floating-point numerical normalization circuit featuring:
JP58124501A 1983-07-08 1983-07-08 Floating-point numeral normalized circuit Pending JPS6017534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58124501A JPS6017534A (en) 1983-07-08 1983-07-08 Floating-point numeral normalized circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58124501A JPS6017534A (en) 1983-07-08 1983-07-08 Floating-point numeral normalized circuit

Publications (1)

Publication Number Publication Date
JPS6017534A true JPS6017534A (en) 1985-01-29

Family

ID=14887050

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58124501A Pending JPS6017534A (en) 1983-07-08 1983-07-08 Floating-point numeral normalized circuit

Country Status (1)

Country Link
JP (1) JPS6017534A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61289421A (en) * 1985-06-18 1986-12-19 Nec Corp Normalizing circuit for floating point multiplication
JPS63123123A (en) * 1986-11-12 1988-05-26 Nec Corp Unnormalized floating point arithmetic unit
JPS6448125A (en) * 1987-08-18 1989-02-22 Nec Corp Normalization requesting circuit for floating-point arithmetic operation
JPH02125327A (en) * 1988-11-04 1990-05-14 Toshiba Corp Floating point data normalizing circuit
US5038310A (en) * 1987-06-27 1991-08-06 Sony Corporation Amplitude compressing and/or expanding circuit employing enhanced normalization
JPH05216620A (en) * 1991-10-31 1993-08-27 Internatl Business Mach Corp <Ibm> Method and circuit for normalizing floating point

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61289421A (en) * 1985-06-18 1986-12-19 Nec Corp Normalizing circuit for floating point multiplication
JPS63123123A (en) * 1986-11-12 1988-05-26 Nec Corp Unnormalized floating point arithmetic unit
US5038310A (en) * 1987-06-27 1991-08-06 Sony Corporation Amplitude compressing and/or expanding circuit employing enhanced normalization
JPS6448125A (en) * 1987-08-18 1989-02-22 Nec Corp Normalization requesting circuit for floating-point arithmetic operation
JPH02125327A (en) * 1988-11-04 1990-05-14 Toshiba Corp Floating point data normalizing circuit
JPH05216620A (en) * 1991-10-31 1993-08-27 Internatl Business Mach Corp <Ibm> Method and circuit for normalizing floating point

Similar Documents

Publication Publication Date Title
KR920005226B1 (en) Floating point arithmetic units
EP0127988A1 (en) A normalizing circuit
US4941120A (en) Floating point normalization and rounding prediction circuit
JPS62191920A (en) Number of shifts control circuit
KR910000787B1 (en) Data processing accelerator
JPS6017534A (en) Floating-point numeral normalized circuit
JPH069028B2 (en) Arithmetic unit
EP0394161A2 (en) Selection of divisor multipliers in a floating point divide circuit
EP0044450B1 (en) Digital adder circuit
US6202078B1 (en) Arithmetic circuit using a booth algorithm
JPH04350724A (en) Shift extent detecting circuit
JPH0374419B2 (en)
US5432727A (en) Apparatus for computing a sticky bit for a floating point arithmetic unit
JPH07118654B2 (en) Arithmetic unit
US5432726A (en) Arithmetic unit for quantization/inverse quantigation
JP2991788B2 (en) Decoder
JP2605848B2 (en) Non-restoring divider
JPS645500B2 (en)
JPS595346A (en) Operation controlling system
JPH01125625A (en) Division device
JPH0388024A (en) Arithmetic unit for vector floating point
KR0138856B1 (en) Multi-nary not logic device
JP3077880B2 (en) Sticky bit detection circuit
JPH07225672A (en) Barrel shifter and control method
JPH04260122A (en) Addition/subtraction high speed digit matching circuit