JPH02304621A - Detecting circuit for equivalence of logical value - Google Patents
Detecting circuit for equivalence of logical valueInfo
- Publication number
- JPH02304621A JPH02304621A JP12592389A JP12592389A JPH02304621A JP H02304621 A JPH02304621 A JP H02304621A JP 12592389 A JP12592389 A JP 12592389A JP 12592389 A JP12592389 A JP 12592389A JP H02304621 A JPH02304621 A JP H02304621A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- output
- encoder
- detection circuit
- detection
- 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
Links
- 238000001514 detection method Methods 0.000 claims abstract description 32
- 238000010606 normalization Methods 0.000 claims abstract description 10
- 230000007423 decrease Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 2
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Abstract
Description
【発明の詳細な説明】
[発明の目的コ
(産業上の利用分野)
本発明は浮動小数点演算回路の仮数部の加減算結果を正
規化するための正規化量検出用工/:r−ダ入力の@0
1検出、@11検出を行なうための回路に関する。[Detailed Description of the Invention] [Purpose of the Invention (Industrial Application Field) The present invention provides a normalization amount detection method for normalizing the addition and subtraction results of the mantissa part of a floating point arithmetic circuit. @0
The present invention relates to a circuit for performing 1 detection and @11 detection.
(従来の技術) この種の従来の1110 m検出回路を第3図に示す。(Conventional technology) A conventional 1110m detection circuit of this type is shown in FIG.
この回路は、浮動小数点演算器等で、シフト量エンコー
ダ1への演算結果(仮数部)Aが“O″になりたことを
ノア(NOR)回路2で検出するものである。This circuit is a floating point arithmetic unit or the like, and a NOR circuit 2 detects that the operation result (mantissa part) A to the shift amount encoder 1 becomes "O".
(発明が解決しようとする課題)
一般に@01検出は、第3図に示す通り演算結果AのN
ORをとることにより行なって層た。即ち演算結果(仮
数部)Aの全ピットが”Omになると、NOR回路2の
全入力が″0#となfi、NOR回路2の出力Bが@l
“となって、@0“検出が行なえるものである。(Problem to be solved by the invention) In general, @01 detection is performed when the calculation result A is N
This was done by taking the OR. That is, when all the pits of the operation result (mantissa part) A become "Om", all the inputs of the NOR circuit 2 become "0#" fi, and the output B of the NOR circuit 2 becomes @l
``@0'' detection can be performed.
しかしこの場合、演算結果(仮数部)Aのピット数が増
加するに従がい、 NOR回路2への入力数が増加し、
・中ターン面積が、増大する。However, in this case, as the number of pits in the operation result (mantissa part) A increases, the number of inputs to the NOR circuit 2 increases,
・Medium turn area increases.
本発明の目的は、浮動小数点演算に不可欠なシフト量エ
ンコーダの出力と符号ピット(仮数部の最上位ビット)
を用いて、仮数部の@0”検出またFi@t’検出を行
なり、上記従来の欠点を解消するものである。The purpose of the present invention is to provide the output of the shift amount encoder and the sign pit (the most significant bit of the mantissa part) which are essential for floating point operations.
is used to perform @0'' detection or Fi@t' detection of the mantissa part, thereby solving the above-mentioned drawbacks of the conventional method.
[発明の構成コ
(課題を解決するための手段と作用)
本発明は、浮動小数点演算回路の仮数部の加減算結果を
正規化するための正規化量検出用エンコーダ入力の論理
値の同値検出回路にお込て、前記エンコーダの出力と前
記仮数部の最上位ピットとを入力とし九オール′″Om
またはオール“1”検出回路を具備したことを特徴とす
る論理値の同値検出回路である。[Structure of the Invention (Means and Effects for Solving the Problems) The present invention provides an equivalence detection circuit for the logic value of an encoder input for normalization amount detection for normalizing the addition and subtraction results of the mantissa part of a floating point arithmetic circuit. Input the output of the encoder and the most significant pit of the mantissa as input, and write 9all'''Om.
Alternatively, the present invention is a logical value equivalency detection circuit characterized by comprising an all "1" detection circuit.
即ち本発明では、演算器の出力(仮数部)がnピットの
場合、togz n本プラス符号ピット(仮数部最上位
ビット)の1本つまりf” (Log2 n)+lJと
なって、オール@0#またはオール11”検出回路への
入力本数が減シ、・辛ターン設計上面積効率が良くなる
ものである。That is, in the present invention, when the output (mantissa part) of the arithmetic unit is n pits, togz n plus one sign pit (most significant bit of the mantissa part), that is, f'' (Log2 n) + lJ, all @0. The number of inputs to the # or all 11" detection circuit is reduced, and the area efficiency is improved due to the thin turn design.
(実施例)
以下図面を参照して本発明の詳細な説明する。#C1図
は同実施例の構成図であるが、ここで第3図のものと対
応する個所には同一符号を付しておく。第1図(a)は
ブロック構成図、同図(b)は同図(a)のオール@0
”検出回路1ノの詳細図である。(Example) The present invention will be described in detail below with reference to the drawings. #C1 is a block diagram of the same embodiment, and parts corresponding to those in FIG. 3 are given the same reference numerals. Figure 1 (a) is a block configuration diagram, and Figure 1 (b) is the all @0 diagram in Figure 1 (a).
1 is a detailed diagram of the detection circuit 1.
図中Cは符号ビク)(MsB)、Dはエンコーダ出力で
ある。pJ1図(b)のオール“1”検出回路11はア
ンド回路12と符号ビット線に介挿されたインバータ1
3を有している。In the figure, C is the code (MsB), and D is the encoder output. The all "1" detection circuit 11 in pJ1 figure (b) consists of an AND circuit 12 and an inverter 1 inserted in the sign bit line.
It has 3.
浮動小数点演算にはシフ)をエンコーダ1が不可欠であ
る。このシフト量エンコーダはデータの正規化等に必要
で、正規化後のデータがl?)、 1xxxXXJ 。The encoder 1 (shift) is essential for floating point operations. This shift amount encoder is necessary for data normalization, etc., so that the data after normalization is l? ), 1xxxXXJ.
rl、oxxxxxJ (ここで”X”Fi”l”でも
@O#でも可)となるまでのデータのシフト量を示すた
めのものである。そしてシフト量エンコーダの出力は、
MSBから同一値がhくつ続りたかを検出している。rl, oxxxxxxJ (here, "X"Fi"l" or @O# may be used) to indicate the shift amount of data. And the output of the shift amount encoder is
It is detected whether the same value continues h times starting from the MSB.
例えばro、o 01 xxxxxJであれば(このM
SBは小数点の左側の″0mに対応)、エンコー/1の
出力は”2“即ちroloJ(あと2桁ずらす必要あり
)となる。For example, if ro, o 01 xxxxxxJ (this M
SB corresponds to "0m" to the left of the decimal point), and the output of encoder/1 is "2", that is, roloJ (it is necessary to shift two more digits).
第1図において、エンコーダ1の出力りがオール″″l
#即ち演算結果(浮動小数点の仮数部)Aがオール10
1(符号ピットC4,”O” )の場合、オール“1”
検出回路11の出力nVc@t”のフラグが立つもので
ある。なおこのような@0”検出がなされたら、例えば
正規化を行なっても無駄な時間を費すだけであるから、
正規化は行なわな込。In Figure 1, the output of encoder 1 is all
# That is, the operation result (floating point mantissa part) A is all 10
1 (code pit C4, “O”), all “1”
A flag is set for the output nVc@t'' of the detection circuit 11.If such @0'' is detected, for example, even if normalization is performed, it will only waste time.
No normalization is included.
第2図は本発明の他の実施例で、同図(alはブロック
構成図、同図(b)は同図(a)のオール1ビ検出回路
21の詳細図である。この第2図にお込ても、エンコー
ダlの出力りがオール@1“の場合、即ち演算結果Aが
オール″″1’(符号ピットCも”l’ )の場合、オ
ール111検出回路2ノの出力BK@l”のフラグが立
つものである。FIG. 2 shows another embodiment of the present invention (al is a block diagram, and FIG. 2(b) is a detailed diagram of the all-1 bit detection circuit 21 in FIG. 2(a). Even if the outputs of the encoder l are all @1'', that is, when the calculation result A is all ``1'' (the code pit C is also ``l''), the output BK of the all 111 detection circuit 2 is The flag “@l” is set.
[発明の効果]
以上説明した如く本発明によれば、シフト量エンコーダ
の出力が@o’tたは11m検出回路へ入力されるよう
にしたので、演算結果(仮数部)の出力がnビットの場
合、符号ピットのi本を含めてr (tog2 n )
+I J妙j@O#iた#f−1’検出回路への入力本
数となり、入力本数が減ってパターン設計が効率良く行
なえる。これは藷の数が大の場合はど有益である。[Effects of the Invention] As explained above, according to the present invention, the output of the shift amount encoder is input to the @o't or 11m detection circuit, so the output of the operation result (mantissa part) is n bits. In the case of r (tog2 n ) including i number of code pits,
+IJ@O#i#f-1' The number of inputs to the detection circuit is reduced, and pattern design can be performed efficiently. This is useful when the number of rice fields is large.
第1図は本発明の一実施例の構成図、第2図は本発明の
他の実施例の構成図、第3図は従来装置の構成図である
。
1・・・シフト量エンコーダ、11・・・オール@o”
検出回路、21・・・オール“1”検出回路。
出願人代理人 弁理士 鈴 江 武 彦演算結果A
B
°”0″″検出出力
第3図FIG. 1 is a block diagram of one embodiment of the present invention, FIG. 2 is a block diagram of another embodiment of the present invention, and FIG. 3 is a block diagram of a conventional device. 1...Shift amount encoder, 11...All @o"
Detection circuit, 21... All "1" detection circuit. Applicant's agent Patent attorney Takehiko Suzue Calculation result A B °"0"" detection output Figure 3
Claims (2)
化するための正規化量検出用エンコーダ入力の論理値の
同値検出回路において、前記エンコーダの出力と前記仮
数部の最上位ビットとを入力としたオール“0”検出回
路を具備したことを特徴とする論理値の同値検出回路。(1) In a logic value equivalency detection circuit of the encoder input for normalization amount detection for normalizing the addition/subtraction result of the mantissa part of the floating point arithmetic circuit, the output of the encoder and the most significant bit of the mantissa part are input. What is claimed is: 1. A logic value equivalence detection circuit characterized by comprising an all "0" detection circuit.
化するための正規化量検出用エンコーダ入力の論理値の
同値検出回路において、前記エンコーダの出力と前記仮
数部の最上位ビットとを入力としたオール“1”検出回
路を具備したことを特徴とする論理値の同値検出回路。(2) In a logic value equivalency detection circuit of the encoder input for normalization amount detection for normalizing the addition/subtraction result of the mantissa part of the floating point arithmetic circuit, the output of the encoder and the most significant bit of the mantissa part are input. What is claimed is: 1. A logic value equivalence detection circuit characterized by comprising an all "1" detection circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1125923A JP2801640B2 (en) | 1989-05-19 | 1989-05-19 | Logical value equivalence detection circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1125923A JP2801640B2 (en) | 1989-05-19 | 1989-05-19 | Logical value equivalence detection circuit |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH02304621A true JPH02304621A (en) | 1990-12-18 |
JP2801640B2 JP2801640B2 (en) | 1998-09-21 |
Family
ID=14922295
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1125923A Expired - Lifetime JP2801640B2 (en) | 1989-05-19 | 1989-05-19 | Logical value equivalence detection circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2801640B2 (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62171027A (en) * | 1986-01-23 | 1987-07-28 | Matsushita Electric Ind Co Ltd | Digital signal processor |
-
1989
- 1989-05-19 JP JP1125923A patent/JP2801640B2/en not_active Expired - Lifetime
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62171027A (en) * | 1986-01-23 | 1987-07-28 | Matsushita Electric Ind Co Ltd | Digital signal processor |
Also Published As
Publication number | Publication date |
---|---|
JP2801640B2 (en) | 1998-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4953115A (en) | Absolute value calculating circuit having a single adder | |
JPH05216917A (en) | Arithmetic and logic unit | |
JPH0479013B2 (en) | ||
US3825895A (en) | Operand comparator | |
JPH02304621A (en) | Detecting circuit for equivalence of logical value | |
CN111290790A (en) | Conversion device for converting fixed point into floating point | |
JPS595344A (en) | Parallel shifting circuit | |
JP3509069B2 (en) | Saturation selection device and method therefor | |
JP2591250B2 (en) | Data processing device | |
JP2705162B2 (en) | Arithmetic processing unit | |
JP2615746B2 (en) | Bit operation circuit | |
JP3110072B2 (en) | Pre-normalization circuit | |
JPH02212927A (en) | Binary integer multiplication processing method | |
JPH086762A (en) | Multiplying circuit | |
JPS61275936A (en) | Condition determining device | |
JPH06236253A (en) | Bit computing element | |
JPH0254333A (en) | Value comparator | |
JPS62274334A (en) | Data processor | |
JPH07134645A (en) | Device for generating condition code for information processing | |
JPS62288936A (en) | Generating system for conditional code in decimal operation | |
JPH03241421A (en) | Multiplier | |
JPH01243111A (en) | Bit string comparing system | |
JPH0635668A (en) | Full adder | |
JPH01220026A (en) | 32-bit integer computing element | |
JPH03164930A (en) | Detection system for exception to overflow |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080710 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090710 Year of fee payment: 11 |
|
EXPY | Cancellation because of completion of term |