JPH0193868A - Data processor - Google Patents

Data processor

Info

Publication number
JPH0193868A
JPH0193868A JP62251269A JP25126987A JPH0193868A JP H0193868 A JPH0193868 A JP H0193868A JP 62251269 A JP62251269 A JP 62251269A JP 25126987 A JP25126987 A JP 25126987A JP H0193868 A JPH0193868 A JP H0193868A
Authority
JP
Japan
Prior art keywords
data
area
mask
register
dst
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.)
Granted
Application number
JP62251269A
Other languages
Japanese (ja)
Other versions
JPH0547867B2 (en
Inventor
Mitsuo Ouchi
大内 光郎
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 JP62251269A priority Critical patent/JPH0193868A/en
Publication of JPH0193868A publication Critical patent/JPH0193868A/en
Publication of JPH0547867B2 publication Critical patent/JPH0547867B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To execute a raster operation at high speed by selecting the type of the operation of respective parts from the plural types of the previously provided operations according to the contents of the storage of source data. CONSTITUTION:For instance, in case of the logic operation of REPLACE, the data is read from a first source area before the logic operation and stored in a MASK register 4. Then, according to the contents of the MASK register 4, the type of the logic operation by the logic operation circuit 5 of the respective bits of a second source area and a destination area stored in a SRC register 2 and a DST register 3 is changed. Namely, the respective bits of the MASK register 4 are referred and in case of '1', the logic operation is set to REPLACE and in case of '0', it is set to NOP (the data of the destination area is directly rewritten). According to such a processing, the number of memory accesses conventionally requiring 9M times can be reduced to 4M times.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は1ワードがNビット (Nは整数)で構成され
るデータを2次元の配列状に格納したメモリをワード単
位でリード・ライトするデータ処理装置に関し、特にメ
モリ上に展開された画像データのいわゆるラスク演算を
高速に実行するデータ処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to data processing that reads and writes in word units a memory that stores data in a two-dimensional array in which each word consists of N bits (N is an integer). The present invention relates to an apparatus, and particularly to a data processing apparatus that performs a so-called rask operation on image data developed on a memory at high speed.

従来の技術 近年、ワードプロセッサやイメージ・ワークステーショ
ン等、文章や画像を簡便に編集できる装置が普及して来
ている。これらの装置に必要な機能としていわゆるラス
ク演算が重要視されて来ている。ラスク演算とは、メモ
リ上に2次元のビット・イメージで展開された画像デー
タをある領域から別の領域に転送する際の論理演算をい
う。これらの領域は一般に矩形゛であり、従来のマスク
演算は次のようにして行われていた。
2. Description of the Related Art In recent years, devices such as word processors and image workstations that can easily edit texts and images have become popular. The so-called rask operation is becoming more important as a function necessary for these devices. Rask operation refers to a logical operation when transferring image data developed as a two-dimensional bit image on memory from one area to another area. These areas are generally rectangular, and conventional mask operations are performed as follows.

画像データの転送元領域をS RC(SO[IRCE)
領域、転送先領域をD S T (DESTINATI
ON)領域と呼ぶことにする。このSRC領域をDST
領域に転送する際、まずSRC領域の1ワードのデータ
Aをリードし、続いてこのワードを転送すべきDST領
域の1ワードのデータBをリードする。ここでデータA
とデータBを論理演算し、得られたデータをDST領域
のもとのワードに書き戻す。論理演算の種類としてはA
ND (論理積)、OR(論理和)、X0R(排他的論
理和) 、REPLACE(SRC領域のデータをその
ままDST領域に書き込む)などが選択できる。このよ
うな処理をSRC領域、DST領域の全ワードについて
行う。
Transfer source area of image data to SRC (SO[IRCE)
DESTINATI area, transfer destination area
ON) area. DST this SRC area
When transferring data to an area, one word of data A in the SRC area is first read, and then one word of data B in the DST area to which this word is to be transferred is read. Here data A
and data B, and write the obtained data back to the original word in the DST area. The type of logical operation is A.
ND (logical product), OR (logical sum), X0R (exclusive logical sum), REPLACE (write data in the SRC area as is to the DST area), etc. can be selected. Such processing is performed for all words in the SRC area and DST area.

発明が解決しようとする問題点 ところで、上述したような従来のマスク演算では第3図
に示したような2箇所のSRC領域と1つのDST領域
を対象するマスク演算を行うためには、一般につぎの3
段階の処理を行わなければならなかった。なお、第3図
において黒の部分は” 1 ” 、白の部分は0″が対
応するメモリに書き込まれているとする。
Problems to be Solved by the Invention By the way, in the conventional mask calculation as described above, in order to perform a mask calculation that targets two SRC areas and one DST area as shown in FIG. No. 3
Steps had to be taken. In FIG. 3, it is assumed that "1" is written in the black part and "0" is written in the white part in the corresponding memory.

第1段階:第1SRC領域の反転データとDST領域を
ANDLで結果を第1ワー ク領域に格納する。
First stage: ANDL the inverted data of the first SRC area and the DST area and store the result in the first work area.

第2段階:第1SRC領域と第23RC領域をA N 
D Lで結果を第2ワーク領域に格納する。
2nd stage: 1st SRC area and 23rd RC area
DL stores the result in the second work area.

第3段階;第1ワーク領域と第2ワーク領域をORして
結果をDST領域に格納す る。
Third stage: OR the first work area and the second work area and store the result in the DST area.

ここで、→−り領域は、メモリ上の矩形領域で、SRC
領域やDST領域とは別に用意しておく。
Here, the →-ri area is a rectangular area on the memory, and the SRC
It is prepared separately from the area and the DST area.

これら3つの段階の処理のために、1つの矩形領域のワ
ード数をMとすると、6Mワードのリードと3Mワード
のライト、合計9M回ものメモリ・アクセスを必要とし
た。
For these three stages of processing, assuming that the number of words in one rectangular area is M, a total of 9M memory accesses, including reading of 6M words and writing of 3M words, were required.

このように、第1SRC領域のデータで定義された任意
形状の領域だけをモディファイする処理は、基本的な矩
形領域のマスク演算の発展形として重要視されているの
にもかかわらず、処理が低速であるという問題があった
In this way, although the process of modifying only the arbitrary-shaped area defined by the data of the first SRC area is regarded as an advanced form of the basic rectangular area mask operation, the processing speed is slow. There was a problem that.

そこで、本発明は、マスク演算を高速処理できるデータ
処理装置を提供せんとするものである。
Therefore, it is an object of the present invention to provide a data processing device that can process mask operations at high speed.

問題点を解決するための手段 本発明によるならば、1ワードがNビット(Nは正の整
数)で構成されるデータを2次元の配列状に格納したメ
モリを前記ワード単位でリード・ライトするデ・−り処
理装置において、前記メモリ内の少なくとも3箇所の任
意の領域に対応する3種類のアドレスを順次発生してデ
ータを読み出すリード手段と、前記リード手段1ごより
前記3種頚のアドレスに対応して読み出された各Nビッ
トのデータを格納する第1、第2、第3の記憶手段と、
前記第1の記憶手段の記憶データと前記第2の記憶手段
の記憶データの演算をn個(nはn≦Nの正の整数)の
パートに分割し、前記各パートの演算種類をそれぞれ独
立に定めて実行する演算手段とを有し、前記演算手段は
、各パートの前記演算種類をあらかじめ備えた複数の演
算種類の中から、前記第3の記憶手段の記憶データによ
って選択することを特徴とするデータ処理装置が提供さ
れる。
Means for Solving the Problems According to the present invention, a memory storing data in a two-dimensional array, each word consisting of N bits (N is a positive integer), is read and written in word units. In the data processing device, there is provided a read means for reading data by sequentially generating three types of addresses corresponding to at least three arbitrary areas in the memory, and a read means for reading data from the read means 1; first, second, and third storage means for storing each N-bit data read corresponding to;
The operation of the data stored in the first storage means and the data stored in the second storage means is divided into n parts (n is a positive integer of n≦N), and the type of operation of each part is independent. and an arithmetic means that executes the arithmetic operation according to the above, and the arithmetic means selects the arithmetic operation type of each part from a plurality of arithmetic operation types based on the data stored in the third storage means. A data processing device is provided.

作用 上記した本発明によるデータ転送装置の動作を第3図を
例に説明する。
Operation The operation of the data transfer apparatus according to the present invention described above will be explained using FIG. 3 as an example.

上記した本発明によるデータ転送装置においては、RE
PLACEの論理演算に先だって第1SRC領域からデ
ータを読んで、前記第3の記憶手段に格納しておく。こ
のデータをマスク・データと呼ぶ。次に、マスク・デー
タの内容によって、第1及び第2の記憶手段に格納した
第23RC領域とDST領域の各ビットの論理演算の種
類を変える。
In the data transfer device according to the present invention described above, RE
Prior to the logical operation of PLACE, data is read from the first SRC area and stored in the third storage means. This data is called mask data. Next, the type of logical operation for each bit of the 23rd RC area and DST area stored in the first and second storage means is changed depending on the contents of the mask data.

すなわち、マスク・データの各ビットを参照し、“1″
であれば論理演算をREPLACEとし、0”であれば
NOP (D’ST領域のデータをそのまま書きもどす
)とする。このような処理によって、従来9M回必要だ
ったメモリ・アクセス回数を4M回に削減することがで
きる。
In other words, refer to each bit of mask data and set it to “1”.
If so, the logical operation is REPLACE, and if it is 0, it is NOP (the data in the D'ST area is written back as is). Through this process, the number of memory accesses that were conventionally required 9M times has been reduced to 4M times. can be reduced.

従って、第3図の例では、基本的な処理を、論理演算を
REPLACEとした第23RC領域からDST領域へ
の転送として、その転送を第1SRC領域のデータによ
りマスク処理をする。それ故、マスク処理をしなければ
結果は第23RC領域のパターンと同じになる。
Therefore, in the example of FIG. 3, the basic processing is a transfer from the 23rd RC area to the DST area with the logical operation REPLACE, and the transfer is masked by the data of the first SRC area. Therefore, if mask processing is not performed, the result will be the same as the pattern of the 23rd RC area.

このように、本発明は、マスク演算そのものに“マスク
処理″′の概念を導入して、従来のような3段階に分割
されていた処理を1度で行うことにより、メモリ・アク
セス回数を最小にして、任意形状領域のマスク演算を高
速に実行することができる。
In this way, the present invention minimizes the number of memory accesses by introducing the concept of "mask processing" into the mask operation itself, and by performing the processing that was conventionally divided into three stages at once. , it is possible to perform mask calculations for arbitrary-shaped regions at high speed.

実施例 次に、本発明のデータ処理装置の実施例を添付図面を参
照して説明する。
Embodiment Next, an embodiment of the data processing apparatus of the present invention will be described with reference to the accompanying drawings.

実施例1 第1図は本発明の第1の実施例を示すブロック図である
Embodiment 1 FIG. 1 is a block diagram showing a first embodiment of the present invention.

第1図に示すデータ処理装置は、メモリ (図示しない
)に対しSRC領域やDST領域のアドレスを発生して
データのリード/ライトを制御するメモリ制御回路1を
具備している。そのメモリ制御回路1には、メモリに対
してアドレスを供給するメモリ・アドレス・バス6と、
メモリとのデータ転送を行うメモリ・データ・バス7と
、メモリからリードしたデータを転送するリード・デー
タ・バス8とが結合されている。そして、リード・デー
タ・バス8には、SRC領域のデータを格納しておくS
RCレジスタ2と、DSTIi域のf−夕を格納してお
く DSTレジスタ3と、マスク・データを格納してお
く MA S Kレジスタ4とが結合されている。
The data processing device shown in FIG. 1 includes a memory control circuit 1 that generates addresses for an SRC area and a DST area in a memory (not shown) to control data read/write. The memory control circuit 1 includes a memory address bus 6 that supplies addresses to the memory;
A memory data bus 7 that transfers data to and from the memory is coupled to a read data bus 8 that transfers data read from the memory. The read data bus 8 stores SRC area data.
The RC register 2, the DST register 3 which stores f-data in the DSTIi area, and the MASK register 4 which stores mask data are coupled.

図示のデータ処理装置は、更に、論理演算回路5を有し
ている。この論理演算回路5は、データ・バス10.1
1.12をそれぞれ介して、SRCレジスタ2、DST
レジスタ3、MASKレジスタ4からデータが転送され
、SRCレジスタ2のデータとDSTレジスタ3のデー
タとに対して、MASKレジスタ4のデータに基づいて
論理演算する論理演算回路5を有している。論理演算回
路5の出力データは、ライト・データ・バス9を介して
メモリ制御回路1へ転送される。
The illustrated data processing device further includes a logic operation circuit 5. This logic operation circuit 5 is connected to a data bus 10.1.
1.12 respectively, SRC register 2, DST
Data is transferred from the register 3 and the MASK register 4, and it has a logical operation circuit 5 that performs a logical operation on the data of the SRC register 2 and the data of the DST register 3 based on the data of the MASK register 4. The output data of the logic operation circuit 5 is transferred to the memory control circuit 1 via the write data bus 9.

更に、メモリ制御回路1は、メモリに対してリード要求
信号20、ライト要求信号21をそれぞれ出力し、SR
Cレジスタ2、DSTレジスタ3、MASKレジスタ4
に対してそれぞれデータ・ラッチ信号22.23.24
を出力する。
Furthermore, the memory control circuit 1 outputs a read request signal 20 and a write request signal 21 to the memory, respectively, and outputs a read request signal 20 and a write request signal 21 to the memory.
C register 2, DST register 3, MASK register 4
data latch signals 22, 23, and 24 respectively for
Output.

なお、各レジスタ、データ・バスは16ビツト幅であり
、またメモリ上にはSRC領域、DST領域、およびマ
スク・データが格納されているMASK領域が任意に設
定できる。メモリの1ワードの構成は、16画素のデー
タがパックされているいわゆるプレーン構成である。
Each register and data bus has a width of 16 bits, and an SRC area, a DST area, and a MASK area in which mask data is stored can be arbitrarily set on the memory. The configuration of one word of the memory is a so-called plane configuration in which data of 16 pixels is packed.

動作について詳細に説明する。まず、メモリ制御回路1
があらかじめ設定されたMASK領域の最初のアドレス
をメモリ・アドレス・バス6に出力し、同時にリード要
求信号20をアクティブにする。すると、メモリから読
み出されたリード・テ゛−夕がメモリ・データ・バス7
を介してメモリ制御回路1に取り込まれる。このデータ
はリード・データ・バス8に出力されMASKレジスタ
4にラッチされる。ラッチのタイミングはメモリ制御回
路1からデータ・ラッチ信号24としてMASKレジス
タ4に供給される。
The operation will be explained in detail. First, memory control circuit 1
outputs the first address of the preset MASK area to the memory address bus 6, and simultaneously activates the read request signal 20. Then, the read data read from the memory is transferred to the memory data bus 7.
The data is taken into the memory control circuit 1 via the memory control circuit 1. This data is output to read data bus 8 and latched into MASK register 4. The latch timing is supplied from the memory control circuit 1 to the MASK register 4 as a data latch signal 24.

同様にして、SRC領域の最初のアドレスからデータを
リードしSRCレジスタ2に取り込む。
Similarly, data is read from the first address of the SRC area and taken into the SRC register 2.

SRCレジスタ2のラッチ信号は、やはりメモリ制御回
路1からデータ・ラッチ信号22として供給される。つ
づいてDST領域のデータもDSTレジスタ3に取り込
む。
The latch signal of the SRC register 2 is also supplied as a data latch signal 22 from the memory control circuit 1. Subsequently, data in the DST area is also taken into the DST register 3.

これら3領域のデータを取り込むとマスク演算を開始す
る。このマスク演算を司どるのは論理演算回路5であり
、この回路の動作を以下の第1表を参照して説明する。
Once the data of these three areas are taken in, mask calculation is started. The logic operation circuit 5 controls this mask operation, and the operation of this circuit will be explained with reference to Table 1 below.

第  1  表 (1) 第1表(2) 第1表は、マスク演算の演算例で、MASKレジスタ4
、SRレジスタ2およびDSTレジスタ3にそれぞれ0
FFD++、CCCCH,619(h (Hは16進数
を表わす)がラッチされた場合の演算結果を示しである
。この例では、演算種類が2つあり、第1は、MASK
レジスタ4のビットのうち“1”であるビット位置の演
算はREPLACEすなわちSRCレジスタ2のデータ
が出力される。第2は、MASKレジスタ4のビットの
うち′0″であるビット位置の演算で、NOPすなわち
DSTレジスタ3のデータが出力される。こうして演算
結果6CCOHが得られる。
Table 1 (1) Table 1 (2) Table 1 shows an example of the mask operation.
, 0 in SR register 2 and DST register 3 respectively.
This shows the calculation result when FFD++, CCCCH, 619 (h (H represents a hexadecimal number) is latched. In this example, there are two types of calculations, the first is MASK
In the operation of a bit position of "1" among the bits of register 4, REPLACE, that is, the data of SRC register 2 is output. The second is an operation on the bit position that is ``0'' among the bits of the MASK register 4, and the NOP, that is, the data of the DST register 3, is output.In this way, the operation result 6CCOH is obtained.

さて、論理暗算回路5における演算結果はライト・デー
タ・バス9を介してメモリ制御回路1に人力され、その
後、データはメモリ・データ・バス7、アドレス(DS
T領域のアドレス)はメモリ・アドレス・バス6に出力
され、同時にライト要求信号21がアクティブになる。
Now, the calculation result in the logic mental arithmetic circuit 5 is inputted to the memory control circuit 1 via the write data bus 9, and then the data is transferred to the memory data bus 7 and the address (DS
T area address) is output to the memory address bus 6, and at the same time the write request signal 21 becomes active.

これらの処理をSRC領域、DST領域、MASK領域
の全ワードについて行うと第3図に示したような処理画
像が得られる。
When these processes are performed for all words in the SRC area, DST area, and MASK area, a processed image as shown in FIG. 3 is obtained.

実施例2 次に、本発明の第2の実施例について図面を参照して説
明する。
Example 2 Next, a second example of the present invention will be described with reference to the drawings.

第2図は本発明の第2の実施例を示すブロック図である
FIG. 2 is a block diagram showing a second embodiment of the invention.

第2図のデータ処理装置は、第1図のデータ処理装置に
次の回路を追加したものである。すなわち、第2図のデ
ータ処理装置は、MASKレジスタの16ビツト・デー
タのうちの4ビツトを選択する選択回路50と、選択回
路50から出力された4ビツトのマスク・データを転送
するマスク・データ・バス51とを具備している。また
、第1図における論理演算回路5の代わりに数値演算回
路52を備えている。なお、各レジスタ、データ・バス
はマスク・データ・バス51を除いて16ビツト幅であ
り、またメモリ上にはSRC領域、DST領域、および
マスク・データが格納されているMASK領域が任意に
設定できる。メモリの1ワードの構成は、第1の実施例
とは異なり、1画素4ビツトが4画素パックされている
いわゆるピクセル構成である。
The data processing device shown in FIG. 2 is obtained by adding the following circuit to the data processing device shown in FIG. That is, the data processing device shown in FIG. 2 includes a selection circuit 50 that selects 4 bits out of 16 bits of data in the MASK register, and a mask data that transfers the 4 bits of mask data output from the selection circuit 50.・Bus 51 is provided. Furthermore, a numerical calculation circuit 52 is provided in place of the logical calculation circuit 5 in FIG. Each register and data bus has a width of 16 bits except for the mask data bus 51, and an SRC area, a DST area, and a MASK area where mask data is stored can be arbitrarily set on the memory. can. The configuration of one word of the memory is different from the first embodiment, and is a so-called pixel configuration in which 4 bits per pixel are packed into 4 pixels.

動作について説明する。MASK領域、SRC領域、D
ST領域のアドレスを発生して、メモリから読んだデー
タをMASKレジスタ4、SRCレジスタ2、DSTレ
ジスタ3に取り込むところまでは第1の実施例と同じで
ある。異なるのは、第1の特徴である取り込んだ3つの
領域のデータの演算の方法である。
The operation will be explained. MASK area, SRC area, D
The steps up to generating the address of the ST area and loading the data read from the memory into the MASK register 4, SRC register 2, and DST register 3 are the same as in the first embodiment. The difference is the first feature, which is the method of calculating the data of the three captured areas.

第1の実施例では論理演算回路の演算を制御していたの
は、マスク・データの16ビツト全てだったが、本実施
例の数値演算回路52の演算を制御するのは16ビツト
のマスク・データのうち選択回路50で選択された4ビ
ツトである。最初に選ばれるのはマスク・データの最上
位ビットから4ビツト(MASKレジスタ4のビット位
置が15〜12)である。
In the first embodiment, all 16 bits of mask data controlled the operations of the logic operation circuit, but in this embodiment, the operations of the numerical operation circuit 52 are controlled by the 16-bit mask data. These are the 4 bits selected by the selection circuit 50 out of the data. The first four bits of the mask data are selected from the most significant bits (bit positions 15 to 12 of MASK register 4).

演算例を以下の第2表に示す。Examples of calculations are shown in Table 2 below.

第2表(2) 第2表(2) マスク・データが“1″のとき、そのビットが対応する
SRC領域の4ビツトが出力され、“0”の時はDST
領域の4ビツトが出力される。得られた16ビツト・デ
ータは第1の実施例と同じ手順でメモリに書込まれる。
Table 2 (2) Table 2 (2) When mask data is “1”, 4 bits of the SRC area corresponding to that bit are output, and when it is “0”, DST
The 4 bits of the area are output. The obtained 16-bit data is written to memory using the same procedure as in the first embodiment.

こうして、最初のワードが処理されたが、本実施例の第
2の特徴は次の処理にある。2番目のMASK領域のデ
ータを読まないで、SRC領域とDST領域のデータだ
けをSRCレジスタ2、DSTレジスタ3に取り込む。
Thus, the first word has been processed, but the second feature of this embodiment lies in the following processing. Only the data in the SRC area and DST area is taken into the SRC register 2 and DST register 3 without reading the data in the second MASK area.

さらに、DSTレジスタ3をラッチすると同時に、その
データ・ランチ信号23により選択回路50は次の4ピ
ツ)  (MASKレジスタ4のビット位置が11〜8
)をマスク・データ・バス51に出力する。これ以降は
最初のワードの処理と同じである。さらに第3、第4の
ワードの処理も同様にマスク・データの選択を変えて処
理を行う。
Furthermore, at the same time as the DST register 3 is latched, the selection circuit 50 selects the next 4 bits by the data launch signal 23.
) is output to the mask data bus 51. From this point onwards, the processing is the same as for the first word. Furthermore, the third and fourth words are similarly processed by changing the selection of mask data.

この時点で最初に読んだマスク・データを全て参照した
ことになる。従って、第5のワードの処理は最初と同様
にMASK領域のデータの読み込みから始まる。
At this point, all the mask data that was read first has been referenced. Therefore, processing of the fifth word begins with reading data in the MASK area, as in the first case.

これらの処理をSRC領域、DST領域、MASK領域
の全ワードについて行うと全ての処理が終了する。
When these processes are performed for all words in the SRC area, DST area, and MASK area, all the processes are completed.

発明の効果 以上述べたように、本発明によれば論理演算を制御する
マスク・データを逐次リードすることにより、任意領域
のマスク演算を高速に実行することができた。これによ
り、ワードプロセッサやイメージ・ワークステーション
はもとより、一般のパーソナル・コンピュータにおける
種々のアプリケーションの処理性能を飛曜的に向上させ
ることができると考えられる。
Effects of the Invention As described above, according to the present invention, by sequentially reading mask data that controls logical operations, mask operations in arbitrary areas can be executed at high speed. It is thought that this will dramatically improve the processing performance of various applications in general personal computers, as well as word processors and image workstations.

なお、実施例では1ワードを16ビツトとしたが、本発
明はこれに制限されるものではない。また第1の実施例
において、論理演算としてNOPとREPLACEを例
示したが、AND、0RSXOR等をはじめ、SRC領
域あるいはDST領域からのリード・データを反転して
から論理演算するような高機能の演算回路を備えること
も可能である。
In the embodiment, one word is made up of 16 bits, but the present invention is not limited to this. In addition, in the first embodiment, NOP and REPLACE were illustrated as logical operations, but high-performance operations such as AND, 0RSXOR, etc., such as inverting read data from the SRC area or DST area and then performing a logical operation It is also possible to provide a circuit.

さらに、第2の実施例ではマスク・データのリード回数
を大幅に削減することにより、より一層の性能向上を実
現できた。この第2の実施例における数値演算処理は、
単純なREPLACEを例に掲げたが、マスク・データ
I10によりSRC領域のデータとDST領域のデータ
を4ビツトの数値と考えて、種々の比較演算を行うこと
も容易に考えられる。
Furthermore, in the second embodiment, by significantly reducing the number of times mask data is read, further performance improvement can be achieved. The numerical calculation process in this second embodiment is as follows:
Although a simple REPLACE is taken as an example, it is easily possible to perform various comparison operations by considering the data in the SRC area and the data in the DST area as 4-bit numerical values using the mask data I10.

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

第1図は、マスク演算を高速に実行する本発明によるデ
ータ処理装置の第1の実施例を示すブロック図、 第2図は、マスク演算を高速に実行する本発明によるデ
ータ処理装置の第2の実施例を示すブロック図、 第3図は、マスク演算の具体例を示す図である。 (主な参照番号) 1・・メモリ制御回路、 2・・SRCレジスク、 3・・DSTレジスタ、 4・・MASKレジスタ、 5・・論理演算回路、 6・・メモリ・アドレス・バス、 7・・メモリ・データ・バス、 8・・リード・データ・バス、 9・・ライト・データ・バス、 10、 11. 12・・データ・バス、20・・リー
ド要求信号、 21・・ライト要求信号、 22、23.24・・データ・ラッチ信号、50・・選
択回路、 51・・マスク・データ・バス、 52・・数値演算回路
FIG. 1 is a block diagram showing a first embodiment of a data processing device according to the present invention that executes mask operations at high speed. FIG. 2 is a block diagram showing a second embodiment of a data processing device according to the present invention that executes mask operations at high speed. FIG. 3 is a block diagram showing an example of the mask operation. (Main reference numbers) 1...Memory control circuit, 2...SRC register, 3...DST register, 4...MASK register, 5...Logic operation circuit, 6...Memory address bus, 7... Memory data bus, 8. Read data bus, 9. Write data bus, 10, 11. 12...Data bus, 20...Read request signal, 21...Write request signal, 22, 23.24...Data latch signal, 50...Selection circuit, 51...Mask data bus, 52.・Numerical calculation circuit

Claims (1)

【特許請求の範囲】  1ワードがNビット(Nは正の整数)で構成されるデ
ータを2次元の配列状に格納したメモリを前記ワード単
位でリード・ライトするデータ処理装置において、 前記メモリ内の少なくとも3箇所の任意の領域に対応す
る3種類のアドレスを順次発生してデータを読み出すリ
ード手段と、前記リード手段によって前記3種類のアド
レスに対応して読み出された各Nビットのデータを格納
する第1、第2、第3の記憶手段と、前記第1の記憶手
段の記憶データと前記第2の記憶手段の記憶データの演
算をn個(nはn≦Nの正の整数)のパートに分割し、
前記各パートの演算種類をそれぞれ独立に定めて実行す
る演算手段とを有し、前記演算手段は、各パートの前記
演算種類をあらかじめ備えた複数の演算種類の中から、
前記第3の記憶手段の記憶データによって選択すること
を特徴とするデータ処理装置。
[Scope of Claims] A data processing device that reads and writes in units of words a memory storing data in a two-dimensional array, each word of which is composed of N bits (N is a positive integer), comprising: read means for reading data by sequentially generating three types of addresses corresponding to at least three arbitrary areas; and read means for reading data by sequentially generating three types of addresses corresponding to at least three arbitrary areas; n first, second, and third storage means to store data, and n operations on data stored in the first storage means and data stored in the second storage means (n is a positive integer of n≦N). divided into parts,
calculation means for independently determining and executing the calculation types of each part, and the calculation means selects a calculation type from among a plurality of calculation types preliminarily provided with the calculation types of each part.
A data processing device characterized in that the selection is made based on data stored in the third storage means.
JP62251269A 1987-10-05 1987-10-05 Data processor Granted JPH0193868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62251269A JPH0193868A (en) 1987-10-05 1987-10-05 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62251269A JPH0193868A (en) 1987-10-05 1987-10-05 Data processor

Publications (2)

Publication Number Publication Date
JPH0193868A true JPH0193868A (en) 1989-04-12
JPH0547867B2 JPH0547867B2 (en) 1993-07-19

Family

ID=17220278

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62251269A Granted JPH0193868A (en) 1987-10-05 1987-10-05 Data processor

Country Status (1)

Country Link
JP (1) JPH0193868A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103460182A (en) * 2011-04-01 2013-12-18 英特尔公司 Systems, apparatuses, and methods for blending two source operands into a single destination using a writemask

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS619766A (en) * 1984-06-26 1986-01-17 Matsushita Electric Ind Co Ltd Data transfer device
JPS61264379A (en) * 1985-05-20 1986-11-22 株式会社日立製作所 Memory circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS619766A (en) * 1984-06-26 1986-01-17 Matsushita Electric Ind Co Ltd Data transfer device
JPS61264379A (en) * 1985-05-20 1986-11-22 株式会社日立製作所 Memory circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103460182A (en) * 2011-04-01 2013-12-18 英特尔公司 Systems, apparatuses, and methods for blending two source operands into a single destination using a writemask

Also Published As

Publication number Publication date
JPH0547867B2 (en) 1993-07-19

Similar Documents

Publication Publication Date Title
EP0373291B1 (en) Digital signal processor
KR20010031192A (en) Data processing system for logically adjacent data samples such as image data in a machine vision system
JPH077260B2 (en) Image data rotation processing apparatus and method thereof
JPH10187661A (en) Method for entering scalar value of computer into vector
JP2009223758A (en) Image processing apparatus
JPH0414385B2 (en)
JP2806171B2 (en) Data arithmetic unit
US4621324A (en) Processor for carrying out vector operation wherein the same vector element is used repeatedly in succession
JPS6312072A (en) Memory controller
JP2683489B2 (en) Data transfer control device
JPH0193868A (en) Data processor
JPS5952291A (en) Video ram writing controller
JP2003216950A (en) Simd type microprocessor for performing pattern matching or the like
JPH0435792B2 (en)
JPS62171032A (en) Microsequencer for pipeline type arithmetic unit
JP4244619B2 (en) Image data processing device
JPS63304293A (en) Display memory control circuit
JPH0535472A (en) Microcomputer
JPS60124730A (en) Digital operation circuit
JPH01237766A (en) Data processor and picture data processing system using data processor
JP2771350B2 (en) Image processing device
JP2692865B2 (en) Sequencer differential instruction processing method
JPH0765198A (en) Image memory device
JPS62133559A (en) Memory interface circuit
JPH02105264A (en) Memory device for processing graphic data

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070719

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080719

Year of fee payment: 15

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080719

Year of fee payment: 15