JPH01304492A - Area painting generation circuit - Google Patents

Area painting generation circuit

Info

Publication number
JPH01304492A
JPH01304492A JP63136402A JP13640288A JPH01304492A JP H01304492 A JPH01304492 A JP H01304492A JP 63136402 A JP63136402 A JP 63136402A JP 13640288 A JP13640288 A JP 13640288A JP H01304492 A JPH01304492 A JP H01304492A
Authority
JP
Japan
Prior art keywords
cache
coordinates
coordinate
area
register
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63136402A
Other languages
Japanese (ja)
Inventor
Keizo Sumida
隅田 圭三
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP63136402A priority Critical patent/JPH01304492A/en
Publication of JPH01304492A publication Critical patent/JPH01304492A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To minimize the number of times of writing to a frame memory, to decide whether or not an area is painted out at a time and eliminate the need to clear a cache, and to paint out the area speedily by drawing the arithmetic result of area painting in fast buffer memory (cache) units. CONSTITUTION:The (x) and (y) coordinates of the cache 16 are specified for a C field, the coordinates in the cache are specified for a B field, and the coordinates on a display device are specified for an A field. A counter 7 indicates the (x) coordinate of the cache 16 being drawn. A register 8 stores the cache X coordinate of the rightmost end of a selected cache (y) coordinate. Registers 1-6 store the (x) coordinates of the right and left ends of the cache (y) coordinates, in-cache (x) coordinates, and in-cache (y) coordinates 0-2. A shift register 10 obtains the outputs of the registers 1 and 2, determines a data line of the cache 16 through comparators 11 and 12, and latch a line of the cache with the output of the shift register 18. When the counter 7 reaches a specific value, the end of arithmetic is reported through a control line 22. The painting becomes about twice as fast as before.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、電子計算機等の入出力情報を表示するラスタ
ースキャン方式のグラフィックディスクプレイ装置にお
ける領域塗りつぶし発生回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an area filling generation circuit in a raster scan type graphic display device for displaying input/output information of an electronic computer or the like.

従来の技術 表示すべき画面に対応したフレームメモリを有し任意の
図形をこのフレームメモリに書き込み、画面の走査に対
応してフレームメモリからの読み出しを行い、図形の表
示を行うグラフィックディスプレイ装置において、任意
の直線を描画するには、直線上に位置する画素の座標を
計算する機能と、その座標をフレームメモリに書き込む
機能が必要である。
2. Description of the Related Art A graphic display device has a frame memory corresponding to the screen to be displayed, writes an arbitrary figure to the frame memory, reads out the figure from the frame memory in response to scanning of the screen, and displays the figure. To draw an arbitrary straight line, a function to calculate the coordinates of pixels located on the straight line and a function to write the coordinates into frame memory are required.

そこで高速性が要求されるグラフィックディスプレイ装
置においては一般に、始点から終点に至る線分上の点座
標を発生するディジタル微分解析機(Digital 
Differential Analyzer以下DD
Aと略す)と、このODAの出力を一時MxNの画素デ
ータとして蓄える高速バッファ−メモリ(以後キャッシ
ュと略す)と、フレームメモリによって構成されている
Therefore, in graphic display devices that require high speed, a digital differential analyzer that generates point coordinates on a line segment from a starting point to an ending point is generally used.
Differential Analyzer DD
A), a high-speed buffer memory (hereinafter abbreviated as cache) for temporarily storing the output of this ODA as M×N pixel data, and a frame memory.

