JPH04316127A - Information processor - Google Patents

Information processor

Info

Publication number
JPH04316127A
JPH04316127A JP3083899A JP8389991A JPH04316127A JP H04316127 A JPH04316127 A JP H04316127A JP 3083899 A JP3083899 A JP 3083899A JP 8389991 A JP8389991 A JP 8389991A JP H04316127 A JPH04316127 A JP H04316127A
Authority
JP
Japan
Prior art keywords
data
format
instruction
register file
performs
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
JP3083899A
Other languages
Japanese (ja)
Inventor
Jiro Miyake
二郎 三宅
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP3083899A priority Critical patent/JPH04316127A/en
Publication of JPH04316127A publication Critical patent/JPH04316127A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the time required by an information processor for converting data of an intermediate from into data of a prescribed form so as to improve the performance of the processor by performing arithmetic operation by using the data of the intermediate form. CONSTITUTION:The information processor is provided with a register file 1 for storing data of an intermediate form or prescribed final form and the format indicating the form of the data, adder 3 which outputs results of arithmetic operation in an intermediate form, and data converter 7 which normalizes the data of the inetemediate form in accordance with the format and the adder 3 and a multiplier 4 performs arithmetic operation on the data read out of the file 2 by judging the form of the data from the format. The converter 7 inputs the data of a register read out of the file 1 and their format and, when the format/indicates that the data is of the intermediate form, converts the data into the data of the final form. When the format indicates that the data are of the final form, the converter 7 outputs the data as they are.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、演算器とレジスタファ
イルを有し、命令で指定された演算を行なう情報処理装
置、特に、演算の中間形式の結果を使って高速に処理を
行なう情報処理装置に関するものである。
[Industrial Application Field] The present invention relates to an information processing device that has an arithmetic unit and a register file and performs operations specified by instructions, and in particular, an information processing device that performs high-speed processing using intermediate results of operations. It is related to the device.

【0002】0002

【従来の技術】従来、情報処理装置において、命令によ
って指示される演算が複雑な場合、その演算を複数サイ
クル用いて行なうことが多い。例えば浮動小数点演算の
場合、1または複数サイクルで演算を行ない、得られた
中間形式の結果に対し次のサイクルで丸めおよび所定の
形式への変換(正規化とよぶ)を行なう。このような浮
動小数点演算を行なう情報処理装置について説明する。
2. Description of the Related Art Conventionally, in information processing apparatuses, when an operation instructed by an instruction is complex, the operation is often performed using multiple cycles. For example, in the case of floating point arithmetic, the arithmetic is performed in one or more cycles, and the resulting intermediate format result is rounded and converted into a predetermined format (referred to as normalization) in the next cycle. An information processing device that performs such floating point operations will be described.

【0003】図5に従来の情報処理装置のブロック図を
示す。図5において、20はレジスタファイルであり、
データを格納するレジスタを複数有する。21は浮動小
数点の加減算を行なう加算器、22は浮動小数点の乗除
算を行なう乗算器、23は2つの命令間でデータの依存
を検出するデータ依存検出器、24は加算器21または
乗算器22の結果を選択して出力する選択回路、25は
データを格納するメモリ装置である。
FIG. 5 shows a block diagram of a conventional information processing device. In FIG. 5, 20 is a register file,
It has multiple registers to store data. 21 is an adder that performs floating point addition and subtraction; 22 is a multiplier that performs floating point multiplication and division; 23 is a data dependency detector that detects data dependence between two instructions; 24 is adder 21 or multiplier 22 25 is a memory device that stores data.

