JPS59149539A - 固定小数点−浮動小数点変換装置 - Google Patents

固定小数点−浮動小数点変換装置

Info

Publication number
JPS59149539A
JPS59149539A JP58012527A JP1252783A JPS59149539A JP S59149539 A JPS59149539 A JP S59149539A JP 58012527 A JP58012527 A JP 58012527A JP 1252783 A JP1252783 A JP 1252783A JP S59149539 A JPS59149539 A JP S59149539A
Authority
JP
Japan
Prior art keywords
fixed
zero
point
digit
point number
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
JP58012527A
Other languages
English (en)
Inventor
Tsutomu Sakamoto
務 坂本
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
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP58012527A priority Critical patent/JPS59149539A/ja
Priority to US06/573,347 priority patent/US4631696A/en
Publication of JPS59149539A publication Critical patent/JPS59149539A/ja
Pending 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
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
    • H03M7/14Conversion to or from non-weighted codes
    • H03M7/24Conversion to or from floating-point codes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Complex Calculations (AREA)

Abstract

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

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明はデジタルデータ処理装置に係り、固定小数点数
から浮動小数点数への変換を行なう固定小数点−浮動小
数点変換装置に関する。
〔発明の技術的背景とその問題点〕
従来は、この種の変換のために、マイクロプログラムま
たはユーザ命令の組み合せにより、固定小数点数に対す
る1桁毎のシフトとゼロ検出を繰シ返し、正規化された
浮動小数点数を求めていた。すなわち、従来の方法によ
れば、固定小数点数の上位から連続するゼロの桁数をソ
フトウェア操作により検出するために、処理時間が長く
かかる欠点があった。
〔発明の目的〕
本発明は上記事情に鑑みてなされたものでその目的は、
簡単なハードウェアを付加するだけで、仮数部の生成お
よび指数部の演算が容易に行なえ、もって固定小数点数
から浮動小数点数への変換操作の高速化が図れる固定小
数点−浮動小数点変換装置を提供することにある。
〔発明の概要〕
本発明はプライオリティエンコーダによシ固定小数点数
の最上位桁から連続するゼロの桁数(LZ )を求め、
この連続するゼロの桁数に従い、シフタにて前記固定小
数点数を左シフトすることにより仮数部を求める一方、
基準値から(前記プライオリティエンコー〆で求められ
た)前記連続するゼロの桁数を加算器で減じることによ
り指数部を求めるもので、このようにして求められfc
指数部と仮数部とによp正規化された浮動小数点数を得
るようにしたものである。
〔発明の実施例〕
以下、本発明の一実施例を図面を参照して説明する。第
1図は固定小数点−浮動小数点変換装置の構成を示すも
ので、1は固定小数点数Fが保持されるレジスタである
。本実施例装置で取シ扱われる固定小数点数Fは第2図
のデータフォーマットに示される如く単精度(32ビ、
ット)データである。同様に本実施例装置により変換出
力される浮動小数点数も第3図のデータフォーマットに
示される如く単精度データである。浮動小数点数は16
進6桁(24ビツト)の仮数部M、7ビツトの指数部X
1および仮数部符号Sとから構成されている。指数部X
は40”16(添字の16は16進表現を示す)のバイ
アス表現により、X=″′40”16で0、X≧″41
”16で正、X≦″39”16で負の値を示す。なお、
第2図および第3図における記号Δは小数点位置を示す
ものである。
再び第1図を参照すると、21〜28は固定小数点数F
の対応する桁(4ビツト)のゼロ検出を行なうゼロ検出
回路、3はゼロ検出回路21〜28の各出力が入力され
る8人力3出力のプライオリティエンコーダである。プ
ライオリティエンコーダ3は固定小数点数Fの上位から
連続したゼロの桁数LZを出力する。4は基準値である
指数″’48’16からプライオリティエンコーダ3の
出力(LZ)を減する加算器、5はプライオリティエン
コーダ3の出力(LZ)をシフト数とし、レジスタ1の
出力(固定小数点数F)をシフトするシックである。シ
フタ5は1クロック周期で4nピツ)(n=0.l、・
・・7)の左シフトを行なうようになっている。6はL
Z=8すなわち固定小数点数Fが全てゼロであることを
検出するオールゼロ検出回路である。
次に第1図の構成の動作を第4図のフローチャートを参
照して説明する。なお、以下の説明では固定小数点数F
は正数(S=O)であるものとする。また、結果の浮動
小数点数の符号Sについての説明は省略する。いま、レ
ジスタ1に固定小数点数Fが保持されているものとする
まずゼロ検出回路21〜28でレジスタ1に保持されて
いる固定小数点数Fの対応する桁(4ビツト)のゼロ検
出が行なわれる。ゼロ検出回路21〜28の各ゼロ検出
結果(111+ or″″0”)はプライオリティエン
コーダ3の対応する入力端子に導かれる。これによりプ
ライオリティエンコーダ3は固定小数点数Fの最上位桁
から連続したゼロの桁数LZを求める。また、ゼロ検出
回路21〜28の各ゼロ検出結果はオールゼロ検出回路
6にも導かれており、もしF=0(すなわち、プライオ
リティエンコーダ3の出力LZがLZ = 8 )のと
きには固定小数点数Fがオールゼロであることがオール
ゼロ検出回路6により検出される。これにより結果がゼ
ロとされるが、ゼロの生成に関しては説明を省略する。
プライオリティエンコーダ3の出力LZはシフタ5に導
かれる。しかして当該LZ(ゼロの桁数)をシフト数(
シフト桁数)とし、シフタ5により固定小数点数Fが左
シフトされる。この左シフト結果の上位24ビツトが仮
数部Mとなる。
なお左シフト時、右からはゼロがシフトインされる。ま
た、プライオリティエンコーダ3の出力LZ (ゼロの
桁数)は加算器4にも導かれる。
しかして加算器4により、固定小数点数Fの最上位桁が
ゼロでない場合の指数″’48”1g (基準値)から
ゼロの桁数(シフトした桁数)LZが減じられる。この
減算結果が指数部Xと彦る。
なお、前記実施例では固定小数点数Fが正数である場合
について説明したが、負数の場合でも一旦正数へ変換す
る操作を追加すれば同様に処理できる。また前記実施例
では単精度(32ビツト)データに適用した場合につい
て説明したが、倍精度(64ビツト)データに対しても
同様に適用できる。更に浮動小数点データフォーマット
は、16進表現に限らず例えば2進表現のものにも応用
できる。
〔発明の効果〕
以上詳述したように本発明によれば、簡単なハードウェ
アを付加するだけで固定小数点数から浮動小数点数への
変換操作が高速に行なえる。
【図面の簡単な説明】
第1図は本発明の一実施例を示すブロック構成図、第2
図および第3図は上記実施例で適用されるデータのフォ
ーマットを示すもので第2図は固定小数点数のデータフ
ォーマット、第3図は浮動小数点数のデータフォーマッ
ト、第4図は動作を説明するためのフローチャートであ
る。 21〜2B・・・ゼロ検出回路、3・・・プライオリテ
ィエンコーダ、4・・・加算器、5・・・シック。 出願人代理人  弁理士 鈴 江 武 彦第2図 第3図