以上の様に構成されたグラフィックディスプレイ装置に
おいて、領域の塗りつぶしを行う場合についての一例を
以下に説明する。DDAは直線描画を行うので、塗りつ
ぶし領域の各X座標に対して左端と右端の座標を外部の
回路において演算し、y軸方向に平行な直線をDDAで
描画することで、領域の塗りつぶしを実行する。なお簡
単のためにこのDDAからのバッファメモリのキヤ・ソ
シュは3×3のサイズとし、(6,3)、(9゜3)、
(3,6)、(9,6)の4点を結ぶ領域を塗りつぶす
ものとする。
An example of filling in an area in the graphic display device configured as described above will be described below. Since DDA draws straight lines, the left and right coordinates for each X coordinate of the filled area are calculated in an external circuit, and a straight line parallel to the y axis is drawn using DDA to fill the area. do. For simplicity, the size of the buffer memory from this DDA is assumed to be 3×3, and is (6,3), (9°3),
Assume that the area connecting the four points (3, 6) and (9, 6) is filled in.

第2図に、デイスプレィ上の座標と、キヤ・ソシュの座
標と、キャッシュ内の座標との関係を示す。各々Aはデ
イスプレィ上の、Bはキヤ・ソシュ内の、Cはキャッシ
ュのx、X座標である。
FIG. 2 shows the relationship between the coordinates on the display, the coordinates of the cache, and the coordinates in the cache. A is the x, x coordinate on the display, B is in the cache, and C is the cache.

また、実際に塗りつぶしていく様子を第5図に示す。Furthermore, Fig. 5 shows how the area is actually filled in.

まずデイスプレィ上の座標で(6,3)を始点、(9,
3)を終点としてDDAを動作させる。ODAはキャッ
シュ座標(2,1)で、キャッシュ内の座標(0,O)
、(1,0)、(2゜O)を”冒4゛にし、フレームメ
モリに書き込んだ後キャッシュをクリアする。(第5図
の1の部分)。
First, the coordinates on the display are (6, 3) as the starting point, (9,
The DDA is operated with 3) as the end point. ODA is the cache coordinate (2,1), and the coordinate in the cache is (0,O)
, (1,0), and (2°O) are set to "4", and after writing to the frame memory, the cache is cleared (part 1 in Fig. 5).

次にDDAはキャッシュの座標(3,1)でキャッシュ
内座標(0,0)を“H”にし、デイスプレィ上の座標
(9,3)に対応するフレームメモリに書き込んだ後(
第5図の2の部分)、キャッシュをクリアすることによ
り(6,3)から(9,3)の直線描画を終了する。
Next, the DDA sets the cache coordinates (0,0) to "H" at the cache coordinates (3,1), writes it to the frame memory corresponding to the coordinates (9,3) on the display, and then (
(Part 2 in FIG. 5), the straight line drawing from (6, 3) to (9, 3) is completed by clearing the cache.

DDAが前記の演算を実行中に外部の回路においてy=
4のデイスプレィ座標の左端(5,4)と右端(9,4
)を演算し、DDAの終了を待って始点(5,4)、終
点(9,4)としてDDAを動作さぜる。
While the DDA is performing the above operation, the external circuit calculates y=
The left end (5, 4) and right end (9, 4) of the display coordinates of 4
), and after waiting for the end of DDA, operate DDA with starting point (5, 4) and ending point (9, 4).

