JPS59214086A - Graphic processor - Google Patents

Graphic processor

Info

Publication number
JPS59214086A
JPS59214086A JP58088559A JP8855983A JPS59214086A JP S59214086 A JPS59214086 A JP S59214086A JP 58088559 A JP58088559 A JP 58088559A JP 8855983 A JP8855983 A JP 8855983A JP S59214086 A JPS59214086 A JP S59214086A
Authority
JP
Japan
Prior art keywords
register
image memory
address
area
output
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
JP58088559A
Other languages
Japanese (ja)
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP58088559A priority Critical patent/JPS59214086A/en
Publication of JPS59214086A publication Critical patent/JPS59214086A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、クリップ機能を有する図形処理装置に関する
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a graphic processing device having a clip function.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

通常、グラフィックディスプレイにおいては、2次元の
図形をCRTディスプレイ上に表示するため、一旦、図
形を画像メモリに書込み、これを順次読出して映像信号
に変換する操作が行なわれる。上記画像メモリは一次元
的アドレス空間構造を持ち、そのアドレスは図形を展開
する座標空間に論理的に対応している。この座標空間に
おいて、任意の矩形エリアを定義し、その中においての
み図形の展開ができる様にコントロールするクリップ機
能が存在する。
Generally, in a graphic display, in order to display a two-dimensional figure on a CRT display, the figure is once written into an image memory, and then sequentially read out and converted into a video signal. The image memory has a one-dimensional address space structure, and its addresses logically correspond to the coordinate space in which a figure is developed. In this coordinate space, there is a clip function that defines an arbitrary rectangular area and controls the development of figures only within that area.

上記クリップ機能を有す図形処理装置において、上記矩
形領域内は元の描画状態を保ち、矩形領域外を描画可能
とする様な柔軟な制御を行なおうとすると、逆にこのク
リップ機能実現のためのハードウェアが障害となり、ソ
フトウェアの負担増になるばかりか、処理時間にも悪影
響を及ぼしていたものである。
In a graphic processing device having the above-mentioned clipping function, when trying to perform flexible control such as maintaining the original drawing state inside the above-mentioned rectangular area and drawing outside the rectangular area, it is difficult to realize this clipping function. The hardware was a problem, which not only increased the burden on the software but also had a negative impact on processing time.

〔発明の目的〕[Purpose of the invention]

本発明は上記欠点に鑑みてなされたものであリ、少量の
ハードウェアを付加することにより、指定領域外のクリ
ップ機能を実現すると共に、プログラム指定によりクリ
ッピングのための領域指定の切換えを実現し得る図形処
理装置を提供することを目的とする。
The present invention has been made in view of the above drawbacks, and by adding a small amount of hardware, it realizes a clipping function outside the specified area, and also realizes switching of area specification for clipping by program specification. The object of the present invention is to provide a graphic processing device that obtains the following information.

〔発明の概要〕[Summary of the invention]

本発明は上記目的を構成するため、従来のクリップ機能
実現のための−・−ドウエアに、更にフリップフロップ
と排他論理和ゲートを付加した。フリップ7四ツブはプ
ログラム(ファームウェア)によりセット/リセット出
来る構成とし、該フリップフロップ出力と、画像メモリ
に供給されるアドレスと定義されるクリップ領域とのア
ドレス比較結果により、画像メモリへの書込み許可信号
を生成する構成としたものである0 このことにエリ、ソフトウェアの負損が軽減されると共
に処理時間の高速化にも貢献する。
In order to achieve the above object, the present invention further adds a flip-flop and an exclusive OR gate to the conventional hardware for realizing the clip function. The flip-flop 7 has a structure that can be set/reset by a program (firmware), and a write permission signal to the image memory is generated based on the address comparison result between the flip-flop output and the address supplied to the image memory and the defined clip area. This configuration reduces the burden on the software and also contributes to speeding up the processing time.

〔発明の実施例〕[Embodiments of the invention]

以下、図面を使用して本発明に関し詳述する。 Hereinafter, the present invention will be explained in detail using the drawings.

