JPH04350724A - シフト量検出回路 - Google Patents
シフト量検出回路Info
- Publication number
- JPH04350724A JPH04350724A JP3124240A JP12424091A JPH04350724A JP H04350724 A JPH04350724 A JP H04350724A JP 3124240 A JP3124240 A JP 3124240A JP 12424091 A JP12424091 A JP 12424091A JP H04350724 A JPH04350724 A JP H04350724A
- Authority
- JP
- Japan
- Prior art keywords
- bit
- value
- data
- circuit
- input
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/74—Selecting or encoding within a word the position of one or more bits having a specified value, e.g. most or least significant one or zero detection, priority encoders
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F5/00—Methods or arrangements for data conversion without changing the order or content of the data handled
- G06F5/01—Methods or arrangements for data conversion without changing the order or content of the data handled for shifting, e.g. justifying, scaling, normalising
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Executing Machine-Instructions (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
め要約のデータは記録されません。
Description
し、特に正規化するためのシフト量を求めるシフト量検
出回路に関する。
トの2の補数データを正規化するための左シフト量を求
める場合、まず、入力データの値が正の場合はデータ選
択回路33において、入力レジスタ31の値を選択し、
入力データが負の場合は、入力レジスタ31の値をビッ
ト反転回路32においてビット反転した値を選択し、先
頭1検出回路34に入力していた。
ータの最上位ビットから最下位ビットへ順にビット毎の
値を調べ、最初にビットの値が“1”となるビット位置
を検出し、その検出したデータをもとにシフト量算出回
路35において正規化のための左シフト量を求め出力レ
ジスタ36に出力していた。
”、即ち入力データが(FFF・・F)Hのとき、正規
化後の結果は左(n−1)ビットシフトして(100・
・0)Hとなるべきであるが、前述した構成ではデータ
選択回路33において入力レジスタ31のビット反転し
た値が選択されるので、先頭1検出回路33の入力は(
000・・0)Hとなる。これは、入力レジスタ31の
値が(000・・0)Hの時と同じになり、先頭1検出
回路34において、ビットの値が“1”となるビット位
置を検出できないので、正規化のための左シフト量が0
となってしまう。よって、従来の回路では入力データが
(FFF・・F)Hの時は左シフト量を(n−1)とす
る例外処理回路37が必要であった。
用いた例では、入力データが(FFF・・F)Hの時、
シフト量を(n−1)とする例外処理を行う必要がある
。従って、例外処理を行うための回路が必要になり、演
算スピードが遅くなるという問題点がある。
ビット(nは任意の自然数)データを正規化するための
シフト量を求めるシフト量検出回路において、前記nビ
ットデータの最下位ビット側に少なくとも1ビット以上
の論理値“0”を付加したデータを、前記シフト量検出
回路の入力とする手段を有することを特徴とする。
る。まず、正規化対象のnビットデータの最下位ビット
側に1ビットの論理値“0”を付加し入力レジスタ11
に入力する。
選択回路13において、入力レジスタ11の値を選択し
、入力データが負の場合は、入力レジスタ11の値をビ
ット反転回路12においてビット反転した値を選択し、
先頭1検出回路14に入力する。
データの最上位ビットから最下位ビットへ順にビット毎
の値を調べ、最初にビットの値が“1”となるビット位
置を検出し、その検出したデータをもとにシフト量算出
回路15において正規化のための左シフト量を求め出力
レジスタ16に出力する。
nビットデータの各ビットが全て1、即ち(FFF・・
F)Hの時でも、最下位ビット側に1ビットの論理値“
0”を付加して、入力データを(FFF・・F0)Hと
するので、ビット反転回路12で入力データを反転して
も、付加したビットの値が“1”となる。よって、先頭
1検出回路14でビットの値が“1”となるビット位置
を検出できるので、シフト量検出回路15で左シフト量
を求めることができる。この場合左シフト量は(n−1
)となり、正しい左シフト量を得ることができる。
・F)Hの時も、例外処理をせずに演算を実行できる。
ある。
位ビット側に1ビットの論理値“0”を付加し入力レジ
スタ21に入力する。
選択回路23において、入力レジスタ21の値をビット
反転回路22においてビット反転した値を選択し、入力
データが負の場合は、入力レジスタ21の値を選択し、
先頭0検出回路24に入力する。
データの最上位ビットから最下位ビットへ順にビット毎
の値を調べ、最初にビットの値が“0”となるビット位
置を検出し、その検出したデータをもとにシフト量算出
回路25において正規化のための左シフト量を求め出力
レジスタ26に出力する。
nビットデータの各ビットが全て1、即ち(FFF・・
F)Hの時でも、最下位ビット側に1ビットの論理値“
0”を付加して、入力データを(FFF・・F0)Hと
するので、付加したビットの値が“0”となる。よって
、先頭0検出回路24でビットの値が“0”となるビッ
ト位置を検出できるので、シフト量検出回路25で左シ
フト量を求めることができる。この場合左シフト量は(
n−1)となり、正しい左シフト量を得ることができる
。
・F)Hの時も、例外処理せずに演算を実行できる。
象のnビットデータの最下位ビット側に1ビットの論理
値“0”を付加して、シフト量検出回路の入力とするこ
とによって、入力データに関わらず同一構成の回路で正
規化のための左シフト量を求めることができる。
り、演算を高速に実行することができる。
ビットデータの最下位ビット側に1ビットの論理値“0
”を付加した場合を説明したが、複数ビット付加した場
合も同様の効果が得られる。
Claims (1)
- 【請求項1】 nビット(nは任意の自然数)データ
を正規化するためのシフト量を求めるシフト量検出回路
において、前記nビットデータの最下位ビット側に少な
くとも1ビット以上の論理値“0”を付加したデータを
、前記シフト量検出回路の入力とすることを特徴とした
シフト量検出回路。
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3124240A JP3012357B2 (ja) | 1991-05-29 | 1991-05-29 | シフト量検出回路 |
| US07/889,773 US5260887A (en) | 1991-05-29 | 1992-05-28 | Bit data shift amount detector |
| EP92109135A EP0516171B1 (en) | 1991-05-29 | 1992-05-29 | Bit data shift amount detector |
| DE69225352T DE69225352T2 (de) | 1991-05-29 | 1992-05-29 | Bitdatenverschiebungsbetragsdetektor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3124240A JP3012357B2 (ja) | 1991-05-29 | 1991-05-29 | シフト量検出回路 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH04350724A true JPH04350724A (ja) | 1992-12-04 |
| JP3012357B2 JP3012357B2 (ja) | 2000-02-21 |
Family
ID=14880438
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3124240A Expired - Lifetime JP3012357B2 (ja) | 1991-05-29 | 1991-05-29 | シフト量検出回路 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US5260887A (ja) |
| EP (1) | EP0516171B1 (ja) |
| JP (1) | JP3012357B2 (ja) |
| DE (1) | DE69225352T2 (ja) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5831877A (en) * | 1995-05-26 | 1998-11-03 | National Semiconductor Corporation | Bit searching through 8, 16, or 32 bit operands using a 32 bit data path |
| US6289365B1 (en) | 1997-12-09 | 2001-09-11 | Sun Microsystems, Inc. | System and method for floating-point computation |
| US6131106A (en) * | 1998-01-30 | 2000-10-10 | Sun Microsystems Inc | System and method for floating-point computation for numbers in delimited floating point representation |
| EP1050797A1 (en) * | 1999-05-03 | 2000-11-08 | STMicroelectronics S.A. | Execution of instructions in a computer program |
| US8326829B2 (en) * | 2008-10-17 | 2012-12-04 | Centurylink Intellectual Property Llc | System and method for displaying publication dates for search results |
| US8874564B2 (en) * | 2008-10-17 | 2014-10-28 | Centurylink Intellectual Property Llc | System and method for communicating search results to one or more other parties |
| US8156130B2 (en) | 2008-10-17 | 2012-04-10 | Embarq Holdings Company Llc | System and method for collapsing search results |
| US8924765B2 (en) * | 2011-07-03 | 2014-12-30 | Ambiq Micro, Inc. | Method and apparatus for low jitter distributed clock calibration |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4179734A (en) * | 1976-07-02 | 1979-12-18 | Floating Point Systems, Inc. | Floating point data processor having fast access memory means |
| US4553220A (en) * | 1983-05-19 | 1985-11-12 | Gti Corporation | Matrix multiplier with normalized output |
| US4947358A (en) * | 1989-03-20 | 1990-08-07 | Digital Equipment Corporation | Normalizer for determining the positions of bits that are set in a mask |
| JPH0792739B2 (ja) * | 1989-05-22 | 1995-10-09 | 甲府日本電気株式会社 | 浮動小数点データ正規化方式 |
| JPH0831029B2 (ja) * | 1989-07-11 | 1996-03-27 | 日本電気株式会社 | 除算用近似逆数生成装置 |
-
1991
- 1991-05-29 JP JP3124240A patent/JP3012357B2/ja not_active Expired - Lifetime
-
1992
- 1992-05-28 US US07/889,773 patent/US5260887A/en not_active Expired - Lifetime
- 1992-05-29 EP EP92109135A patent/EP0516171B1/en not_active Expired - Lifetime
- 1992-05-29 DE DE69225352T patent/DE69225352T2/de not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| DE69225352T2 (de) | 1999-02-25 |
| US5260887A (en) | 1993-11-09 |
| EP0516171B1 (en) | 1998-05-06 |
| EP0516171A2 (en) | 1992-12-02 |
| EP0516171A3 (en) | 1993-05-26 |
| DE69225352D1 (de) | 1998-06-10 |
| JP3012357B2 (ja) | 2000-02-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0127988B1 (en) | A normalizing circuit | |
| US5373459A (en) | Floating point processor with high speed rounding circuit | |
| JPH07210368A (ja) | 算術演算の結果として生じる正および負のオーバーフローのハードウェアによる効率的な取り扱い方法 | |
| US4864527A (en) | Apparatus and method for using a single carry chain for leading one detection and for "sticky" bit calculation | |
| US5341319A (en) | Method and apparatus for controlling a rounding operation in a floating point multiplier circuit | |
| JP3012357B2 (ja) | シフト量検出回路 | |
| JPH04332036A (ja) | 浮動小数点乗算器とその乗算方式 | |
| JPH0228830A (ja) | 整数除算回路 | |
| US6629118B1 (en) | Zero result prediction | |
| US5920493A (en) | Apparatus and method to determine a most significant bit | |
| US7725522B2 (en) | High-speed integer multiplier unit handling signed and unsigned operands and occupying a small area | |
| JPH087670B2 (ja) | 加算回路 | |
| JP3555881B2 (ja) | 演算回路とそのエラー検出方法 | |
| US6381295B1 (en) | Shifter with overflow detection mechanism | |
| US8037120B2 (en) | System and method for an efficient comparison operation of multi-bit vectors in a digital logic circuit | |
| US6598066B1 (en) | Fast carry-out generation | |
| KR0175357B1 (ko) | 고속화를 위한 연산기의 오버플로우 검출회로 | |
| US20050210089A1 (en) | Saturating shift mechanisms within data processing systems | |
| JP2615746B2 (ja) | ビット操作回路 | |
| JP3696669B2 (ja) | 比較器機構及び比較器 | |
| KR0175358B1 (ko) | 고속화를 위한 연산기의 상태 플래그 검출회로 | |
| JPH0635676A (ja) | 除算回路 | |
| JPH03245226A (ja) | 浮動小数点乗算装置 | |
| JP3557366B2 (ja) | 大小比較方法および装置 | |
| JPS60235241A (ja) | 浮動小数点加算回路 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 19970909 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071210 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081210 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091210 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091210 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101210 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101210 Year of fee payment: 11 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101210 Year of fee payment: 11 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111210 Year of fee payment: 12 |
|
| EXPY | Cancellation because of completion of term | ||
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111210 Year of fee payment: 12 |