以後同様に順次デイスプレィ上のX座標を増加させて、
(3,6)から(9,6>の直線描画が終われば、塗り
つぶしは終了する。第5図の番号は、塗りつぶされる順
番をキャッシュ単位で示している。
After that, increase the X coordinate on the display in the same way,
When the straight line drawing from (3, 6) to (9, 6> is completed, the filling is completed. The numbers in FIG. 5 indicate the order of filling in each cache.

発明が解決しようとする課題 しかしながら上記の様な構成では、直線描画用のDDA
をそのまま用いるため、塗りつぶし描画を行う場合、m
 x nのキャッシュのうち、最大m個しか塗りつぶし
が行えないため、フレームメモリへのアクセス回数が増
加し、塗りつぶし速度が遅いという問題点を有していた
Problems to be Solved by the Invention However, in the above configuration, the DDA for straight line drawing
is used as is, so when performing fill-in drawing, m
Since only m caches at most can be filled out of x n caches, the number of accesses to the frame memory increases and the filling speed is slow.

本発明はかかる点に鑑み高速な塗りつぶし描画も行える
グラフィックディスプレイ装置を提供することを目的と
するものである。
In view of this point, it is an object of the present invention to provide a graphic display device that can also perform high-speed fill-in drawing.

課題を解決するための手段 本発明は、前記問題点を解決するため複数行・複数列の
バッファ−メモリに描画画素を一時蓄え、フレームメモ
リに書き込むグラフィックディスプレイ装置において、
領域塗りつぶし回路をX座標ごとに演算された塗りつぶ
し領域の左端と右端の座標を前記バッファ−メモリの列
数外記憶するレジスタ群と、前記レジスタ群に記憶され
た右端の座標のうち最右端の座標を記憶するレジスタと
、塗りつぶし実行中のバッファ−メモリのX座標を示す
カウンターと、塗りつぶし領域の内か外かの判断を前H
a l/レジスタ群出力と前記カウンターの出力から、
前記バッファ−メモリの各行ごとに演算する手段とを備
えた領域塗りつぶし発生回路である。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention provides a graphic display device that temporarily stores drawing pixels in a buffer memory of multiple rows and multiple columns and writes them to a frame memory.
A group of registers for storing the coordinates of the left and right ends of the fill area computed for each X-coordinate by the area filling circuit, outside the number of columns of the buffer memory, and the rightmost coordinate of the right end coordinates stored in the register group. A register that stores the data, a counter that indicates the X coordinate of the buffer memory during filling, and a register that determines whether it is inside or outside the filling area.
From the a l/register group output and the output of the counter,
The area filling generation circuit includes means for calculating each row of the buffer memory.

作   用 本発明は前記した構成により、領域塗りつぶしのために
演算された結果は、キャッシュ単位で描画が行われるた
め、キャッシュからフレームメモリへの書き込みは最少
の回数で実行できる。また、キャッシュの各行に対して
、−度に塗りつぶしかどうかの判断が行えると共にキヤ
・ソシュ全てに塗りつぶしかどうかの判断を行っている
ため、キャッシュをクリヤする必要性が無いので高速な
塗りつぶしが実行できる。
Effects According to the present invention, with the above-described configuration, the results calculated for filling the area are drawn in cache units, so that writing from the cache to the frame memory can be executed in the minimum number of times. In addition, it is possible to determine whether to fill each line in the cache every time, and also to determine whether to fill in all the caches, so there is no need to clear the cache, so filling can be performed at high speed. can.

実  施  例 第1図は本発明の領域塗りつぶし発生回路の一実施例を
示す回路図である。キヤ・ソシュのサイズは、3×3の
場合で、デイスプレィの座標と、キャッシュ座標とキャ
ッシュ内座標の関係は、第2図に示す。第3図は、第1
図における本発明の一実施例に用いられるエンコーダー
1.4.15の真理図である。第4図はデイスプレィ座
標に領域の塗りつぶしの実行を示す説明図である。
Embodiment FIG. 1 is a circuit diagram showing an embodiment of the area filling generation circuit of the present invention. The size of the cache is 3×3, and the relationship between display coordinates, cache coordinates, and cache coordinates is shown in FIG. Figure 3 shows the first
FIG. 2 is a truth diagram of encoder 1.4.15 used in one embodiment of the present invention in FIG. FIG. 4 is an explanatory diagram showing the execution of filling an area in display coordinates.

外部回路により塗りつぶし領域の左端及び右端の座標は
y座標ごとにキャッシュの列数分演算され、キャッシュ
座標及びキャッシュ内座標で出力され、キャッシュ内に
塗りつぶさないy座標に対しては左端の座標にスクリー
ンの外を示すキャッシュ内座標(本例では3)を演算し
ている。
The coordinates of the left and right ends of the filled area are calculated for each y-coordinate by the number of cache columns by an external circuit, and are output as cache coordinates and coordinates in the cache.For y-coordinates that are not filled in the cache, the screen is set to the left-most coordinate. The cache coordinates (3 in this example) indicating the outside of the cache are calculated.

−例として(6,3)、(9,3)、(3゜6)、(9
,6)の4点を結ぶ領域を塗りつぶす場合について説明
する。10.18はシフトレジスタでYOが“H″他は
“L”がリセット時にロードされており、Y2の出力が
クロックでYOの出力となる様に構成する。7はカウン
ターで描画中のキャッシュX座標を示す。8はレジスタ
で、選ばれたキャッシュX座標の最右端のキャッシュX
座標を記憶する。9はレジスタで描画中のキャッシュX
座標を記憶する。1〜6はレジスタで、選ばれたキャッ
シュX座標の左端及び右端のキャッシュX座標及びキャ
ッシュ内X座標が、キャッシュ内y座標0へ・2の順で
記憶する。
- Examples are (6,3), (9,3), (3°6), (9
, 6) where the area connecting the four points is filled will be explained. 10.18 is a shift register which is loaded with YO at "H" and others at "L" at reset, and is configured so that the output of Y2 becomes the output of YO with a clock. 7 indicates the cache X coordinate being drawn on the counter. 8 is a register, the rightmost cache X of the selected cache X coordinate
Remember the coordinates. 9 is the cache X being drawn in the register
Remember the coordinates. 1 to 6 are registers in which the cache X coordinates and in-cache X coordinates of the left end and right end of the selected cache X coordinate are stored in the order of in-cache y coordinate 0 and 2, respectively.

本例では、レジスタ1にはキャッシュX座標2キヤツシ
ユ内座標Oが記憶されく以下2−0と略す)レジスタ2
には3−0.レジスタ3には1−2゜レジスタ4には3
−○、レジスタ5は1−1.レジスタ6には3−〇、が
それぞれ記憶される。カウンター7はキャッシュX座標
の最小値(本例では1)がロードされる。レジスタ8は
キャッシュX座標の最大値(本例では3)が記憶され、
レジスタ9には1がロードされる。
In this example, register 1 stores cache X coordinate 2 and cache internal coordinate O (hereinafter abbreviated as 2-0).
3-0. 1-2° for register 3, 3 for register 4
-○, register 5 is 1-1. The register 6 stores 3-0, respectively. The counter 7 is loaded with the minimum value of the cache X coordinate (1 in this example). Register 8 stores the maximum value of the cache X coordinate (3 in this example),
Register 9 is loaded with 1.

シストレジスタ10の出力からまずレジスタJ、2の出
力がイレネーブルとなる。この出力とカウンター7の出
力とをコンパレータ11,12により比較しく本例では
コンパレータ11がA−2゜B=1であるのでA>Bを
“L”他を“H”、コンパレータ12はA=1.B=2
であるのでA<BをL“他を“H”で出力する。)その
結果とレジスタ1,2の出力からく本例ではエンコーダ
ー14はDlがLであるので全て“L”、エンE −ダ
ー15はDOが”L”であるので全て“H”)出力し、
その結果からキャッシュ16のデータ線を決定する(本
例では全て“L”)。
From the output of the system register 10, the outputs of registers J and 2 are first enabled. This output and the output of the counter 7 are compared by comparators 11 and 12. In this example, since the comparator 11 has A-2°B=1, A>B is "L" and the others are "H", and the comparator 12 is A= 1. B=2
Therefore, A<B is output as L and the others are output as "H".) Based on the result and the output of registers 1 and 2, in this example, the encoder 14 outputs all "L" since Dl is L, and the encoder 14 outputs "L", and encoder 14 outputs "L" as Dl is L. Since DO is “L”, the driver 15 outputs all “H”),
Based on the result, the data lines of the cache 16 are determined (all "L" in this example).

