JP2956390B2 - Drawing processor - Google Patents

Drawing processor

Info

Publication number
JP2956390B2
JP2956390B2 JP4302095A JP30209592A JP2956390B2 JP 2956390 B2 JP2956390 B2 JP 2956390B2 JP 4302095 A JP4302095 A JP 4302095A JP 30209592 A JP30209592 A JP 30209592A JP 2956390 B2 JP2956390 B2 JP 2956390B2
Authority
JP
Japan
Prior art keywords
data
signal
bits
bit
cycle
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
JP4302095A
Other languages
Japanese (ja)
Other versions
JPH06150012A (en
Inventor
和弘 窪田
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 JP4302095A priority Critical patent/JP2956390B2/en
Publication of JPH06150012A publication Critical patent/JPH06150012A/en
Application granted granted Critical
Publication of JP2956390B2 publication Critical patent/JP2956390B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は描画プロセッサに関し、
特にビットマップ型のデータメモリ中の複数のデータに
対して所定の演算を施しこのデータメモリに戻す構成の
ディジタル画像装置用の描画プロセッサに関するもので
ある。
BACKGROUND OF THE INVENTION The present invention relates to a drawing processor.
In particular, the present invention relates to a drawing processor for a digital image device having a configuration in which a predetermined operation is performed on a plurality of data in a bit map type data memory and the data is returned to the data memory.

【0002】[0002]

【従来の技術】従来の技術について図面を参照しながら
説明する。
2. Description of the Related Art A conventional technique will be described with reference to the drawings.

【0003】図3は従来の描画プロセッサの一例を示す
ブロック図である。
FIG. 3 is a block diagram showing an example of a conventional drawing processor.

【0004】この描画プロセッサは、伝達された描画用
の第1のデータのデスティネーションデータDa、第2
のデータのソースデータS、第3のデータのパタンデー
タPをそれぞれ対応して記憶し出力する第1,第2,第
3のレジスタ1,2,3と、描画演算信号DOPに従っ
てデスティネーションデータDa,ソースデータS,パ
タンデータPに対して所定の演算を行い更新されたデス
ティネーションデータDaとして出力する描画演算部4
と、デスティネーションデータDa,ソースデータS,
パタンデータPに対する演算の内容を記憶しておきこの
演算の内容と対応した描画演算信号DOPを出力する描
画演算内容記憶部5と、デスティネーションデータD
a,ソースデータS,パタンデータPに対して、アドレ
ス信号AD,読出し信号RDnをデータメモリ(図示省
略)に出力した後このデータメモリから伝達されたデー
タを取込み第1,第2,第3のレジスタ1,2,3に伝
達するサイクルを順次実行した後、更新されたデスティ
ネーションデータDbと、このデスティネーションデー
タDbと対応するアドレス信号AD及び書込み信号WT
nをデータメモリに出力するサイクルを実行するバスサ
イクル制御部7aとを有する構成となっている。
[0004] The drawing processor is configured to transmit the transmitted destination data Da of the first drawing data and the second data.
, And second and third registers 1, 2, and 3 for respectively storing and outputting pattern data P of the third data and destination data Da according to the drawing operation signal DOP. , Source data S, pattern data P, and performs a predetermined operation to output as updated destination data Da
And destination data Da, source data S,
A drawing operation content storage unit 5 for storing the contents of the operation for the pattern data P and outputting a drawing operation signal DOP corresponding to the contents of the operation;
a, source data S, and pattern data P, an address signal AD and a read signal RDn are output to a data memory (not shown), and then the data transmitted from the data memory is fetched. After sequentially executing the cycles transmitted to the registers 1, 2, and 3, the updated destination data Db and the address signal AD and the write signal WT corresponding to the destination data Db are updated.
and a bus cycle controller 7a for executing a cycle for outputting n to the data memory.

【0005】次にこの描画プロセッサの動作について説
明する。図4はこの描画プロセッサの動作を説明するた
めの入出力信号のタイミング図である。
Next, the operation of the drawing processor will be described. FIG. 4 is a timing chart of input / output signals for explaining the operation of the drawing processor.

【0006】この描画プロセッサの外部(データメモ
リ)との入出力信号として、8ビットの入出力データD
T(P,S,Da,Db)と、8ビットのアドレス信号
ADと、データメモリに対して読出しサイクル起動中で
あることを表す読出し信号RDnと、書込みサイクル起
動中であることを示す書込み信号WTnとを有してい
る。ここで信号の記号の末尾のnは、その信号が負論理
であることを示す。
As an input / output signal to / from the outside (data memory) of this drawing processor, 8-bit input / output data D
T (P, S, Da, Db), an 8-bit address signal AD, a read signal RDn indicating that a read cycle is being started for a data memory, and a write signal indicating that a write cycle is being started. WTn. Here, n at the end of the signal symbol indicates that the signal is negative logic.

【0007】各データ(P,S,Da)の読出しサイク
ルでは、アドレス・バスに有効値のアドレス信号ADを
出力し、かつ、データ・バスをハイ・インピーダンス状
態にした後、読出し信号RDnをアクティブレベルの低
レベルにする。データメモリはこれに応答して、読出し
信号RDnがアクティブレベルの間、データ・バスに確
定データを出力し続ける。描画プロセッサは、読出し信
号RDnの立ち上がりエッジにおいてデータ・バスのデ
ータをラッチし各レジスタ(1〜3)に伝達する。この
読出しサイクルは、パタンデータP,ソースデータS,
デスティネーションデータDaに対して順次行なわれ
る。
In the read cycle of each data (P, S, Da), after outputting an effective value address signal AD to the address bus and setting the data bus to a high impedance state, the read signal RDn is activated. Make the level low. In response, the data memory keeps outputting the determined data to the data bus while the read signal RDn is at the active level. The drawing processor latches data on the data bus at the rising edge of the read signal RDn and transmits the data to the registers (1 to 3). This read cycle includes pattern data P, source data S,
The operation is sequentially performed on the destination data Da.

【0008】各レジスタ、すなわち、デスティネーショ
ンデータ・レジスタ1,ソースデータ・レジスタ2,パ
タンデータ・レジスタ3に伝達された各データ、すなわ
ち、デスティネーションデータDa,ソースデータS,
パタンデータPは上記各レジスタにラッチされ描画演算
部4に伝達され、描画演算部4は描画演算信号DOPに
従って上記データに対す演算を実行し、更新されたディ
スティネーションデータDbを出力する。そして書込み
サイクル、すなわち、更新されたディスティネーション
Dbの書戻しサイクルに入る。書込みサイクルでは、ア
ドレス・バスのアドレス信号ADとデータ・バスのデー
タを有効値にして出力した後、書込み信号WTnをアク
ティブレベル(低レベル)にする。これに応答して、デ
ータメモリは書込み信号WTnの立ち下がりエッジで更
新されたデスティネーションデータDbをラッチする。
これらの制御は、バスサイクル制御部7aが行う。
Each data transmitted to each register, ie, destination data register 1, source data register 2, and pattern data register 3, ie, destination data Da, source data S,
The pattern data P is latched by each of the registers and transmitted to the drawing operation unit 4. The drawing operation unit 4 executes an operation on the data according to the drawing operation signal DOP, and outputs updated destination data Db. Then, a write cycle, that is, a write-back cycle of the updated destination Db is started. In the write cycle, the address signal AD on the address bus and the data on the data bus are made valid and output, and then the write signal WTn is set to the active level (low level). In response, the data memory latches the updated destination data Db at the falling edge of write signal WTn.
These controls are performed by the bus cycle control unit 7a.

【0009】次に、この描画プロセッサが、データメモ
リ内のデスティネーションデータを更新する過程を、図
5のイメージ図を用いて説明する。図5は、描画演算の
入力データであるパタンデータP,ソースデータS,デ
スティネーションデータDaによるイメージと、描画演
算結果である更新されたデスティネーションデータDb
によりイメージを模式的に表したものである。これら4
データP,S,Da,Dbとも二値の画像データであ
り、各イメージ(I(S),I(P),I(Da))の
黒及び閉じた領域が「1」、白い領域が「0」を表す。
ソースデータはデータメモリ上に存在するフォント・デ
ータであり、文字「F」を表している。ソースデータS
によるイメージI(S)では前景の文字「F」が「1」
背景が「0」である。以下同様に、パタンデータPによ
るイメージI(P)は細い斜線、デスティネーションデ
ータDaによるイメージI(Da)は粗い斜線になって
いる。これらの3データ(P,S,Da)に対して描画
演算信号DOPにより描画演算が行なわれ、更新された
デスティネーションDbを得る。描画演算信号DOPに
よる演算は、概念的には、例えば、「パタンデータPを
ソースデータSでくり抜いたものをデスティネーション
データDaに転送する」という内容とする。
Next, the process in which the drawing processor updates the destination data in the data memory will be described with reference to the image diagram of FIG. FIG. 5 shows an image based on pattern data P, source data S, and destination data Da which are input data of a drawing operation, and updated destination data Db which is a drawing operation result.
Is a schematic representation of the image. These four
The data P, S, Da, and Db are binary image data, and the black and closed areas of each image (I (S), I (P), I (Da)) are “1” and the white area is “1”. 0 ".
The source data is font data existing in the data memory, and represents the character “F”. Source data S
In the image I (S), the character "F" in the foreground is "1"
The background is “0”. Similarly, the image I (P) based on the pattern data P is a thin oblique line, and the image I (Da) based on the destination data Da is a coarse oblique line. A drawing operation is performed on these three data (P, S, Da) by a drawing operation signal DOP to obtain an updated destination Db. The calculation based on the drawing calculation signal DOP conceptually has, for example, a content of “transferring the pattern data P cut out by the source data S to the destination data Da”.

【0010】次に、描画演算内容記憶部5の具体的な記
憶内容について説明する。図6(A),(B)は描画演
算内容記憶部5の構成とその記憶内容の構成を示す図で
ある。
Next, specific storage contents of the drawing calculation content storage unit 5 will be described. FIGS. 6A and 6B are diagrams showing the configuration of the drawing calculation content storage unit 5 and the configuration of the storage content.

【0011】描画演算内容記憶部5は8ビット(R0〜
R7)から成り、このR0〜R7の8ビットが、実行す
べき描画演算をどのように規定するかを示す。図6
(B)に示したように、パタンデータP,ソースデータ
S,デスティネーションデータDaの値がそれぞれ
“0”か“1”かで組み合せが8通りある。この8通り
の組み合せのおのおのに対する描画結果(Db)をR0
〜R7の8ビットが規定する。例えば、パタンデータP
が“1”、ソースデータSが“0”、デスティネーショ
ンデータDaが“0”の時、演算結果である更新された
デスティネーションDbは、R4のビットが規定する。
R4の値が“0”ならば更新されたデスティネーション
データDbは“0”、R4の値が“1”ならば更新され
たデスティネーションデータDbは“1”になる。これ
を表す式が図6(B)中に示されている。式中、「+」
は論理和を、「・」は論理積を表す。
The drawing operation content storage unit 5 has 8 bits (R0 to R0).
R7), and these 8 bits R0 to R7 indicate how the drawing operation to be performed is defined. FIG.
As shown in (B), there are eight combinations depending on whether the values of the pattern data P, the source data S, and the destination data Da are “0” or “1”, respectively. The drawing result (Db) for each of the eight combinations is represented by R0
8 bits of R7 are defined. For example, pattern data P
Is "1", the source data S is "0", and the destination data Da is "0", the updated destination Db, which is the operation result, is defined by the R4 bit.
If the value of R4 is "0", the updated destination data Db is "0", and if the value of R4 is "1", the updated destination data Db is "1". An equation representing this is shown in FIG. Where "+"
Represents a logical sum, and “•” represents a logical product.