【0004】簡単に動作を説明する。ロード命令を用い
てデータをメモリ装置25からレジスタファイル20へ
取り込む。演算命令を用いて、必要なデータをレジスタ
ファイル20から読みだし、加算器21または乗算器2
2に与え、演算命令で指定した演算を行ない、結果を選
択回路24で選択して、レジスタファイル20に格納す
る。演算を繰り返し、必要な結果が得られたら、ストア
命令を用いて、レジスタファイル20からメモリ装置2
5へ結果を書き込む。通常、これらの処理を高速に行な
うために、1つの命令の処理を複数のステージに分け、
複数の命令の処理をオーバーラップさせて行なうパイプ
ライン処理が行なわれる。
[0004] The operation will be briefly explained. Data is loaded from the memory device 25 into the register file 20 using a load instruction. Using an arithmetic instruction, necessary data is read from the register file 20, and the adder 21 or multiplier 2
2, performs the operation specified by the operation instruction, selects the result in the selection circuit 24, and stores it in the register file 20. After repeating the operation and obtaining the desired result, use a store instruction to store data from the register file 20 in the memory device 2.
Write the result to 5. Normally, in order to perform these processes at high speed, the processing of one instruction is divided into multiple stages.
Pipeline processing is performed in which multiple instructions are processed in an overlapping manner.

【0005】この従来例では、浮動小数点の加減算命令
および乗除算命令は、フェッチステージF、デコードス
テージD、第1の演算ステージE1、第2の演算ステー
ジE2、およびストアステージSによって処理される。 フェッチステージFで命令のフェッチを行ない、デコー
ドステージDで命令をデコードし、演算に必要なデータ
をレジスタファイルから読みだし、第1の演算ステージ
E1で命令によって指示された演算を行ない、第2の演
算ステージE2で第1の演算ステージで得られた中間形
式の結果の下位の桁の丸めと所定の形式への正規化を行
なう。ストアステージSでは正規化された結果を命令で
指定されたレジスタへ格納する。また、データ依存検出
器23によって2つの命令間でデータの依存が生じた場
合、例えば、乗算命令の結果を次の加算命令が使って演
算を行なう場合、乗算命令のストアステージSの次のサ
イクルから加算命令の演算を行なうのではなく、乗算命
令の結果をレジスタファイルへ与えるのと同時に直接、
加算器に与えるというバイパスを行なうことによって、
乗算命令のストアステージSと同時に加算命令の第1の
演算ステージE1を開始できる。
In this conventional example, floating point addition/subtraction instructions and multiplication/division instructions are processed by a fetch stage F, a decode stage D, a first arithmetic stage E1, a second arithmetic stage E2, and a store stage S. The fetch stage F fetches the instruction, the decode stage D decodes the instruction, reads the data necessary for the operation from the register file, the first operation stage E1 performs the operation specified by the instruction, and the second operation stage E1 performs the operation specified by the instruction. In the calculation stage E2, the lower digits of the intermediate format result obtained in the first calculation stage are rounded and normalized to a predetermined format. In the store stage S, the normalized result is stored in the register specified by the instruction. In addition, if a data dependency occurs between two instructions by the data dependency detector 23, for example, if the next addition instruction uses the result of a multiplication instruction to perform an operation, the next cycle of the store stage S of the multiplication instruction Instead of performing an addition instruction operation from
By bypassing the adder,
The first calculation stage E1 of the addition instruction can be started simultaneously with the store stage S of the multiplication instruction.

【0006】図6に従来の情報処理装置でのパイプライ
ン動作を示す。FADDr1,r2,r3は加算命令で
レジスタr1とレジスタr2のデータを加算し、結果を
レジスタr3に格納する。図6では、第1の命令と第2
の命令間でデータ依存がなく、第2の命令と第3の命令
間でデータの依存がある場合を示す。第3の命令では、
演算に必要なデータがすぐに得られないので1サイクル
待たされる。
FIG. 6 shows a pipeline operation in a conventional information processing device. FADDr1, r2, and r3 add the data in register r1 and register r2 by an addition instruction, and store the result in register r3. In Figure 6, the first instruction and the second
This shows a case where there is no data dependence between the instructions of , and there is data dependence between the second instruction and the third instruction. In the third command,
Since the data necessary for the calculation cannot be obtained immediately, the operation is forced to wait for one cycle.

