JPH04312118A - Arithmetic circuit - Google Patents

Arithmetic circuit

Info

Publication number
JPH04312118A
JPH04312118A JP7806591A JP7806591A JPH04312118A JP H04312118 A JPH04312118 A JP H04312118A JP 7806591 A JP7806591 A JP 7806591A JP 7806591 A JP7806591 A JP 7806591A JP H04312118 A JPH04312118 A JP H04312118A
Authority
JP
Japan
Prior art keywords
mask
arithmetic
register
mask control
circuit
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
JP7806591A
Other languages
Japanese (ja)
Inventor
Yuichi Sato
裕一 佐藤
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 Ibaraki Ltd
Original Assignee
NEC Ibaraki 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 NEC Ibaraki Ltd filed Critical NEC Ibaraki Ltd
Priority to JP7806591A priority Critical patent/JPH04312118A/en
Publication of JPH04312118A publication Critical patent/JPH04312118A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the processing ability of a date processor by carrying out simultaneously bath masking and computing operations of data. CONSTITUTION:A mask register 10 holds the mask register input 20 serving as a mask pattern which applies the mask control to the data. Then a mask control register 11 is added to designate the mask control register input 23, i.e., a kind of the mask control. Then the mask control circuits (8) 12 and (b) 13 apply the mask control to the arithmetic resources (a) 21 and (b) 22 with the use of the mask register output 24 of the mask pattern given from the register 10 and the mask control register output 25, i.e., the kind of the mask control designated by the register 11 and then outputs the arithmetic inputs (a) 26 and (b) 27. Then the arithmetic inputs (a) 26 and (b) 27 are computed by an arithmetic logic computing circuit 14, and these computing result outputs 28 are outputted.

Description

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

【0001】0001

【産業上の利用分野】本発明は、データ処理装置中の演
算回路に関し、特に演算回路のマスク制御に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an arithmetic circuit in a data processing device, and more particularly to mask control of an arithmetic circuit.

【0002】0002

【従来の技術】従来、この種の演算回路では、まずデー
タのマスク制御情報に従ったマスク演算を行い、マスク
制御済のデータを生成し、このマスク制御済データを演
算リソースとして算術論理演算回路に入力し、論理積や
論理和等の演算を実行して演算結果を出力している。す
なわち、データのマスク及び演算処理を個々個別に実行
している。
[Prior Art] Conventionally, in this type of arithmetic circuit, a mask operation is first performed according to data mask control information to generate mask-controlled data, and this mask-controlled data is used as an arithmetic resource in an arithmetic logic operation circuit. , performs operations such as logical product and logical sum, and outputs the operation results. That is, data masking and arithmetic processing are performed individually.

【0003】0003

【発明が解決しようとする課題】上述したように従来の
演算回路では、データのマスクとマスク制御済みデータ
の演算を個別に実行しているため、マスク制御済みデー
タを生成するために行うマスクデータと演算リソースに
よる論理積や論理和等の演算に時間が費やされ、データ
処理装置の処理能力が上がらないという欠点がある。
[Problems to be Solved by the Invention] As mentioned above, in conventional arithmetic circuits, data masking and mask-controlled data operations are performed separately. The drawback is that time is spent on operations such as logical product and logical sum using arithmetic resources, and the processing capacity of the data processing device cannot be improved.

【0004】本発明の目的は、データをマスク制御する
マスクパターンを保持するマスクレジスタと、マスク制
御の種類を指定するマスク制御レジスタと、これらの出
力によって演算リソースを制御するマスク制御回路とを
有することにより、上記の欠点を解消し、従来、個別に
実行していたデータのマスクと演算を同時に実行するこ
とが可能な、データ処理装置の処理性能の向上した演算
回路を提供することにある。
An object of the present invention is to provide a mask register that holds a mask pattern for masking data, a mask control register that specifies the type of mask control, and a mask control circuit that controls arithmetic resources based on the outputs of these registers. Thereby, it is an object of the present invention to provide an arithmetic circuit with improved processing performance of a data processing device, which can eliminate the above-mentioned drawbacks and simultaneously execute data masking and arithmetic operations, which were conventionally executed separately.

【0005】[0005]

【課題を解決するための手段】本発明の演算回路は、デ
ータ処理装置中に演算リソースを入力し算術論理演算回
路により演算する演算回路において、データをマスク制
御するマスクパターンを保持するマスクレジスタと、マ
スク制御の種類を指定するマスク制御レジスタと、マス
クレジスタからのマスクパターンとマスク制御レジスタ
からのマスク制御の種類とにより演算リソースをマスク
制御し演算入力を出力するマスク制御回路とを有し、算
術論理演算回路により演算入力を演算している。
[Means for Solving the Problems] The arithmetic circuit of the present invention has a mask register that holds a mask pattern for controlling data as a mask in the arithmetic circuit that inputs arithmetic resources into a data processing device and performs operations using an arithmetic and logic circuit. , has a mask control register that specifies the type of mask control, and a mask control circuit that performs mask control on calculation resources and outputs calculation input according to the mask pattern from the mask register and the type of mask control from the mask control register, Arithmetic input is calculated by an arithmetic logic circuit.