【0012】図5の更新されたデスティネーションデー
タDbを得るためには、どのような描画演算内容に設定
すればよいかを説明する。「パタンデータPをソースデ
ータSでくり抜いたものをデスティネーションデータD
aに転送する」ためには、ソースデータSはくり抜き用
の型紙として、すなわち、マスク・データとして使用さ
れる。したがって、次のような描画演算を実行する必要
がある。
A description will be given of what kind of drawing operation should be set to obtain the updated destination data Db shown in FIG. "The pattern data P is cut out by the source data S and the destination data D
In order to “transfer to a”, the source data S is used as a cutout pattern, that is, as mask data. Therefore, it is necessary to execute the following drawing operation.

【0013】 IF S=0 THEN Db=Da ……(1) IF S=1 THEN Db=P ……(2) (1)式の意味するところは、もしソースデータSが
“0”であれば、デスティネーションデータDaをその
まま更新されたデスティネーションデータDbとする。
すなわち、デスティネーションデータを書き換えない。
一方、(2)式の意味するところは、もしソースデータ
Sが“1”であれば、パタンデータPを更新されたデス
ティネーションデータDbとする。これを実現する描画
演算内容記憶部5に記憶されるデータは、(0,1,
0,0,0,1,1,1)となる。
IF S = 0 THEN Db = Da (1) IF S = 1 THEN Db = P (2) The expression (1) means that if the source data S is “0”, , Destination data Db as it is, updated destination data Db.
That is, the destination data is not rewritten.
On the other hand, the expression (2) means that if the source data S is “1”, the pattern data P is the updated destination data Db. The data stored in the rendering calculation content storage unit 5 for realizing this is (0, 1,
0, 0, 0, 1, 1, 1).

