JPS61273630A - Arithmetic processor - Google Patents

Arithmetic processor

Info

Publication number
JPS61273630A
JPS61273630A JP60115432A JP11543285A JPS61273630A JP S61273630 A JPS61273630 A JP S61273630A JP 60115432 A JP60115432 A JP 60115432A JP 11543285 A JP11543285 A JP 11543285A JP S61273630 A JPS61273630 A JP S61273630A
Authority
JP
Japan
Prior art keywords
register
data
normalization
registers
shifter
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
JP60115432A
Other languages
Japanese (ja)
Inventor
Koichi Nomura
晃一 野村
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 JP60115432A priority Critical patent/JPS61273630A/en
Publication of JPS61273630A publication Critical patent/JPS61273630A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To decrease the hardware quantity by providing a normalized shifter which inputs the data obtained by connecting the outputs of plural registers and supplies the data output to one or plural registers. CONSTITUTION:When the result of an arithmetic part 11 is normalized, the result obtained from the part 11 is held by a register 13 with the data the extension accuracy less than a desired level. Then the shift degree is controlled to 0 by a shift degree control part 16, and the output supplied from a normalized shifter 15, i.e., the contents of the register 13 are held by a register 14. The shift degree needed for normalization is controlled by the part 16 based on the contents of the register 14. Then the output of the shifter 15, i.e., the data obtained after normalization are held by one or both or registers 13 and 14. The outputs of the registers 13 and 14 are sent to the next stage. When the data has the extension accuracy equal to a desired level, the upper and lower parts of the output data of the shifter 15 are held by the register 13 and one or both of registers 13 and 14 respectively. Then the outputs of both registers 13 and 14 are sent to the next stage. An arithmetic part 12 also receives the same procedure as that of the part 11.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は浮動中数点演算処理装置に関し、特に事後正規
化に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a floating-point arithmetic processing device, and particularly to post-normalization.

〔従来の技術〕[Conventional technology]

従来、この種の演算処理装置は、第2図に示すように、
演算部1からの中間結果を保持するレジスタ2と、レジ
スタ2の出力を保持するレジスタ3と、レジスタ2,3
の出力を連結したデータが入力される正規化シフタ4と
、正規化シフタ4の出力を保持するレジスタ5と、レジ
スタ2,3の内容により正規化シフタ4のシフト量を制
御するシフト量制御部6とから構成されていた。
Conventionally, this type of arithmetic processing device, as shown in FIG.
A register 2 that holds intermediate results from the calculation unit 1, a register 3 that holds the output of register 2, and registers 2 and 3.
a normalization shifter 4 to which data concatenated with the outputs of the normalization shifter 4 is input, a register 5 that holds the output of the normalization shifter 4, and a shift amount control section that controls the shift amount of the normalization shifter 4 based on the contents of the registers 2 and 3. It was composed of 6.

演算部1からの正規化前の中間結果をデータ長に応じて
レジスタ2.3あるいはレジスタ3のみに保持し、その
レジスタの内容によって正規化に必要なシフト量をシフ
ト制御部6で制御し、正規化シフタ4からの正規化後の
データをレジスタ5に保持し、その出力を次段へ送り出
すものであった。
The intermediate result from the calculation unit 1 before normalization is held in a register 2.3 or only in the register 3 depending on the data length, and the shift amount necessary for normalization is controlled by the shift control unit 6 according to the contents of the register. The normalized data from the normalization shifter 4 was held in the register 5, and its output was sent to the next stage.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の演算処理装置は、演算後の正規化装置を
1つのみ含むわけではなく、演算処理の高速化のために
、いくつかの演算部ごとに複数個もっているのが現状で
あり、ハードウェア量が大きくなるという問題がある。
The conventional arithmetic processing device described above does not include only one normalization device after arithmetic operations, but currently has multiple units for each of several arithmetic units in order to speed up arithmetic processing. There is a problem that the amount of hardware increases.