【0006】[0006]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments Next, embodiments of the present invention will be described with reference to the drawings.

【0007】図1は本発明の一実施例の演算回路のブロ
ック図である。
FIG. 1 is a block diagram of an arithmetic circuit according to an embodiment of the present invention.

【0008】図1において、本実施例の演算回路は、マ
スクレジスタ10、マスク制御レジスタ11、マスク制
御回路a12、マスク制御回路b13、算術論理演算回
路14、マスクレジスタ入力20、演算リソースa21
、演算リソースb22、マスク制御レジスタ23、マス
クレジスタ出力24、マスク制御レジスタ出力25、演
算入力a26、演算入力b27、演算結果出力28から
構成されている。
In FIG. 1, the arithmetic circuit of this embodiment includes a mask register 10, a mask control register 11, a mask control circuit a12, a mask control circuit b13, an arithmetic logic operation circuit 14, a mask register input 20, and an arithmetic resource a21.
, arithmetic resource b22, mask control register 23, mask register output 24, mask control register output 25, arithmetic input a26, arithmetic input b27, and arithmetic result output 28.

【0009】マスクレジスタ10は、データを加工する
マスクパターンであるマスクレジスタ入力20を入力し
、保持する。
The mask register 10 receives and holds a mask register input 20 which is a mask pattern for processing data.

【0010】マスク制御レジスタ11は、マスク制御の
種類を指定する信号であるマスク制御レジスタ入力23
を入力し、保持する。これらマスクレジスタ出力24及
びマスク制御レジスタ出力25は、マスク制御回路a1
2及びb13に入力され、演算リソースa21及びb2
2をマスク制御する。
The mask control register 11 receives a mask control register input 23 which is a signal specifying the type of mask control.
Enter and hold. These mask register output 24 and mask control register output 25 are connected to the mask control circuit a1.
2 and b13, and calculation resources a21 and b2
2 is mask-controlled.

【0011】マスク制御回路a12及びb13は、演算
リソースa21,b22をマスクレジスタ出力24及び
マスク制御レジスタ出力25に従ってマスク制御を行い
、演算入力a26,b27として出力する。
Mask control circuits a12 and b13 perform mask control on arithmetic resources a21 and b22 according to a mask register output 24 and a mask control register output 25, and output them as arithmetic inputs a26 and b27.

【0012】マスク制御の種類としては複数存在し、以
下のような例がある。
There are multiple types of mask control, including the following examples.

【0013】第一の例として、マスク制御回路a12で
は、マスクレジスタ出力24中の0のビットに対応する
演算リソースa21のビットをマスク、すなわち0とす
る。これに対してマスク制御回路13では、マスクレジ
スタ出力24中の1のビットに対応する演算リソース2
2のビットをマスク、すなわち0にする。これらのマス
ク制御を受けたデータを算術論理演算器14で論理和す
ることにより、演算結果出力28として演算リソースa
21及びb22のデータをマスクレジスタ出力24のパ
ターンに従って合成したデータを1回の演算によって得
る。
As a first example, the mask control circuit a12 masks, ie, sets to 0, the bit of the arithmetic resource a21 that corresponds to the 0 bit in the mask register output 24. On the other hand, in the mask control circuit 13, the calculation resource 2 corresponding to the 1 bit in the mask register output 24 is
Mask the bit 2, that is, set it to 0. By ORing these mask-controlled data in the arithmetic logic unit 14, the calculation resource a is output as the calculation result output 28.
Data obtained by combining the data of 21 and b22 according to the pattern of the mask register output 24 is obtained by one operation.

【0014】第二の例として、マスクレジスタ出力24
中の0のビットに対応する演算リソースa21及びb2
2のビットを両方とも2にすることにより、マスクレジ
スタ出力24中の1のビットの部分に対応する演算リソ
ースa21,b22の部分演算を1回の演算で行う。
As a second example, the mask register output 24
Arithmetic resources a21 and b2 corresponding to the 0 bits in
By setting both bits of 2 to 2, the partial operation of the operation resources a21 and b22 corresponding to the bit of 1 in the mask register output 24 is performed in one operation.

【0015】[0015]