【0014】[0014]

【発明が解決しようとする課題】上述した従来の描画プ
ロセッサでは、デスティネーションデータを更新するた
めにパタンデータ,ソースデータ,デスティネーション
データを順次読み出し描画演算を行い、更新されたデス
ティネーションデータを戻すために4サイクルが必要で
ある。しかし、描画演算の内容によっては、読出しサイ
クルが不要なデータもある。例えば、描画演算の内容が
(0,0,0,0,0,0,0,0)である場合には、
値「0」を更新されたデスティネーションデータとして
書き戻せばよいので、ソースデータ,パタンデータ,デ
スティネーションデータの読出しサイクルは不要であ
る。また、(0,0,1,1,0,0,1,1)である
場合には、ソースデータを更新されたデスティネーショ
ンデータとして書き戻せばよいので、パタンデータ,デ
スティネーションデータの読出しサイクルは不要であ
る。
In the above-described conventional drawing processor, pattern data, source data, and destination data are sequentially read in order to update the destination data, a drawing operation is performed, and the updated destination data is returned. Requires four cycles. However, some data does not require a read cycle depending on the contents of the drawing operation. For example, if the content of the drawing operation is (0,0,0,0,0,0,0,0),
Since the value “0” may be written back as updated destination data, the read cycle of the source data, pattern data, and destination data is unnecessary. In the case of (0, 0, 1, 1, 0, 0, 1, 1), the source data may be written back as the updated destination data, so that the read cycle of the pattern data and the destination data is performed. Is unnecessary.

【0015】しかしながら、従来の描画プロセッサで
は、このような場合でも、パタンデータ,ソースデー
タ,デスティネーションデータの読出しが行なわれるの
で、描画速度が遅いという問題点があった。
However, in the conventional drawing processor, the pattern data, source data, and destination data are read even in such a case, so that the drawing speed is low.

【0016】本発明の目的は、描画速度が向上した描画
プロセッサを提供することにある。
An object of the present invention is to provide a drawing processor having an improved drawing speed.

