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
Application number
JP3124240A
Other languages
English (en)
Other versions
JP3012357B2 (ja
Inventor
Yasushi Ozaki
靖 尾崎
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP3124240A priority Critical patent/JP3012357B2/ja
Priority to US07/889,773 priority patent/US5260887A/en
Priority to EP92109135A priority patent/EP0516171B1/en
Priority to DE69225352T priority patent/DE69225352T2/de
Publication of JPH04350724A publication Critical patent/JPH04350724A/ja
Application granted granted Critical
Publication of JP3012357B2 publication Critical patent/JP3012357B2/ja
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/74Selecting 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

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

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。

Description

【発明の詳細な説明】
【0001】
【産業上の利用分野】本発明は、算術論理演算回路に関
し、特に正規化するためのシフト量を求めるシフト量検
出回路に関する。
【0002】
【従来の技術】従来例を図3を用いて説明する。nビッ
トの2の補数データを正規化するための左シフト量を求
める場合、まず、入力データの値が正の場合はデータ選
択回路33において、入力レジスタ31の値を選択し、
入力データが負の場合は、入力レジスタ31の値をビッ
ト反転回路32においてビット反転した値を選択し、先
頭1検出回路34に入力していた。
【0003】次に、先頭1検出回路34において入力デ
ータの最上位ビットから最下位ビットへ順にビット毎の
値を調べ、最初にビットの値が“1”となるビット位置
を検出し、その検出したデータをもとにシフト量算出回
路35において正規化のための左シフト量を求め出力レ
ジスタ36に出力していた。
【0004】しかし、入力データの各ビットが全て“1
”、即ち入力データが(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が必要であった。
【0005】
【発明が解決しようとする課題】上述した従来の構成を
用いた例では、入力データが(FFF・・F)Hの時、
シフト量を(n−1)とする例外処理を行う必要がある
。従って、例外処理を行うための回路が必要になり、演
算スピードが遅くなるという問題点がある。
【0006】
【課題を解決するための手段】本発明による回路は、n
ビット(nは任意の自然数)データを正規化するための
シフト量を求めるシフト量検出回路において、前記nビ
ットデータの最下位ビット側に少なくとも1ビット以上
の論理値“0”を付加したデータを、前記シフト量検出
回路の入力とする手段を有することを特徴とする。
【0007】
【実施例】本発明について図面を用いて説明する。
【0008】図1は本発明の第1の実施例の回路図であ
る。まず、正規化対象のnビットデータの最下位ビット
側に1ビットの論理値“0”を付加し入力レジスタ11
に入力する。
【0009】次に、入力データの値が正の場合はデータ
選択回路13において、入力レジスタ11の値を選択し
、入力データが負の場合は、入力レジスタ11の値をビ
ット反転回路12においてビット反転した値を選択し、
先頭1検出回路14に入力する。
【0010】次に、先頭1検出回路14において、入力
データの最上位ビットから最下位ビットへ順にビット毎
の値を調べ、最初にビットの値が“1”となるビット位
置を検出し、その検出したデータをもとにシフト量算出
回路15において正規化のための左シフト量を求め出力
レジスタ16に出力する。
【0011】従来、例外処理の対象である正規化対象の
nビットデータの各ビットが全て1、即ち(FFF・・
F)Hの時でも、最下位ビット側に1ビットの論理値“
0”を付加して、入力データを(FFF・・F0)Hと
するので、ビット反転回路12で入力データを反転して
も、付加したビットの値が“1”となる。よって、先頭
1検出回路14でビットの値が“1”となるビット位置
を検出できるので、シフト量検出回路15で左シフト量
を求めることができる。この場合左シフト量は(n−1
)となり、正しい左シフト量を得ることができる。
【0012】従って、正規化対象のデータが(FFF・
・F)Hの時も、例外処理をせずに演算を実行できる。
【0013】第2図は本発明の第2の実施例の回路図で
ある。
【0014】まず、正規化対象のnビットデータの最下
位ビット側に1ビットの論理値“0”を付加し入力レジ
スタ21に入力する。
【0015】次に、入力データの値が正の場合はデータ
選択回路23において、入力レジスタ21の値をビット
反転回路22においてビット反転した値を選択し、入力
データが負の場合は、入力レジスタ21の値を選択し、
先頭0検出回路24に入力する。
【0016】次に、先頭0検出回路24において、入力
データの最上位ビットから最下位ビットへ順にビット毎
の値を調べ、最初にビットの値が“0”となるビット位
置を検出し、その検出したデータをもとにシフト量算出
回路25において正規化のための左シフト量を求め出力
レジスタ26に出力する。
【0017】従来、例外処理の対象である正規化対象の
nビットデータの各ビットが全て1、即ち(FFF・・
F)Hの時でも、最下位ビット側に1ビットの論理値“
0”を付加して、入力データを(FFF・・F0)Hと
するので、付加したビットの値が“0”となる。よって
、先頭0検出回路24でビットの値が“0”となるビッ
ト位置を検出できるので、シフト量検出回路25で左シ
フト量を求めることができる。この場合左シフト量は(
n−1)となり、正しい左シフト量を得ることができる
【0018】従って、正規化対象のデータが(FFF・
・F)Hの時も、例外処理せずに演算を実行できる。
【0019】
【発明の効果】以上説明したように本発明は、正規化対
象のnビットデータの最下位ビット側に1ビットの論理
値“0”を付加して、シフト量検出回路の入力とするこ
とによって、入力データに関わらず同一構成の回路で正
規化のための左シフト量を求めることができる。
【0020】よって例外処理のための回路が不必要にな
り、演算を高速に実行することができる。
【0021】また本発明の実施例では、正規化対象のn
ビットデータの最下位ビット側に1ビットの論理値“0
”を付加した場合を説明したが、複数ビット付加した場
合も同様の効果が得られる。
【図面の簡単な説明】
【図1】本発明の第1の実施例の回路図である。
【図2】本発明の第2の実施例の回路図である。
【図3】従来例の回路図をそれぞれ示す。

Claims (1)

    【特許請求の範囲】
  1. 【請求項1】  nビット(nは任意の自然数)データ
    を正規化するためのシフト量を求めるシフト量検出回路
    において、前記nビットデータの最下位ビット側に少な
    くとも1ビット以上の論理値“0”を付加したデータを
    、前記シフト量検出回路の入力とすることを特徴とした
    シフト量検出回路。
JP3124240A 1991-05-29 1991-05-29 シフト量検出回路 Expired - Lifetime JP3012357B2 (ja)

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 (9)

* Cited by examiner, † Cited by third party
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
US8156130B2 (en) 2008-10-17 2012-04-10 Embarq Holdings Company Llc System and method for collapsing search results
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
US8924765B2 (en) * 2011-07-03 2014-12-30 Ambiq Micro, Inc. Method and apparatus for low jitter distributed clock calibration
KR102656277B1 (ko) * 2022-01-26 2024-04-08 김태순 화훼장식용 기능성 프레임

Family Cites Families (5)

* Cited by examiner, † Cited by third party
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 日本電気株式会社 除算用近似逆数生成装置

Also Published As

Publication number Publication date
EP0516171B1 (en) 1998-05-06
US5260887A (en) 1993-11-09
EP0516171A2 (en) 1992-12-02
EP0516171A3 (en) 1993-05-26
JP3012357B2 (ja) 2000-02-21
DE69225352D1 (de) 1998-06-10
DE69225352T2 (de) 1999-02-25

Similar Documents

Publication Publication Date Title
EP0127988B1 (en) A normalizing circuit
JPH07210368A (ja) 算術演算の結果として生じる正および負のオーバーフローのハードウェアによる効率的な取り扱い方法
US5341319A (en) Method and apparatus for controlling a rounding operation in a floating point multiplier circuit
US7725522B2 (en) High-speed integer multiplier unit handling signed and unsigned operands and occupying a small area
JP3012357B2 (ja) シフト量検出回路
JPH04332036A (ja) 浮動小数点乗算器とその乗算方式
JPH0228830A (ja) 整数除算回路
US6629118B1 (en) Zero result prediction
US5920493A (en) Apparatus and method to determine a most significant bit
JPH087670B2 (ja) 加算回路
JP3555881B2 (ja) 演算回路とそのエラー検出方法
US6381295B1 (en) Shifter with overflow detection mechanism
JPH0479014B2 (ja)
EP0704793B1 (en) Method and circuit to compare the sum of two numbers to a third number
JPS60167030A (ja) シフトフラグ生成方式及びシフトフラグ生成回路
US5801978A (en) Overflow detection for integer-multiply instruction
JP2615746B2 (ja) ビット操作回路
JP2782827B2 (ja) 比較演算回路
JPH03217938A (ja) 浮動小数点丸め正規化装置
KR0175358B1 (ko) 고속화를 위한 연산기의 상태 플래그 검출회로
JPH03245226A (ja) 浮動小数点乗算装置
JPS61275936A (ja) 条件決定装置
JPS60235241A (ja) 浮動小数点加算回路
JPS63123123A (ja) 非正規化浮動小数点演算装置
JPH04333924A (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