JPH07248894A - Floating-point arithmetic unit - Google Patents

Floating-point arithmetic unit

Info

Publication number
JPH07248894A
JPH07248894A JP6042176A JP4217694A JPH07248894A JP H07248894 A JPH07248894 A JP H07248894A JP 6042176 A JP6042176 A JP 6042176A JP 4217694 A JP4217694 A JP 4217694A JP H07248894 A JPH07248894 A JP H07248894A
Authority
JP
Japan
Prior art keywords
data
fpr
read
arithmetic unit
floating
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
JP6042176A
Other languages
Japanese (ja)
Inventor
Yoshinori Masuda
好徳 増田
Makoto Takiguchi
誠 瀧口
Chiaki Takahashi
千秋 高橋
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.)
Hitachi Ltd
Hitachi Computer Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Computer Engineering 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 Hitachi Ltd, Hitachi Computer Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP6042176A priority Critical patent/JPH07248894A/en
Publication of JPH07248894A publication Critical patent/JPH07248894A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To speed up an arithmetic processing treating floating point data of an extension accuracy form by shortening the reading and processing time of data and advancing the start of the processing by an arithmetic unit. CONSTITUTION:This device is a floating point arithmetic unit having two pairs of floating point register(FPR) reading ports of an 8-byte (long precision) width and speeds up an arithmetic processing where the FPR reading of a 16-byte (extended accuracy) width is required for the only one side of the ports. In this case, the first half 8-byte FPR reading address is set to a FAR 102 from the port on the side which is normally used, and at the same time, the second half 8-byte FPR reading address is set to an FBR 101 from the port on the unused side (the side opposite to the side which is normally used). Thus, the 16-byte FPR reading data can be read one time. These set data are rightly imparted to the input of an arithmetic unit 500 by the control of an arithmetic unit input select signal generation circuit 400 and the data is calculated.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、浮動小数点演算装置に
係り、特に、拡張精度データを演算入力とし、短精度、
長精度データを演算出力とする浮動小数点演算処理を行
う命令を高速に実行するために使用して好適な浮動小数
点演算装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a floating point arithmetic unit, and more particularly, to an extended precision data as an arithmetic input,
The present invention relates to a floating-point arithmetic unit suitable for use in high-speed execution of instructions for floating-point arithmetic processing that outputs long-precision data.

【0002】[0002]

【従来の技術】一般に、科学技術計算の分野では、浮動
小数点データ形式が主たるデータ表現形式として使用さ
れている。
2. Description of the Related Art Generally, in the field of scientific and technical computing, a floating point data format is used as a main data representation format.

【0003】図4は浮動小数点データのデータ形式の例
を説明する図であり、以下、図4を参照して、浮動小数
点データについて説明する。
FIG. 4 is a diagram for explaining an example of the data format of floating point data, and the floating point data will be described below with reference to FIG.

【0004】浮動小数点データは、通常、1ビットの符
号部Sと、7ビットの指数部と、仮数部とにより構成さ
れる。そして、1ビットの符号部Sは、仮数に対する符
号を示し、7ビットの指数部は、excess64表現
で16進数で表された仮数部を16の累乗倍する指数を
表している。また、仮数部は、最上位桁の左に小数点の
ある16進数である。
Floating point data is usually composed of a 1-bit sign part S, a 7-bit exponent part, and a mantissa part. The 1-bit sign part S represents the sign for the mantissa, and the 7-bit exponent part represents an exponent that is a multiple of 16 to the mantissa part represented by the hexadecimal number in the access64 representation. The mantissa part is a hexadecimal number with a decimal point to the left of the most significant digit.

【0005】浮動小数点数のデータ形式には、図4に示
すように、短精度形式、長精度形式、拡張精度形式の3
つの形式が有り、短精度浮動小数点データは、仮数部が
6桁3バイトを持つ全4バイトで構成され、長精度浮動
小数点データは、仮数部が14桁7バイトを持つ全8バ
イトで構成され、拡張精度浮動小数点データは、仮数部
が28桁14バイトを持つ全16バイトで構成されてい
る。
As shown in FIG. 4, the floating-point number data format has three formats: short precision format, long precision format, and extended precision format.
There are two formats: short-precision floating-point data consists of a total of 4 bytes with a mantissa of 6 digits and 3 bytes, and long-precision floating-point data consists of a total of 8 bytes with a mantissa of 14 digits and 7 bytes. The extended precision floating point data is composed of a total of 16 bytes with a mantissa part having 28 digits and 14 bytes.