【0007】従来の情報処理装置では、演算には直接必
要でない下位の桁の丸めや正規化といった所定の形式へ
の変換を常に行なっていた。
Conventional information processing devices always perform conversion into a predetermined format, such as rounding and normalization of lower digits that are not directly necessary for calculations.

【0008】[0008]

【発明が解決しようとする課題】このように、従来の情
報処理装置では、所定の形式へ変換する前の中間形式の
データで演算が可能であるにもかかわらず、各演算命令
で所定の形式への変換を行ない、そのために余分なサイ
クルを必要として、処理時間の増大、即ち性能低下をも
たらすという問題点があった。
[Problems to be Solved by the Invention] As described above, in conventional information processing devices, although it is possible to perform calculations on data in an intermediate format before conversion to a predetermined format, There is a problem in that an extra cycle is required for the conversion, resulting in an increase in processing time, that is, a decrease in performance.

【0009】本発明は、かかる問題点に鑑みてなされた
もので、中間形式のデータを用いて演算を行ない、演算
処理時間を短縮することが可能な情報処理装置を提供す
ることを目的としている。
The present invention has been made in view of these problems, and an object of the present invention is to provide an information processing device that can perform calculations using intermediate format data and shorten the calculation processing time. .

【0010】0010

【課題を解決する為の手段】本発明の請求項1に係る情
報処理装置は、命令で指定された演算を行なって、結果
を中間形式で出力する演算器と、中間形式または所定の
最終形式のデータと前記データが中間形式か所定の最終
形式かを示すフォーマットを格納するレジスタを複数有
するレジスタファイルと、前記フォーマットに従って、
中間形式のデータを正規化するデータ変換器とを備え、
前記演算器は前記レジスタファイルから読みだされたレ
ジスタのデータとフォーマットを入力として、前記フォ
ーマットが示すデータの形式により前記データに対し演
算を行ない、前記データ変換器は前記レジスタファイル
から読みだされたレジスタのデータとフォーマットを入
力として、前記フォーマットによって前記データが中間
形式であることが示されると前記データを最終形式に変
換し、前記フォーマットによって前記データが最終形式
であることが示されると前記データをそのまま出力する
ものである。
[Means for Solving the Problems] An information processing device according to claim 1 of the present invention includes a computing unit that performs an operation specified by an instruction and outputs the result in an intermediate format, and an intermediate format or a predetermined final format. a register file having a plurality of registers storing data and a format indicating whether the data is in an intermediate format or a predetermined final format, and according to the format,
a data converter for normalizing data in an intermediate format;
The arithmetic unit receives the register data and format read from the register file as input, and performs an operation on the data according to the data format indicated by the format, and the data converter receives the register data and format read from the register file. Taking the data and format of the register as input, converting the data to the final format if the format indicates that the data is in the intermediate format, and converting the data to the final format if the format indicates that the data is in the final format. is output as is.

【0011】また本発明の請求項2に係る情報処理装置
は、命令で指定された演算を行なって、中間形式の結果
と最終形式の結果を出力する1つまたは複数の演算器と
、最終形式のデータを格納するレジスタを複数有するレ
ジスタファイルと、第1および第2の命令間でデータの
依存を検出するデータ依存検出器とを備え、前記データ
依存検出器によって、第1の命令の結果を第2の命令が
使用することが検出されると、前記第2の命令の演算を
行なう演算器は前記第1の命令の演算を行なった演算器
の中間形式の結果を使って演算を行なうものである。
Further, the information processing device according to claim 2 of the present invention includes one or more arithmetic units that perform an operation specified by an instruction and output a result in an intermediate format and a result in a final format; a register file having a plurality of registers for storing data, and a data dependence detector for detecting data dependence between the first and second instructions, and the data dependence detector detects the result of the first instruction. When it is detected that the second instruction is used, the arithmetic unit that performs the calculation of the second instruction performs the calculation using the intermediate format result of the calculation unit that performed the calculation of the first instruction. It is.

【0012】0012

