JPS62160529A - Data processor - Google Patents

Data processor

Info

Publication number
JPS62160529A
JPS62160529A JP61002513A JP251386A JPS62160529A JP S62160529 A JPS62160529 A JP S62160529A JP 61002513 A JP61002513 A JP 61002513A JP 251386 A JP251386 A JP 251386A JP S62160529 A JPS62160529 A JP S62160529A
Authority
JP
Japan
Prior art keywords
data
register
registers
clock
status signal
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
JP61002513A
Other languages
Japanese (ja)
Inventor
Yoshiki Shimoma
下間 芳樹
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP61002513A priority Critical patent/JPS62160529A/en
Publication of JPS62160529A publication Critical patent/JPS62160529A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform quickly an operation obtaining relations among data inputted in order, by not supplying clocks to a part of plural registers for data input in accordance with the status signal of an operator for pipeline processing. CONSTITUTION:Data X0, X1, ... are inputted successively to a register 2a in individual pipeline stages, and the same data are inputted to a register 2b one stage ahead. In each stage, set data Ai of the register 2a and set data Bi of the register 2b are compared with each other by an operator 1, and when a status signal 1s in the low level is outputted in case of Ai>=Bi. When the signal 1s is in the low level, the clock to be applied to the register 2a is suppressed in the next stage by a clock control circuit 3 to hold the contents of the register 2a, and the contents of the register 2b are updated with new input data, and maximum data is held in the register 2a finally.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はパイプライン制御によりデータを処理する演
算器を有してなるデータ処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data processing device having an arithmetic unit that processes data by pipeline control.

〔従来の技術〕[Conventional technology]

第3図はこの種の従来のデータ処理装置の構成を示すブ
ロック図であり、図中(1)はパイプライン制御により
2個1組のデータを処理する演算器、(2a)、(2b
)はクロックを加えてそれぞれデータAi。
FIG. 3 is a block diagram showing the configuration of this type of conventional data processing device.
) are each data Ai with the addition of a clock.

B1をセットし、これらのデータを演算器(1)に入力
するレジスタである。
This is a register for setting B1 and inputting these data to the arithmetic unit (1).

この第3図において、レジスタ(2a)、(2b)に同
時にクロックが加えられ、このうち、レジスタ(2a)
にはデータAO、Al 、 A2 、・・e、Aiが、
レジスタ(2b)にはデータBO、Bl 、 B2 、
・・・、Biがそれぞれ1臆次セットされる。演算器(
1)ではレジスタ(2a)のデータ、すなわち、2個1
組のデータをパイプライン処理してその結果を示すデー
タCo、C1,C2,・・・。
In FIG. 3, clocks are applied to registers (2a) and (2b) at the same time, and among them, register (2a)
The data AO, Al, A2,...e, Ai are
The register (2b) contains data BO, Bl, B2,
. . , Bi are each set once. Arithmetic unit (
In 1), the data in register (2a), that is, 2 pieces 1
Data Co, C1, C2, . . . showing the results of pipeline processing of the data sets.

C1を出力する。Output C1.

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