【0006】図5はこのような短精度形式、長精度形
式、拡張精度形式の浮動小数点データを扱う本発明が適
用される浮動小数点演算装置の構成を示すブロック図で
あり、以下、図5を参照して、従来技術の場合の動作を
説明する。図5において、100は浮動小数点レジスタ
(FPR)、101は第1オペランド読み出しレジスタ
(FBR)、102は第2オペランド読み出しレジスタ
(FAR)、103は第1オペランド読み出し退避レジ
スタ(FBRH)、104は第2オペランド読み出し退
避レジスタ(FARH)、110、300、301は選
択回路、200はFPR読み出しアドレス生成回路、4
00は演算器入力セレクト信号生成回路、500は演算
器である。
FIG. 5 is a block diagram showing the configuration of a floating point arithmetic unit to which the present invention is applied, which handles floating point data of such short precision format, long precision format and extended precision format. The operation of the conventional technique will be described with reference to FIG. 5, 100 is a floating point register (FPR), 101 is a first operand read register (FBR), 102 is a second operand read register (FAR), 103 is a first operand read save register (FBRH), and 104 is a first operand read save register (FBRH). Two-operand read save register (FARH), 110, 300 and 301 are selection circuits, 200 is an FPR read address generation circuit, 4
00 is an arithmetic unit input select signal generation circuit, and 500 is an arithmetic unit.

【0007】図5に示す浮動小数点演算装置において、
FPR100は、8バイト幅のFPRデータ書き込みパ
ス9が接続される1つの書き込みポートと、各ポートが
8バイト幅で全16バイト幅のFPRデータ読み出しパ
ス11、12が接続される2つの読み出しポートとを備
える。選択回路110は、メモリからのデータとFPR
100からのデータとをセレクトする選択回路であり、
この例では、メモリからのデータ読み出しを考える必要
はない。
In the floating point arithmetic unit shown in FIG.
The FPR 100 has one write port to which the 8-byte width FPR data write path 9 is connected, and two read ports to which the FPR data read paths 11 and 12 each having an 8-byte width and a total of 16 bytes are connected. Equipped with. The selection circuit 110 uses the data from the memory and the FPR.
It is a selection circuit that selects data from 100,
In this example, it is not necessary to consider reading data from memory.

【0008】FPR100からのデータの読み出しは、
FPR読み出しアドレス生成回路200により生成され
たFPR読み出しアドレス(第1オペランド用)26と
FPR読み出しアドレス(第2オペランド用)27とに
より指示される。
Reading data from the FPR 100 is
It is designated by the FPR read address (for the first operand) 26 and the FPR read address (for the second operand) 27 generated by the FPR read address generation circuit 200.

【0009】FPR100から読み出され、FBR10
1、FAR102、FBRH103、FARH104に
設定されたオペランドデータは、演算器500に対する
入力選択回路300、301が、演算器入力セレクト信
号生成回路400からのセレクト信号41〜46の指示
によりセレクトされて演算器500に入力される。演算
器500で演算処理された結果は、メモリに書き込まれ
るか、あるいは、8バイト幅のFPR書き込みデータパ
ス9を介してFPR100に書き込まれる。
Read from FPR100, FBR10
Operand data set in 1, FAR102, FBRH103, and FARH104 is selected by the input selection circuits 300 and 301 for the arithmetic unit 500 according to the instruction of the select signals 41 to 46 from the arithmetic unit input select signal generation circuit 400. Is input to 500. The result of the arithmetic processing by the arithmetic unit 500 is written in the memory or is written in the FPR 100 via the 8-byte wide FPR write data path 9.

【0010】図5に示す浮動小数点演算装置による短精
度形式、長精度形式の浮動小数点データを扱う演算処理
は、1回の読み出しにより処理すべきデータ各8バイト
のデータをFPRデータ読み出しパス11、12を通し
てFBR101、FAR102に設定し、このデータを
選択回路300、301でセレクトして演算器500に
与え、演算器500に目的の演算を行わせた後、この演
算結果をFPR書き込みデータパス9を介しFPR10
0に書き込むことにより行うことができる。
In the arithmetic processing for handling the floating-point data in the short-precision format and the long-precision format by the floating-point arithmetic unit shown in FIG. 5, each 8-byte data to be processed by one reading is the FPR data read path 11, After setting the data in the FBR 101 and FAR 102 through 12, selecting the data in the selection circuits 300 and 301 and supplying the data to the arithmetic unit 500, and causing the arithmetic unit 500 to perform the target arithmetic operation, the arithmetic result is stored in the FPR write data path 9. Through FPR10
This can be done by writing to 0.

【0011】一方、拡張精度形式の浮動小数点データを
扱う演算処理は、2回の読み出しが必要であり、次のよ
うに行われる。
On the other hand, the arithmetic processing for handling the floating-point data in the extended precision format needs to be read twice, and is performed as follows.