シフトレジスタ18の出力で、キャッシュ16の(0,
O)、(1,O)、(2,0)を選択しクロックの立ち
上りでラッチする。と同時にシフトレジスタ10は次の
レジスタ3,4の出力をイネーブルにし、次段の演算を
行う。最終段まで演算を行うと、フリップフロップ17
が動作しキャッシュのデータができたことを制御信号線
20により知らせ、転送が終了したことを知らせる制御
信号線21がLにアサートされるまで、クロ・ツクにマ
スクをかける。レジスタ4にはキヤ・ソシュy座標が記
憶されており、カウンター7のキヤ、ソシュX座標とで
、フレームメモリへの書き込みを行う。
With the output of the shift register 18, the (0,
O), (1, O), and (2, 0) are selected and latched at the rising edge of the clock. At the same time, the shift register 10 enables the outputs of the next registers 3 and 4, and performs the next stage calculation. When the calculation is performed up to the final stage, the flip-flop 17
The clock is masked until the control signal line 20 is asserted to indicate that the data has been operated and the data in the cache has been completed, and the control signal line 21 is asserted to L, indicating that the transfer has been completed. The register 4 stores the y coordinates, and the y coordinates of the counter 7 are used to write into the frame memory.

キャッシュ16のデータの転送が終了すると、シフトレ
ジスタ1.0の出力がYOがHとなるため、カウンター
7の値がインクリメントされ、前記と同様に演算を行う
。カウンター7の値がレジスタ8の値とコンパレーター
8で比較して、カウンター7の値がより大きくなると、
クロックにマスクをかけ、制御信号線22により、ti
算終了を知らせる。また制御信号線23により、レジス
タ1〜6,8〜9.カウンター7の初期設定が終了する
までのマクスである。
When the transfer of the data in the cache 16 is completed, the output of the shift register 1.0 becomes H, so the value of the counter 7 is incremented, and the same calculation as above is performed. The value of counter 7 is compared with the value of register 8 by comparator 8, and if the value of counter 7 becomes larger,
By masking the clock and using the control signal line 22, ti
Notify the end of calculation. Further, registers 1 to 6, 8 to 9. This is the sequence until the initial setting of the counter 7 is completed.