【作用】本発明は上記した構成により、中間形式のデー
タを用いて演算を行なえるので、中間形式から最終形式
に変換する時間が短縮される。
[Operation] With the above-described configuration, the present invention can perform calculations using data in an intermediate format, so that the time required to convert from the intermediate format to the final format can be shortened.

【0013】[0013]

【実施例】【Example】

(実施例1)図1に、本発明の情報処理装置の実施例1
のブロック図を示す。
(Example 1) FIG. 1 shows Example 1 of the information processing apparatus of the present invention.
The block diagram is shown below.

【0014】この図において、1はレジスタファイルで
あり、複数のレジスタ2からなる。各レジスタ2はデー
タ部2aとフォーマット部2bからなり、データ部2a
には中間形式または正規化されたデータが格納され、フ
ォーマット部2bにはデータ部2aのデータが中間形式
か、正規化されているかを示すフォーマットが格納され
る。本実施例では、フォーマットが0の場合は正規化さ
れたデータであり、1の場合は中間形式のデータである
とする。3は加算器であり、浮動小数点の加減算を行な
い、中間形式で結果を出力する。4は乗算器であり、浮
動小数点の乗除算を行ない、中間形式で結果を出力する
。5は選択回路であり、命令に従って、加算器3の結果
かまたは乗算器4の結果を選択して、レジスタファイル
1に出力する。25はメモリ装置であり、従来例と同様
にデータを正規化された形式で格納する。7はレジスタ
2のフォーマットに従って、中間形式のデータを正規化
してメモリ装置25に出力するデータ変換器である。
In this figure, 1 is a register file, which consists of a plurality of registers 2. Each register 2 consists of a data section 2a and a format section 2b.
The intermediate format or normalized data is stored in the format section 2b, and the format indicating whether the data in the data section 2a is in the intermediate format or normalized format is stored in the format section 2b. In this embodiment, if the format is 0, it is normalized data, and if the format is 1, it is intermediate format data. 3 is an adder which performs addition and subtraction of floating point numbers and outputs the result in an intermediate format. 4 is a multiplier which performs floating point multiplication and division and outputs the result in an intermediate format. A selection circuit 5 selects either the result of the adder 3 or the result of the multiplier 4 and outputs it to the register file 1 according to an instruction. A memory device 25 stores data in a normalized format as in the conventional example. A data converter 7 normalizes the intermediate format data according to the format of the register 2 and outputs the normalized data to the memory device 25.

【0015】以下、本実施例の情報処理装置の動作を簡
単に説明する。メモリ装置25に格納されている正規化
されたデータをロード命令を用いてレジスタファイル1
の命令で指定されたレジスタのデータ部2bへ格納する
。このデータは正規化されているので、フォーマット部
2aには0が格納される。
The operation of the information processing apparatus of this embodiment will be briefly explained below. The normalized data stored in the memory device 25 is loaded into the register file 1 using a load instruction.
is stored in the data section 2b of the register specified by the instruction. Since this data has been normalized, 0 is stored in the format section 2a.

【0016】次にこのデータに対し、加算命令により加
算を行なう。加算命令によって指定されるレジスタが読
みだされ、フォーマットとともに加算器3へデータが与
えられる。加算器3はフォーマットによりデータが正規
化されているとして演算を行なう。演算結果は中間形式
として出力され、選択回路5によって選択され、レジス
タファイル1へ与えられる。演算結果は中間形式のまま
加算命令で指定されるレジスタへ格納される。このとき
対応するフォーマット部2aには1が格納される。
Next, addition is performed on this data using an addition instruction. The register specified by the addition instruction is read out, and the data is given to the adder 3 along with the format. The adder 3 performs calculations assuming that the data has been normalized by the format. The calculation result is output as an intermediate format, selected by the selection circuit 5, and given to the register file 1. The operation result is stored in intermediate format in the register specified by the addition instruction. At this time, 1 is stored in the corresponding format section 2a.