【発明の効果】以上説明したように、本発明の演算回路
は、データをマスク制御するマスクパターンを保持する
マスクレジスタと、マスク制御の種類を指定するマスク
制御レジスタと、これらの出力によって演算リソースを
制御するマスク制御回路とを有することにより、従来、
個別に実行していたデータのマスクと演算を同時に実行
することが可能となり、データ処理装置の処理性能の向
上を図ることができるという効果がある。
As explained above, the arithmetic circuit of the present invention has a mask register that holds a mask pattern for masking data, a mask control register that specifies the type of mask control, and arithmetic resources that are controlled by the outputs of these registers. Conventionally, by having a mask control circuit that controls
Data masking and calculation, which were previously executed separately, can now be executed at the same time, resulting in an effect that the processing performance of the data processing device can be improved.

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

【図1】本発明の一実施例の演算回路のブロック図であ
る。
FIG. 1 is a block diagram of an arithmetic circuit according to an embodiment of the present invention.

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

10    マスクレジスタ 11    マスク制御レジスタ 12    マスク制御回路a 13    マスク制御回路b 14    算術論理演算回路 20    マスクレジスタ入力 21    演算リソースa 22    演算リソースb 23    マスク制御レジスタ 24    マスクレジスタ出力 25    マスク制御レジスタ出力 26    演算入力a 27    演算入力b 28    演算結果出力 10 Mask register 11 Mask control register 12 Mask control circuit a 13 Mask control circuit b 14 Arithmetic logic operation circuit 20 Mask register input 21 Computation resource a 22 Computation resource b 23 Mask control register 24 Mask register output 25 Mask control register output 26 Calculation input a 27 Calculation input b 28 Operation result output

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  データ処理装置中に演算リソースを入
力し算術論理演算回路により演算する演算回路において
、データをマスク制御するマスクパターンを保持するマ
スクレジスタと、マスク制御の種類を指定するマスク制
御レジスタと、前記マスクレジスタからのマスクパター
ンと前記マスク制御レジスタからのマスク制御の種類と
により前記演算リソースをマスク制御し演算入力を出力
するマスク制御回路とを有し、前記算術論理演算回路に
より前記演算入力を演算することを特徴とする演算回路
Claim 1: In an arithmetic circuit that inputs arithmetic resources into a data processing device and performs arithmetic operations using an arithmetic logic circuit, a mask register that holds a mask pattern for masking data and a mask control register that specifies the type of mask control. and a mask control circuit that performs mask control on the arithmetic resource according to the mask pattern from the mask register and the type of mask control from the mask control register and outputs the arithmetic input, and the arithmetic logic circuit controls the arithmetic operation. An arithmetic circuit characterized by calculating input.
JP7806591A 1991-04-11 1991-04-11 Arithmetic circuit Pending JPH04312118A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7806591A JPH04312118A (en) 1991-04-11 1991-04-11 Arithmetic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7806591A JPH04312118A (en) 1991-04-11 1991-04-11 Arithmetic circuit

Publications (1)

Publication Number Publication Date
JPH04312118A true JPH04312118A (en) 1992-11-04

Family

ID=13651447

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7806591A Pending JPH04312118A (en) 1991-04-11 1991-04-11 Arithmetic circuit

Country Status (1)

Country Link
JP (1) JPH04312118A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09198231A (en) * 1996-01-22 1997-07-31 Nec Corp Arithmetic processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09198231A (en) * 1996-01-22 1997-07-31 Nec Corp Arithmetic processor

Similar Documents

Publication Publication Date Title
JPH04350758A (en) Workstation having multiprocessing capability
JPH04312118A (en) Arithmetic circuit
JPH07107664B2 (en) Multiplication circuit
JP2557629B2 (en) Interrupt method
KR970004474B1 (en) Method and apparatus for explicitly evaluating conditions in a data processor
JPS607540A (en) Interruption control circuit
JPH04297924A (en) Shift operation circuit
JPS60163134A (en) Virtual computer system
JPH0553759A (en) Fixed decimal point arithmetic unit
JP3708560B2 (en) Data flow type information processor
JPH0883165A (en) Comparator device
JP2002091929A (en) Simd type parallel processor
JP2989829B2 (en) Vector processing method
JPS62123526A (en) Central processing unit for digital signal processor
JP3110072B2 (en) Pre-normalization circuit
JPH04364525A (en) Parallel arithmetic unit
JPH0281134A (en) Address generating device
JP2989830B2 (en) Vector processing method
JPS6120130A (en) Processing unit
JPS61241843A (en) Information processor
JPH0378832A (en) Data processor
JPS63187332A (en) Arithmetic processing unit
JPH025128A (en) Dividing circuit
JP2000040015A (en) In-circuit emulator
JPH06274353A (en) Signal processing processor