Claims (1)

    【特許請求の範囲】
  1. 固定小数点数の最上位桁から連続するゼロの桁数を求め
    るプライオリティエンコーダと、前記ゼロの桁数に従っ
    て前記固定小数点数を左シフトし、仮数部を求めるシフ
    タと、基準値から前記ゼロの桁数を減じ、指数部を求め
    る加算器とを具備し、前記固定小数点数から正規化され
    た浮動小数点数を得ることを特徴とする固定小数点−浮
    動小数点変換装置。
JP58012527A 1983-01-28 1983-01-28 固定小数点−浮動小数点変換装置 Pending JPS59149539A (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP58012527A JPS59149539A (ja) 1983-01-28 1983-01-28 固定小数点−浮動小数点変換装置
US06/573,347 US4631696A (en) 1983-01-28 1984-01-24 Fixed-point data/floating-point data converting apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58012527A JPS59149539A (ja) 1983-01-28 1983-01-28 固定小数点−浮動小数点変換装置

Publications (1)

Publication Number Publication Date
JPS59149539A true JPS59149539A (ja) 1984-08-27

Family

ID=11807797

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58012527A Pending JPS59149539A (ja) 1983-01-28 1983-01-28 固定小数点−浮動小数点変換装置

Country Status (2)

Country Link
US (1) US4631696A (ja)
JP (1) JPS59149539A (ja)

Families Citing this family (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2563400B1 (fr) * 1984-04-20 1986-06-20 France Etat Cnet Procede de transcodage de couleurs permettant l'interconnexion de deux equipements de definition de couleurs differente et transcodeur correspondant
JPS61141033A (ja) * 1984-12-14 1986-06-28 Hitachi Ltd 演算処理装置
GB2173617B (en) * 1985-03-18 1988-08-24 Texas Instruments Ltd Apparatus for locating and indicating the position of an end }1} bit of a number in a multi-bit number format
US4862346A (en) * 1985-07-02 1989-08-29 Vlsi Technology, Inc. Index for a register file with update of addresses using simultaneously received current, change, test, and reload addresses
US4805128A (en) * 1985-11-22 1989-02-14 Geophysical Service Inc. Format conversion system
US4815021A (en) * 1986-01-30 1989-03-21 Star Technologies, Inc. Multifunction arithmetic logic unit circuit
US5073864A (en) * 1987-02-10 1991-12-17 Davin Computer Corporation Parallel string processor and method for a minicomputer
US4896133A (en) * 1987-02-10 1990-01-23 Davin Computer Corporation Parallel string processor and method for a minicomputer
WO1988006308A1 (en) * 1987-02-10 1988-08-25 Davin Computer Corporation Parallel string processor and method for a minicomputer
JPH0746310B2 (ja) * 1987-06-30 1995-05-17 三菱電機株式会社 半導体論理回路
JPS6425236A (en) * 1987-07-21 1989-01-27 Mitsubishi Electric Corp Logical operation system
WO1989001653A1 (en) * 1987-08-20 1989-02-23 Davin Computer Corporation Parallel string processor and method for a minicomputer
US5161117A (en) * 1989-06-05 1992-11-03 Fairchild Weston Systems, Inc. Floating point conversion device and method
US5268858A (en) * 1991-08-30 1993-12-07 Cyrix Corporation Method and apparatus for negating an operand
US5303174A (en) * 1991-10-07 1994-04-12 Nec Corporation Floating pointing arithmetic operation system
EP0578950A3 (en) * 1992-07-15 1995-11-22 Ibm Method and apparatus for converting floating-point pixel values to byte pixel values by table lookup
US5586288A (en) * 1993-09-22 1996-12-17 Hilevel Technology, Inc. Memory interface chip with rapid search capability
US5574670A (en) * 1994-08-24 1996-11-12 Advanced Micro Devices, Inc. Apparatus and method for determining a number of digits leading a particular digit
US5568410A (en) * 1994-09-29 1996-10-22 International Business Machines Corporation Method and apparatus for determining the amount of leading zeros or ones in a binary data field
US5561615A (en) * 1994-12-02 1996-10-01 Hewlett-Packard Company Method and apparatus for floating point to fixed point conversion with compensation for lost precision
WO1996027831A1 (en) * 1995-03-06 1996-09-12 Motorola Inc. Floating point conversion circuit
US5809323A (en) * 1995-09-19 1998-09-15 International Business Machines Corporation Method and apparatus for executing fixed-point instructions within idle execution units of a superscalar processor
US5761105A (en) * 1995-09-26 1998-06-02 Advanced Micro Devices, Inc. Reservation station including addressable constant store for a floating point processing unit
US5878266A (en) * 1995-09-26 1999-03-02 Advanced Micro Devices, Inc. Reservation station for a floating point processing unit
US5748516A (en) * 1995-09-26 1998-05-05 Advanced Micro Devices, Inc. Floating point processing unit with forced arithmetic results
US5798958A (en) * 1996-06-05 1998-08-25 Samsung Electronics Co., Ltd. Zero detect for binary sum
DE19625855C2 (de) * 1996-06-27 1998-06-10 Siemens Ag Verfahren und Signalauswerteeinrichtung zur Datenreduktion bei der Verarbeitung von Signalwerten mit einer digitalen Signalverarbeitungseinheit in einem Übertragungssystem
US6018757A (en) * 1996-08-08 2000-01-25 Samsung Electronics Company, Ltd. Zero detect for binary difference
US6049343A (en) * 1997-01-20 2000-04-11 Hitachi, Ltd. Graphics processing unit and graphics processing system
US6205462B1 (en) 1999-10-06 2001-03-20 Cradle Technologies Digital multiply-accumulate circuit that can operate on both integer and floating point numbers simultaneously
US6591361B1 (en) 1999-12-28 2003-07-08 International Business Machines Corporation Method and apparatus for converting data into different ordinal types
US6654776B1 (en) * 2000-06-02 2003-11-25 Sun Microsystems, Inc. Method and apparatus for computing parallel leading zero count with offset
US6711947B2 (en) 2001-06-13 2004-03-30 Rem Scientific Enterprises, Inc. Conductive fluid logging sensor and method
JP3642053B2 (ja) * 2002-02-25 2005-04-27 日本電気株式会社 シンボルデータ変換回路
US7236995B2 (en) * 2002-12-27 2007-06-26 Arm Limited Data processing apparatus and method for converting a number between fixed-point and floating-point representations
ATE404036T1 (de) * 2004-11-23 2008-08-15 Dialog Semiconductor Gmbh Kombinierter exponentieller und linearer rgb led- stromsenkender digital-analaog-wandler
GB2556645B (en) * 2017-03-24 2019-04-03 Imagination Tech Ltd Floating point to fixed point conversion
US11669747B2 (en) 2018-10-30 2023-06-06 Qualcomm Incorporated Constraining function approximation hardware integrated with fixed-point to floating-point conversion
US11847451B2 (en) * 2020-01-07 2023-12-19 SK Hynix Inc. Processing-in-memory (PIM) device for implementing a quantization scheme
CN111290790B (zh) * 2020-01-22 2023-03-24 安徽大学 一种定点转浮点的转换装置

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5346688A (en) * 1976-10-09 1978-04-26 Eburen Kk Tool

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3961170A (en) * 1971-04-22 1976-06-01 Ing. C. Olivetti & C., S.P.A. Fixed point to floating point conversion in an electronic computer
US3930232A (en) * 1973-11-23 1975-12-30 Raytheon Co Format insensitive digital computer
US4038538A (en) * 1975-08-18 1977-07-26 Burroughs Corporation Integer and floating point to binary converter
US4189715A (en) * 1978-10-04 1980-02-19 Bell Telephone Laboratories, Incorporated μ-Law to floating point converter
DE3037359A1 (de) * 1980-09-30 1982-04-29 Heinrich-Hertz-Institut für Nachrichtentechnik Berlin GmbH, 1000 Berlin Rechenwerkeinheit, insbesondere fuer gleitkomma-operationen
JPS5776634A (en) * 1980-10-31 1982-05-13 Hitachi Ltd Digital signal processor
US4553133A (en) * 1982-09-14 1985-11-12 Mobil Oil Corporation Serial floating point formatter
US4559620A (en) * 1982-09-14 1985-12-17 Mobil Oil Corporation Mass memory system addressing circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5346688A (en) * 1976-10-09 1978-04-26 Eburen Kk Tool

