JPS6319894B2 - - Google Patents

Info

Publication number
JPS6319894B2
JPS6319894B2 JP57228002A JP22800282A JPS6319894B2 JP S6319894 B2 JPS6319894 B2 JP S6319894B2 JP 57228002 A JP57228002 A JP 57228002A JP 22800282 A JP22800282 A JP 22800282A JP S6319894 B2 JPS6319894 B2 JP S6319894B2
Authority
JP
Japan
Prior art keywords
exponent
exponent part
operand data
floating point
output
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.)
Expired
Application number
JP57228002A
Other languages
English (en)
Other versions
JPS59117637A (ja
Inventor
Toshuki Yaguchi
Akyoshi Kanuma
Kiichiro Tamaru
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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric Co 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP57228002A priority Critical patent/JPS59117637A/ja
Priority to US06/562,736 priority patent/US4590584A/en
Publication of JPS59117637A publication Critical patent/JPS59117637A/ja
Publication of JPS6319894B2 publication Critical patent/JPS6319894B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/483Computations with numbers represented by a non-linear combination of denominational numbers, e.g. rational numbers, logarithmic number system or floating-point numbers
    • G06F7/487Multiplying; Dividing
    • G06F7/4876Multiplying
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/499Denomination or exception handling, e.g. rounding or overflow
    • G06F7/49905Exception handling
    • G06F7/4991Overflow or underflow

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Nonlinear Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Complex Calculations (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は半導体集積回路装置に係り、特に
IEEE(The Institnte of Electrical and
Electronics Engineers)規格の浮動小数点乗算
装置に関する。
〔発明の技術的背景およびその問題点〕
IEEE規格の浮動小数点乗算においては、指数
部の加算は (X−B)+(Y−B)=(X+Y−B)−B として行なう。但し、X,Yは浮動小数点形式の
被演算データの指数部のオペランド、Bはベース
でB=2n-1−1(nはデータのビツト数)と定義
される。
上記の如き指数部の加算は、従来は第1図に示
すような装置によつてなされている。第1の
ALU(算術論理回路;arithmetic and logic
unit)1はnビツトの入力X、Yを加算し、nビ
ツトのX+Yを出力する。第2のALU2は第1
のALU1の出力とBの2の補数(nビツト)を
加算し、nビツトのX+Y−Bを出力する。
このようにIEEE規格の浮動小数点乗算を実行
する従来装置においては、指数部の加算のために
2個のALUが用いられているため、装置全体の
回路が複雑化し、規模が大きくなつている。ま
た、回路規模が大きくなることに伴つて消費電力
が増大し、演算に要する時間も増大するという欠
点がある。
〔発明の目的〕
本発明は上述の従来技術の欠点に鑑みてなされ
たもので、被演算データの指数部の加算を1個の
ALUで行なうことによつて、回路が簡単でかつ
消費電力が少なく演算所要時間も少ない浮動小数
点乗算装置を提供するものである。
〔発明の概要〕
上記の目的を実現するため本発明は、浮動小数
点形式の2つの被演算データの指数部を加算する
指数部加算器に、被演算データの上位2ビツトも
しくは加算されたデータの上位2ビツトを補正す
る手段(被演算データのMSB(最上位ビツト)を
反転するインバータ、もしくは加算器出力の上位
2ビツトの入れ替え及びオーバー/アンダーフロ
ー検出器)を設け、かつ指数部加算器に外部入力
にもとづいてデータの指数部を桁上げする機能を
持たせた浮動小数点乗算装置を提供するものであ
る。
〔発明の実施例〕
本発明の実施例を第2図および第3図を参照し
て説明する。第2図はデータを入力する段階で上
位2ビツトを補正する方式の一実施例の回路図で
ある。指数部加算器101はn+1ビツトの加算
を実行するALUで、端子102を介して桁上げ
入力を与える。インバータ103は一方の被演算
データの指数部のMSBを反転する回路で、出力
信号はこの指数部加算器の一方の入力の上位2ビ
ツトに与えられる。
次に、第2図の一実施例の動作を説明する。前
述の如く、IEEE規格における浮動小数点乗算の
指数部の加算は、X+Y−Bを求めることで実現
される。ここで、ベースBは B=2n-1−1=2n-2+2o-3+…+21+20 ……(1) と定義されるから、Bの2の補数は式(1)より (Bの2の補数)=2n+2n-1+1 ……(2) となる。従つて、オペランドXを X=Xo-12n-1+Xo-22n-2+…+X121+X020 ……(3) とすると、X−Bは式(2)、式(3)より X−B=2n+(1+Xo-1)2n-1+Xo-22n-2 +Xo-32n-3+…X121+X020+1 ……(4) と表現することができる。
ここで、Xo-1=0とすると、式(4)より X−B=2n+2n-1+Xo-22n-2+…+X020+1
……(5) Xo-1=1とすると式(4)より X−B=2n+2n+Xo-22n-2+…+X020+1 ……(6) となる。ここで、Xo-1=0のときはX−Bの2n
2n-1ビツトは1となり、Xo-1=1のときはX−B
の2n、2n-1ビツトは0となる。従つて、指数部加
算器101の端子102より桁上げ入力“1”を
与え、かつ一方の入力オペランド(XもしくはY
のいずれか)のMSBをインバータ103で反転
し上位2ビツトに入力することによつて(X+Y
−B)を求めることができる。
このように、指数部の加算(X−B)+(Y−
B)を実行する際に、(X+Y−B)の演算のう
ちの(X−B)の値を、XのMSBをインバータ
103で反転しこの出力を一方の入力データの上
位2ビツトに与えることによつて得、(X+Y−
B)の演算を1個の指数部加算器101を通すだ
けで実現することができる。
第3図はデータを出力する段階で上位2ビツト
を補正する方式の他の一実施例の回路図で、第2
図と同一の要素は同一の符号で示してある。指数
部加算器101の出力の上位2ビツトは排他的
NOR104に与え、これによつてアンダー/オ
ーバーフローを検出する。
次に、第3図の実施例の動作を説明する。ま
ず、x=X−B、y=Y−Bとすると、 X+Y−B=x+y+B ……(7) となる。ここで、端102より桁上げ入力“1”
を入力すると、加算器出力は X+Y+1=(x+y+B)+B+1 ……(8) となる。ベースBはB=2n-1−1と定義されてい
るので式(8)は X+Y+1=(x+y+B)+2n-1 ……(9) と表現できる。
従つて、x+y+Bおよび指数部加算器101
の出力Z0を x+y+B=Zo-12n-1+Zo-22n-2+…Z020 ……(10) Z0=Z0o2n+Z0o-12n-1+…+Z0020 ……(11) と定義すると、式(9)、(10)、(11)より Zo-1=0のときZ0o=0、Z0o-1=1 Zo-1=1のときZ0o=1、Z0o-1=0 となる。このようにして、(Zo-1、Zo-2、…Z0)=
(Z0o、Z0o-2、Z0o-3、…Z00)として加算結果を求
めることができる。
なお、Z0o=0、Z0o-1=0のときは加算結果の
アンダーフローを示し、Z0o=1、Z0o-1=1のと
きは加算結果のオーバーフローを示しているの
で、排他的NOR104によりこれを検出し、出
力を無効にする。
〔発明の効果〕
上述の如く本発明によれば、IEEE規格の浮動
小数点乗算を実行する従来装置の指数部加算器
に、被演算データを入力する段階で補正を加える
手段、もしくは加算結果を出力する段階で補正を
加える手段を設け、かつ桁上げ入力を与えること
で指数部の加算を1個のALUで行なうことがで
き、回路が簡単でかつ消費電力が少なく演算所要
時間も少ない浮動小数点乗算装置を得ることがで
きる。
【図面の簡単な説明】
第1図は従来装置の一構成例のブロツク図、第
2図は本発明の一実施例の回路図、第3図は本発
明の他の一実施例の回路図である。 102…端子(桁上げ入力用)、103…イン
バータ、104…排他的NOR。

Claims (1)

  1. 【特許請求の範囲】 1 それぞれ指数部オペランドX,Yを有する浮
    動小数点形式の2つの被演算データについて、指
    数部の加算を仮数部の補正定数B=2n-1−1とし
    て(X−B)+(Y−B)=(X+Y−B)−Bに従
    つて実行することにより前記2つの被演算データ
    を乗算する浮動小数点乗算装置において、 前記被演算データの一方、例えばXの指数部の
    最上位ビツトを反転するインバータと、このイン
    バータ出力を該指数部の上位2ビツトに入力して
    (X−B)の値を得ると共に、前記インバータの
    出力が上位2ビツトに入力された前記一方の被演
    算データの指数部に他方の前記被演算データ、例
    えばYの指数部を加算して(X+Y−B)を得、
    かつ外部から与えられる桁上げ入力にもとづいて
    前記指数部を桁上げする指数部加算器とを備える
    ことを特徴とする浮動小数点乗算装置。 2 それぞれ指数部オペランドX,Yを有する浮
    動小数点形式の2つの被演算データについて、指
    数部の加算を仮数部の補正定数B=2n-1−1とし
    て(X−B)+(Y−B)=(X+Y−B)−Bに従
    つて実行することにより前記2つの被演算データ
    を乗算する浮動小数点乗算装置において、 前記2つの被演算データXおよびYの指数部を
    互いに加算しかつ外部から与えられる桁上げ入力
    にもとづいてx=X−B、y=Y−Bとして桁上
    げ出力X+Y=(x+y+B)+2n-1を得る指数部
    加算器と、前記指数部加算器の出力の上位2ビツ
    トの値が互いに等しいときは前記指数部加算器の
    出力を無効にするオーバー/アンダーフロー検出
    器とを備えることを特徴とする浮動小数点乗算装
    置。
JP57228002A 1982-12-24 1982-12-24 浮動小数点乗算装置 Granted JPS59117637A (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP57228002A JPS59117637A (ja) 1982-12-24 1982-12-24 浮動小数点乗算装置
US06/562,736 US4590584A (en) 1982-12-24 1983-12-19 Method and system for processing exponents in floating-point multiplication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57228002A JPS59117637A (ja) 1982-12-24 1982-12-24 浮動小数点乗算装置

Publications (2)

Publication Number Publication Date
JPS59117637A JPS59117637A (ja) 1984-07-07
JPS6319894B2 true JPS6319894B2 (ja) 1988-04-25

Family

ID=16869633

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57228002A Granted JPS59117637A (ja) 1982-12-24 1982-12-24 浮動小数点乗算装置

Country Status (2)

Country Link
US (1) US4590584A (ja)
JP (1) JPS59117637A (ja)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5153847A (en) * 1986-06-27 1992-10-06 Matsushita Electric Industrial Co., Ltd. Arithmetic processor using signed digit representation of internal operands
US5206825A (en) * 1987-05-27 1993-04-27 Matsushita Electric Industrial Co., Ltd. Arithmetic processor using signed-digit representation of external operands
US4941119A (en) * 1988-11-30 1990-07-10 Control Data Corporation Method and apparatus for predicting an overflow in an integer multiply
US4975868A (en) * 1989-04-17 1990-12-04 International Business Machines Corporation Floating-point processor having pre-adjusted exponent bias for multiplication and division
JPH02302824A (ja) * 1989-05-18 1990-12-14 Fujitsu Ltd 浮動小数点乗算における指数演算装置
EP0820005B1 (en) * 1990-08-24 2001-11-07 Matsushita Electric Industrial Co., Ltd. Method and apparatus for computing floating point data
JPH0823812B2 (ja) * 1990-08-24 1996-03-06 松下電器産業株式会社 浮動小数点データの演算方法および演算装置
US5553015A (en) * 1994-04-15 1996-09-03 International Business Machines Corporation Efficient floating point overflow and underflow detection system
GB2317248B (en) * 1996-09-02 2001-08-15 Siemens Plc Floating point number data processing means
KR100425674B1 (ko) * 1996-10-11 2004-06-11 엘지전자 주식회사 디지탈신호처리기의부동소숫점형식곱셈방법
US7991811B2 (en) * 2007-04-17 2011-08-02 International Business Machines Corporation Method and system for optimizing floating point conversion between different bases

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5776634A (en) * 1980-10-31 1982-05-13 Hitachi Ltd Digital signal processor
US4366548A (en) * 1981-01-02 1982-12-28 Sperry Corporation Adder for exponent arithmetic
US4429370A (en) * 1981-04-23 1984-01-31 Data General Corporation Arithmetic unit for use in a data processing system for computing exponent results and detecting overflow and underflow conditions thereof

Also Published As

Publication number Publication date
US4590584A (en) 1986-05-20
JPS59117637A (ja) 1984-07-07

Similar Documents

Publication Publication Date Title
US6099158A (en) Apparatus and methods for execution of computer instructions
US8051116B2 (en) Apparatus and method for generating packed sum of absolute differences
US5457805A (en) Microcomputer enabling high speed execution of product-sum operation
JPS6319894B2 (ja)
JPH10187416A (ja) 浮動小数点演算装置
US7051062B2 (en) Apparatus and method for adding multiple-bit binary-strings
JP2645422B2 (ja) 浮動小数点演算処理装置
JPH04328630A (ja) 浮動小数点乗除算装置
JP3509069B2 (ja) 飽和選択装置とそのための方法
JP2551037B2 (ja) 逆数演算回路
JP3077880B2 (ja) スティッキービット検出回路
JP2998324B2 (ja) 正規化シフト装置および正規化シフト方法
JP2591250B2 (ja) データ処理装置
JPH0251732A (ja) 浮動小数点演算器
JPS6359170B2 (ja)
JPS59140560A (ja) 浮動小数点乗算器
KR100196520B1 (ko) 면적 개선을 위한 2의보수 변환 장치
JP3201097B2 (ja) 乗算器における乗算処方方法
JP3272033B2 (ja) 張り付け機能付きシフタ回路
JPS60175142A (ja) デイジタル演算回路
JPS60235241A (ja) 浮動小数点加算回路
JPH0368412B2 (ja)
JPH05100822A (ja) デイジタルシグナルプロセツサ
SU710040A1 (ru) Устройство дл делени
JPH031228A (ja) 浮動小数点乗算装置