以上の様にして塗りつ、5Cされた領域のフレームメモ
リの書き込んだ順番を示すものが第4図である。この例
では、従来例(第5図)と同様のパターンを6回のフレ
ームメモリへの書き込みで完了しており、従来の約2倍
のスピードアップとなっている。
FIG. 4 shows the order in which the areas painted and 5C written in the frame memory are written in as described above. In this example, the same pattern as in the conventional example (FIG. 5) is completed by writing to the frame memory six times, which is approximately twice as fast as the conventional example.

発明の効果 以上述べてきたように、本発明によれば、簡単な回路を
付加することで最少限のフレームメモリへのアクセスで
、高速に領域の塗りつぶしを実現でき、実用的にきわめ
て有用である。
Effects of the Invention As described above, according to the present invention, by adding a simple circuit, it is possible to fill an area at high speed with a minimum number of frame memory accesses, which is extremely useful in practice. .

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

第1図は本発明の一実施例における領域塗りつぶし発生
回路を示す回路図、第2図は、デイスプレィ上の座標と
、キャッシュの座標とキャッシュ内の座標との対応を示
す説明図、第3図は、本発明の一実施例に用いられるエ
ンコーダーの真理値図、第4図は本発明の一実施例によ
って領域の塗りつぶしを行ったときのフレームメモリへ
のアクセスを示す説明図、第5図は従来例によって領域
の塗りつぶしを行ったときのフレームメモリへのアクセ
スを示す説明図である。 1〜6・・・・・・レジスタ、7・・・・・・カウンタ
ー、8〜9・・・・・・レジスタ、10・・・・・・シ
フトレジスタ、11〜13・・・・・・コンパレーター
、14.15・・・・・・エンコーダー、16・・・・
・・キャッシュ。 代理人の氏名 弁理士 中尾敏男 ほか1名第1図 第2図 第 3 図 第40 第 5 口
FIG. 1 is a circuit diagram showing an area filling generation circuit in an embodiment of the present invention, FIG. 2 is an explanatory diagram showing the correspondence between coordinates on the display, coordinates in the cache, and coordinates in the cache. is a truth value diagram of an encoder used in an embodiment of the present invention, FIG. 4 is an explanatory diagram showing access to the frame memory when filling an area according to an embodiment of the present invention, and FIG. FIG. 7 is an explanatory diagram showing access to a frame memory when filling an area according to a conventional example. 1-6...Register, 7...Counter, 8-9...Register, 10...Shift register, 11-13... Comparator, 14.15... Encoder, 16...
··cache. Name of agent: Patent attorney Toshio Nakao and one other person Figure 1 Figure 2 Figure 3 Figure 40 No. 5