またレジスタ3ば拡張精度の正規化があるゆえに存在す
るレジスタであり、それ単独で動作するというものでは
ない。
Furthermore, register 3 exists because of extended precision normalization, and does not operate independently.

c問題点を解決するための手段〕 このような問題点を解決するために本発明は、各演算部
毎の正規化前の中間結果を保持する複数のレジスタと、
この複数のレジスタの出力を連結したデータが入力され
、出力が1つのレジスタあるいは複数のレジスタに入力
される正規化シフタと、このレジスタの内容を複数個連
結したデータを正規化するのに必要なシフト量、1つの
レジスタの内容を正規化するのに必要なシフト量、外部
より指定された任意のシフト量のうちのいずれかを選択
して正規化シックに送ることにより正規化シックのシフ
ト量を制御するシフト量制御部とを設けるようにしたも
のである。
Means for Solving Problem c] In order to solve such problems, the present invention provides a plurality of registers for holding intermediate results before normalization for each calculation unit,
There is a normalization shifter that receives data that is the concatenation of the outputs of multiple registers, and whose output is input to one register or multiple registers, and a normalization shifter that inputs the data that is the concatenation of the outputs of multiple registers, and the The shift amount of the normalization thick can be determined by selecting either the shift amount, the shift amount required to normalize the contents of one register, or any externally specified shift amount and sending it to the normalization thick. A shift amount control section for controlling the shift amount is provided.

〔作用〕[Effect]

本発明においては従来2つ以上必要であった正規化装置
を1つにまとめることによりハードウェア量を減少させ
ることができる。
In the present invention, the amount of hardware can be reduced by combining two or more normalization devices, which were conventionally required, into one.

〔実施例〕〔Example〕

本発明に係わる演算処理装置の一実施例を第1図に示す
。第1図において、11.12はそれぞれ別個の演算部
、13.14は演算部11.12の中間結果を保持する
長精度幅のレジスタ、15はレジスタ13.14の出力
を連結したデータが入力され、出力がレジスタ13.1
4の一方あるいは両方に入力される正規化シフタ、16
はレジスタの内容を複数個連結したデータを正規化する
のに必要なシフト量、1つのレジスタの内容を正規化す
るのに必要なシフト量、外部より指定された任意のシフ
ト量のうちのいずれかを選択して正規化シフタに送るこ
とにより正規化シフタのシフト量を制御するシフト量制
御部である。
An embodiment of an arithmetic processing device according to the present invention is shown in FIG. In FIG. 1, 11.12 is a separate arithmetic unit, 13.14 is a long-precision register that holds the intermediate results of the arithmetic unit 11.12, and 15 is input data that is the concatenation of the outputs of registers 13.14. and the output is in register 13.1
a normalization shifter input to one or both of 4; 16;
is the amount of shift required to normalize the concatenated data of multiple register contents, the amount of shift required to normalize the contents of one register, or any shift amount specified externally. This is a shift amount control unit that controls the shift amount of the normalization shifter by selecting one of the following and sending it to the normalization shifter.

次にこのように構成された装置の動作について説明する
。演算部11の結果を正規化する場合、長精度以下のデ
ータのときは、演算部11より得られた結果をレジスタ
13に保持し、シフト量正規化部16によりシフト量を
「0」に制御し、正規化シフタ15からの出力、すなわ
ち、レジスタ13の内容をレジスタ14に保持する。レ
ジスタ14の内容により、正規化に必要なシフト量をシ
フト量制御部16から制御し、正規化シフタ15の出力
、すなわち、正規化後のデータをレジスタ13.14の
一方あるいは両方に保持し、そのレジスタの出力を次段
に送り出す。
Next, the operation of the device configured as described above will be explained. When normalizing the result of the calculation unit 11, if the data is less than long precision, the result obtained from the calculation unit 11 is held in the register 13, and the shift amount normalization unit 16 controls the shift amount to “0”. Then, the output from the normalization shifter 15, that is, the contents of the register 13, is held in the register 14. The shift amount necessary for normalization is controlled by the shift amount control unit 16 according to the contents of the register 14, and the output of the normalization shifter 15, that is, the data after normalization, is held in one or both of the registers 13 and 14, The output of that register is sent to the next stage.

