JPH0547867B2 - - Google Patents

Info

Publication number
JPH0547867B2
JPH0547867B2 JP62251269A JP25126987A JPH0547867B2 JP H0547867 B2 JPH0547867 B2 JP H0547867B2 JP 62251269 A JP62251269 A JP 62251269A JP 25126987 A JP25126987 A JP 25126987A JP H0547867 B2 JPH0547867 B2 JP H0547867B2
Authority
JP
Japan
Prior art keywords
data
area
word
areas
src
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.)
Expired - Lifetime
Application number
JP62251269A
Other languages
Japanese (ja)
Other versions
JPH0193868A (en
Inventor
Mitsuo Oochi
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
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
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

Description

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

産業上の利用分野 本発明は1ワードがNビツト(Nは整数)で構
成されるデータを2次元の配列状に格納したメモ
リをワード単位でリード・ライトするデータ処理
装置に関し、特にメモリ上に展開された画像デー
タのいわゆるラスタ演算を高速に実行するデータ
処理装置に関する。 従来の技術 近年、ワードプロセツサやイメージ・ワークス
テーシヨン等、文章や画像を簡便に編集できる装
置が普及して来ている。これらの装置に必要な機
能としていわゆるラスタ演算が重要視されて来て
いる。ラスタ演算とは、メモリ上に2次元のビツ
ト・イメージで展開された画像データをある領域
から別の領域に転送する際の論理演算をいう。こ
れらの領域は一般に矩形であり、従来のラスタ演
算は次のようにして行われていた。 画像データの転送元領域をSRC(SOURCE)領
域、転送先領域をDST(DESTINATION)領域
と呼ぶことにする。このSRC領域をDST領域に
転送する際、まずSRC領域の1ワードのデータ
Aをリードし、続いてこのワードを転送すべき
DST領域の1ワードのデータBをリードする。
ここでデータAとデータBを論理演算し、得られ
たデータをDST領域のもとのワードに書き戻す。
論理演算の種類としてはAND(論理積)、OR(論
理和)、XOR(排他的論理和)、REPLACE(SRC
領域のデータをそのままDST領域に書き込む)
などが選択できる。このような処理をSRC領域、
DST領域の全ワードについて言う。 発明が解決しようとする問題点 ところで、上述したような従来のラスタ演算で
は第3図に示したような2箇所のSRC領域と1
つのDST領域を対象するラスタ演算を行うため
には、一般につぎに3段階の処理を行わなければ
ならなかつた。なお、第3図において黒の部分は
“1”、白の部分は“0”が対応するメモリに書き
込まれているとする。 第1段階:第1SRC領域の反転データとDST領
域をANDとして結果を第1ワーク
領域に格納する。 第2段階:第1SRC領域と第2SRC領域をAND
して結果を第2ワーク領域に格納す
る。 第3段階:第1ワーク領域と第2ワーク領域を
ORして結果をDST領域に格納す
る。 ここで、ワーク領域は、メモリ上の矩形領域
で、SRC領域やDST領域とは別に用意しておく。 これら3つの段階の処理のために、1つの矩形
領域のワード数をMとすると、6Mワードのリー
ドと3Mワードのライト、合計9M回ものメモリ・
アクセスを必要とした。 このように、第1SRC領域のデータで定義され
た任意形状の領域だけをモデイフアイする処理
は、基本的な矩形領域のラスタ演算の発展形とし
て重要視されているのにもかかわらず、処理が低
速であるという問題があつた。 そこで、本発明は、ラスタ演算を高速処理でき
るデータ処理装置を提供せんとするものである。 問題点を解決するための手段 本発明によるならば、1ワードがNビツト(N
は正の整数)で構成されたデータを2次元の配列
状に格納し、転送先領域と第1および第2の転送
元領域とを含む少なくとも3箇所のデータ格納領
域を有するメモリに対して、該3箇所の領域に格
納されたデータを読み出して相互に演算し、該転
送先領域に書き込むデータを発生するデータ処理
装置において、該3箇所の領域の対応する3種類
のアドレスを順次発生して、該領域の各々に格納
されたデータをそれぞれワード毎に読み出すリー
ド手段と、該リード手段によつて読みされた各1
ワードのデータを格納する第1、第2および第3
の記憶手段と、該第1記憶手段および該第2記憶
手段に格納されたデータの相互の演算処理をn個
(nはn≦Nの正の整数)のパートに分割し、該
パートの各々における演算種類を個別に選択して
実行できる演算手段と、該演算手段において選択
される演算種類を特定するデータとして該第3記
憶手段に格納されたデータを該演算手段に入力す
る接続手段とを備え、該演算手段が、予め規定さ
れた複数の演算種類から選択された演算種類の演
算を実行するように構成されていることを特徴と
するデータ処理装置が提供される。 作 用 上記した本発明によるデータ転送装置の動作を
第3図を例に説明する。 上記した本発明によるデータ転送装置において
は、REPLACEの論理演算に先だつて第1SRC領
域からデータを読んで、前記第3の記憶手段に格
納しておく。このデータをマスク・データを呼
ぶ。次に、マスク・データの内容によつて、第1
及び第2の記憶手段に格納した第2SRC領域と
DST領域の各ビツトの論理演算の種類を変える。 すなわち、マスク・データの各ビツトを参照
し、“1”であれば論理演算をREPLACEとし、
“0”であればNOP(DST領域のデータをそのま
ま書きもどす)とする。このような処理によつ
て、従来9M回必要だつたメモリ・アクセス回数
を4M回に削減することができる。 従つて、第3図の例では、基本的な処理を、論
理演算をREPLACEとした第2SRC領域からDST
領域への転送として、その転送を第1SRC領域の
データによりマスク処理をする。それ故、マスク
処理をしなければ結果は第2SRC領域のパターン
と同じになる。 このように、本発明は、ラスタ演算そのものに
“マスク処理”の概念を導入して、従来のような
3段階に分割されていた処理を1度で行うことに
より、メモリ・アクセス回数を最小ににして、任
意形状領域のラスタ演算を高速に実行することが
できる。 実施例 次に、本発明のデータ処理装置の実施例を添付
図面を参照して説明する。 実施例 1 第1図は本発明の第1の実施例を示すブロツク
図である。 第1図に示すデータ処理装置は、メモリ(図示
しない)に対しSRC領域やDST領域のアドレス
を発生してデータのリード/ライトを制御するメ
モリ制御回路1を具備している。そのメモリ制御
回路1には、メモリに対してアドレスを供給する
メモリ・アドレス・バス6と、メモリとのデータ
転送を行うメモリ・データ・バス7と、メモリか
らリードしたデータを転送するリード・データ・
バス8とが結合されている。そして、リード・デ
ータ・バス8には、SRC領域のデータを格納し
ておくSRCレジスタ2と、DST領域のデータを
格納しておくDSTレジスタ3と、マスク・デー
タを格納しておくMASKレジスタ4とが結合さ
れている。 図示のデータ処理装置は、更に、論理演算回路
5を有している。この論理演算回路5は、デー
タ・バス10,11,12をそれぞれ介して、
SRCレジスタ2、DSTレジスタ3、MASKレジ
スタ4からデータが転送され、SRCレジスタ2
のデータとDSTレジスタ3のデータとに対して、
MASKレジスタ4のデータに基づいて論理演算
する論理演算回路5を有している。論理演算回路
5の出力データは、ライト・データ・バス9を介
してメモリ制御回路1へ転送される。 更に、メモリ制御回路1は、メモリに対してリ
ード要求信号20、ライト要求信号21をそれぞ
れ出力し、SRCレジスタ2、DSTレジスタ3、
MASKレジスタ4に対してそれぞれデータ・ラ
ツチ信号22,23,24を出力する。 なお、各レジスタ、データ・バスは16ビツト幅
であり、またメモリ上にはSRC領域、DST領域、
およびマスク・データが格納されているMASK
領域が任意に設定できる。メモリの1ワードの構
成は、16画素のデータがパツクされているいわゆ
るプレーン構成である。 動作について詳細に説明する。まず、メモリ制
御回路1があらかじめ設定されたMASK領域の
最初のアドレスをメモリ・アドレス・バス6に出
力し、同時にリード要求信号20をアクテイブに
する。すると、メモリから読み出されたリード・
データがメモリ・データ・バス7を介してメモリ
制御回路1に取り込まれる。このデータはリー
ド・データ・バス8に出力されASKレジスタ4
にラツチされる。ラツチのタイミングはメモリ制
御回路1からデータ・ラツチ信号24として
MASKレジスタ4に供給される。 同様にして、SRC領域の最初のアドレスから
データをリードしSRCレジスタ2に取り込む。
SRCレジスタ2のラツチ信号は、やはメモリ制
御回路1からデータ・ラツチ信号22として供給
される。つづいてDST領域のデータもDSTレジ
スタ3に取り込む。 これら3領域のデータを取り込むとラスタ演算
を開始する。このラスタ演算を司どるのは論理演
算回路5であり、この回路の動作を以下の第1表
を参照して説明する。
INDUSTRIAL APPLICATION FIELD The present invention relates to a data processing device that reads and writes data word by word in which data in which one word consists of N bits (N is an integer) is stored in a two-dimensional array. The present invention relates to a data processing device that performs so-called raster operations on expanded image data at high speed. 2. Description of the Related Art In recent years, devices such as word processors and image workstations that allow text and images to be easily edited have become popular. So-called raster operations are becoming more important as a function necessary for these devices. Raster operation refers to a logical operation when image data developed as a two-dimensional bit image on memory is transferred from one area to another area. These areas are generally rectangular, and conventional raster operations are performed as follows. The source area of the image data will be referred to as the SRC (SOURCE) area, and the destination area will be referred to as the DST (DESTINATION) area. When transferring this SRC area to the DST area, first read one word of data A in the SRC area, and then transfer this word.
Read one word of data B in the DST area.
Here, a logical operation is performed on data A and data B, and the obtained data is written back to the original word in the DST area.
The types of logical operations are AND (logical product), OR (logical sum), XOR (exclusive logical sum), and REPLACE (SRC
Write the data in the area as is to the DST area)
etc. can be selected. This kind of processing is done in the SRC area,
This refers to all words in the DST area. Problems to be Solved by the Invention By the way, in the conventional raster operation as described above, two SRC areas and one
In order to perform raster operations on two DST regions, three stages of processing generally have to be performed. 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. First step: AND the inverted data of the first SRC area and the DST area and store the result in the first work area. 2nd stage: AND the 1st SRC area and 2nd SRC area
and stores the results in the second work area. 3rd stage: 1st work area and 2nd work area
OR and store the result in the DST area. Here, the work area is a rectangular area on memory, and is prepared separately from the SRC area and DST area. For these three stages of processing, if the number of words in one rectangular area is M, 6M words are read and 3M words are written, a total of 9M times.
needed access. In this way, although the process of modifying only the arbitrarily shaped area defined by the data of the first SRC area is regarded as an advanced form of raster operations for basic rectangular areas, 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 raster operations at high speed. Means for Solving the Problems According to the present invention, one word consists of N bits (N
is a positive integer) in a two-dimensional array, and has at least three data storage areas including a transfer destination area and first and second transfer source areas, In a data processing device that reads data stored in the three areas, performs mutual operations, and generates data to be written to the transfer destination area, three types of addresses corresponding to the three areas are sequentially generated. , read means for reading out the data stored in each of the areas word by word, and each word read by the read means.
a first, a second and a third for storing word data;
The mutual arithmetic processing of the data stored in the storage means, the first storage means and the second storage means is divided into n parts (n is a positive integer of n≦N), and each of the parts is a calculation means capable of individually selecting and executing the type of calculation in the calculation means; and a connection means for inputting data stored in the third storage means to the calculation means as data specifying the type of calculation selected by the calculation means. There is provided a data processing device, wherein the arithmetic means is configured to execute an arithmetic operation of an arithmetic type selected from a plurality of predefined arithmetic types. Operation The operation of the data transfer device according to the present invention described above will be explained using FIG. 3 as an example. In the data transfer device according to the present invention described above, data is read from the first SRC area and stored in the third storage means prior to the logical operation of REPLACE. This data is called mask data. Next, depending on the contents of the mask data, the first
and a second SRC area stored in the second storage means.
Change the type of logical operation for each bit in the DST area. In other words, each bit of the mask data is referenced, and if it is "1", the logical operation is REPLACE,
If it is “0”, it is a NOP (the data in the DST area is written back as is). Through such processing, the number of memory accesses that were conventionally required 9M times can be reduced to 4M times. Therefore, in the example shown in Figure 3, the basic processing is performed from the second SRC area with the logical operation as REPLACE.
As a transfer to the area, the transfer is masked using the data of the first SRC area. Therefore, without masking, the result will be the same as the pattern in the second SRC area. In this way, the present invention minimizes the number of memory accesses by introducing the concept of "mask processing" into the raster operation itself and performing processing that was previously divided into three stages in one go. , it is possible to perform raster operations on arbitrarily shaped areas 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. Embodiment 1 FIG. 1 is a block diagram showing a first embodiment of the present invention. 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, and a read data bus 7 that transfers data read from the memory.・
The bus 8 is connected to the bus 8. The read data bus 8 includes an SRC register 2 that stores data in the SRC area, a DST register 3 that stores data in the DST area, and a MASK register 4 that stores mask data. are combined. The illustrated data processing device further includes a logic operation circuit 5. This logical operation circuit 5 is connected via data buses 10, 11, and 12, respectively.
Data is transferred from SRC register 2, DST register 3, and MASK register 4, and SRC register 2
For the data of and the data of DST register 3,
It has a logic operation circuit 5 that performs logic operations based on data in 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. Furthermore, the memory control circuit 1 outputs a read request signal 20 and a write request signal 21 to the memory, respectively, and outputs the SRC register 2, DST register 3,
Data latch signals 22, 23, and 24 are output to the MASK register 4, respectively. Each register and data bus are 16 bits wide, and the memory has an SRC area, DST area,
and MASK where mask data is stored
The area can be set arbitrarily. The structure of one word of memory is a so-called plane structure in which 16 pixel data is packed. The operation will be explained in detail. First, the memory control circuit 1 outputs the first address of the preset MASK area to the memory address bus 6, and at the same time makes the read request signal 20 active. Then, the read data read from memory
Data is taken into the memory control circuit 1 via the memory data bus 7. This data is output to read data bus 8 and ASK register 4.
is latched to. The latch timing is determined by the data latch signal 24 from the memory control circuit 1.
Supplied to MASK register 4. Similarly, data is read from the first address of the SRC area and taken into the SRC register 2.
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. When the data of these three areas is taken in, raster calculation is started. The logic operation circuit 5 controls this raster operation, and the operation of this circuit will be explained with reference to Table 1 below.

【表】 第1表は、ラスタ演算の演算例で、MASKレ
ジスタ4、SRレジスタ2およびDSTレジスタ3
にそれぞれOFFOH、CCCCH、6190H(Hは16進数
を表わす)がラツチされた場合の演算結果を示し
てある。この例では、演算種類が2つあり、第1
は、MASKレジスタ4のビツトのうち“1”で
あるビツト位置の演算はREPLACEすなわち
SRCレジスタ2のデータが出力される。第2は、
MASKレジスタ4のビツトのうち“0”である
ビツト位置の演算で、NOPすなわちDSTレジス
タ3のデータが出力される。こうして演算結果
6CCOHが得られる。 さて、論理演算回路5における演算結果はライ
ト・データ・バス9を介してメモリ制御回路1に
入力され、その後、データはメモリ・データ・バ
ス7、アドレス(DST領域のアドレス)はメモ
リ・アドレス・バス6に出力され、同時にライト
要求信号21がアクテイブになる。 これらの処理をSRC領域、DST領域、MASK
領域の全ワードについて行うと第3図に示したよ
うな処理画像が得られる。 実施例 2 次に、本発明の第2の実施例について図面を参
照して説明する。 第2図は本発明の第2の実施例を示すブロツク
図である。 第2図のデータ処理装置は、第1図のデータ処
理装置に次の回路を追加したものである。すなわ
ち、第2図のデータ処理装置は、MASKレジス
タの16ビツト・データのうちの4ビツトを選択す
る選択回路50と、選択回路50から出力された
4ビツトのマスク・データを転送するマスク・デ
ータ・バス51とを具備している。また、第1図
における論理演算回路5の代わりに数値演算回路
52を備えている。なお、各レジスタ、データ・
バスはマスク・データ・バス51を除いて16ビツ
ト幅であり、またメモリ上にはSRC領域、DST
領域、およびマスク・データが格納されている
MASK領域が任意に設定できる。メモリの1ワ
ードの構成は、第1の実施例とは異なり、1画素
4ビツトが4画素パツクされているいわゆるピク
セル構成である。 動作について説明する。MASK領域、SRC領
域、DST領域のアドレスを発生して、メモリか
ら読んだデータをMASKレジスタ4、SRCレジ
スタ2、DSTレジスタ3に取り込むところまで
は第1の実施例と同じである。異なるのは、第1
の特徴である取り込んだ3つの領域のデータの演
算の方法である。 第1の実施例では論理演算回路の演算を制御し
ていたのは、マスク・データの16ビツト全てだつ
たが、本実施例の数値演算回路52の演算を制御
するのは16ビツトのマスク・データのうち選択回
路50で選択された4ビツトである。最初に選ば
れるのはマスク・データの最上位ビツトから4ビ
ツト(MASKレジスタ4のビツト位置が15〜12)
である。 演算例を以下の第2表に示す。
[Table] Table 1 shows examples of raster operations, including MASK register 4, SR register 2, and DST register 3.
2A and 2B show the calculation results when OFFO H , CCCC H , and 6190 H (H represents a hexadecimal number) are latched, respectively. In this example, there are two types of operations, the first
The operation on the bit position that is “1” among the bits in MASK register 4 is REPLACE, that is,
Data of SRC register 2 is output. The second is
By calculating the bit position that is "0" among the bits in the MASK register 4, NOP, that is, data in the DST register 3, is output. In this way, the calculation result
6CCO H is obtained. Now, the operation result in the logic operation circuit 5 is input 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 (address of the DST area) is transferred to the memory address. The write request signal 21 is output to the bus 6, and at the same time the write request signal 21 becomes active. These processes are performed in the SRC area, DST area, and MASK.
If all words in the area are processed, a processed image as shown in FIG. 3 will be obtained. Embodiment 2 Next, a second embodiment of the present invention will be described with reference to the drawings. FIG. 2 is a block diagram showing a second embodiment of the invention. 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. In addition, each register, data
The buses are 16 bits wide except for the mask data bus 51, and the SRC area and DST area are located on the memory.
Area and mask data are stored
MASK area can be set arbitrarily. 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. The operation will be explained. The steps up to generating addresses for the MASK area, SRC area, and DST area and taking 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
This is the method of calculating the data of the three captured areas, which is a feature of . 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 4 bits from the most significant bit of the mask data are selected (bit positions 15 to 12 of MASK register 4).
It is. Examples of calculations are shown in Table 2 below.

【表】 マスク・データが“1”のとき、そのビツトが
対応するSRC領域の4ビツトが出力され、“0”
の時はDST領域の4ビツトが出力される。得ら
れた16ビツト・データは第1の実施例と同じ手順
でメモリに書込まれる。 こうして、最初のワードが処理されたが、本実
施例の第2の特徴は次の処理にある。2番目の
MASK領域のデータを読まないで、SRC領域と
DST領域のデータだけをSRCレジスタ2、DST
レジスタ3に取り込む。さらに、DSTレジスタ
3をラツチすると同時に、そのデータ・ラツチ信
号23により選択回路50は次の4ビツト
(MASKレジスタ4のビツト位置が11〜8)をマ
スク・データ・バス51に出力する。これ以降は
最初のワードの処理と同じである。さらに第3、
第4のワードの処理も同様にマスク・データの選
択を変えて処理を行う。 この時点で最初に読んだマスク・データを全て
参照したことになる。従つて、第5のワードの処
理は最初と同様にMASK領域のデータの読み込
みから始まる。 これらの処理をSRC領域、DST領域、MASK
領域の全ワードについて行うと全ての処理が終了
する。 発明の効果 以上述べたように、本発明によれば論理演算を
制御するマスク・データを逐次リードすることに
より、任意領域のラスタ演算を高速に実行するこ
とができた。これにより、ワードプロセツサやイ
メージ・ワークステーシヨンはもとより、一般の
パーソナル・コンピユータにおける種々のアプリ
ケーシヨンの処理性能を飛躍的に向上させること
ができると考えられる。 なお、実施例では1ワードを16ビツトしたが、
本発明はこれに制限されるものではない。また第
1の実施例において、論理演算としてNOPと
REPLACEを例示したが、AND、OR、XOR等
をはじめ、SRC領域あるいはDST領域からのリ
ード・データを反転してから論理演算するような
高機能の演算回路を備えることも可能である。 さらに、第2の実施例ではマスク・データのリ
ード回数を大幅に削減することにより、より一層
の性能向上を実現できた。この第2の実施例にお
ける数値演算処理は、単純なREPLACEを例に掲
げたが、マスク・データI/0によりSRC領域
のデータとDST領域のデータを4ビツトの数値
と考えて、種々の比較演算を行うことも容易に考
えられる。
[Table] When the mask data is “1”, the 4 bits of the SRC area to which that bit corresponds are output, and “0” is output.
When , 4 bits of the DST area are output. The obtained 16-bit data is written into memory using the same procedure as in the first embodiment. Thus, the first word has been processed, but the second feature of this embodiment lies in the following processing. second
Without reading the data in the MASK area, read the data in the SRC area.
Transfer only data in the DST area to SRC register 2, DST
Import into register 3. Further, at the same time as latching the DST register 3, the selection circuit 50 outputs the next 4 bits (bit positions 11 to 8 of the MASK register 4) to the mask data bus 51 in response to the data latch signal 23. From this point onwards, the processing is the same as for the first word. Furthermore, the third
Similarly, the fourth word is processed by changing the selection of mask data. 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. These processes are performed in the SRC area, DST area, and MASK.
All processing is completed when all words in the area are processed. Effects of the Invention As described above, according to the present invention, by sequentially reading mask data that controls logical operations, raster operations in arbitrary areas can be executed at high speed. It is believed that this will dramatically improve the processing performance of various applications in general personal computers as well as word processors and image workstations. In addition, in the example, one word is 16 bits, but
The present invention is not limited to this. In addition, in the first embodiment, NOP is used as a logical operation.
Although REPLACE is shown as an example, it is also possible to include a high-performance arithmetic circuit such as AND, OR, XOR, etc., which performs logical operations after inverting read data from the SRC area or DST area. 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 processing in this second embodiment uses a simple REPLACE as an example, but by considering the data in the SRC area and the data in the DST area as 4-bit numerical values by mask data I/0, various comparisons are performed. It is also easily possible to perform calculations.

【図面の簡単な説明】[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 raster operations at high speed, and FIG. 2 shows a second embodiment of the data processing device according to the present invention that executes raster operations at high speed. FIG. 3 is a block diagram showing an embodiment of the present invention, and FIG. 3 is a diagram showing a specific example of raster calculation. (Main reference number), 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 1ワードがNビツト(Nは正の整数)で構成
されたデータを2次元の配列状に格納し、転送先
領域と第1および第2の転送元領域とを含む少な
くとも3箇所のデータ格納領域を有するメモリに
対して、該3箇所の領域に格納されたデータを読
み出して相互に演算し、該転送先領域に書き込む
データを発生するデータ処理装置において、 該3箇所の領域の対応する3種類のアドレスを
順次発生して、該領域の各々に格納されたデータ
をそれぞれワード毎に読み出すリード手段と、 該リード手段によつて読みされた各1ワードの
データを格納する第1、第2および第3の記憶手
段と、 該第1記憶手段および該第2記憶手段に格納さ
れたデータの相互の演算処理をn個(nはn≦N
の正の整数)のパートに分割し、該パートの各々
における演算種類を個別に選択して実行できる演
算手段と、 該演算手段において選択される演算種類を特定
するデータとして該第3記憶手段に格納されたデ
ータを該演算手段に入力する接続手段とを備え、 該演算手段が、予め規定された複数の演算種類
から選択された演算種類の演算を実行するように
構成されていることを特徴とするデータ処理装
置。
[Claims] 1. Data in which one word consists of N bits (N is a positive integer) is stored in a two-dimensional array, and includes a transfer destination area and first and second transfer source areas. In a data processing device for a memory having at least three data storage areas, the data processing device reads data stored in the three areas, performs mutual calculations, and generates data to be written to the transfer destination area. read means for sequentially generating three types of addresses corresponding to the areas and reading the data stored in each of the areas word by word; and storing one word of data each read by the read means. the first, second, and third storage means to perform mutual arithmetic processing of data stored in the first storage means and the second storage means n times (n is n≦N);
(a positive integer)) and an arithmetic means that can individually select and execute the type of operation in each of the parts; and a third storage means as data specifying the type of operation selected by the arithmetic means. connection means for inputting stored data to the calculation means, and the calculation means is configured to execute an operation of an operation type selected from a plurality of predefined operation types. data processing equipment.
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 JPH0193868A (en) 1989-04-12
JPH0547867B2 true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120254588A1 (en) * 2011-04-01 2012-10-04 Jesus Corbal San Adrian 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

Also Published As

Publication number Publication date
JPH0193868A (en) 1989-04-12

Similar Documents

Publication Publication Date Title
JPH077260B2 (en) Image data rotation processing apparatus and method thereof
JPH0414385B2 (en)
US4621324A (en) Processor for carrying out vector operation wherein the same vector element is used repeatedly in succession
JPH0547867B2 (en)
US5121351A (en) Floating point arithmetic system
JP2577071B2 (en) Digital signal processor
JP3075280B2 (en) Information processing system
JP3187035B2 (en) Memory access circuit
JP2852050B2 (en) Image processing device
JP4244619B2 (en) Image data processing device
JPS60124730A (en) Digital operation circuit
JPS61264425A (en) Storage circuit
JPH01237766A (en) Data processor and picture data processing system using data processor
JPH04291681A (en) Filtering processing system for very high speed image processing system
JPH01321573A (en) Picture data converting circuit
JPH0478931A (en) Designated word interruption generating system
JPS5827510B2 (en) Display control method
JPS6184778A (en) Vector processor
JPH02236684A (en) Device and method for processing picture data
JPH09138761A (en) One chip memory device
JPH0216665A (en) Data transfer equipment
JPH02105264A (en) Memory device for processing graphic data
JPH0395683A (en) Picture processor
JPS61262977A (en) Picture processor
JPS62133559A (en) Memory interface circuit

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