【0017】[0017]

【課題を解決するための手段】本発明の描画プロセッサ
は、伝達された描画用の第1,第2,第3のデータをそ
れぞれ対応して記憶し出力する第1,第2,第3のレジ
スタと、描画演算信号に従って前記第1,第2,第3の
データに対して所定の演算を行い更新された第1のデー
タとして出力する描画演算部と、前記第1,第2,第3
のデータに対する演算の内容を記憶しておきこの演算の
内容と対応した前記描画演算信号を出力する描画演算内
容記憶部と、前記第1,第2,第3のデータの中に前記
描画演算信号による演算に関与しないデータがあるとき
はそのデータと対応する読出しサイクル省略指示信号を
出力する読出しサイクル省略指示部と、前記第1,第
2,第3のデータのうちの前記読出しサイクル省略指示
信号が出力されていないデータに対して、アドレス信
号,読出し信号をデータメモリに出力した後このデータ
メモリから伝達されたデータを取込み前記第1,第2,
第3のレジスタに伝達するサイクルを順次実行した後、
前記更新された第1のデータとこの第1のデータと対応
するアドレス信号及び書込み信号とを前記データメモリ
に出力するサイクルを実行するバスサイクル制御部とを
有している。
According to the present invention, there is provided a drawing processor for storing first, second, and third data corresponding to transmitted first, second, and third data for drawing, respectively. A register, a drawing operation unit for performing a predetermined operation on the first, second, and third data in accordance with the drawing operation signal and outputting the updated first data;
A drawing operation content storage unit for storing the contents of the operation for the data of the above, and outputting the drawing operation signal corresponding to the contents of the operation; and the drawing operation signal in the first, second, and third data. When there is data that does not participate in the calculation by the above, a read cycle omission instruction unit that outputs a read cycle omission instruction signal corresponding to the data, and the read cycle omission instruction signal of the first, second, and third data In response to the data that has not been output, an address signal and a read signal are output to a data memory, and then the data transmitted from the data memory is fetched.
After sequentially executing the cycle for transmitting to the third register,
A bus cycle control unit that executes a cycle of outputting the updated first data and an address signal and a write signal corresponding to the first data to the data memory;

【0018】[0018]

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

【0019】図1は本発明の一実施例を示すブロック図
である。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【0020】この実施例が図3に示された従来の描画プ
ロセッサと相違する点は、デスティネーションデータD
a,ソースデータS,パタンデータPの中に描画演算信
号DOPによる演算に関与しないデータがあるときはそ
のデータと対応する読出しサイクル省略指示信号(DN
R,SNR,PNR)を出力する読出しサイクル省略指
示信号(DNR,SNR,PNR)を出力する読出しサ
イクル省略指示部6を設け、バスサイクル制御部7を、
デスティネーションデータDa,ソースデータS,パタ
ンデータPのうちの上記読出しサイクル省略指示信号が
出力されていないデータに対して、アドレス信号AD,
読出し信号RDnをデータメモリに出力した後このデー
タメモリから伝達されたデータを取込みデスティネーシ
ョンデータ・レジスタ1,ソースデータ・レジスタ2,
パタンデータレジスタ3に伝達するサイクルを順次実行
した後、更新されたデスティネーションデータDbとこ
のデータと対応するアドレス信号AD及び書込み信号W
Tnとを上記データメモリに出力するサイクルを実行す
る回路とした点にある。
The difference between this embodiment and the conventional drawing processor shown in FIG.
a, source data S, and pattern data P, if there is data that is not involved in the operation by the drawing operation signal DOP, the read cycle omission instruction signal (DN
R, SNR, PNR), and a read cycle omission instruction unit 6 for outputting a read cycle omission instruction signal (DNR, SNR, PNR).
An address signal AD, for the data of the destination data Da, the source data S, and the pattern data P for which the read cycle omission instruction signal is not output, is output.
After outputting read signal RDn to the data memory, the data transmitted from this data memory is taken in. Destination data register 1, source data register 2,
After sequentially executing the cycle transmitted to the pattern data register 3, the updated destination data Db and the address signal AD and the write signal W corresponding to the updated destination data Db
Tn is a circuit for executing a cycle for outputting the data to the data memory.

【0021】次に、描画演算信号DOPから、デスティ
ネーションデータ読出しサイクル省略指示信号DNP,
ソースデータ読出しサイクル省略指示信号SNR,パタ
ンデータ読出しサイクル省略指示信号PNRを発生する
過程について説明する。
Next, a destination data read cycle omission instruction signal DNP,
The process of generating the source data read cycle skip instruction signal SNR and the pattern data read cycle skip instruction signal PNR will be described.

【0022】まず、パタンデータ読出しサイクル省略指
示信号PNRの発生について説明する。パタンデータP
が更新されたデスティネーションデータDbに関与しな
いときの描画演算の条件を求めると、図6(B)から判
断し、その値が、次の何れかであるときである。
First, the generation of the pattern data read cycle omission instruction signal PNR will be described. Pattern data P
Is determined from FIG. 6 (B) when the condition of the drawing operation is determined when the value is not related to the updated destination data Db, and the value is one of the following.