拡張精度のデータのときは、まず、データの下位をレジ
スタ13に保持し、長精度以下のデータのときと同様に
その内容をレジスタ14に保持するとともにレジスタ1
3にはデータの上位を保持する。そしてレジスタ13.
14の内容により、正規化に必要なシフト量をシフト量
制御部16により制御し、正規化シフタ15の出力、す
なわち、正規化後のデータの上位をレジスタ13に保持
し、その出力を次段に送り出し、さらにシフト量制御部
16によりシフト量をレジスタ13のデータ幅だけ前回
より増やし、正規化シフタ15の出力、すなわち、正規
化後のデータの下位をレジスタ13.14の一方あるい
は両方に保持し、その出力を次段に送り出す。
In the case of extended precision data, the lower part of the data is first held in register 13, and the contents are held in register 14 as in the case of data with long precision or less, and the lower part of the data is held in register 13.
3 holds the upper part of the data. and register 13.
14, the shift amount necessary for normalization is controlled by the shift amount control unit 16, and the output of the normalization shifter 15, that is, the upper part of the data after normalization, is held in the register 13, and the output is transmitted to the next stage. Furthermore, the shift amount control section 16 increases the shift amount by the data width of the register 13 from the previous time, and the output of the normalization shifter 15, that is, the lower order of the normalized data is held in one or both of the registers 13 and 14. and sends the output to the next stage.

また演算部12の結果を正規化する場合、長精度幅以下
のデータのときはレジスタ14に、拡張精度のときはレ
ジスタ13.14に演算部12の結果を保持し、同様に
正規化を行う。
In addition, when normalizing the result of the arithmetic unit 12, the result of the arithmetic unit 12 is held in the register 14 when the data is less than the long precision width, and in the registers 13 and 14 when the data is extended precision, and normalization is performed in the same way. .

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、各演算部毎の正規化前の
中間結果を保持する複数のレジスタと、この複数のレジ
スタの出力を連結したデータが入力され、出力が1つの
レジスタあるいは複数のレジスタに入力される正規化シ
フタと、このレジスタの内容を複数個連結したデータを
正規化するのに必要なシフト量、1つのレジスタの内容
を正規化するのに必要なシフト量、外部より指定された
任意のシフト量のうちのいずれかを選択して正規化シッ
クに送ることにより正規化シフタのシフト量を制御する
シフト量制御部とを設けることにより、従来2つ以上必
要であった正規化装置を1つにまとめることができ、ハ
ードウェア量が減少するという効果がある。また従来補
助的なレジスタであったものをより有効に使用できると
いう効果がる。さらに正規化動作に限らず、レジスタ間
でのデータ転送、必要ビット幅シフトしての転送などの
動作も可能になるという効果がある。
As explained above, the present invention has a plurality of registers that hold intermediate results before normalization for each calculation unit, and data in which the outputs of the plurality of registers are connected are input, and the output is sent to one register or to a plurality of registers. The normalization shifter input to the register, the amount of shift required to normalize data that is a concatenation of multiple contents of this register, the amount of shift required to normalize the contents of one register, and the amount of shift required to normalize the contents of one register, specified externally. By providing a shift amount control unit that controls the shift amount of the normalization shifter by selecting one of the arbitrary shift amounts and sending it to the normalization thick, the normalization that conventionally required two or more This has the effect that the converting devices can be combined into one, and the amount of hardware is reduced. Another effect is that what has traditionally been an auxiliary register can be used more effectively. Furthermore, in addition to the normalization operation, it is also possible to perform operations such as data transfer between registers and transfer after shifting the required bit width.

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