Claims (1)

【特許請求の範囲】[Claims] 複数行、複数列のバッファメモリに描画画素を一時蓄え
、フレームメモリに書き込むグラフィックディスプレイ
装置において、y座標ごとに演算された塗りつぶし領域
の左端と右端の座標を前記バッファ−メモリの列数分記
憶するレジスタ群と、前記レジスタ群に記憶された右端
の座標のうち最右端の座標を記憶するレジスタと、塗り
つぶし実行中のバッファ−メモリのx座標を示すカウン
ターと、塗りつぶし領域かどうかの判断を前記レジスタ
群の出力と、前記カウンターの出力から前記バッファ−
メモリの各行ごとに演算する手段とを備えたことを特徴
とする領域塗りつぶし発生回路。
In a graphic display device that temporarily stores drawing pixels in a buffer memory of multiple rows and multiple columns and writes them to a frame memory, coordinates of the left end and right end of a filled area calculated for each y coordinate are stored for the number of columns of the buffer memory. a register group, a register that stores the rightmost coordinate among the rightmost coordinates stored in the register group, a counter that indicates the x-coordinate of the buffer memory that is being filled, and a register that determines whether the area is a filled area. from the output of the group and the output of the counter to the buffer.
1. An area filling generation circuit comprising means for calculating for each row of memory.
JP63136402A 1988-06-02 1988-06-02 Area painting generation circuit Pending JPH01304492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63136402A JPH01304492A (en) 1988-06-02 1988-06-02 Area painting generation circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63136402A JPH01304492A (en) 1988-06-02 1988-06-02 Area painting generation circuit

Publications (1)

Publication Number Publication Date
JPH01304492A true JPH01304492A (en) 1989-12-08

Family

ID=15174326

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63136402A Pending JPH01304492A (en) 1988-06-02 1988-06-02 Area painting generation circuit

Country Status (1)

Country Link
JP (1) JPH01304492A (en)

Similar Documents

Publication Publication Date Title
EP0278526B1 (en) Graphics diplay controller having clipping function
JPH06100911B2 (en) Image data processing apparatus and method
JPH01304492A (en) Area painting generation circuit
JPH04291684A (en) Thick line plotter
JPS6016634B2 (en) Graphic generation method in display devices
KR930000693B1 (en) Pattern data generating apparatus
JPS642953B2 (en)
JPS6155677B2 (en)
JPH02150919A (en) Display system for state display row at the time of dividing and displaying
JP2605609B2 (en) Dot display processing device
JP2002258827A (en) Image display device
JP2903514B2 (en) High-speed drawing method
JPH0697393B2 (en) Bitmap processor
JPH04163677A (en) Straight line plotter
JPS61193197A (en) Graphics display unit
JPS6098485A (en) Display unit
JPH11161255A (en) Image display unit
JP2830320B2 (en) Drawing method to image memory
JPS58196585A (en) Graphic output system
JPS6257079A (en) Smoothing device
JPH0773319A (en) Image processor
JPS58169437A (en) Three-dimensional data treating system
JPS62152072A (en) Paint-out system for polygon
JPH10261095A (en) Device and method for processing image
JPH04148284A (en) Digital plotting device