【0012】すなわち、まず、1回目の読み出しにより
処理すべきデータの前半各8バイトをFBR101、F
AR102に設定する。そして、2回目の読み出し時
に、1回目の読み出しによりFBR101、FAR10
2に設定された前半各8バイトのデータを、それぞれ、
FBRH103、FARH104に退避すると共に、2
回目の読み出しにより読み出された後半各8バイトのデ
ータをFBR101、FAR102に設定する。
That is, first, the first 8 bytes of the first half of the data to be processed by the first reading are FBR 101, F
Set to AR102. Then, at the time of the second read, the FBR101 and FAR10 are read by the first read.
The first half 8 bytes of data set to 2, respectively,
Save to FBRH103, FARH104 and 2
The data of each 8 bytes in the latter half read out by the read-out operation is set in the FBR 101 and FAR 102.

【0013】2回のデータ読み出しによりFBR10
1、FAR102及びFBRH103、FARH104
に設定されたデータは、選択回路300、301でセレ
クトされた後、演算器500により目的の演算が施さ
れ、その結果が、FPR書き込みデータパス9を介し前
半8バイト、後半8バイトの2回に分けてFPR100
に書き込まれる。
FBR10 is obtained by reading data twice.
1, FAR102 and FBRH103, FARH104
After being selected by the selection circuits 300 and 301, the data set to No. 2 is subjected to the target operation by the operation unit 500, and the result is passed through the FPR write data path 9 twice in the first half 8 bytes and the second half 8 bytes. Divided into FPR100
Written in.

【0014】すなわち、図5に示す処理装置は、拡張精
度形式の浮動小数点データを扱う演算処理を行う場合、
2回の読み出し処理と2回の書き込み処理とが必要とな
るものである。
That is, when the processing device shown in FIG. 5 performs arithmetic processing for handling floating-point data of extended precision format,
This requires two read processes and two write processes.

【0015】前述のような処理装置で具体的な命令処理
を行わせる場合の動作例を、公知の情報処理装置で用い
られているLRDR(LOAD ROUNDED)命令
を例として次に説明する。
An operation example in the case of causing a specific instruction processing to be performed by the above-described processing device will be described below by taking an LRDR (LOAD ROUNDED) instruction used in a known information processing device as an example.

【0016】このLRDR(LOAD ROUNDE
D)命令のスペックは、「第2アドレス(R2)により
指定されたオペランドが丸められ、第1アドレス(R
1)により指定された浮動小数点レジスタにロードされ
る。丸めは16バイト幅を8バイト幅とする。」という
ものである。
This LRDR (LOAD ROUNDE
D) The spec of the instruction is that the operand designated by the second address (R2) is rounded and the first address (R2) is rounded.
It is loaded into the floating point register specified by 1). Rounding is 16 bytes wide to 8 bytes wide. ".

【0017】このLRDR命令を図5に示す処理装置で
処理する場合、1回目の読み出しにより処理すべきデー
タの前半8バイトがFAR102に設定される。2回目
の読み出し時、FAR102に設定された処理すべきデ
ータの前半8バイトがFARH104に退避されると共
に、2回目の読み出しにより読み出されたデータの後半
8バイトがFAR102に設定される。
When the LRDR instruction is processed by the processing device shown in FIG. 5, the first 8 bytes of the data to be processed are set in the FAR 102 by the first reading. During the second reading, the first 8 bytes of the data set in the FAR 102 to be processed are saved in the FAR 104, and the latter 8 bytes of the data read by the second reading are set in the FAR 102.

【0018】そして、FAR102及びFARH104
に設定されたデータは、選択回路300、301でセレ
クトされた後、演算器500により丸めの処理を受け、
その結果が、FPR書き込みデータパス9を介して10
0に書き込まれる。
Then, the FAR 102 and the FARH 104
After being selected by the selection circuits 300 and 301, the data set to is subjected to rounding processing by the arithmetic unit 500,
The result is 10 via the FPR write data path 9.
Written to zero.

【0019】LRDR命令は、前述のように処理される
が、ここで注目すべき点は、(A)1回目の読み出しで
FBR101が未使用となる点と、(B)2回目の読み
出しにより処理すべきデータがFAR102に設定され
るまで、演算器500により丸めの処理を開始すること
ができない点との2点である。
The LRDR instruction is processed as described above. The points to be noted here are (A) that the FBR 101 is unused at the first read, and (B) that is processed by the second read. Two points are that the rounding process cannot be started by the computing unit 500 until the data to be set is set in the FAR 102.

【0020】前述では、動作例として、LRDR命令を
例題して説明したが、一般に、FPR100の読み出し
ポートの片方についてのみ16バイトを読み出し、演算
結果について8バイトの書き込みを行う命令に対して
も、前記(A)、(B)2点のことがいえる。
In the above description, the LRDR instruction has been described as an example of the operation, but generally, for an instruction that reads 16 bytes only for one of the read ports of the FPR100 and writes 8 bytes for the operation result, The above two points (A) and (B) can be said.

【0021】なお、この種の浮動小数点演算装置に関す
る従来技術として、例えば、特開昭59−43441号
公報等に記載された技術が知られている。
As a prior art relating to this type of floating point arithmetic unit, for example, the technique described in Japanese Patent Laid-Open No. 59-43441 is known.