【0017】次に、このデータに対し、加算命令により
加算を行なうと、今度はフォーマットによりデータが中
間形式であるとして演算を行なう。必要な演算を繰り返
した後、演算結果をストア命令を用いて、メモリ装置2
5に格納する。この時、ストア命令で指定されたレジス
タのデータがフォーマットと共に読みだされ、データ変
換器7に送られる。データ変換器7では、フォーマット
によりデータが正規化されていることがわかると、その
ままデータをメモリ装置25に出力し、データが中間形
式であることがわかると、正規化してメモリ装置25に
出力する。データの変換はメモリのアドレス計算と並行
して行なうことができるので、従来と比べて、ストア命
令の実行時間が長くなることはない。プログラマがレジ
スタのデータを参照するときはストア命令でメモリ装置
にレジスタのデータを書き込むので、レジスタファイル
に2種類の形式のデータが存在しても、プログラム上問
題はない。レジスタファイルのデータをメモリ装置を介
さずに他の処理装置へ直接転送するシステムにおいては
、レジスタファイルと他の処理装置の間にデータ変換器
を置けばよい。
Next, when an addition is performed on this data using an addition instruction, the calculation is performed assuming that the data is in an intermediate format due to the format. After repeating the necessary operations, the operation results are stored in the memory device 2 using a store instruction.
Store in 5. At this time, the data in the register specified by the store instruction is read out along with the format and sent to the data converter 7. When the data converter 7 finds that the data is normalized by the format, it outputs the data as is to the memory device 25, and when it finds that the data is in an intermediate format, it normalizes it and outputs it to the memory device 25. . Since data conversion can be performed in parallel with memory address calculation, the execution time of a store instruction does not become longer than in the past. When a programmer refers to register data, he writes the register data to the memory device using a store instruction, so there is no problem with the program even if there are two types of data in the register file. In a system in which register file data is directly transferred to another processing device without going through a memory device, a data converter may be placed between the register file and the other processing device.

【0018】図2に、図1の実施例のパイプライン動作
を示す。演算命令はフェッチステージF、デコードステ
ージD、実行ステージE、およびストアステージSの4
つのステージで処理される。
FIG. 2 shows the pipeline operation of the embodiment of FIG. There are four operation instructions: fetch stage F, decode stage D, execution stage E, and store stage S.
Processed in two stages.

【0019】このように本実施例では浮動小数点演算の
実行ステージで下位の桁の丸めや正規化を行なわないの
で、従来例と比べ、1サイクル早く命令を完了し、結果
をレジスタファイルに格納することができる。また本実
施例によれば、中間形式のデータは下位の桁の丸めを行
なう前のデータであるので、丸めによるデータの精度の
低下を少なくすることができる。
In this way, in this embodiment, the lower digits are not rounded or normalized at the execution stage of the floating-point operation, so the instruction is completed one cycle earlier than in the conventional example, and the result is stored in the register file. be able to. Furthermore, according to the present embodiment, since the intermediate format data is data before rounding of lower digits, it is possible to reduce the decrease in data accuracy due to rounding.

【0020】(実施例2)図3に、本発明の実施例2の
情報処理装置のブロック図を示す。
(Embodiment 2) FIG. 3 shows a block diagram of an information processing apparatus according to Embodiment 2 of the present invention.

【0021】20はレジスタファイルであり、従来例と
同様に正規化されたデータを格納する。10は浮動小数
点の加減算を行なう加算器であり、演算を行ない、中間
形式で結果を出力する演算部11と、中間形式の結果の
丸めと正規化を行なう変換部12からなる。13は浮動
小数点の乗除算を行なう乗算器であり、加算器10と同
様に、演算部14と変換部15からなる。通常、演算命
令は従来例と同様に、正規化されたデータをレジスタフ
ァイル20から読みだし、加算器10または乗算器13
で演算し、正規化された結果を選択回路24で選択し、
レジスタファイル20へ格納する。
A register file 20 stores normalized data as in the conventional example. Reference numeral 10 denotes an adder that performs addition and subtraction of floating point numbers, and is composed of an arithmetic unit 11 that performs operations and outputs results in an intermediate format, and a conversion unit 12 that performs rounding and normalization of the results in the intermediate format. A multiplier 13 performs floating point multiplication and division, and like the adder 10, it is composed of an arithmetic unit 14 and a conversion unit 15. Normally, an operation instruction reads normalized data from the register file 20 and sends it to the adder 10 or multiplier 13, as in the conventional example.
and selects the normalized result in the selection circuit 24,
Store it in the register file 20.