【0023】00H,11H,22H,33H,44
H,55H,66H,77H,88H,99H,AA
H,BBH,CCH,DDH,EEH,FFH これは、次の条件式と等価である。
00H, 11H, 22H, 33H, 44
H, 55H, 66H, 77H, 88H, 99H, AA
H, BBH, CCH, DDH, EEH, FFH This is equivalent to the following conditional expression.

【0024】 R0=R4かつR1=R5かつR2=R6かつR3=R7 ……(3) この条件式が真であるときには、パタン読出しサイクル
を起動する必要はない。すなわち、パタンデータ読出し
サイクル省略指示信号PNRを発生する。
R0 = R4 and R1 = R5 and R2 = R6 and R3 = R7 (3) When this conditional expression is true, it is not necessary to start a pattern read cycle. That is, a pattern data read cycle omission instruction signal PNR is generated.

【0025】次に、ソースデータ読出しサイクル省略指
示信号SNRの発生について述べる。ソースデータが更
新されたデスティネーションデータDbに影響を及ぼさ
ないときの描画演算の条件を求めると、同様に、その値
が次の何れかであるときである。
Next, generation of a source data read cycle omission instruction signal SNR will be described. When the condition of the drawing operation when the source data does not affect the updated destination data Db is obtained, similarly, the value is one of the following.

【0026】00H,05H,0AH,0FH,50
H,55H,5AH,A0H,A5H,AAH,AF
H,F0H,F5H,FAH,FFH これは、次の条件式と等価である。
00H, 05H, 0AH, 0FH, 50
H, 55H, 5AH, A0H, A5H, AAH, AF
H, F0H, F5H, FAH, FFH This is equivalent to the following conditional expression.

【0027】 R0=R2かつR1=R3かつR4=R6かつR5=R7 ……(4) この条件が真であるときには、ソースデータ読出しサイ
クル省略指示信号SNRを発生する。
R0 = R2 and R1 = R3 and R4 = R6 and R5 = R7 (4) When this condition is true, a source data read cycle omission instruction signal SNR is generated.

【0028】最後に、ディスティネーションデータ読出
しサイクル省略指示信号DNRの発生について述べる。
デスティネーションデータDaが更新されたデスティネ
ーションデータDbに影響を及ぼさないときの描画演算
の条件を求めると、その値が次の何れかであるときであ
る。
Finally, generation of a destination data read cycle omission instruction signal DNR will be described.
When the condition of the drawing operation when the destination data Da does not affect the updated destination data Db is obtained, the value is one of the following.

【0029】00H,03H,0CH,0FH,30
H,33H,3CH,C0H,C3H,CCH,CF
H,F0H,F3H,FCH,FFH これは、次の条件式と等価である。
00H, 03H, 0CH, 0FH, 30
H, 33H, 3CH, C0H, C3H, CCH, CF
H, F0H, F3H, FCH, FFH This is equivalent to the following conditional expression.

【0030】 R0=R1かつR2=R3かつR4=R5かつR6=R7 ……(5) この条件式が真であるときには、デスティネーションデ
ータ読出しサイクル省略指示信号DNRを発生する。
R0 = R1 and R2 = R3 and R4 = R5 and R6 = R7 (5) When this conditional expression is true, a destination data read cycle omission instruction signal DNR is generated.