【0022】[0022]

【発明が解決しようとする課題】前述した従来技術は、
LRDR命令に対し2回の読み出しにより処理すべき1
6バイトのデータがFAR102、FARH104に設
定されるまで、演算器500による丸めの処理を開始す
ることができず、LRDR命令等の処理の高速化、すな
わち、拡張精度形式の浮動小数点データを扱う演算処理
の高速化を図ることができないという問題点を有してい
る。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
Should be processed by reading twice for LRDR instruction 1
The rounding process cannot be started by the computing unit 500 until 6-byte data is set in the FAR 102 and the FAR H104, and the processing of the LRDR instruction and the like is speeded up, that is, the arithmetic processing of floating-point data in the extended precision format. There is a problem that the processing speed cannot be increased.

【0023】本発明の目的は、前記従来技術の問題点を
解決し、データの読み出し処理時間を短縮し、演算器に
よる処理の開始を早め、これにより、拡張精度形式の浮
動小数点データを扱う演算処理の高速化を図ることがで
きる浮動小数点演算装置を提供することにある。
An object of the present invention is to solve the above-mentioned problems of the prior art, shorten the data read processing time, and speed up the start of processing by the arithmetic unit, whereby the arithmetic processing of floating-point data in the extended precision format is performed. It is an object of the present invention to provide a floating point arithmetic unit capable of speeding up processing.

【0024】[0024]