【0022】2つの命令間でデータの依存がある場合、
例えば、第1の命令が加算命令で第2の命令が第1の命
令の演算結果を用いて乗算を行なう場合、データ依存検
出器23によって、上に示したデータ依存が検出される
と、乗算器13は加算器10の演算部11が出力する中
間形式の演算結果を入力データの1つとし、レジスタフ
ァイル20から読みだされた正規化されたデータを他の
入力データとして演算を行なう。このように加算器10
の変換部12による演算結果の正規化を待たずに次の演
算を行なうことができる。ただし、第2の命令の実行時
に第1の命令の結果がレジスタファイル20に格納され
ている場合は、この格納された第1の命令の結果を用い
ることもできる。
[0022] If there is a data dependency between two instructions,
For example, when the first instruction is an addition instruction and the second instruction performs multiplication using the operation result of the first instruction, if the data dependence detector 23 detects the data dependence shown above, the multiplication The unit 13 uses the intermediate-format calculation result outputted by the calculation unit 11 of the adder 10 as one input data, and performs calculations using the normalized data read from the register file 20 as other input data. In this way adder 10
The next calculation can be performed without waiting for the calculation result to be normalized by the conversion unit 12. However, if the result of the first instruction is stored in the register file 20 when the second instruction is executed, the stored result of the first instruction can also be used.

【0023】図4に、図3の実施例における情報処理装
置のパイプライン動作を示す。パイプラインは従来例と
同様に、F、D、E1、E2、およびSの5つのステー
ジから構成される。通常の演算命令は従来例と同じサイ
クルで終了されるが、2つの命令間でデータの依存があ
る場合は、最初の命令のE2ステージと同時に次の命令
のE1ステージを開始することができ、従来例と比べて
、後の命令は1サイクル早く完了する。また中間形式の
データは下位の桁の丸めを行なう前のデータであるので
、丸めによるデータの精度の低下を少なくすることがで
きる。
FIG. 4 shows the pipeline operation of the information processing apparatus in the embodiment of FIG. The pipeline is composed of five stages: F, D, E1, E2, and S, as in the conventional example. A normal operation instruction is finished in the same cycle as the conventional example, but if there is a data dependency between two instructions, the E1 stage of the next instruction can be started at the same time as the E2 stage of the first instruction. Compared to the conventional example, the subsequent instructions are completed one cycle earlier. Further, since the intermediate format data is data before rounding of lower digits, it is possible to reduce the decrease in data accuracy due to rounding.

【0024】なお本実施例では、乗算器13は加算器1
0の演算部11が出力する中間形式の演算結果を入力デ
ータの1つとし、レジスタファイル20から読みだされ
た正規化されたデータを他の入力データとして演算を行
なう場合を示したが、演算器が1つでその演算器の中間
結果をその演算器自身の入力として使用する情報処理装
置にも適用できる。
Note that in this embodiment, the multiplier 13 is the adder 1
In the above example, the calculation result in the intermediate format output by the calculation unit 11 of 0 is used as one input data, and the normalized data read from the register file 20 is used as other input data to perform the calculation. The present invention can also be applied to an information processing device that has one processor and uses the intermediate result of the processor as an input to the processor itself.