上記のような従来のデータ処理装置にあっては、クロッ
クが加えられる毎にレジスタ(2a)、(2b)にセッ
トされる2個1組のデータをパイプライン処理し、シス
テムの性能を格段に高めている。しかしながら、1(n
番に入力されるデータ相互の関係、例えば、最大値を求
めtす、最小値を求めたりすることには適していなかつ
友。
In conventional data processing devices such as those described above, a pair of data set in registers (2a) and (2b) are processed in a pipeline each time a clock is applied, thereby significantly improving system performance. It's increasing. However, 1(n
It is not suitable for determining the relationship between data that is input at the same time, such as determining the maximum value or minimum value.

この発明はかかる問題点を解決するためになされたもの
で、順に入力されるデータの最大値や最小値等、データ
相互の関係を求める演算を高速で行うことのできるデー
タ処理装置を得ることを目的とする。
This invention was made to solve this problem, and aims to provide a data processing device that can perform high-speed calculations to determine the relationship between data, such as the maximum value and minimum value of sequentially input data. purpose.

〔問題点を解決する友めの手段〕[Friendly means of solving problems]

この発明に係るデータ処理装置は、複数のレジスタ、こ
れらのレジスタにセットされ友データをパイプライン処
理する演算器、および、この演算器の演算結果に対する
所定のステータス信号によってレジスタの一部にクロッ
クが加わることを抑止するクロック制御回路を備え友も
のである。
The data processing device according to the present invention includes a plurality of registers, an arithmetic unit that pipelines friend data set in these registers, and a clock that is applied to some of the registers by a predetermined status signal for the arithmetic result of the arithmetic unit. It is equipped with a clock control circuit that prevents the clock from increasing.

〔作用〕[Effect]

この発明においては、前段のパイプラインステージでの
演算結果に対する所定のステータス信号に応動して、ク
ロック制御回路が一部のレジスタに対してデータセット
用のクロックが加わることを抑止することにより次段の
パイプラインステージのデータ入力を制御し、これらの
動作を繰返すだけでデータ相互の関係を求める。
In this invention, in response to a predetermined status signal for the operation result in the previous pipeline stage, the clock control circuit suppresses the application of the data set clock to some registers, thereby preventing the data set from being applied to the next stage. Control the data input of the pipeline stages and find the relationship between data simply by repeating these operations.

〔実施例〕〔Example〕

第1図はこの発明の一実施例の構成を示すブロック回路
図であり、図中第3図と同一の符号を付しtものはそれ
ぞれ同一の要素を示している。そして、演算器(1)の
所定の演算結果に対するステータス信号(1B)によっ
て、レジスタ(2a)にクロックが加わることを抑止す
るクロック制御回路(8)を付加した点が第3図と異っ
ている。なお、クロック制御回路(8)はAND回路で
構成され、ステータス信号(1S)が′L”になつ之と
きレジスタ(2a)にデータセット用のクロックが加わ
らないようにしている。
FIG. 1 is a block circuit diagram showing the configuration of an embodiment of the present invention, in which the same reference numerals as in FIG. 3 indicate the same elements. The difference from FIG. 3 is that a clock control circuit (8) is added to prevent the clock from being applied to the register (2a) in response to the status signal (1B) for a predetermined calculation result of the calculation unit (1). There is. The clock control circuit (8) is constituted by an AND circuit, and prevents the clock for data setting from being applied to the register (2a) when the status signal (1S) becomes 'L'.

上記のように構成され九本実施例の動作を、第3図の図
表をも参照して以下に説明する。
The operation of the nine embodiments constructed as described above will be explained below with reference to the diagram of FIG.

先ず、データXO、Xi 、X2 、 @ * @ 、
Xl−1、Xi 、Xi+1゜・・・の最大値を求める
場合、レジスタ(2a)にデータXO,Xi、X2,6
@m、X1−1.Xi、Xi+ll・@@を入力する一
方、レジスタ(2b)にはこれと同じデータを1ステー
ジ早く入力する。また、演算器(1)は各パイプライン
ステージでレジスタ(2a)のセットデータA1とレジ
スタ(2b)のセットデータB1とを比較し、A i 
2 Bのとき”L”で、At(stのときH”のステー
タス信号(1S)を出力して次の処理に移る。
First, data XO, Xi, X2, @ * @,
When determining the maximum value of Xl-1, Xi, Xi+1°..., data XO, Xi,
@m, X1-1. While inputting Xi, Xi+ll.@@, the same data is inputted to the register (2b) one stage earlier. In addition, the arithmetic unit (1) compares the set data A1 of the register (2a) and the set data B1 of the register (2b) at each pipeline stage, and
2 Outputs a status signal (1S) which is "L" when B is high and At(st), and moves on to the next process.

ここで、ステージ1−2にてレジスタ(2a)にデータ
X1−2が、レジスタ(2b)にデータX1−1がそれ
ぞれセットされており、このデータ相互間にX 1−2
(X i−1の関係があれば、ステータス信釈18)は
H”になっている。よって、ステージ1−1ではレジス
タ(2a)、(2b)の両方にクロックが加えられ、そ
の内容はそれぞれ)(1−1,Xiに更新される。この
とき、これらのデータ相互間にxl−1≧X1の関係が
あると判断されたとすればステータス信号(1S)は1
L”となる。
Here, in stage 1-2, data X1-2 is set in the register (2a) and data X1-1 is set in the register (2b), and X1-2 is set between these data.
(If there is a relationship of respectively) (1-1, Xi. At this time, if it is determined that there is a relationship of xl-1≧X1 between these data, the status signal (1S) is updated to 1.
It becomes “L”.

し友がって、次のステージ1ではクロック制御回路(8
)によって、レジスタ(2a)に加えられるべきクロッ
クが抑止され、レジスタ(2a)の内容はXl−1のま
ま保持され、レジスタ(2b)の内容はX1+1に更新
される。このとき、データX1−1とデータX ill
との間にxl−1≧X illの関係があると判断され
るとステータス信号(1S)が′H″に変化し、次のス
テージ1+1ではレジスタ(2a)、(2b)の両方に
クロック信号が加えられ、その内容はそれぞれX il
l 、 X i+2に更新される。
As a result, in the next stage 1, a clock control circuit (8
), the clock to be applied to register (2a) is suppressed, the contents of register (2a) are held as Xl-1, and the contents of register (2b) are updated to X1+1. At this time, data X1-1 and data X ill
When it is determined that there is a relationship of are added, and their contents are respectively X il
l, X is updated to i+2.

かかる動作を入力データXO,Xi、X2.・φ番。Such operations are performed using input data XO, Xi, X2 .・φ number.

Xl−1,Xi、Xi+1.・・・の数だけ繰返すなら
ば最大のデータがレジスタ(2a)に保持されるので、
入力データ1要素あたり1サイクルの演算で最大値を求
めることができる。
Xl-1, Xi, Xi+1. If it is repeated as many times as ..., the maximum data will be held in register (2a), so
The maximum value can be determined by one cycle of calculation per input data element.

なお、上記実施例では順次入力されるデータの最大値を
求める場合について説明したが、演算器(1)から出力
されるステータス信号を作シ替えたバあるいは、クロッ
ク制御回路(8)の構成を適轟に変え之りすることによ
って順次入力され、るデータの最小値はもちろんのこと
、絶対値で比較した最大値、最小値を求める演算を高速
で行うことができる。
In the above embodiment, the case where the maximum value of sequentially input data is found is explained, but the configuration of the bar or clock control circuit (8) in which the status signal output from the arithmetic unit (1) is changed is also explained. By changing the data as appropriate, it is possible to perform high-speed calculations to find not only the minimum value of data input sequentially, but also the maximum and minimum values compared in absolute value.

なおまt1上記実施例では2つのレジスタを備えるデー
タ処理装置について説明し念がより多くのレジスタを備
えたものにあっては、演算器の所定の演算結果に対する
ステータス信号に応動してこれらのレジスタの一部に対
してデータセット用のクロックが加わることを抑止する
クロック制御回路を付加するようにすればデータ相互の
関係を求める演算を高速で行うことができる。
Note that the above embodiment describes a data processing device equipped with two registers; however, in a device equipped with more registers, these registers are By adding a clock control circuit that prevents the data set clock from being applied to a part of the data, calculations for determining the relationship between data can be performed at high speed.

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

以上の説明によって明らかなように、この発明によれば
パイプライン処理する演算器のステータス信号によって
データ入力用の複数のレジスタの一部にクロックが加わ
らないようにしたので、順に入力されるデータ相互の関
係を求める演算を高速で行うことのできるデータ処理装
置が得られる。
As is clear from the above explanation, according to the present invention, since the clock is not applied to some of the plurality of registers for data input by the status signal of the arithmetic unit that performs pipeline processing, A data processing device that can perform calculations for determining the relationship at high speed can be obtained.

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

第1図はこの発明の一実施例の構成を示すブロック回路
図、第2図は同実施例の動作を説明する之めの図表、第
3図は従来のデータ処理装置の1成を示すブロック図で
ある。 (1)・・演算器    (2a)、(2b)・・レジ
スタ(8)・・クロック制御回路 なお、各図中同一符号は同一まtは相当部分を示す。
Fig. 1 is a block circuit diagram showing the configuration of an embodiment of the present invention, Fig. 2 is a diagram explaining the operation of the embodiment, and Fig. 3 is a block diagram showing one component of a conventional data processing device. It is a diagram. (1)...Arithmetic unit (2a), (2b)...Register (8)...Clock control circuit Note that the same reference numerals in each figure indicate the same parts, or t indicates corresponding parts.

Claims (2)

【特許請求の範囲】[Claims] (1)複数のレジスタと、これらのレジスタに入力され
たデータをパイプライン処理する演算器と、この演算器
の所定の演算結果に対するステータス信号に応動して前
記レジスタの一部に対してデータセット用のクロックが
加わることを抑止するクロック制御回路とを備えたこと
を特徴とするデータ処理装置。
(1) A plurality of registers, an arithmetic unit that performs pipeline processing on data input to these registers, and a data set for some of the registers in response to a status signal for a predetermined operation result of this arithmetic unit. 1. A data processing device comprising: a clock control circuit for suppressing application of an additional clock.
(2)前記レジスタは2個でなり、前記演算器はこれら
のレジスタのセットデータを比較し、前記クロック制御
回路は前記演算器の所定の比較結果に対するステータス
信号に応動して前記レジスタの一方にクロックが加わる
ことを抑止することを特徴とする特許請求の範囲第1項
記載のデータ処理装置。
(2) There are two registers, the arithmetic unit compares the set data of these registers, and the clock control circuit controls one of the registers in response to a status signal for a predetermined comparison result of the arithmetic unit. 2. The data processing device according to claim 1, wherein application of a clock is suppressed.
JP61002513A 1986-01-09 1986-01-09 Data processor Pending JPS62160529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61002513A JPS62160529A (en) 1986-01-09 1986-01-09 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61002513A JPS62160529A (en) 1986-01-09 1986-01-09 Data processor

Publications (1)

Publication Number Publication Date
JPS62160529A true JPS62160529A (en) 1987-07-16

Family

ID=11531448

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61002513A Pending JPS62160529A (en) 1986-01-09 1986-01-09 Data processor

Country Status (1)

Country Link
JP (1) JPS62160529A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5771376A (en) * 1995-10-06 1998-06-23 Nippondenso Co., Ltd Pipeline arithmetic and logic system with clock control function for selectively supplying clock to a given unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5771376A (en) * 1995-10-06 1998-06-23 Nippondenso Co., Ltd Pipeline arithmetic and logic system with clock control function for selectively supplying clock to a given unit

Similar Documents

Publication Publication Date Title
JP3729881B2 (en) Circuit and method for performing parallel addition and averaging
JPH07210368A (en) Efficient handling method by hardware of positive and negative overflows generated as result of arithmetic operation
EP0171805A2 (en) High speed digital arithmetic unit
JPH02278382A (en) Arithmetic and logic mechanism for graphic processor
JPS62160529A (en) Data processor
US4914581A (en) Method and apparatus for explicitly evaluating conditions in a data processor
JPS62550B2 (en)
JPH0313624B2 (en)
JPS62182841A (en) Square root arithmetic system
US20010016864A1 (en) Computing unit for signal processing
JPH04330519A (en) Multiplier
JPS59123048A (en) Sorting processor
JPS60123931A (en) Arithmetic circuit
JPH04364525A (en) Parallel arithmetic unit
JPS62194541A (en) Arithmetic circuit
JPH04119430A (en) Pipeline control system
JPH02178833A (en) Adder for adding data different in bit length
JPH06214963A (en) Multiprocessor system
JPH04165421A (en) Pipeline operation processor
JPH1049371A (en) Pipeline computer
JPH0512011A (en) Pipeline circuit
JPS63167971A (en) Arithmetic unit
JPH048831B2 (en)
JPS60245046A (en) Logical shift arithmetic circuit
JPH0562388B2 (en)