JPH06119437A - Graphic plotter - Google Patents
Graphic plotterInfo
- Publication number
- JPH06119437A JPH06119437A JP26829392A JP26829392A JPH06119437A JP H06119437 A JPH06119437 A JP H06119437A JP 26829392 A JP26829392 A JP 26829392A JP 26829392 A JP26829392 A JP 26829392A JP H06119437 A JPH06119437 A JP H06119437A
- Authority
- JP
- Japan
- Prior art keywords
- address
- mask
- data
- combined
- circuit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000002194 synthesizing effect Effects 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 7
- 230000008878 coupling Effects 0.000 description 6
- 238000010168 coupling process Methods 0.000 description 6
- 238000005859 coupling reaction Methods 0.000 description 6
- 238000000034 method Methods 0.000 description 4
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Landscapes
- Image Input (AREA)
- Image Generation (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は図形描画装置に関し、特
にディスプレイやプリンタ等へ図形を描画する図形描画
装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic drawing device, and more particularly to a graphic drawing device for drawing a graphic on a display, a printer or the like.
【0002】[0002]
【従来の技術】図形描画装置は、CPUから描画命令と
描画パラメータを受け取ると、内蔵するハードウエアや
ファームウエアによって描画アドレスや描画データを発
生し、それらに基づいてメモリアクセスを行うことによ
って、メモリ上に図形イメージを生成する。2. Description of the Related Art When a drawing command and a drawing parameter are received from a CPU, a drawing device generates a drawing address and drawing data by built-in hardware and firmware, and performs a memory access based on the drawing address and drawing data. Generate a graphic image on top.
【0003】図4は、図形を構成する各画素とメモリの
ビットとの対応の一般例を示す図である。すなわち、図
形描画装置とメモリを結ぶデータバスの幅がm(本例で
は32)ビットであり、1画素のビット数がn(本例で
は8)ビットであるとき、1ワード中にはm/n個の画
素があることになる。このとき、ある1画素を指定する
ためには、この画素を含むワード(1ワードはmビッ
ト)のアドレスと、そのワード内での画素の位置を指定
するための描画マスクを用いる。FIG. 4 is a diagram showing a general example of the correspondence between each pixel forming a figure and the bit of the memory. That is, when the width of the data bus connecting the graphic drawing device and the memory is m (32 in this example), and the number of bits of one pixel is n (8 in this example), m / There will be n pixels. At this time, in order to specify a certain pixel, an address of a word (1 word is m bits) including this pixel and a drawing mask for specifying the position of the pixel in the word are used.
【0004】上記描画マスクは、その各ビットが指定さ
れたアドレスの上記メモリ内(D0-(m-1) )の各ビット
と1対1に対応する。メモリアクセスを行って描画デー
タを上記メモリへ書き込むときに、上記描画マスクの値
が1のビットに対応する上記メモリ内のビットへの上記
描画データを書き込むが、0のビットに対応する上記メ
モリ内のビットは書き込み時にマスクされ、元の値を保
持する必要があることを示す。Each bit of the drawing mask has a one-to-one correspondence with each bit in the memory (D 0- (m-1) ) of the designated address. When the drawing data is written to the memory by accessing the memory, the drawing data is written to the bit in the memory corresponding to the bit of which the value of the drawing mask is 1 but in the memory corresponding to the bit of 0. Bit is masked during writing, indicating that the original value should be retained.
【0005】従来の図形描画装置11は、図5に示すよ
うに、CPU10からの描画命令により順次描画対象の
画素位置を含むワードのアドレスである描画アドレスを
生成するアドレス発生回路21と上記ワード内の画素位
置を指定する描画マスクを生成するマスク発生回路22
と上記画素位置の描画データを生成する描画データ発生
回路23とを有する図形発生回路2と、描画アドレスを
出力するとともに描画データを合成する描画データ合成
回路121を有しメモリ9を制御するメモリ制御回路1
2とを備えて構成されていた。As shown in FIG. 5, the conventional graphic drawing apparatus 11 has an address generating circuit 21 for sequentially generating a drawing address which is an address of a word including a pixel position of a drawing target by a drawing command from the CPU 10 and the above word. Generation circuit 22 for generating a drawing mask that specifies the pixel position of
Memory control for controlling the memory 9 having a figure generating circuit 2 having a drawing data generating circuit 23 for generating drawing data at the pixel position and a drawing data synthesizing circuit 121 for outputting drawing addresses and synthesizing drawing data. Circuit 1
It was equipped with 2 and.
【0006】次に、従来の図形描画装置の動作につれて
図4に示す画素p1〜p3を描画する手順を例に説明す
る。Next, the procedure of drawing the pixels p1 to p3 shown in FIG. 4 will be described as an example in accordance with the operation of the conventional graphic drawing apparatus.
【0007】図形発生回路2は、まず画素p1に対応す
る値として、描画アドレスAへ12001番地を、描画
マスクMへff000000Hを発生する。次に、メモ
リ制御回路12は、描画アドレスAの値をそのままアド
レスバス17を介してメモリ9をリードアクセスする。
このリードアクセスによって得られた値をDi(0≦i
≦31)とすると、描画データ合成回路121は次式に
よって合成描画データDSiを計算する。The figure generation circuit 2 first generates the address 12001 for the drawing address A and ff000000H for the drawing mask M as the values corresponding to the pixel p1. Next, the memory control circuit 12 makes a read access to the memory 9 via the address bus 17 without changing the value of the drawing address A.
The value obtained by this read access is set to Di (0 ≦ i
≤31), the drawing data synthesizing circuit 121 calculates the synthetic drawing data DSi by the following equation.
【0008】 DSi=Mi・Pi+BMi・Di ただし、0≦i≦31 (1) ここで、BMiはMiの反転値であり、Piは描画デー
タPの値であり、図形発生回路2の内部シーケンスにし
たがって発生する実線や点線等でのその画素に対応する
色コードを示す。DSi = Mi · Pi + BMi · Di where 0 ≦ i ≦ 31 (1) where BMi is the inverted value of Mi, Pi is the value of the drawing data P, and is the internal sequence of the figure generation circuit 2. Therefore, the color code corresponding to the pixel in the generated solid line or dotted line is shown.
【0009】この式(1)の結果得られるDSiを、あ
らためて描画アドレスAが指定するメモリ9のアドレス
にライト(書込)する。The DSi obtained as a result of the equation (1) is newly written (written) to the address of the memory 9 designated by the drawing address A.
【0010】この結果、メモリの12001番地の値
は、画素p1に相当する部分のみが描画データによって
書き換えられた状態となる。As a result, the value at address 12001 of the memory is in a state in which only the portion corresponding to the pixel p1 is rewritten by the drawing data.
【0011】同様に、描画アドレスAを12001番
地、描画マスクMを00ff0000Hとして画素p2
の部分を書き換え、続いて描画アドレスAを12001
番地、描画マスクMを0000ff00Hとして画素p
3の部分を書き換える。Similarly, the drawing address A is 12001, the drawing mask M is 00ff0000H, and the pixel p2 is
Is rewritten, and then drawing address A is set to 12001
Set the address and drawing mask M to 0000ff00H and pixel p
Rewrite the part of 3.
【0012】以上の動作なタイミングを図6に示す。こ
こでは、図形発生器2は1サイクル毎に描画すべき画素
の情報を計算する能力を持ち、また、メモリ制御回路1
2は1サイクルでメモリ9をリードまたはライトするこ
とができる。The timing of the above operation is shown in FIG. Here, the figure generator 2 has the ability to calculate the information of the pixel to be drawn every cycle, and the memory control circuit 1
2 can read or write the memory 9 in one cycle.
【0013】T1サイクル中に図形発生回路2が計算し
た画素p1に対する描画情報(描画アドレスA,描画マ
スクM,描画データD)は、T2サイクルの最初でメモ
リ制御回路12へ取り込まれ、描画アドレスAによって
指示されるアドレスに対して直ちにメモリリードサイク
ルが始まる。T3サイクルではT2サイクルで読み込ん
だメモリの値と描画マスクM,描画データPを用いて式
(1)の計算を行い、結果をメモリ9へ書き戻す。以
後、このT2−T3で行うような「リード/演算/ライ
ト」の手続きをリードモデファイライトと呼ぶ。The drawing information (drawing address A, drawing mask M, drawing data D) for the pixel p1 calculated by the figure generating circuit 2 during the T1 cycle is fetched into the memory control circuit 12 at the beginning of the T2 cycle and drawn at the drawing address A. The memory read cycle begins immediately for the address pointed to by. In the T3 cycle, the equation (1) is calculated using the memory value read in the T2 cycle, the drawing mask M, and the drawing data P, and the result is written back to the memory 9. Hereinafter, the procedure of "read / calculate / write" as performed in T2-T3 is referred to as read modify write.
【0014】一方、図形発生回路2はT2サイクルで画
素p2に対する描画情報を計算するが、T3サイクルで
はメモリ制御回路12が描画情報を取り込むことができ
ないので、T3サイクルでは次の画素情報を計算するこ
とはせずに、ウエイト状態となり、画素p2に対する描
画情報を保持する。On the other hand, the figure generation circuit 2 calculates the drawing information for the pixel p2 in the T2 cycle, but since the memory control circuit 12 cannot take in the drawing information in the T3 cycle, the next pixel information is calculated in the T3 cycle. Without doing so, it enters a wait state and holds drawing information for the pixel p2.
【0015】T4サイクル以降は、2サイクル単位でT
2−T3サイクルの繰り返しのようなパターンとなる。
すなわち、T4,T6サイクルでは、メモリ制御回路1
2はそのサイクルの最初で描画情報を取り込み、リード
モデファイライトアクセスの前半のリードアクセスを行
う。また、図形発生回路2は次の画素情報を計算する。
T5,T7サイクルでは、メモリ制御回路12はリード
モデファイライトアクセスの後半のライトアクセスを行
い、図形発生回路2はウエイト状態となる。After the T4 cycle, T is calculated in units of two cycles.
The pattern is such that the 2-T3 cycle is repeated.
That is, in the T4 and T6 cycles, the memory control circuit 1
In step 2, the drawing information is fetched at the beginning of the cycle and the first half read access of the read modify write access is performed. Further, the figure generation circuit 2 calculates the next pixel information.
In cycles T5 and T7, the memory control circuit 12 performs the write access in the latter half of the read modify write access, and the figure generation circuit 2 is in the wait state.
【0016】ここで、図形発生装置が描画すべき画素の
位置を算出する演算時間は、メモリ制御回路がメモリに
対してリードモデファイライトアクセスする描画時間よ
りも短いので、実質の図形描画時間はメモリアクセスの
回数に比例すると考えられる。すなわち、上記描画時間
と演算時間との差は、図形発生回路のウエイトサイクル
となるというものであった。Since the calculation time for calculating the position of the pixel to be drawn by the figure generation device is shorter than the drawing time for the memory control circuit to perform the read modify write access to the memory, the actual figure drawing time is the memory. It is considered to be proportional to the number of accesses. That is, the difference between the drawing time and the calculation time is the wait cycle of the figure generation circuit.
【0017】[0017]
【発明が解決しようとする課題】上述した従来の図形描
画装置は、線図形を描画する場合には1画素単位に図形
を描画していたので、1ワード内に複数の画素が描画さ
れる場合には、メモリアクセスの回数が多くなり、図形
描画時間が長くなるという欠点があった。The above-described conventional figure drawing apparatus draws a figure in units of one pixel when drawing a line figure. Therefore, when a plurality of pixels are drawn in one word. Has the drawback that the number of memory accesses increases and the drawing time of the graphic becomes long.
【0018】本発明の目的は、メモリアクセスの回数を
削減することにより図形発生回路のウエイトサイクルを
低減して描画時間を短縮できる図形描画装置を提供する
ことにある。It is an object of the present invention to provide a graphic drawing apparatus which can reduce the number of times of memory access to reduce the wait cycle of the graphic generating circuit and the drawing time.
【0019】[0019]
【課題を解決するための手段】本発明の図形描画装置
は、順次描画対象図形を画素位置を含むワードのアドレ
スである描画アドレスを生成するアドレス発生回路と前
記ワード内の前記画素位置を指定する描画マスクを生成
するマスク発生回路と前記画素位置の描画データを生成
する描画データ発生回路とを有する図形発生手段を備
え、CPUからの描画命令によりメモリに指定された図
形をのイメージデータを生成する図形描画装置におい
て、描画順序が連続する第一および第二の画素の前記描
画アドレスの一致を検出しアドレス一致信号を出力する
アドレス比較手段と、前記アドレス一致信号により前記
第一および第二の画素にそれぞれ対応する前記描画マス
クを結合し結合描画マスクを出力する描画マスク結合手
段と、前記アドレス一致信号により前記第一および第二
の画素にそれぞれ対応する前記描画データを結合し結合
描画データを出力する描画データ結合手段と、前記描画
アドレスと前記結合描画マスクと前記結合描画データと
をそれぞれ一時格納する先入先出記憶手段と、前記先入
先出記憶手段から出力される描画アドレスが指示する前
記メモリのアドレスをアクセスし前記結合描画マスクが
指示する前記メモリのビット位置に前記結合描画データ
を書込む描画データ合成回路を有するメモリ制御手段と
を備えて構成されている。A graphic drawing apparatus of the present invention sequentially designates an address generating circuit for generating a drawing address which is an address of a word including a pixel position of a drawing target graphic and the pixel position in the word. A graphic generating means having a mask generating circuit for generating a drawing mask and a drawing data generating circuit for generating drawing data at the pixel position is provided, and image data of a graphic specified in the memory is generated by a drawing command from the CPU. In a figure drawing device, an address comparison unit that detects a match between the drawing addresses of first and second pixels whose drawing order is continuous and outputs an address match signal, and the first and second pixels based on the address match signal. To the drawing mask combining means for combining the drawing masks corresponding respectively to and outputting the combined drawing mask, and the address matching. No., the drawing data combining means for combining the drawing data corresponding to the first and second pixels and outputting the combined drawing data, the drawing address, the combined drawing mask, and the combined drawing data are temporarily stored. The first-in first-out storage means and the address of the memory indicated by the drawing address output from the first-in first-out storage means are accessed, and the combined drawing data is written in the bit position of the memory indicated by the combined drawing mask. And a memory control means having a drawing data synthesizing circuit.
【0020】[0020]
【実施例】次に、本発明の実施例について図面を参照し
て説明する。Embodiments of the present invention will now be described with reference to the drawings.
【0021】図1は本発明の図形描画装置の一実施例を
示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the graphic drawing apparatus of the present invention.
【0022】本実施例の図形描画装置1は、図1に示す
ように、従来と同様のアドレス発生回路21とマスク発
生回路22と描画データ発生回路23とを有する図形発
生回路2に加えて、描画順序が連続する2つの画素の描
画アドレスを比較し一致すればアドレス一致信号CAを
出力するアドレス比較器3と、アドレスを一時保持する
ラッチ13と、アドレス一致信号CAにより上記2つの
画素に対応する描画マスクMを結合し結合描画マスクM
Cを出力するマスク結合回路4と、アドレス一致信号C
Aにより上記2つの画素に対応する描画データPを結合
し結合描画データPSを出力するデータ結合回路5と、
従来のメモリ制御回路12の代りに描画データ合成回路
61と入力部に描画アドレスAと結合描画マスクMCと
結合描画データPSとを一時格納するFIFO(先入先
出記憶回路)62とを有しメモリ9を制御するメモリ制
御回路6とを備えて構成されている。As shown in FIG. 1, the figure drawing device 1 of the present embodiment has a figure generating circuit 2 having an address generating circuit 21, a mask generating circuit 22 and a drawing data generating circuit 23, which are the same as those in the conventional case. Addresses the above two pixels by the address comparator 3 which outputs the address match signal CA if the drawing addresses of the two pixels having consecutive drawing orders are compared and outputs the address match signal CA, the latch 13 which temporarily holds the address, and the address match signal CA. Drawing masks M to be combined and combined drawing mask M
A mask combining circuit 4 for outputting C and an address match signal C
A data combination circuit 5 for combining the drawing data P corresponding to the two pixels by A and outputting the combined drawing data PS;
A memory having a drawing data synthesizing circuit 61 instead of the conventional memory control circuit 12 and a FIFO (first-in first-out storage circuit) 62 for temporarily storing a drawing address A, a combined drawing mask MC, and combined drawing data PS in an input section. And a memory control circuit 6 for controlling the control unit 9.
【0023】図2(A)はマスク結合回路4の、(B)
はデータ結合回路5の、(C)は描画データ合成回路6
1のそれぞれ細部を示す回路図である。FIG. 2A shows the mask coupling circuit 4 at (B).
Is a data combining circuit 5 and (C) is a drawing data synthesizing circuit 6
2 is a circuit diagram showing the details of each of FIG.
【0024】次に、本実施例の動作について説明する。Next, the operation of this embodiment will be described.
【0025】図形発生器2は、従来例と同様に、CPU
10から与えられた描画命令に基づいて、1サイクル毎
に1画素分の描画アドレスA,描画マスクM,描画デー
タDを一組として発生する。The figure generator 2 is a CPU similar to the conventional example.
Based on the drawing command given from 10, the drawing address A, the drawing mask M, and the drawing data D for one pixel are generated as one set for each cycle.
【0026】アドレス比較器3は、図形発生回路2から
の描画アドレスAと現在発生中の画素の直前の画素に対
する描画アドレスAを保持しているラッチ13からの出
力とを比較し、アドレス一致信号CAを出力する。アド
レス一致信号CAが1であれば、図形発生回路2が前回
発生した画素と今回発生した画素とが同一ワード内にあ
り、0であれば異なるワードにある。The address comparator 3 compares the drawing address A from the figure generating circuit 2 with the output from the latch 13 which holds the drawing address A for the pixel immediately before the pixel which is currently being generated, and outputs the address match signal. Output CA. If the address coincidence signal CA is 1, the pixel generated last time by the graphic generation circuit 2 and the pixel generated this time are in the same word, and if 0, they are in different words.
【0027】マスク結合回路4は、図2(A)に示すよ
うに、各ビット毎にアドレス一致信号CAと出力ビット
との論理積を取るANDゲートA41と、入力ビットと
ANDゲートA41の出力との論理和を取るORゲート
O41と、初期化信号Iで初期化されORゲートO41
の出力をラッチし結合描画マスクMCの出力ビットとし
て出力するラッチL41とを備える。アドレス一致信号
CAが0のときは描画マスクMの値をそのまま結合描画
マスクMCの値とし、アドレス一致信号CAが1のとき
は描画マスクMの値と現在出力中の結合描画マスクMC
の値との論理和を新たに結合描画マスクMCとする。As shown in FIG. 2 (A), the mask combining circuit 4 has an AND gate A41 for taking the logical product of the address coincidence signal CA and the output bit for each bit, the input bit and the output of the AND gate A41. OR gate O41 which is ORed with the initialization signal I
Of the combined drawing mask MC and the latch L41 for outputting as an output bit of the combined drawing mask MC. When the address match signal CA is 0, the value of the drawing mask M is used as it is as the value of the combined drawing mask MC, and when the address match signal CA is 1, the value of the drawing mask M and the combined drawing mask MC currently being output.
The logical sum with the value of is newly set as a combined drawing mask MC.
【0028】データ結合回路5は、図2(A)に示すよ
うに、各ビット毎に描画データPと描画マスクMとの論
理積を取るANDゲートA51と、描画マスクMの反転
値と出力ビットとの論理積を取るANDゲートA52
と、ANDゲートA51,A52の出力の論理和を取る
ORゲートO51と、ORゲートO51の出力をラッチ
し結合描画データPCとして出力するラッチL51とを
備える。描画マスクMが0であるビットは結合描画デー
タPCの値を保持し、描画マスクMが1であるビットは
描画データPの値を新たに結合描画データPCの値とす
る。As shown in FIG. 2A, the data combination circuit 5 has an AND gate A51 for ANDing the drawing data P and the drawing mask M for each bit, an inverted value of the drawing mask M, and output bits. AND gate A52 that takes the logical product of
And an OR gate O51 that takes the logical sum of the outputs of the AND gates A51 and A52, and a latch L51 that latches the output of the OR gate O51 and outputs it as combined drawing data PC. The bit whose drawing mask M is 0 holds the value of the combined drawing data PC, and the bit whose drawing mask M is 1 sets the value of the drawing data P as a new value of the combined drawing data PC.
【0029】描画データ合成回路61は、図2(C)に
示すように、各ビット毎に結合描画データPCと結合描
画マスクMCとの論理積を取るANDゲートA61と、
メモリリードデータDをラッチするラッチL61と、結
合描画マスクMCの反転値とラッチL61との論理積を
取るANDゲートA62と、ANDゲートA61,A6
2の出力の論理和を取り合成描画データDSとして出力
するORゲートO61とを備える。The drawing data synthesizing circuit 61, as shown in FIG. 2 (C), includes an AND gate A61 for ANDing the combined drawing data PC and the combined drawing mask MC for each bit.
A latch L61 that latches the memory read data D, an AND gate A62 that obtains a logical product of the inverted value of the combined drawing mask MC and the latch L61, and AND gates A61 and A6.
An OR gate O61 is provided to take the logical sum of the outputs of 2 and output as the combined drawing data DS.
【0030】メモリ制御回路6は、アドレス一致信号C
Aが0のときに、描画アドレスAの値をアドレスとし、
結合描画マスクMCi(0≦i≦31)と結合描画デー
タPCiを描画データ合成回路611により次式して適
用したリードモディファイライトアクセスを行う。The memory control circuit 6 receives the address match signal C
When A is 0, the value of drawing address A is used as an address,
A read-modify-write access is performed by applying the combined drawing mask MCi (0 ≦ i ≦ 31) and the combined drawing data PCi by the drawing data synthesizing circuit 611 according to the following equation.
【0031】 DSi=MCi・PCi+BMCi・Di ただし0≦i≦31 (2) 以上説明したように、マスク結合回路4と描画データ結
合回路5の働きにより、図形発生回路2から描画アドレ
スAが同一の画素情報が連続して出力される場合に、そ
れらの複数の画素に対応する描画マスクMの論理和を取
ったものが結合描画マスクMCとしてマスク結合回路4
から出力される。また、これらの複数の画素に対応する
描画データPが結合描画データPCとして描画データ結
合回路5から出力される。DSi = MCi * PCi + BMCi * Di However, 0≤i≤31 (2) As described above, the mask generation circuit 2 and the drawing data connection circuit 5 work so that the drawing address A from the figure generation circuit 2 is the same. When the pixel information is continuously output, the logical sum of the drawing masks M corresponding to the plurality of pixels is obtained as the combined drawing mask MC, which is the mask combining circuit 4
Is output from. The drawing data P corresponding to the plurality of pixels is output from the drawing data combining circuit 5 as combined drawing data PC.
【0032】一方、メモリ制御回路6の入力部に描画ア
ドレスA,結合描画マスクMC結合描画データPCを一
時格納するするFIFO62が設けられている。このF
IFO62は、メモリ制御回路6がメモリアクセスを実
行中にも、図形発生回路2が画素情報を計算する事がで
きるようにするためである。On the other hand, a FIFO 62 for temporarily storing the drawing address A and the combined drawing mask MC combined drawing data PC is provided at the input portion of the memory control circuit 6. This F
The IFO 62 is for allowing the graphic generation circuit 2 to calculate pixel information even while the memory control circuit 6 is executing a memory access.
【0033】次に、従来例と同様の図4に示す画素p
1,p2,…,p5を描画する場合の動作手順を説明す
る。図3は、その場合の動作を示すタイムチャートであ
る。Next, the pixel p shown in FIG.
An operation procedure for drawing 1, p2, ..., P5 will be described. FIG. 3 is a time chart showing the operation in that case.
【0034】まず、図形発生器2は制御線(図示省略)
を用いてアドレス比較器3と、マスク結合回路4と、メ
モリ制御回路内のFIFO62とを初期化する。この初
期化によって、アドレス比較器3は、最初に入力される
描画アドレスAの値が何であってもアドレス一致信号C
Aが1となる。これは、図形の最初の画素に対して描画
アドレスAが出力されたときに、その直前の画素に対す
る描画アドレスというものが存在しないからである。First, the graphic generator 2 has a control line (not shown).
Is used to initialize the address comparator 3, the mask coupling circuit 4, and the FIFO 62 in the memory control circuit. By this initialization, the address comparator 3 causes the address match signal C to be generated regardless of the value of the drawing address A input first.
A becomes 1. This is because when the drawing address A is output for the first pixel of the figure, there is no drawing address for the pixel immediately before it.
【0035】マスク結合回路4は、初期化によって結合
描画マスクMCの値をすべて0にクリアする。また、F
IFO62は全てのデータが無効化される。The mask combining circuit 4 clears all the values of the combined drawing mask MC to 0 by initialization. Also, F
All data in the IFO 62 is invalidated.
【0036】T1サイクルでは、図形発生回路2は画素
p1に対する描画情報を発生する。このサイクルでは、
アドレス比較器3は無条件でアドレス一致信号を1とす
る。In the T1 cycle, the figure generation circuit 2 generates drawing information for the pixel p1. In this cycle,
The address comparator 3 unconditionally sets the address match signal to 1.
【0037】T2サイクルでは、そのサイクルの最初で
描画アドレスAの値をラッチ13で保持し、描画アドレ
スA2とする。また、描画マスクMの値(=ff000
000)を結合描画マスクMCの値(=0000000
0)と結合し、新たな結合描画マスクMC(=ff00
0000)とする。データ結合回路5は、結合描画デー
タPCの描画マスクMの値が1のビットに対応する部分
を描画データPの値(=aaaaaaaa)と置き換え
る。In the T2 cycle, the value of the drawing address A is held in the latch 13 at the beginning of the cycle and is set as the drawing address A2. Further, the value of the drawing mask M (= ff000
000) is the value of the combined drawing mask MC (= 0000000
0) and a new combined drawing mask MC (= ff00
0000). The data combining circuit 5 replaces the portion of the combined drawing data PC corresponding to the bit of which the value of the drawing mask M is 1 with the value of the drawing data P (= aaaaaaaaa).
【0038】さらに、図形発生回路2は画素p2に対す
る描画情報を発生する。また、アドレス比較器3は描画
アドレスAL、すなわち画素p1に対する描画アドレス
(=12001)と描画アドレスA、すなわち画素p2
に対する描画アドレス(12001)を比較し、両者が
等しいことによりアドレス一致信号CAを1とする。Further, the figure generation circuit 2 generates drawing information for the pixel p2. The address comparator 3 draws the drawing address AL, that is, the drawing address (= 120001) for the pixel p1 and the drawing address A, that is, the pixel p2.
The drawing address (12001) is compared with each other, and when both are equal, the address coincidence signal CA is set to 1.
【0039】同様に、T3サイクルにおいてはマスク結
合回路4と描画データ結合回路5は、それぞれに画素P
2の情報を結合し、図形発生回路2は画素p3に対応す
る描画情報を出力する。Similarly, in the T3 cycle, the mask coupling circuit 4 and the drawing data coupling circuit 5 respectively operate on the pixel P.
The two pieces of information are combined, and the figure generation circuit 2 outputs drawing information corresponding to the pixel p3.
【0040】T4サイクルでは、マスク結合回路4と描
画データ結合回路5は、それぞれに画素p3の情報を結
合し、図形発生回路2は画素p4に対応する描画情報を
出力する。ここで、画素p4の描画アドレスは1100
1であり、アドレス一致信号CAが0となる。In the T4 cycle, the mask combining circuit 4 and the drawing data combining circuit 5 combine the information of the pixel p3, and the figure generating circuit 2 outputs the drawing information corresponding to the pixel p4. Here, the drawing address of the pixel p4 is 1100.
The address match signal CA is 0.
【0041】T5サイクルは、サイクルの最初でアドレ
ス一致信号CAが0であるので、メモリ制御回路6は描
画アドレスALの値をアドレスとしてリードモデファイ
ライトアクセスの前半のリードアクスセを行う。In the T5 cycle, since the address coincidence signal CA is 0 at the beginning of the cycle, the memory control circuit 6 performs the read access in the first half of the read modify write access using the value of the drawing address AL as an address.
【0042】また、結合描画マスクMCはそれまでの値
をクリアされて描画マスクMの値、すなわち画素p4の
みの値になる。結合描画データPCは、それ以前のサイ
クルと同様に、単純に画素p4に相当する部分が描画デ
ータDの値と置き換えられる。Further, the combined drawing mask MC is cleared of the values so far to become the value of the drawing mask M, that is, the value of only the pixel p4. In the combined drawing data PC, as in the previous cycles, the portion corresponding to the pixel p4 is simply replaced with the value of the drawing data D.
【0043】T6サイクルでは、メモリ制御回路は上記
リードモデファイライトアクセスの後半のリードアクセ
スを行う。このとき、描画アドレスALや結合描画マス
クMCの値はT5サイクルで変更され、すでに画素p4
のための値になっている。しかし、ライトすべきデータ
(画素p1,p2,p3の情報を結合した値)はFIF
O62に格納されているので、バス8上の値が変わって
も正しい情報でメモリアクセスを行うことができる。こ
れらのデータは、ライトアクセスが終了すると、FIF
O62から取り除かれる。In the T6 cycle, the memory control circuit performs the read access in the latter half of the read modify write access. At this time, the values of the drawing address AL and the combined drawing mask MC are changed in the T5 cycle, and the pixel p4 has already been changed.
Has become a value for. However, the data to be written (the value obtained by combining the information of the pixels p1, p2, and p3) is FIF.
Since it is stored in O62, memory access can be performed with correct information even if the value on the bus 8 changes. These data will be stored in the FIF when the write access is completed.
Removed from O62.
【0044】それ以外の点では、このサイクルでもアド
レス一致信号が0なので、T5サイクルと同様の処理を
行う。In other points, the address match signal is 0 in this cycle as well, so the same processing as in the T5 cycle is performed.
【0045】これ以降のサイクルも同様に処理がなされ
るが、図形発生回路が画素情報を発生する速度よりメモ
リアクセスを行う時間が大きいと、FIFO62にデー
タがたまってしまうが、この場合はウエイト制御信号C
Wによって図形発生回路2をウエイトさせる。Although the same processing is performed in the subsequent cycles, if the memory access time is longer than the speed at which the figure generation circuit generates the pixel information, the data is accumulated in the FIFO 62, but in this case, the wait control is performed. Signal C
The W causes the figure generation circuit 2 to wait.
【0046】図3と図6を比較するとわかるように、本
発明の方法では、画素情報が生成されてから実際にメモ
リに画素情報が書き込まれるまでの遅延が大きい。しか
しこの遅延は、メモリアクセスのタイミングが全体に後
方へずれているだけであり、図形の描画時間が長くなる
わけではない。As can be seen by comparing FIG. 3 and FIG. 6, in the method of the present invention, there is a large delay from the generation of the pixel information to the actual writing of the pixel information in the memory. However, this delay only shifts the memory access timing to the rear, and does not increase the drawing time of the figure.
【0047】[0047]
【発明の効果】以上説明したように、本発明の図形描画
装置は、描画順序が連続する複数の画素の描画アドレス
の一致を検出するアドレス比較手段と、アドレス一致信
号により上記複数の画素の結合描画マスクを出力する描
画マスク結合手段と、結合描画データを出力する描画デ
ータ結合手段とを備えて、複数の画素が同一ワードに含
まれる場合に上記複数の画素を一括して描画することに
よりメモリアクセスの回数を削減し、図形描画の高速化
を図ることができるという効果がある。As described above, the graphic drawing apparatus of the present invention combines the plurality of pixels by the address comparing means for detecting the coincidence of the drawing addresses of the plurality of pixels in the drawing order and the address matching signal. A memory is provided by providing a drawing mask combining means for outputting a drawing mask and a drawing data combining means for outputting combined drawing data, and by drawing the plurality of pixels collectively when the plurality of pixels are included in the same word. There is an effect that the number of times of access can be reduced and the speed of graphic drawing can be increased.
【図1】本発明の図形描画装置の一実施例を示すブロッ
ク図である。FIG. 1 is a block diagram showing an embodiment of a graphic drawing apparatus of the present invention.
【図2】本実施例のマスク結合回路とデータ結合回路と
描画データ合成回路の細部を示す回路図である。FIG. 2 is a circuit diagram showing details of a mask combining circuit, a data combining circuit, and a drawing data combining circuit of the present embodiment.
【図3】本実施例の図形描画装置における動作の一例を
示すタイムチャートである。FIG. 3 is a time chart showing an example of the operation of the graphic drawing apparatus of this embodiment.
【図4】描画画素とメモリのビットとの対応の一般的を
示す図である。FIG. 4 is a diagram showing a general correspondence between a drawing pixel and a bit of a memory.
【図5】従来の図形描画装置の一例を示すブロック図で
ある。FIG. 5 is a block diagram showing an example of a conventional graphic drawing device.
【図6】従来の図形描画装置における動作の一例を示す
タイムチャートである。FIG. 6 is a time chart showing an example of the operation of the conventional graphic drawing apparatus.
1,11 図形描画装置 2 図形発生回路 3 アドレス比較器 4 マスク結合回路 5 データ結合回路 6,12 メモリ制御回路 7 アドレスバス 8 データバス 9 メモリ 10 CPU 13,L41,L51,L61 ラッチ 21 アドレス発生回路 22 マスク発生回路 23 描画データ合成回路 61,121 描画データ合成回路 A41,A51,A52,A61,A62 ANDゲ
ート O41,O51,O61 ORゲート1, 11 Graphic drawing device 2 Graphic generation circuit 3 Address comparator 4 Mask coupling circuit 5 Data coupling circuit 6, 12 Memory control circuit 7 Address bus 8 Data bus 9 Memory 10 CPU 13, L41, L51, L61 Latch 21 Address generation circuit 22 mask generation circuit 23 drawing data synthesizing circuit 61, 121 drawing data synthesizing circuit A41, A51, A52, A61, A62 AND gate O41, O51, O61 OR gate
Claims (1)
ドのアドレスである描画アドレスを生成するアドレス発
生回路と前記ワード内の前記画素位置を指定する描画マ
スクを生成するマスク発生回路と前記画素位置の描画デ
ータを生成する描画データ発生回路とを有する図形発生
手段を備え、CPUからの描画命令によりメモリに指定
された図形のイメージデータを生成する図形描画装置に
おいて、 描画順序が連続する第一および第二の画素の前記描画ア
ドレスの一致を検出しアドレス一致信号を出力するアド
レス比較手段と、 前記アドレス一致信号により前記第一および第二の画素
にそれぞれ対応する前記描画マスクを結合し結合描画マ
スクを出力する描画マスク結合手段と、 前記アドレス一致信号により前記第一および第二の画素
にそれぞれ対応する前記描画データを結合し結合描画デ
ータを出力する描画データ結合手段と、 前記描画アドレスと前記結合描画マスクと前記結合描画
データとをそれぞれ一時格納する先入先出記憶手段と、 前記先入先出記憶手段から出力される描画アドレスが指
示する前記メモリのアドレスをアクセスし前記結合描画
マスクが指示する前記メモリのビット位置に前記結合描
画データを書込む描画データ合成回路を有するメモリ制
御手段とを備えることを特徴とする図形描画装置。1. An address generation circuit that sequentially generates a drawing address that is an address of a word including pixel positions of a drawing target graphic, a mask generation circuit that generates a drawing mask that specifies the pixel position in the word, and the pixel position. In a figure drawing device that includes a figure generation unit having a drawing data generation circuit that generates the drawing data, and that generates image data of a figure specified in the memory by a drawing command from the CPU, An address comparison unit that detects a match of the drawing addresses of the second pixels and outputs an address match signal, and a combined drawing mask that combines the drawing masks corresponding to the first and second pixels by the address match signal. And a drawing mask combining means for outputting to the first and second pixels by the address match signal. Drawing data combining means for combining the corresponding drawing data and outputting combined drawing data, first-in first-out storage means for temporarily storing the drawing address, the combined drawing mask, and the combined drawing data, respectively. A memory control means having a drawing data synthesizing circuit for accessing the address of the memory indicated by the drawing address outputted from the advance storage means and writing the combined drawing data into a bit position of the memory indicated by the combined drawing mask; A graphic drawing apparatus comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26829392A JP2959297B2 (en) | 1992-10-07 | 1992-10-07 | Graphic drawing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26829392A JP2959297B2 (en) | 1992-10-07 | 1992-10-07 | Graphic drawing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH06119437A true JPH06119437A (en) | 1994-04-28 |
JP2959297B2 JP2959297B2 (en) | 1999-10-06 |
Family
ID=17456520
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP26829392A Expired - Fee Related JP2959297B2 (en) | 1992-10-07 | 1992-10-07 | Graphic drawing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2959297B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005241742A (en) * | 2004-02-24 | 2005-09-08 | Fujitsu Ltd | Drawing data generator |
CN102063857A (en) * | 2009-11-18 | 2011-05-18 | 精工爱普生株式会社 | Integrated circuit device and electronic device |
JP2013041625A (en) * | 2012-11-12 | 2013-02-28 | Toshiba Corp | Memory controller |
-
1992
- 1992-10-07 JP JP26829392A patent/JP2959297B2/en not_active Expired - Fee Related
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005241742A (en) * | 2004-02-24 | 2005-09-08 | Fujitsu Ltd | Drawing data generator |
US6954210B2 (en) | 2004-02-24 | 2005-10-11 | Fujitsu Limited | Display data generating device |
CN102063857A (en) * | 2009-11-18 | 2011-05-18 | 精工爱普生株式会社 | Integrated circuit device and electronic device |
JP2011107437A (en) * | 2009-11-18 | 2011-06-02 | Seiko Epson Corp | Integrated circuit device and electronic device |
JP2013041625A (en) * | 2012-11-12 | 2013-02-28 | Toshiba Corp | Memory controller |
Also Published As
Publication number | Publication date |
---|---|
JP2959297B2 (en) | 1999-10-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5274760A (en) | Extendable multiple image-buffer for graphics systems | |
US5081698A (en) | Method and apparatus for graphics display data manipulation | |
EP0364177B1 (en) | Method and apparatus for displaying a plurality of graphic images | |
EP0465250A2 (en) | Graphics engine for colour 2D graphics | |
JPS61159686A (en) | Image display unit | |
US5036316A (en) | Method and apparatus for high speed linear shading in a raster graphics system | |
US4580236A (en) | Graphic display apparatus with a vector generating circuit | |
JPH06119437A (en) | Graphic plotter | |
US5714975A (en) | Apparatus and method for generating halftoning or dither values | |
JPS59231591A (en) | Image generator | |
US5500744A (en) | Method and appparatus for image scaling using parallel incremental interpolation | |
JPS60136793A (en) | Image processor | |
US6628289B1 (en) | Rendering apparatus and method, and storage medium | |
JPH08220510A (en) | Display controller | |
US5905821A (en) | Compression/expansion circuit having transfer means and storage means with address management of the storage means | |
JP2768350B2 (en) | Bitmap data bit building method and graphics controller | |
KR0170665B1 (en) | RAM for 3D Graphics | |
US6006314A (en) | Image processing system, storage device therefor and accessing method thereof | |
JPS619766A (en) | Data transfer device | |
JP2001154910A (en) | Memory access system | |
JPS648335B2 (en) | ||
RU2054713C1 (en) | Device for displaying three-dimensional images when graphical information is displayed | |
JPH0697393B2 (en) | Bitmap processor | |
JPS60118888A (en) | Horizontally smoothing scrolling system and method for videodisplay generator | |
JPH07234948A (en) | Picture processor |
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: 19990629 |
|
LAPS | Cancellation because of no payment of annual fees |