【0025】また実施例1,2では加算器と乗算器の2
つの演算器を示したが、3つ以上の演算器の場合でも各
実施例の効果が得られる。また加算器と乗算器以外のフ
ォーマット変換器,シフタ等の演算器に実施例1,2の
構成を有することも可能である。さらに、実施例1,2
では浮動小数点の演算を行なう場合を示したが、中間形
式で演算可能な整数演算を行なう装置などの情報処理装
置に適用することができる。
In addition, in the first and second embodiments, two of the adders and multipliers are
Although one arithmetic unit is shown, the effects of each embodiment can be obtained even in the case of three or more arithmetic units. It is also possible to have the configurations of the first and second embodiments in arithmetic units such as format converters and shifters other than adders and multipliers. Furthermore, Examples 1 and 2
Although the case where floating-point operations are performed has been described above, the present invention can be applied to information processing devices such as devices that perform integer operations that can be performed in an intermediate format.

【0026】[0026]

【発明の効果】以上述べたように、本発明によれば、中
間形式の演算結果を所定の最終形式に変換する必要がな
く、従って演算処理時間が短縮される。また複数の演算
器がもっていた中間形式から最終形式への変換器を1つ
にすることができ、回路の量を少なくできる。このよう
に、本発明は実用的にきわめて有用である。
As described above, according to the present invention, there is no need to convert the calculation result in an intermediate format into a predetermined final format, and therefore the calculation processing time is shortened. Furthermore, the number of converters from intermediate format to final format, which were included in a plurality of arithmetic units, can be reduced to one, and the amount of circuitry can be reduced. Thus, the present invention is extremely useful in practice.

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

【図1】本発明の一実施例の情報処理装置のブロック図
である。
FIG. 1 is a block diagram of an information processing device according to an embodiment of the present invention.

【図2】図1で示す情報処理装置の動作図である。FIG. 2 is an operational diagram of the information processing device shown in FIG. 1;

【図3】本発明の他の実施例の情報処理装置のブロック
図である。
FIG. 3 is a block diagram of an information processing device according to another embodiment of the present invention.

【図4】図3に示す情報処理装置の動作図である。FIG. 4 is an operational diagram of the information processing device shown in FIG. 3;

【図5】従来の情報処理装置のブロック図である。FIG. 5 is a block diagram of a conventional information processing device.

【図6】図5で示す情報処理装置の動作図である。FIG. 6 is an operational diagram of the information processing device shown in FIG. 5;

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

1,20  レジスタファイル 2  レジスタ 3,10  加算器 4,13  乗算器 5,24  選択回路 7  データ変換器 11,14  演算部 12,15  変換部 23  データ依存検出器 25  メモリ装置 1,20 Register file 2 Register 3,10 Adder 4,13 Multiplier 5, 24 Selection circuit 7 Data converter 11, 14 Arithmetic unit 12, 15 Conversion section 23 Data dependent detector 25 Memory device

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】命令で指定された演算を行なって、結果を
中間形式で出力する演算器と、中間形式または所定の最
終形式のデータと前記データが中間形式か所定の最終形
式かを示すフォーマットを格納するレジスタを複数有す
るレジスタファイルと、前記フォーマットに従って、中
間形式のデータを正規化するデータ変換器とを備え、前
記演算器は前記レジスタファイルから読みだされたレジ
スタのデータとフォーマットを入力として、前記フォー
マットが示すデータの形式により前記データに対し演算
を行ない、前記データ変換器は前記レジスタファイルか
ら読みだされたレジスタのデータとフォーマットを入力
として、前記フォーマットによって前記データが中間形
式であることが示されると前記データを最終形式に変換
し、前記フォーマットによって前記データが最終形式で
あることが示されると前記データをそのまま出力するこ
とを特徴とした情報処理装置。
Claim 1: A computing unit that performs an operation specified by an instruction and outputs the result in an intermediate format, data in an intermediate format or a predetermined final format, and a format indicating whether the data is an intermediate format or a predetermined final format. a register file having a plurality of registers for storing the data, and a data converter that normalizes data in an intermediate format according to the format, and the arithmetic unit receives the register data and format read from the register file as input. , the data converter performs an operation on the data according to the data format indicated by the format, and the data converter inputs the register data and format read from the register file, and determines that the data is in an intermediate format according to the format. An information processing apparatus characterized in that when the format indicates that the data is in the final format, the data is converted into a final format, and when the format indicates that the data is in the final format, the data is output as is.
【請求項2】命令で指定された演算を行なって、中間形
式の結果と最終形式の結果を出力する1つまたは複数の
演算器と、最終形式のデータを格納するレジスタを複数
有するレジスタファイルと、第1および第2の命令間で
データの依存を検出するデータ依存検出器とを備え、前
記データ依存検出器によって、第1の命令の結果を第2
の命令が使用することが検出されると、前記第2の命令
の演算を行なう演算器は前記第1の命令の演算を行なっ
た演算器の中間形式の結果を使って演算を行なうことを
特徴とした情報処理装置。
2. A register file comprising one or more arithmetic units that perform operations specified by instructions and output results in intermediate format and final format, and a plurality of registers that store data in final format. , a data dependence detector for detecting data dependence between the first and second instructions, and the data dependence detector detects the result of the first instruction in the second instruction.
When it is detected that the instruction is used, the arithmetic unit that performs the operation of the second instruction performs the operation using the intermediate format result of the arithmetic unit that performed the operation of the first instruction. information processing equipment.
JP3083899A 1991-04-16 1991-04-16 Information processor Pending JPH04316127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3083899A JPH04316127A (en) 1991-04-16 1991-04-16 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3083899A JPH04316127A (en) 1991-04-16 1991-04-16 Information processor