【0031】これらの読出しサイクル省略指示信号(P
NR,SNR,DNR)によって、描画演算に関与しな
いデータの読出しサイクルがなくなるので、その分描画
速度を速めることができる。
These read cycle omission instruction signals (P
(NR, SNR, DNR) eliminates the data read cycle that is not involved in the drawing operation, and thus the drawing speed can be increased accordingly.

【0032】次に、本発明による描画処理速度の向上の
過程について説明する。図2は本発明による描画演算内
容が(0,0,1,1,0,0,1,1)のときのバス
・サイクルのタイミング図である。
Next, the process of improving the drawing processing speed according to the present invention will be described. FIG. 2 is a timing diagram of a bus cycle when the contents of the drawing operation according to the present invention are (0, 0, 1, 1, 0, 0, 1, 1).

【0033】従来例では、図4に示すように、常に4サ
イクルかかる。しかし本発明では、2サイクルですむの
で、従来例の2倍の描画速度が実現できる。
In the conventional example, as shown in FIG. 4, it always takes four cycles. However, according to the present invention, since only two cycles are required, a drawing speed twice as high as that of the conventional example can be realized.

【0034】同様に、描画演算内容が(0,0,0,
0,0,0,0,0)あるいは、(1,1,1,1,
1,1,1,1)のときは、更新されたデスティネーシ
ョンデータ書込みサイクルのみとなるので、従来例の4
倍の描画速度が期待できる。
Similarly, when the contents of the drawing operation are (0, 0, 0,
0,0,0,0,0) or (1,1,1,1,
In the case of (1, 1, 1, 1), only the updated destination data write cycle is performed.
Double drawing speed can be expected.

【0035】この事実を踏まえて、本発明の描画プロセ
ッサを使用した装置の価格性能比の向上を見積もる。
Based on this fact, an improvement in the price / performance ratio of an apparatus using the drawing processor of the present invention is estimated.

【0036】まず、コストに関しては次のように考える
ことができる。一般に、描画プロセッサとデータメモリ
間のバス・バンド幅を向上させるためには装置コストが
高くなる。本発明の描画プロセッサは、プロセッサ・メ
モリ間のバス・バンド幅がまったく同じである条件下で
性能向上が図れる。すなわち、本発明の描画プロセッサ
を採用することによるコスト上昇はない。
First, the cost can be considered as follows. In general, to increase the bus bandwidth between the drawing processor and the data memory, the device cost increases. The performance of the drawing processor of the present invention can be improved under the condition that the bus bandwidth between the processor and the memory is exactly the same. That is, there is no cost increase by employing the drawing processor of the present invention.

【0037】次に、性能向上であるが、「パタン,ソー
ス,デスティネーションの3つのデータの読出しサイク
ルのどれかが省略できる頻度がどのくらい高いか」に依
存する。換言すれば、「(3),(4),(5)式を満
足するような描画演算内容が設定される頻度がどのくら
い高いか」ということになる。これはグラフィクス装置
上で走行するグラフィクス・アプリケーションに依存す
るが、極めて一般的なアプリケーションを考えてみる。
通常の描画では、そのほとんどがデスティネーションデ
ータを更新されたデータで書き換えるものである。すな
わち、更新されたデスティネーションデータDbの値
は、デスティネーションデータDaの値に依存せずに決
定できる。全グラフィクス処理時間に占める、このデス
ティネーション非依存型描画演算の出現率は、9割であ
ると仮定する。従来の描画プロセッサは、1回のデステ
ィネーションデータ読出しサイクルが必要である。これ
に対して、本発明の描画プロセッサは、次の式(6)で
示すように平均0.1回のデスティネーションデータ読
出しサイクルが必要である。
Next, the performance improvement depends on how frequently it is possible to omit any of the three data read cycles of pattern, source, and destination. In other words, the question is "how often is the setting of the drawing calculation content that satisfies the expressions (3), (4), and (5)". This depends on the graphics application running on the graphics device, but consider a very common application.
Most of ordinary drawing rewrites destination data with updated data. That is, the value of the updated destination data Db can be determined without depending on the value of the destination data Da. It is assumed that the appearance rate of the destination-independent drawing operation in the total graphics processing time is 90%. Conventional drawing processors require one destination data read cycle. On the other hand, the drawing processor of the present invention requires an average of 0.1 destination data read cycles as shown in the following equation (6).

【0038】 0回×0.9+1回×0.1=0.1回 ……(6) 一方、パタンデータとソースデータに関しては両方を必
要とする演算の出現率が3割、パタンデータを必要とし
ソースデータを必要としない演算の出現率が3割、ソー
スデータを必要としパタンデータを必要としない演算の
出現率が3割、残り割がパタンデータもソースデータも
必要としない演算の出現率と仮定する。従来の描画プロ
セッサは、パタンデータ,ソースデータ各1回、合計2
回の読出しサイクルが必要である。これに対して、本発
明の描画プロセッサは、次の式(7)で示すように平均
1.2回のパタンデータソースデータ読出しサイクルが
必要である。
0 times × 0.9 + 1 times × 0.1 = 0.1 times (6) On the other hand, for pattern data and source data, the appearance rate of operations requiring both is 30%, and pattern data is required. The appearance rate of operations that do not require source data is 30%, the appearance rate of operations that require source data and does not require pattern data is 30%, and the remaining percentage is the appearance rate of operations that do not require pattern data or source data Assume that The conventional drawing processor uses pattern data and source data once each, for a total of 2
Two read cycles are required. In contrast, the drawing processor of the present invention requires an average of 1.2 pattern data source data read cycles as shown in the following equation (7).

【0039】 2回×0.3+1回×0.3+1回×0.3+0回×
0.1=1.2回……(7) 式(6)と式(7)とを加えると1.3回になる。これ
に更新されたデスティネーションデータ書込みサイクル
を加えると、8ビット描画するために平均2.3回のバ
ス・サイクルの起動になる。従来の描画プロセッサは4
回のバス・サイクルの起動が必要であるので、次の式
(8)に示すように、1.7倍の描画性能向上が見込め
る。
2 times × 0.3 + 1 times × 0.3 + 1 times × 0.3 + 0 times ×
0.1 = 1.2 times (7) When the equations (6) and (7) are added, 1.3 times is obtained. When the updated destination data write cycle is added to this, an average of 2.3 bus cycles are activated for drawing 8 bits. Conventional drawing processor is 4
Since it is necessary to start the bus cycle twice, a drawing performance improvement of 1.7 times can be expected as shown in the following equation (8).

【0040】4回/2.3回=1.7倍 ……(8)4 times / 2.3 times = 1.7 times (8)

【発明の効果】以上説明したように本発明は、描画演算
に関与しないデータの読出しサイクルを省略する構成と
したので、その分描画速度を向上させることができる効
果がある。
As described above, according to the present invention, since the data read cycle not involved in the drawing operation is omitted, the drawing speed can be improved accordingly.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】図1に示された実施例の動作を説明するための
各部信号のタイミング図である。
FIG. 2 is a timing chart of signals of respective parts for explaining the operation of the embodiment shown in FIG. 1;

【図3】従来の描画プロセッサの一例を示すブロック図
である。
FIG. 3 is a block diagram illustrating an example of a conventional drawing processor.

【図4】図3に示された描画プロセッサの動作を説明す
るための各部信号のタイミング図である。
FIG. 4 is a timing chart of signals of respective units for explaining the operation of the drawing processor shown in FIG. 3;

【図5】図3に示された描画プロセッサによるデスティ
ネーションデータの更新過程を説明するためのイメージ
図である。
FIG. 5 is an image diagram for explaining a process of updating destination data by a drawing processor shown in FIG. 3;

【図6】図3に示された描画プロセッサの描画演算内容
記憶部の構成図及び記憶内容の構成図である。
6 is a configuration diagram and a configuration diagram of storage contents of a drawing calculation content storage unit of the drawing processor shown in FIG. 3;

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

1 デスティネーションデータ・レジスタ 2 ソースデータ・レジスタ 3 パタンデータ・レジスタ 4 描画演算部 5 描画演算内容記憶部 6 読出しサイクル省略指示部 7,7a バスサイクル制御部 DESCRIPTION OF SYMBOLS 1 Destination data register 2 Source data register 3 Pattern data register 4 Drawing operation part 5 Drawing operation content storage part 6 Read cycle omission instruction part 7, 7a Bus cycle control part

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 伝達された描画用の第1、第2、第3の
データをそれぞれ対応して記憶し出力する第1、第2、
第3のレジスタと、描画演算信号に従って前記第1、第
2、第3のデータに対して所定の演算を行い更新された
第1のデータとして出力する描画演算部と、前記第1、
第2、第3のデータに対する演算の内容を記憶しておき
この演算の内容と対応した前記描画演算信号を出力する
描画演算内容記憶部と、前記描画演算信号による演算内
容を簡約化して、前記第1、第2、第3のデータの中に
演算入力から省略できるデータがあるときには、そのデ
ータと対応する読出しサイクル省略指示信号を出力する
読出しサイクル省略指示部と、前記第1、第2、第3の
データのうちの前記読出しサイクル省略指示信号が出力
されていないデータに対して、アドレス信号、読出し信
号をデータメモリに出力した後このデータメモリから
伝達されたデータを取込み前記第1、第2、第3のレジ
スタに伝達するサイクルを順次実行した後、前記更新さ
れた第1のデータを前記データメモリに書込むアドレス
信号及び書込み信号とを前記データメモリに出力するサ
イクルを実行するバスサイクル制御部とを有し、前記描
画演算内容記憶部の各ワードの第1のビットには、前記
第1のデータと前記第2のデータと前記第3のデータを
反転したデータとの論理積演算の要否を指示するデータ
を、第2のビットには、前記第1のデータと前記第2の
データと前記第3のデータの論理積演算の要否を指示す
るデータを、第3のビットには、前記第1のデータと前
記第2のデータを反転したデータと前記第3のデータの
論理積演算の要否を指示するデータを、第4のビットに
は、前記第1のデータと前記第2のデータを反転したデ
ータと前記第3のデータを反転したデータとの論理積演
算の要否を指示するデータを、第5のビットには、前記
第1のデータを反転したデータと前記第2のデータと前
記第3のデータを反転したデータとの論理積演算の要否
を指示するデータを、第6のビットには、前記第1のデ
ータを反転したデータと前記第2のデータと前記第3の
データの論理積演算の要否を指示するデータを、第7の
ビットには、前記第1のデータを反転したデータと前記
第2のデータを反転したデータと前記第3のデータの論
理積演算の要否を指示するデータを、第8のビットに
は、前記第1、前記第2、及び前記第3のデータのそれ
ぞれを反転した データの論理積演算の要否を指示するデ
ータを描画演算内容に応じてそれぞれ記憶し、前記読出
しサイクル省略指示部は、前記描画演算内容記憶部から
順番に出力される各ワードのビット・データにより、前
記第1・第5のビット、前記第2・第6のビット、前記
第3・第7のビット、前記第4・第8のビットについて
各々排他的論理和をとり、これらの排他的論理和信号の
論理和の否定信号を、前記第1のデータの読出しサイク
ル省略指示信号として生成し、また、前記描画演算内容
記憶部から順番に出力される各ワードのビット・データ
により、前記第1・第4のビット、前記第2・第3のビ
ット、前記第5・第8のビット、前記第6・第7のビッ
トについて各々排他的論理和をとり、これらの排他的論
理和信号の論理和の否定信号を、前記第2のデータの読
出しサイクル省略指示信号として生成し、さらに、前記
描画演算内容記憶部から順番に出力される各ワードのビ
ット・データの前記第1・第2のビット、前記第3・第
4のビット、前記第5・第6のビット、前記第7・第8
のビットについて各々排他的論理和をとり、これらの排
他的論理和信号の論理和の否定信号を、前記第3のデー
タの読出しサイクル省略指示信号として生成して、前記
バスサイクル制御部に伝達するようにしたことを特徴と
する描画プロセッサ。
The first, second, and third data for storing and outputting the transmitted first, second, and third data for drawing, respectively.
A third register, a drawing operation unit that performs a predetermined operation on the first, second, and third data in accordance with the drawing operation signal and outputs the first data as updated first data;
A rendering calculation content storage unit for storing the content of the calculation for the second and third data and outputting the rendering calculation signal corresponding to the content of the calculation; and When there is data that can be omitted from the operation input in the first, second, and third data, a read cycle omission instruction unit that outputs a read cycle omission instruction signal corresponding to the data; the reading from the cycle skip instruction signal is not output data, after outputting the address signal, a read signal to the data memory, capture the first data transferred from the data memory of the third data, After sequentially executing a cycle of transmitting to the second and third registers, an address signal and a write signal for writing the updated first data to the data memory. And a bus cycle control unit for executing a cycle for outputting bets in the data memory, the drawing
The first bit of each word in the image operation content storage unit contains
The first data, the second data, and the third data
Data indicating whether a logical AND operation with inverted data is necessary
In the second bit, the first data and the second
Indicate necessity of AND operation of data and the third data
Data is stored in the third bit as the first data.
The data obtained by inverting the second data and the third data
The data indicating the necessity of the AND operation is stored in the fourth bit.
Is a data obtained by inverting the first data and the second data.
AND operation of the data and the inverted data of the third data
The data indicating the necessity of the calculation is stored in the fifth bit.
Data obtained by inverting the first data, the second data,
Necessity of AND operation with inverted data of the third data
Is stored in the sixth bit.
Data, the second data, and the third data.
The data indicating the necessity of the logical AND operation of the data is stored in the seventh
The bits include data obtained by inverting the first data and the data
Theory of the inverted data of the second data and the third data
The data indicating the necessity of logical operation is added to the 8th bit.
Is that of the first, second, and third data
Data indicating whether or not the logical AND operation of the inverted data is required
Data according to the contents of the drawing operation, and read out
The cycle omission instruction unit is provided from the drawing operation content storage unit.
By the bit data of each word output in order,
The first and fifth bits, the second and sixth bits,
The third and seventh bits, and the fourth and eighth bits
The exclusive OR is calculated, and the exclusive OR signal is calculated.
A NOT signal of a logical sum is output to the first data read cycle.
Generated as an omission instruction signal, and
Bit data of each word sequentially output from the storage unit
, The first and fourth bits, and the second and third bits
Bits, the fifth and eighth bits, and the sixth and seventh bits.
The exclusive OR is calculated for each
The NOT signal of the logical sum of the logical sum signal is read by reading the second data.
Output cycle omission instruction signal.
The video of each word output in order from the drawing operation content storage unit
The first and second bits of the bit data, the third and
4 bits, the fifth and sixth bits, the seventh and eighth bits
Exclusive OR each bit of
The negation signal of the logical sum of the other logical sum signals is transmitted to the third data.
As a read cycle omission instruction signal for the
A drawing processor, wherein the drawing processor transmits the signal to a bus cycle control unit .
JP4302095A 1992-11-12 1992-11-12 Drawing processor Expired - Lifetime JP2956390B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4302095A JP2956390B2 (en) 1992-11-12 1992-11-12 Drawing processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4302095A JP2956390B2 (en) 1992-11-12 1992-11-12 Drawing processor

Publications (2)

Publication Number Publication Date
JPH06150012A JPH06150012A (en) 1994-05-31
JP2956390B2 true JP2956390B2 (en) 1999-10-04

Family

ID=17904871

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4302095A Expired - Lifetime JP2956390B2 (en) 1992-11-12 1992-11-12 Drawing processor

Country Status (1)

Country Link
JP (1) JP2956390B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3164832B2 (en) * 1991-03-22 2001-05-14 株式会社日立製作所 Drawing control device

Also Published As

Publication number Publication date
JPH06150012A (en) 1994-05-31

Similar Documents

Publication Publication Date Title
US5265259A (en) Blocks and bits sequence reversing device using barrel shift
US5459847A (en) Program counter mechanism having selector for selecting up-to-date instruction prefetch address based upon carry signal of adder which adds instruction size and LSB portion of address register
JPH05265922A (en) Direct memory access controller
US5423012A (en) Apparatus and method in a computer for executing calculation instructions and data instructions having uniform word lengths
US6334135B2 (en) Data processing system and register file
KR920007253B1 (en) Controlling apparatus for micro-program
JP2779557B2 (en) Parallel processing unit
JP2956390B2 (en) Drawing processor
US4896264A (en) Microprocess with selective cache memory
US5001629A (en) Central processing unit with improved stack register operation
US5151993A (en) Data processor performing operation on data having length shorter than one-word length
EP0661648B1 (en) Digital signal processing circuit
US4694419A (en) Programmable controller with direct to plant addressing
JPH10312356A (en) Data transfer device
JPS59190751A (en) Storage device updating circuit of viterbi decoder
JPS61187080A (en) Reflected image generating picture image processor
JP2763655B2 (en) Semiconductor integrated circuit
JP3255429B2 (en) Memory interface circuit
JPS619725A (en) Microprogram control circuit
JP2661150B2 (en) Data transfer device
JPH0668055A (en) Digital signal processor
JP3164690B2 (en) Address control device
JP2771350B2 (en) Image processing device
JP2001109657A (en) Address generating circuit
JPH0721760B2 (en) Digital arithmetic circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990622