第1図は本発明の実施例を示すブロック図である。図に
おいて、11.12は画像メモリ(でおけるX、Yのア
ドレス(座標直)が設定されるアドレスレジスタである
。その出力はメモリ制御回路24を介して図示されない
画像メモリへ供線される。13,14,15.16はク
リップアドレスレジスタである。クリップアドレスレジ
スタ13.14には、定義する矩形領域におけるX座標
の両端のアドレスが、クリップレジスタ15.16には
矩形領域におけるY座標の両端のアドレスが設定される
。以降、11゜12.13,14,15.16をそれぞ
れ単にXレジスタ、Yレジスタ、Xoレジスタ、Y。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, reference numerals 11 and 12 are address registers in which X and Y addresses (coordinate coordinates) in the image memory are set.The output thereof is connected to the image memory (not shown) via the memory control circuit 24. 13, 14, 15.16 are clip address registers.The clip address register 13.14 contains the addresses of both ends of the X coordinate in the rectangular area to be defined, and the clip register 15.16 contains the addresses of both ends of the Y coordinate in the rectangular area. Hereafter, 11, 12, 13, 14, and 15, 16 are simply referred to as X register, Y register, Xo register, and Y, respectively.

レジスタ、XI レジスタ、Yl レジスタと称し、説
明を行なう。
They will be referred to as registers, XI registers, and Yl registers and will be explained.

1’l、1g、19.20は比較器である。比較器17
にはXレジスタ1ノとXo レジスタ13出力が、比較
器18にはYレジスタ12とYoレジスタ14出力が、
比較器19にはXレジスタ11とXI レジスタ15出
力が、比較器20にはYレジスタ12とY、レジスタ1
6に設定された値がそれぞれ供給され、ここで比較一致
がとられ、指定された画像メモリアドレスが定義された
矩形領域内にあるか否か判定される。21はアンド回路
である。アンド回路21には上記比較器17〜20出力
が入力として供給され、ここで論理積のとられた結果は
排他論理和回路(以下、単に’f、QR22と称する)
の−入力端子に供給される。EOR22の他の入力端子
には、フリップフロップ23のi出力が供給される。フ
リップフロップ23はプログラマブル(ファームウェア
)にセット/リセットされ、矩形領域内の書込み許可あ
るいは禁止が設定される。上記EOR22出力はX、Y
レジスタ11.12出力と共にメモリ制御回路24へ転
送され、画像メモリへのデータ書込みをコントロールす
る信号となる。
1'l, 1g, 19.20 are comparators. Comparator 17
The outputs of X register 1 and Xo register 13 are input to the comparator 18, and the outputs of Y register 12 and Yo register 14 are input to the comparator 18.
The comparator 19 has the outputs of X register 11 and XI register 15, and the comparator 20 has the outputs of Y register 12, Y, and register 1.
A value set to 6 is provided, and a comparison is made to determine if the specified image memory address is within the defined rectangular area. 21 is an AND circuit. The outputs of the comparators 17 to 20 are supplied as inputs to the AND circuit 21, and the result of the AND operation is sent to an exclusive OR circuit (hereinafter simply referred to as 'f, QR22).
is supplied to the − input terminal of The i output of the flip-flop 23 is supplied to the other input terminal of the EOR 22 . The flip-flop 23 is set/reset programmably (firmware), and writing permission or prohibition within the rectangular area is set. The above EOR22 output is X, Y
The signal is transferred to the memory control circuit 24 together with the outputs of the registers 11 and 12, and becomes a signal for controlling data writing to the image memory.

ここで、あえて説明するまでもないが、従来は上述した
EOR22及びフリップフロップ23は存在せず、アン
ド回路21出力が直接画像メそりのREAD/WRIT
Eを許可する信号となっていたものである。即ち、アン
ド回路2ノにおいて、比較器17〜2θから得られる出
力が全て有意(正信号)であるときにメモリ制御回路2
4へ正信号を送り、画像メモリへのデータ書込みを実行
していた。一方、比較器17〜20のうちの1つにでも
負信号が生成されるとメモリ制御回路24へ負信号が送
られ、画像メモリへの書込みが禁止されていたものであ
る。
Here, there is no need to explain it, but in the past, the EOR 22 and flip-flop 23 described above did not exist, and the output of the AND circuit 21 was directly connected to the image processing READ/WRIT.
This signal was used to permit E. That is, in the AND circuit 2, when the outputs obtained from the comparators 17 to 2θ are all significant (positive signals), the memory control circuit 2
A positive signal was sent to 4, and data was written to the image memory. On the other hand, if even one of the comparators 17 to 20 generates a negative signal, the negative signal is sent to the memory control circuit 24, and writing to the image memory is prohibited.

第2図は定義した矩形領域内の書込みを許可するクリッ
プ機能を表示画面(画像メモリ)上に展開して示した概
念図である。この図をもとに動作説明を行なうと、まず
、画像メモリ上の任意矩形領域A、B、C,D内をクリ
ップ領域と定義する。このためには、Xoレジスタ13
にX座標XA  を設定し、X、レジスタ15にX座標
XB  を設定し、Yoレジスタ14 、 Y、  レ
ジスタ16に各々Y座標YA 、 Y!1を設定する。
FIG. 2 is a conceptual diagram showing a clipping function that permits writing within a defined rectangular area developed on a display screen (image memory). To explain the operation based on this figure, first, arbitrary rectangular areas A, B, C, and D on the image memory are defined as clip areas. For this, Xo register 13
Set the X coordinate XA in the X register 15, set the X coordinate XB in the X register 15, and set the Y coordinates YA, Y! in the Yo register 14, Y, and register 16, respectively. Set 1.

これにより、クリップ領域となるアドレスがそれぞれ比
較器17.1B、19.20の入力端子Bへ供給される
。この状態で線分SFを発生させろものとする。
As a result, addresses serving as clip areas are supplied to input terminals B of comparators 17.1B and 19.20, respectively. It is assumed that the line segment SF is generated in this state.

一般に、図形処理装置においては、線分を発生させる場
合、開始座標、二点間の差分、方向等のパラメータ設定
により、ハードウェアが描画アドレスを計算して開始ア
ドレスから連続的に行なう線分発生器を備えている。こ
の線分発生器については本発明と直接関係しないため、
図示していない。開始座標5(X11.Ys)からJ 
’ (XA −1、Ys )間(点線で示す)は、Xア
ドレスがクリップ領域外であり、従って比較器17の出
力が負信号となるため書込み許可信号も負となって、画
像メモリへの書込みは禁止され、従がって描画も行なわ
れない。1点(XA 、 YS)からに点(XB 、 
YS )間はクリップ領域内であるため、比較器17.
1B、19,2oの出力は全て正信号となり、書込み許
可信号も正となり、画像メモリへの書込みが許可され描
画が行なわれる。K′点(XB+I 、YS)とE点(
xR,YS)間はクリップ領域となり、今度は比較器1
9の出力が負になるので書込み許可信号も負になり、描
画は行なわれない。
Generally, when generating a line segment in a graphic processing device, the hardware calculates a drawing address based on parameter settings such as starting coordinates, difference between two points, direction, etc., and generates line segments continuously from the starting address. Equipped with equipment. Since this line segment generator is not directly related to the present invention,
Not shown. J from starting coordinates 5 (X11.Ys)
' Between (XA - 1, Ys) (indicated by the dotted line), the X address is outside the clipping area, and therefore the output of the comparator 17 becomes a negative signal, so the write permission signal also becomes negative, and the write permission signal becomes negative, and the data is sent to the image memory. Writing is prohibited and therefore no drawing is performed. From 1 point (XA, YS) to point (XB,
Since the area between YS and YS is within the clipping area, comparator 17.
The outputs of 1B, 19, and 2o all become positive signals, and the write permission signal also becomes positive, allowing writing to the image memory and drawing. Point K' (XB+I, YS) and point E (
xR, YS) becomes a clip area, and now comparator 1
Since the output of 9 becomes negative, the write permission signal also becomes negative, and no drawing is performed.

この様に、線分sEの書込み指令を出せばハードウェア
により自動的に線分JK’が描画されることになる。
In this way, if a command to write the line segment sE is issued, the line segment JK' will be automatically drawn by the hardware.

ここで、第3図に示す如く、矩形領域A、B。Here, as shown in FIG. 3, rectangular areas A and B.

C,D内は元の描画状態を保ち、即ち新たな書込みを禁
止し、それ以外の領域を描画可能とする場合を考える。
Let us consider a case where the original drawing state is maintained in C and D, that is, new writing is prohibited, and the other areas are allowed to be drawn.

この様な場合、従来方式によれば上述したクリッピング
のためのハードウェアが障害になることは上述したとお
りである。
In such a case, as described above, according to the conventional method, the above-mentioned clipping hardware becomes a problem.

本発明では、これを解消するため、プログラマフルにセ
ット/リセットされるフリップフロップ23とEOR2
2を付加した。これによって例えば矩形領域内を書込み
禁止状態とすることができるばかりか、ファームウェア
からの指令により任意に禁止状態あるいは許可状態と交
互に切り換えることを可能ならしめるものである。
In the present invention, in order to solve this problem, the flip-flop 23 and EOR2 are fully set/reset by the programmer.
2 was added. This not only makes it possible, for example, to make the inside of a rectangular area write-inhibited, but also makes it possible to arbitrarily switch between a prohibited state and a permitted state according to a command from the firmware.

即ち、第3図において、矩形領域内を書込み禁止とする
場合、フリップフロップ23をリセット状態にする○X
oレジスタ13 、 X、  レジスタ15.Yo レ
ジスタI J 、 Y、  レジスタ16にクリップア
ドレス°I □ II 、 tt  ++ 、 ++ 
0+r。
That is, in FIG. 3, when writing is prohibited within the rectangular area, the flip-flop 23 is reset by ○X.
o register 13, X, register 15. Yo register I J, Y, clip address in register 16 °I □ II, tt ++, ++
0+r.

11 ′“y、 #をそれぞれセットする。この状態で線分S
Eを発生させた場合、比較器17.1B。
11' Set y and # respectively. In this state, line segment S
If E is generated, comparator 17.1B.

19.20の出力は全て正は号となり、アンド回路21
の出力は正となってEOR22に入力される。EOR2
2の他方の入力端子にはフリップ70ツブ23の正出力
が正で入力されるので、EOR22の出力、即ち、書込
み許可信号は負となってメモリ制御回路24へ送られる
。従がって開始座標S (X!l 、 Yl+ )とJ
 (XB 、 YS )間の描画は行なわない。次に、
J’ (Xn ++ 、Y” )とE(XE、Ys)間
においては比較器19の出力が負信号となりアンド回路
21の出力負となりEOR12へ人力されるため、その
出力は正となる。従って書込み許可状態となり描画が実
行される。
19. All outputs of 20 are positive, and the AND circuit 21
The output becomes positive and is input to the EOR 22. EOR2
Since the positive output of the flip 70 tube 23 is input as positive to the other input terminal of EOR 2, the output of EOR 22, that is, the write permission signal becomes negative and is sent to the memory control circuit 24. Therefore, the starting coordinates S (X!l, Yl+) and J
No drawing is performed between (XB, YS). next,
Between J' (Xn ++, Y") and E (XE, Ys), the output of the comparator 19 becomes a negative signal, and the output of the AND circuit 21 becomes negative and is input to the EOR 12, so the output becomes positive. Therefore, the output becomes positive. The state is set to write permission and drawing is executed.

尚、以上は説明の都合上、クリップ領域を矩形としたが
、任意の形状にあっても本発明の主旨を逸脱するもので
はない。
In addition, although the clip area has been described above as a rectangle for convenience of explanation, it does not depart from the gist of the present invention even if the clip area has an arbitrary shape.

〔発明の効果〕〔Effect of the invention〕

以上説明の如く本発明によれば、指定領域外のクリップ
機能を実現し得ると共に、プログラム指定によりクリッ
ピングのための領域指定の切換えが実現できる。画像処
理装置のCR7表示画面上での矩形領域をメニュー表示
等の目的で使用し、この領域を意識せず動画図形を発生
させる様な場合、本発明は特に有効である。
As described above, according to the present invention, it is possible to realize the clipping function outside the specified area, and also to switch the area specification for clipping by program specification. The present invention is particularly effective when a rectangular area on the CR7 display screen of an image processing device is used for the purpose of displaying a menu, etc., and a moving image is generated without being aware of this area.

従来方式では矩形領域をクリアし、更にメニューを表示
する時間が必要だったものであり、本発明ではこの時間
が省略できるため処理速度の向上にも貢献する。
The conventional method requires time to clear the rectangular area and display the menu, but the present invention can omit this time, contributing to improved processing speed.

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

第1図は本発明の実施例を示すブロック図、第2図は定
義した矩形領域内の書込みを許可するクリップ機能を表
示画面上に展開して示した概念図、第3図は定義した矩
形領域内の書込みを禁止し、それ以外の領域の書込みを
可能とするクリップ機能を表示画面上に展開して示した
・L概念図である。 11.12・・・アドレスレジスタ、13,14゜15
.16・・・クリップアドレスレジスタ、17゜18.
19.20・・・比較器、21・・・アンド回路、22
・・・排他論理和回路(EOR)、xs・・・フリップ
フロツプ。
Fig. 1 is a block diagram showing an embodiment of the present invention, Fig. 2 is a conceptual diagram showing the clipping function that allows writing within a defined rectangular area expanded on the display screen, and Fig. 3 is a diagram showing the defined rectangle. It is a L conceptual diagram showing a clip function developed on a display screen that prohibits writing in an area and enables writing in other areas. 11.12...Address register, 13, 14゜15
.. 16...Clip address register, 17°18.
19.20... Comparator, 21... AND circuit, 22
...Exclusive OR circuit (EOR), xs...flip-flop.

Claims (1)

【特許請求の範囲】[Claims] 座標空間に論理的に対応したアドレスを持つ画像メモリ
と、座標空間の任意領域を定義する値が設定されるクリ
ップレジスタと、該クリップレジスタに設定された値と
上記画像メモリに供給されるアドレスとを比較し、該ア
ドレスが定義された領域内にあるか否かを判別して信号
を出力する比較器と、プ四グラムによりセット/リセッ
トされるフリップフロップと、上記比較器出力とフリッ
プフロップ出力により上記画像メモリに対するデータの
書込みをコントロールする信号を生成する回路とを具備
することを特徴とする図形処理装置。
An image memory having an address that logically corresponds to the coordinate space, a clip register in which a value defining an arbitrary area of the coordinate space is set, and a value set in the clip register and an address supplied to the image memory. a comparator that compares the addresses and outputs a signal after determining whether or not the address is within a defined area; a flip-flop that is set/reset by the quadrogram; and the output of the comparator and the output of the flip-flop. and a circuit for generating a signal for controlling writing of data into the image memory.
JP58088559A 1983-05-20 1983-05-20 Graphic processor Pending JPS59214086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58088559A JPS59214086A (en) 1983-05-20 1983-05-20 Graphic processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58088559A JPS59214086A (en) 1983-05-20 1983-05-20 Graphic processor

Publications (1)

Publication Number Publication Date
JPS59214086A true JPS59214086A (en) 1984-12-03

Family

ID=13946220

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58088559A Pending JPS59214086A (en) 1983-05-20 1983-05-20 Graphic processor

Country Status (1)

Country Link
JP (1) JPS59214086A (en)

Similar Documents

Publication Publication Date Title
JP3068842B2 (en) Direct memory access device in image processing device and external storage device used therefor
JPS59214086A (en) Graphic processor
JPS62128369A (en) Enlarged image displaying method
JPS61163383A (en) Information processor
JPH06149533A (en) Segment quick plotting system for reducing plotting processing for segment outside display area
JP2549630B2 (en) Image information processing device
JPH0620185Y2 (en) Small electronic devices
JPS6159484A (en) Segment control system
JPS60113291A (en) Graphic display unit
JPH0145662B2 (en)
JPS58162987A (en) Character display unit
JPS63142390A (en) Display device
JPH0535247A (en) Masked picture generation system
JP2761220B2 (en) 3D graphic display system
JPS5866991A (en) Cursor display control system
JP3193929B2 (en) Image processing device
JPH0863595A (en) Method and device for rotation processing of image
JPS62154020A (en) Data input device designating virtual position employing pointing device
JPS62129886A (en) Cursor control system for display unit
JPS58102290A (en) Character display controlling circuit
JPH05189581A (en) Graphic data write device
JPS6180292A (en) Display cotnrol system
JPS616684A (en) Cursor display control system
JPS60225890A (en) Attribution display control system for data display unit
JPS61208574A (en) Information buffer system