Publications (1)

Publication Number Publication Date
JPH04316127A true JPH04316127A (en) 1992-11-06

Family

ID=13815481

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3083899A Pending JPH04316127A (en) 1991-04-16 1991-04-16 Information processor

Country Status (1)

Country Link
JP (1) JPH04316127A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2007094047A1 (en) * 2006-02-14 2009-07-02 富士通株式会社 Arithmetic apparatus and arithmetic method
US8623981B2 (en) 2008-01-29 2014-01-07 Lanxess Deutschland Gmbh Nitrile rubbers which optionally contain alkylthio terminal groups and which are optionally hydrogenated

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2007094047A1 (en) * 2006-02-14 2009-07-02 富士通株式会社 Arithmetic apparatus and arithmetic method
JP4482052B2 (en) * 2006-02-14 2010-06-16 富士通株式会社 Arithmetic apparatus and arithmetic method
US8623981B2 (en) 2008-01-29 2014-01-07 Lanxess Deutschland Gmbh Nitrile rubbers which optionally contain alkylthio terminal groups and which are optionally hydrogenated

Similar Documents

Publication Publication Date Title
JP5647859B2 (en) Apparatus and method for performing multiply-accumulate operations
US6233670B1 (en) Superscalar processor with direct result bypass between execution units having comparators in execution units for comparing operand and result addresses and activating result bypassing
US20040111587A1 (en) Apparatus and method for matrix data processing
JPS6028015B2 (en) information processing equipment
US4954947A (en) Instruction processor for processing branch instruction at high speed
US5757685A (en) Data processing system capable of processing long word data
JPS6124729B2 (en)
US6078940A (en) Microprocessor with an instruction for multiply and left shift with saturate
JPH04316127A (en) Information processor
JPH07110769A (en) Vliw type computer
JP2722493B2 (en) Register allocation processing method
JPS61173345A (en) Computer system
JP2925842B2 (en) Pipeline processing equipment
JP3658879B2 (en) Pipeline calculator
JP2862969B2 (en) Processor
JPH01307831A (en) Information processor
JPS6257028A (en) Branch control system in information processor of pipeline control
JPH0222417B2 (en)
JPH02176971A (en) Vector arithmetic unit
JP2000305782A (en) Arithmetic unit
JPH0553759A (en) Fixed decimal point arithmetic unit
JPH02148140A (en) Conditional branch control system for information processor
JPH05127894A (en) Instruction executing system
JPH01307829A (en) Information processor
JPH05181642A (en) Arithmetic unit