第1図は本発明に係わる演算処理装置の一実施例を示す
系統図、第2図は従来の演算処理装置を示す系統図であ
る。 11.12・・・・演算部、13.14・・・・レジス
タ、15・・・・正規化シック、16・・・・シフト量
制御部。
FIG. 1 is a system diagram showing an embodiment of an arithmetic processing device according to the present invention, and FIG. 2 is a system diagram showing a conventional arithmetic processing device. 11.12... Arithmetic unit, 13.14... Register, 15... Normalization thick, 16... Shift amount control unit.

Claims (1)

【特許請求の範囲】[Claims] 指数部と仮数部で表わされるデータの演算部を複数個も
つ演算処理装置において、各演算部毎の正規化前の中間
結果を保持する複数のレジスタと、この複数のレジスタ
の出力を連結したデータが入力され、出力が前記レジス
タの1つあるいは複数個に入力される正規化シフタと、
前記レジスタの内容を複数個連結したデータを正規化す
るのに必要なシフト量、1つのレジスタの内容を正規化
するのに必要なシフト量、外部より指定された任意のシ
フト量のうちのいずれかを選択して前記正規化シフタに
送ることにより前記正規化シフタのシフト量を制御する
シフト量制御部とを備えたことを特徴とする演算処理装
置。
In an arithmetic processing unit that has multiple arithmetic units for data represented by an exponent and a mantissa, multiple registers hold intermediate results before normalization for each arithmetic unit, and data concatenated with the outputs of these multiple registers. a normalization shifter, the output of which is input to one or more of the registers;
Which of the following: the amount of shift required to normalize data that is a combination of the contents of multiple registers, the amount of shift required to normalize the contents of one register, or any arbitrary shift amount specified from an external source. and a shift amount control unit that controls the shift amount of the normalization shifter by selecting and sending the selected data to the normalization shifter.
JP60115432A 1985-05-30 1985-05-30 Arithmetic processor Pending JPS61273630A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60115432A JPS61273630A (en) 1985-05-30 1985-05-30 Arithmetic processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60115432A JPS61273630A (en) 1985-05-30 1985-05-30 Arithmetic processor

Publications (1)

Publication Number Publication Date
JPS61273630A true JPS61273630A (en) 1986-12-03

Family

ID=14662421

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60115432A Pending JPS61273630A (en) 1985-05-30 1985-05-30 Arithmetic processor

Country Status (1)

Country Link
JP (1) JPS61273630A (en)

Similar Documents

Publication Publication Date Title
JP2674754B2 (en) Barrel shifter
KR900003733A (en) Multifunction data processor
KR910010301A (en) Command designation method and execution device
KR970022770A (en) Data processing device
KR950033803A (en) Multiple bit shift device, data processor using same, and multiple bit shift method
US4796218A (en) Arithmetic circuit capable of executing floating point operation and fixed point operation
US4878191A (en) Multiplication circuit capable of operating at a high speed with a small amount of hardware
JPS61273630A (en) Arithmetic processor
US4677584A (en) Data processing system with an arithmetic logic unit having improved carry look ahead
US3863061A (en) Alu with end-around carry derived from auxiliary unit
EP0265948B1 (en) Data processor capable of immediately calculating branch address in relative address branch
JPH0619700B2 (en) Arithmetic unit
JP2951685B2 (en) Fixed-point arithmetic unit
GB1475471A (en) Floating point apparatus and techniques
JPS61253538A (en) Arithmetic circuit
JPS61292742A (en) Arithmetic unit
US7100025B1 (en) Apparatus and method for performing single-instruction multiple-data instructions
KR100257502B1 (en) Shifter operated without cluck
JPH04330519A (en) Multiplier
JPS60245046A (en) Logical shift arithmetic circuit
JPH045727A (en) Converter
JPS62274425A (en) Adder with shifter
JPS60132237A (en) Floating-point arithmetic unit
JPH01161436A (en) Arithmetic processor
JPH03149656A (en) Arithmetic circuit