【課題を解決するための手段】本発明によれば前記目的
は、各8バイト(長精度)幅の2組の浮動小数点レジス
タ読み出しポートを有する浮動小数点演算装置におい
て、ポートの片方についてのみ16バイト(拡張精度)
幅の浮動小数点レジスタ読み出しを必要とする演算処理
を行う場合、前半8バイトのFPR読み出しアドレスを
通常に使用している側のポートに与え、後半8バイトの
FPR読み出しアドレスを他方の未使用側(通常に使用
している側の反対側)のポートに与えるようにして、一
度に16バイトのFPR読み出しデータを読み出すこと
を可能にした浮動小数点レジスタ読み出しアドレス生成
回路と、処理すべき演算入力データを保持するレジスタ
が前記アドレス生成回路により変更されるのに伴い、オ
ペランドデータの演算器入力を変更するための選択回路
及び演算器入力セレクト信号生成回路とを備えることに
より達成される。
According to the present invention, the above object is achieved in a floating point arithmetic unit having two sets of floating point register read ports each having a width of 8 bytes (long precision) and 16 bytes for only one of the ports. (Extended precision)
When performing arithmetic processing that requires reading the floating-point register of the width, the first half 8-byte FPR read address is given to the port that is normally used, and the second half 8-byte FPR read address is used on the other unused side ( The floating-point register read address generation circuit that enables to read 16 bytes of FPR read data at a time by giving it to the port on the side opposite to the side normally used, and the operation input data to be processed. This is achieved by providing a selecting circuit and an arithmetic unit input select signal generating circuit for changing the arithmetic unit input of the operand data as the holding register is changed by the address generating circuit.

【0025】[0025]

【作用】本発明は、前述した手段により、LRDR命令
等の16バイト(拡張精度)幅の浮動小数点レジスタ読
み出しを必要とする演算処理において、処理すべき16
バイトのデータ16を1回の読み出しにより設定するこ
とが可能となり、演算器による処理の開始を早めること
ができ、処理の高速化を図ることができる。
According to the present invention, by the above-mentioned means, 16 operations to be performed in the arithmetic processing which requires the reading of the floating point register of 16 bytes (extended precision) width such as the LRDR instruction.
The byte data 16 can be set by reading once, and the processing by the arithmetic unit can be started earlier and the processing can be speeded up.

【0026】また、本発明は、FPRの読み出しポート
の片方について16バイトのデータを読み出し、演算結
果について8バイトのデータの書き込みを行う命令に対
しても、演算器による目的の演算の開始を早めることが
てきるようになり、処理の高速化を図ることができる。
Further, according to the present invention, even for an instruction to read 16 bytes of data for one of the read ports of the FPR and write 8 bytes of data for the operation result, the operation unit starts the intended operation earlier. As a result, processing speed can be increased.

【0027】[0027]

【実施例】以下、本発明による浮動小数点演算装置の一
実施例を図面により詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a floating point arithmetic unit according to the present invention will be described in detail below with reference to the drawings.

【0028】図1は本発明の一実施例の浮動小数点演算
装置に使用するFPR読み出しアドレス生成回路の構成
を示すブロック図、図2はLRDR命令を例とした命令
デコード回路の動作を説明する図、図3はLRDR命令
を例とした演算器入力セレクト信号生成回路の動作を説
明する図である。なお、本発明の一実施例による浮動小
数点演算装置全体の構成は図5と同一である。図1にお
いて、205は命令デコード回路、206、207は+
2インクリメンタ、208、209は選択回路である。
FIG. 1 is a block diagram showing the configuration of an FPR read address generating circuit used in a floating point arithmetic unit according to one embodiment of the present invention, and FIG. 2 is a diagram for explaining the operation of an instruction decoding circuit using an LRDR instruction as an example. FIG. 3 is a diagram for explaining the operation of the arithmetic unit input select signal generation circuit using the LRDR instruction as an example. The overall structure of the floating point arithmetic unit according to the embodiment of the present invention is the same as that shown in FIG. In FIG. 1, 205 is an instruction decode circuit, 206 and 207 are +
Two incrementers 208 and 209 are selection circuits.

【0029】図1において、演算処理の開始時、FPR
番号R1、R2がFPRアドレスデータとしてFPR読
み出しアドレス生成回路200に与えられる。そして、
拡張精度命令の場合、このR1、R2で示されるFPR
番号は、1回目のFPR読み出しデータのFPRアドレ
スとして、それぞれパス51、53に与えられる。ま
た、2回目のFPR読み出しデータのFPRアドレスと
しては、+2インクリメンタ206、207でインクリ
メントしたR1+2、R2+2のアドレスがそれぞれパ
ス52、54に与えられる。
In FIG. 1, when the arithmetic processing is started, the FPR
The numbers R1 and R2 are given to the FPR read address generation circuit 200 as FPR address data. And
In case of extended precision instruction, FPR indicated by R1 and R2
The number is given to the paths 51 and 53 as the FPR address of the first FPR read data. As the FPR address of the second FPR read data, the addresses of R1 + 2 and R2 + 2 incremented by the +2 incrementers 206 and 207 are given to the paths 52 and 54, respectively.

【0030】パス51〜54は、命令デコード回路20
5からのセレクト信号によりセレクトされ、選択回路2
08、209を介して出力される、FPR読み出しアド
レス(第1オペランド用)26、FPR読み出しアドレ
ス(第2オペランド用)27に反映される。
The paths 51 to 54 are provided for the instruction decode circuit 20.
Selected by the select signal from 5, the selection circuit 2
It is reflected in the FPR read address (for the first operand) 26 and the FPR read address (for the second operand) 27 output via 08 and 209.

【0031】次に、前述のような構成を有するFPR読
み出しアドレス生成回路を有する演算処理装置におい
て、LRDR命令処理を行う場合を例として、従来技術
と本発明の一実施例による場合の動作を詳細に説明す
る。
Next, in the arithmetic processing unit having the FPR read address generating circuit having the above-mentioned configuration, the operation according to the prior art and one embodiment of the present invention will be described in detail by taking the case of performing the LRDR instruction processing as an example. Explained.

【0032】従来技術によるLRDR命令処理は、図5
により説明したように、1回目の読み出しにより処理す
べきデータの前半8バイトがFAR102に設定され、
2回目の読み出し時に、FAR102に設定された処理
すべきデータの前半8バイトがFARH104に退避さ
れると共に、2回目の読み出しにより読み出されたデー
タの後半8バイトがFAR102に設定されることによ
り行われる。
LRDR instruction processing according to the prior art is shown in FIG.
As described above, the first half 8 bytes of the data to be processed by the first read is set in the FAR 102,
At the time of the second read, the first 8 bytes of the data set in the FAR 102 to be processed are saved in the FAR 104, and the last 8 bytes of the data read by the second read are set in the FAR 102. Be seen.

【0033】この場合の読み出しアドレスは、図1にお
いて、R2で示されるFPR番号が1回目のFPR読み
出しデータのFPRアドレスとしてパス53、選択回路
209を介してFPR読み出しアドレス(第2オペラン
ド用)27に反映されるものが使用される。そして、2
回目のFPR読み出しデータのFPRアドレスとして、
+2インクリメンタ207でインクリメントしたアドレ
スR2+2が、パス54から選択回路209を通して、
FPR読み出しアドレス(第2オペランド用)27に反
映されるものが使用される。
The read address in this case is the FPR read address (for the second operand) 27 via the path 53 and the selection circuit 209 as the FPR address of the FPR read data for which the FPR number indicated by R2 in FIG. 1 is the first. What is reflected in is used. And 2
As the FPR address of the FPR read data for the second time,
The address R2 + 2 incremented by the +2 incrementer 207 is passed from the path 54 through the selection circuit 209,
The one reflected in the FPR read address (for the second operand) 27 is used.

【0034】この場合の命令デコード回路205のセレ
クト信号パス21〜24の状態と選択回路209から出
力されるFPR読み出しアドレス(第2オペランド用)
27の状態が図2(a)に示されている。
In this case, the states of the select signal paths 21 to 24 of the instruction decode circuit 205 and the FPR read address output from the select circuit 209 (for the second operand).
The state of No. 27 is shown in FIG.

【0035】本発明の一実施例は、2回目のFPR読み
出しデータのFPRアドレスR2+2をパス54から選
択回路209を通して、FPR読み出しアドレス(第2
オペランド用)27に反映させるのではなく、1回目の
FPR読み出しデータのFPRアドレスR2を、パス5
3、選択回路209を介してFPR読み出しアドレス
(第2オペランド用)27に反映させると同時に、パス
55から選択回路208を通して、FPR読み出しアド
レス(第1オペランド用)26に反映させるようにす
る。
In one embodiment of the present invention, the FPR address R2 + 2 of the second FPR read data is passed from the path 54 through the selection circuit 209 to the FPR read address (second
(For operand) 27, the FPR address R2 of the first FPR read data is set to pass 5
3. At the same time, it is reflected on the FPR read address (for the second operand) 27 via the selection circuit 209, and at the same time, it is reflected on the FPR read address (for the first operand) 26 from the path 55 through the selection circuit 208.

【0036】このため、パス55を選択するためのセレ
クト信号25を命令デコード回路205ににより生成す
る。このためのセレクト条件は、(1)LRDR命令で
あること、(2)1回目の読み出しであることの2つで
あり、これらの2つの条件のアンドをとることによりセ
レクト信号25を生成することができる。
Therefore, the select signal 25 for selecting the path 55 is generated by the instruction decode circuit 205. There are two select conditions for this purpose: (1) LRDR instruction and (2) first read, and the select signal 25 is generated by ANDing these two conditions. You can

【0037】この場合の命令デコード回路205のセレ
クト信号パス21〜25の状態と選択回路208、20
9から出力されるFPR読み出しアドレス(第1オペラ
ンド用)26の状態及びFPR読み出しアドレス(第2
オペランド用)27の状態とが図2(b)に示されてい
る。
In this case, the states of the select signal paths 21 to 25 of the instruction decoding circuit 205 and the selection circuits 208 and 20.
9, the state of the FPR read address (for the first operand) 26 and the FPR read address (for the second operand)
The state of (for operand) 27 is shown in FIG.

【0038】この図2(a)、(b)から判るように、
従来、読み出しアドレスを1回目にセレクト信号23に
よりアドレスR2として設定し、2回目にセレクト信号
24によりアドレスR2+2として設定することによ
り、2回の動作で設定していたのに対して、本発明の一
実施例では、1回目にセレクト信号23、25によりそ
れぞれアドレスR2、R2+2として1回の動作で設定
することができる。このため本発明の一実施例は、2回
目の読み出し処理を不要とすることができる。
As can be seen from FIGS. 2 (a) and 2 (b),
Conventionally, the read address is set as the address R2 by the select signal 23 at the first time and is set as the address R2 + 2 by the select signal 24 at the second time, which is set by the operation of two times. In one embodiment, the addresses R2 and R2 + 2 can be set in one operation by the first select signals 23 and 25, respectively. Therefore, the one embodiment of the present invention can eliminate the need for the second read processing.

【0039】本発明の一実施例は、前述により、図5に
おいて、1回の動作でFPRアドレスとして、パス26
にアドレスR2+2、パス27にアドレスR2を与える
ことができるので、LRDR命令の演算処理に必要なオ
ペランドデータを1回の動作でFBR101、FAR1
02に設定することができる。
As described above, the embodiment of the present invention uses the path 26 as the FPR address in one operation in FIG.
Since the address R2 + 2 can be given to the path 27 and the address R2 can be given to the path 27, the operand data necessary for the arithmetic processing of the LRDR instruction can be supplied in one operation to the FBR101 and FAR1.
It can be set to 02.

【0040】演算処理は、従来、演算処理に必要なオペ
ランドデータが、FAR102、FARH104に設定
された後に行われていた。ところが、前述したように、
本発明の一実施例においては、1回の動作でFPRアド
レスを設定することができ、演算処理に必要なオペラン
ドデータが異なる従来技術の場合とは異なるレジスタで
あるFBR101、FAR102に設定されることにな
るので、演算器500に対するオペランドデータの入力
方法を変更する必要が生じる。
Conventionally, the arithmetic processing is performed after the operand data required for the arithmetic processing is set in the FAR 102 and the FARH 104. However, as mentioned above,
In one embodiment of the present invention, the FPR address can be set by one operation, and the operand data required for the arithmetic processing is set in the different registers FBR101 and FAR102 which are different from those in the prior art. Therefore, it becomes necessary to change the method of inputting the operand data to the arithmetic unit 500.

【0041】もちろん、演算器500の演算処理を変更
することによっても対応することができるが、本発明の
一実施例では、演算器500に対する入力セレクト信号
生成回路400のセレクト信号パス41〜46の動作を
変更することにより対処するようにしている。
Of course, this can be dealt with by changing the arithmetic processing of the arithmetic unit 500, but in one embodiment of the present invention, the select signal paths 41 to 46 of the input select signal generating circuit 400 for the arithmetic unit 500 are connected. I am trying to deal with it by changing the operation.

【0042】すなわち、図3に示す演算器入力セレクト
信号生成回路400のセレクト信号の動作において、従
来技術の場合、図3(a)に示すように、動作の2回目
にセレクト信号43により図5のFAR102のデー
タ、セレクト信号45によりFARH104のデータの
それぞれを選択回路300、301によりセレクトして
演算器に与えていた。
That is, in the operation of the select signal of the arithmetic unit input select signal generating circuit 400 shown in FIG. 3, in the case of the conventional technique, as shown in FIG. The FAR 102 data and the FAR H104 data are selected by the selection circuits 300 and 301 and given to the arithmetic unit.

【0043】本発明の一実施例は、図3(b)に示すよ
うに、1回目にセレクト信号41によりFBR101の
データ、セレクト信号44によりFAR102のデータ
のそれぞれを選択回路300、301によりセレクトし
て演算器500に与えるようにしている。この場合の演
算器入力セレクト信号生成回路400のセレクト条件
は、(1)LRDR命令であること、(2)1回目の読
み出しであることの2つであり、これらの2つの条件の
アンドをとることにより、セレクト信号41、44を生
成することができ、これにより、演算器500に入力さ
れるオペランドデータの値を保証することができる。
In one embodiment of the present invention, as shown in FIG. 3 (b), the first selection signal 41 selects the data of the FBR 101 and the selection signal 44 selects the data of the FAR 102 by the selection circuits 300 and 301, respectively. And is given to the computing unit 500. In this case, there are two select conditions of the arithmetic unit input select signal generation circuit 400: (1) LRDR instruction and (2) first read, and these two conditions are ANDed. As a result, the select signals 41 and 44 can be generated, whereby the value of the operand data input to the arithmetic unit 500 can be guaranteed.

【0044】前述したように本発明の一実施例によれ
ば、通常、2回目読み出し処理に使用するFPR読み出
しアドレスR2+2(第2オペランド後半8バイト用)
を、1回目の読み出し時に、未使用である第1オペラン
ド用アドレスに乗せるようにしているので、1回の読み
出し処理により、16バイト分のデータを読み出し、こ
の読み出された16バイトのデータを、演算器入力セレ
クト信号生成回路の制御により正しく演算器に入力する
ことができるので、高速に正しい演算処理を行うことが
できる。
As described above, according to the embodiment of the present invention, the FPR read address R2 + 2 (for the latter 8 bytes of the second operand) which is usually used for the second read processing is used.
At the time of the first read, since it is placed on the unused first operand address, 16 bytes of data are read by one read process, and the read 16 bytes of data are read. Since the arithmetic unit input select signal generation circuit can be correctly input to the arithmetic unit by controlling the arithmetic unit input selection signal generation circuit, correct arithmetic processing can be performed at high speed.

【0045】これにより、本発明の一実施例は、LRD
R命令に関して、演算すべきオペランドデータの設定を
早めることができ、その結果、演算の開始を早めること
が可能となり、LRDR命令の処理の高速化を計ること
ができる。また、本発明は、LRDR命令に限らず、F
PRを片方のポートについてのみ16バイト読み出し、
結果として8バイトのデータ書き込む命令に対しても、
同様に処理の高速化を計ることができる。
Accordingly, one embodiment of the present invention is the LRD.
With respect to the R instruction, the setting of operand data to be operated can be accelerated, and as a result, the operation can be started earlier, and the processing speed of the LRDR instruction can be increased. Further, the present invention is not limited to the LRDR instruction,
Read 16 bytes of PR for only one port,
As a result, even for an instruction to write 8 bytes of data,
Similarly, the processing speed can be increased.

【0046】[0046]

【発明の効果】以上説明したように本発明によれば、デ
ータの読み出し処理時間を短縮し、演算器による処理の
開始を早め、これにより、拡張精度形式の浮動小数点デ
ータを扱う演算処理の高速化を図ることができる。
As described above, according to the present invention, the data read processing time is shortened, and the processing by the arithmetic unit is started earlier, which enables high-speed arithmetic processing for handling floating-point data in extended precision format. Can be realized.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例の浮動小数点演算装置に使用
するFPR読み出しアドレス生成回路の構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration of an FPR read address generation circuit used in a floating point arithmetic unit according to an embodiment of the present invention.

【図2】LRDR命令を例とした命令デコード回路の動
作を説明する図である。
FIG. 2 is a diagram illustrating an operation of an instruction decoding circuit using an LRDR instruction as an example.

【図3】LRDR命令を例とした演算器入力セレクト信
号生成回路の動作を説明する図である。
FIG. 3 is a diagram illustrating an operation of an arithmetic unit input select signal generation circuit using an LRDR instruction as an example.

【図4】浮動小数点データのデータ形式の例を説明する
図である。
FIG. 4 is a diagram illustrating an example of a data format of floating point data.

【図5】本発明が適用される浮動小数点演算装置の構成
を示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a floating point arithmetic unit to which the present invention is applied.

【符号の説明】[Explanation of symbols]

100 浮動小数点レジスタ(FPR) 101 第1オペランド読み出しレジスタ(FBR) 102 第2オペランド読み出しレジスタ(FAR) 103 第1オペランド読み出し退避レジスタ(FBR
H) 104 第2オペランド読み出し退避レジスタ(FAR
H) 110、208、209、300、301 選択回路 200 FPR読み出しアドレス生成回路 205 命令デコード回路 206、207 +2インクリメンタ 400 演算器入力セレクト信号生成回路 500 演算器
100 Floating Point Register (FPR) 101 First Operand Read Register (FBR) 102 Second Operand Read Register (FAR) 103 First Operand Read Save Register (FBR)
H) 104 second operand read save register (FAR
H) 110, 208, 209, 300, 301 selection circuit 200 FPR read address generation circuit 205 instruction decode circuit 206, 207 +2 incrementer 400 arithmetic unit input select signal generation circuit 500 arithmetic unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 瀧口 誠 神奈川県秦野市堀山下1番地 日立コンピ ュータエンジニアリング株式会社内 (72)発明者 高橋 千秋 神奈川県秦野市堀山下1番地 日立コンピ ュータエンジニアリング株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Makoto Takiguchi 1 Horiyamashita, Hadano City, Kanagawa Hitachi Computer Engineering Co., Ltd. (72) Inventor Chiaki Takahashi 1 Horiyamashita, Hadano City, Kanagawa Hitachi Computer Ta Engineering Co., Ltd.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 長精度幅の2組の浮動小数点レジスタ読
み出しポートを有する浮動小数点演算装置において、ポ
ートの片方についてのみ拡張精度幅の浮動小数点レジス
タ読み出しを必要とする演算処理を、前半の半分のバイ
ト数に対する浮動小数点レジスタ読み出しアドレスを通
常に使用している側のポートに与え、後半の半分のバイ
ト数に対する浮動小数点レジスタ読み出しアドレスを他
方のポートに与えることにより、浮動小数点レジスタか
ら一度に拡張精度幅に対応するバイト数のデータを読み
出して、演算を実行すること特徴とする浮動小数点演算
装置。
1. A floating-point arithmetic unit having two sets of floating-point register read ports of long-precision width, wherein arithmetic processing requiring floating-point register read of extended-precision width for only one of the ports is The floating-point register read address for the number of bytes is given to the normally used port, and the floating-point register read address for the number of bytes in the latter half of the half is given to the other port. A floating-point arithmetic unit characterized by reading data of the number of bytes corresponding to the width and executing the arithmetic.
JP6042176A 1994-03-14 1994-03-14 Floating-point arithmetic unit Pending JPH07248894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6042176A JPH07248894A (en) 1994-03-14 1994-03-14 Floating-point arithmetic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6042176A JPH07248894A (en) 1994-03-14 1994-03-14 Floating-point arithmetic unit

Publications (1)

Publication Number Publication Date
JPH07248894A true JPH07248894A (en) 1995-09-26

Family

ID=12628682

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6042176A Pending JPH07248894A (en) 1994-03-14 1994-03-14 Floating-point arithmetic unit

Country Status (1)

Country Link
JP (1) JPH07248894A (en)

Similar Documents

Publication Publication Date Title
US4228498A (en) Multibus processor for increasing execution speed using a pipeline effect
US4658355A (en) Pipeline arithmetic apparatus
US4085450A (en) Performance invarient execution unit for non-communicative instructions
JPH0414385B2 (en)
EP0913764B1 (en) Method and apparatus for shifting data
US4631672A (en) Arithmetic control apparatus for a pipeline processing system
JPS6227412B2 (en)
JPH034936B2 (en)
JPH0748179B2 (en) Data processing device
JPH07248894A (en) Floating-point arithmetic unit
JP2002229970A (en) Simd product sum operation method, sum of product sum arithmetic circuit and semiconductor integrated circuit device
JPH0991118A (en) Floating point arithmetic unit
JP2567134B2 (en) Bit field logical operation processing device and monolithic microprocessor having the same
JPH0560629B2 (en)
US4685077A (en) Data processing apparatus having binary multiplication capability
JP3435744B2 (en) Multiplication circuit
JPH0588893A (en) Parallel operation processor
JPH01237766A (en) Data processor and picture data processing system using data processor
JP3759742B2 (en) Data processing device
JPH0266625A (en) Data processor
JPH02244329A (en) Digital signal processor
JPH02255916A (en) Data processing system
JPS61296435A (en) Microprogram control system
JPS63629A (en) Data processing system
JPH0792902A (en) Programmable controller