Also Published As

Publication number Publication date
US4631696A (en) 1986-12-23

Similar Documents

Publication Publication Date Title
JPS59149539A (ja) 固定小数点−浮動小数点変換装置
US5111421A (en) System for performing addition and subtraction of signed magnitude floating point binary numbers
JPH04290122A (ja) 数値表現変換装置
JP2689414B2 (ja) 浮動小数点表現変換器
WO2001025898A1 (en) Digital multiply-accumulate circuit that can operate on both integer and floating point numbers simultaneously
JP2511527B2 (ja) 浮動小数点演算器
JPS5911444A (ja) 浮動小数点数演算装置
JP2645422B2 (ja) 浮動小数点演算処理装置
JP2578482B2 (ja) 浮動小数点演算器
JPH0216632A (ja) 固定小数点数−浮動小数点数変換回路
JP2813513B2 (ja) データ変換回路
Buradkar et al. A 32-bit signed/unsigned fixed point non-restoring square-root operation using VHDL
JPH01212921A (ja) A/d変換回路
JP2556171B2 (ja) 演算回路
JPH0383125A (ja) 固定小数点―浮動小数点変換装置
CN116304505A (zh) 一种arm处理器的64位定点三角函数运算方法
JPS6126135A (ja) 浮動小数点デ−タ変換回路
JP2890412B2 (ja) 符号変換回路
JPH0540609A (ja) 浮動小数点除算装置
RU2248094C2 (ru) Устройство преобразования из десятичной системы счисления в двоичную
JPH03241421A (ja) 乗算器
JPH0241050B2 (ja)
JPH05274116A (ja) 浮動小数点演算装置
JPH03251916A (ja) 浮動小数点加減算装置
JPH03188523A (ja) 乗算回路