WO1996011463A1 - Method and device for controlling frame memory - Google Patents

Method and device for controlling frame memory Download PDF

Info

Publication number
WO1996011463A1
WO1996011463A1 PCT/JP1995/002058 JP9502058W WO9611463A1 WO 1996011463 A1 WO1996011463 A1 WO 1996011463A1 JP 9502058 W JP9502058 W JP 9502058W WO 9611463 A1 WO9611463 A1 WO 9611463A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame memory
read
image data
display
area
Prior art date
Application number
PCT/JP1995/002058
Other languages
French (fr)
Japanese (ja)
Inventor
Shuji Hori
Original Assignee
Sega Enterprises, 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 Sega Enterprises, Ltd. filed Critical Sega Enterprises, Ltd.
Publication of WO1996011463A1 publication Critical patent/WO1996011463A1/en

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/363Graphics controllers
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/393Arrangements for updating the contents of the bit-mapped memory
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2310/00Command of the display device
    • G09G2310/04Partial updating of the display screen

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Graphics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

Read coordinates X and Y are outputted to a frame memory (20) for display as a read address and image data are read from the memory (20) according to a read signal for display from a read signal generating circuit (42) for display. In addition, an X-coordinate comparator circuit (39) and a Y-coordinate comparator circuit (40) respectively compare the coordinates X and Y with the coordinates of a prescribed area set in registers (34-37). When it is judged that the coordinates are in the prescribed area, a write signal for display from a write signal generating circuit (41) for display is turned on. As a result, erase writing data set in an erase writing data register (38) are written at the read address immediately after the image data are read. Therefore, the write time of the image data in the frame memory (20) can be shortened.

Description

明細書  Specification
【発明の名称】 フレームメモリ制御方法及び装置 【技術分野】 TECHNICAL FIELD The present invention relates to a method and an apparatus for controlling a frame memory.
本発明は、 モニタに表示するための画像データをフレームメモリに書き込み、 その画像データを、 モニタに表示するために 1 ドッ 卜単位で読み出すフレームメ モリ制御方法及び装置に関する。 【背景技術】  The present invention relates to a frame memory control method and apparatus for writing image data to be displayed on a monitor to a frame memory and reading out the image data in units of dots for display on the monitor. [Background Art]
従来より、 ゲーム機に使用される画像処理装置では、 画像データを 1フレーム ずつ蓄積するフレームメモリ と、 このフレームメモリ上の画像データを水平 ·垂 直同期信号に同期して読み出して 3原色 R G Bのレベルを示す R G B信号として 出力するビデオディ スプレイプロセッサ (V D P ) とを備えたものが知られてい る。  2. Description of the Related Art Conventionally, an image processing device used in a game machine has a frame memory for storing image data one frame at a time, and reads out the image data in the frame memory in synchronization with a horizontal / vertical synchronization signal to read the three primary colors RGB A video display processor (VDP) that outputs an RGB signal indicating a level is known.
このような装置では、 C P Uの制御のもと、 V D Pがプログラムの実行に伴つ て、 ディスプレイの表示画面に表示させるべき画像の画像データを R O Mから読 み出し、 フレームメモリに書き込む。 このフレームメモリに書き込まれた画像デ 一夕は、 V D Pからの水平 ·垂直同期信号に同期して読み出された後、 V D Pに 接铳された D Z Aコンバータによってアナログ信号に変換され、 ディ スプレイに R G B映像信号として入力され面面表示される。  In such a device, under the control of the CPU, the VDP reads the image data of the image to be displayed on the display screen of the display from the ROM and writes the image data to the frame memory as the program is executed. The image data written to this frame memory is read out in synchronization with the horizontal and vertical synchronization signals from the VDP, then converted to analog signals by a DZA converter connected to the VDP, and displayed on the display as RGB. It is input as a video signal and displayed on the surface.
ところで、 上記フレームメモリは、 通常 2個のフレームメモリから構成され、 —方が表示用、 他方が描画用として使用される。 一方のフレームメモリに画像デ 一夕が害き込まれている間、 他方のフレームメモリに展開されている画像データ が銃み出され、 ディ スプレイの T V画面に表示されるようになっている。 そして 、 1フレーム分の画像が表示されている期間が終了すると、 描画用と表示用とが 切り替わり、 それまで描画用であったフレームメモリに展開されていた画像デー タが銃み出され、 表示用であったフレームメモリに 2つ分先のフレームの画像デ —夕が書き込まれる。 このフレームメモリは双方とも、 表示用から描画用に切り 替えられて書き込みが開始される前に、 それまで書き込まれていた内容が消去さ れる (以下、 この消去をィレースライ トという) 。 By the way, the above-mentioned frame memory is usually composed of two frame memories, one for display and the other for drawing. While the image data is being damaged in one frame memory, the image data developed in the other frame memory is shot out and displayed on the TV screen of the display. When the period during which one frame of image is displayed ends, the display is switched between drawing and display, and the image data that has been expanded in the frame memory used for drawing is shot out and displayed. The image data of the frame two minutes ahead is written to the frame memory. Both frame memories are switched from display to drawing. Before the writing is started after the replacement, the contents written so far are erased (hereinafter, this erasing is referred to as erase write).
図 5に、 従来のフレームメモリのィレースライ トの方法について示す。 この図 に示すように、 フレームメモリ平面 F Rとして、 実際の T V画面の表示領域 D P より広い領域がとられている。 ィレースライ トを行う領域は、 図 5 ( a ) に示す ように T V画面の表示領域 D P全体である場合、 または、 フレームメモリ平面 F R全体である場合がある。 そして、 この領域上に、 透明もしくは黒色を表すデー タを書き込むことによって、 それまで書き込まれていた画像データを消去する。 しかしながら、 このような方法では、 フレームメモリに展開されていた画像デ 一夕を全て消去させることとなるため、 画像データの一部のみを変えて表示する 場合に、 再び同じ画像データを書き込まなければならない。 フレームメモリの切 り替え期間、 すなわち、 上述した 1 フレーム分の画像表示期間内に、 フレームメ モリに害き込む事のできる ドッ ト数には限りがある。 そのため、 1フレームに描 画させるキャラクタの数を多く したり、 ドッ ト数の多いキャラクタを描画したり することが困難であるという問題があった。  Fig. 5 shows a conventional method of frame memory erase writing. As shown in this figure, an area wider than the display area DP of the actual TV screen is taken as the frame memory plane FR. The area where the erase writing is performed may be the entire display area DP of the TV screen as shown in FIG. 5 (a), or the entire frame memory plane FR. Then, by writing data representing transparent or black on this area, the image data which has been written so far is erased. However, in such a method, the entire image data developed in the frame memory is erased. Therefore, when only a part of the image data is changed and displayed, the same image data must be written again. No. There is a limit to the number of dots that can be harmed to the frame memory during the frame memory switching period, that is, during the one-frame image display period described above. Therefore, there is a problem that it is difficult to increase the number of characters to be drawn in one frame or to draw a character with a large number of dots.
本発明は、 このような従来技術の問題点に j£みて提案されたものであり、 その 第 1の目的は、 同じ画像を統けて表示する場合に、 フレームメモリに画像データ を書き込む時間を短縮することのできるフレームメモリ制御方法を提供すること にある。  The present invention has been proposed in view of such problems of the prior art. The first object of the present invention is to reduce the time for writing image data to the frame memory when displaying the same image in succession. An object of the present invention is to provide a frame memory control method that can be shortened.
第 2の目的は、 上記第 1の目的を実現することができるフレームメモリ制御装 置を提供することにある。  A second object is to provide a frame memory control device capable of realizing the first object.
第 3の目的は、 指定された画像データを短時間で消去することができるフレー ムメモリ制御装置を提供することにある。  A third object is to provide a frame memory control device capable of erasing designated image data in a short time.
第 4の目的は、 2面のフレームメモリに対し、 効率的に制御を行うことができ るフレームメモリ制御装置を提供することにある。  A fourth object is to provide a frame memory control device capable of efficiently controlling two frame memories.
第 5の目的は、 画像データを消去する領域の指定が容易なフレームメモリ制御 装置を提供することにある。 【発明の開示】 A fifth object is to provide a frame memory control device in which an area for erasing image data can be easily specified. DISCLOSURE OF THE INVENTION
上記目的を達成するために、 本発明によるフレームメモリ制御方法は、 フレー ムメモリに対し、 モニタに表示するための画像データを書き込み、 前記フレーム メモリから前記画像データをドッ ト毎に読み出すフレームメモリ制御方法であつ て、 前記画像データの読み出しを行う際に、 前記フレー メモリ上の任意の領域 の座標と、 前記領域内のァ ドレスに下地データとして書き込まれるべきィレース データとを設定しておき、 前記フレームメモリの水平方向及び垂直方向の読み出 し位置である読み出しァ ドレスをドッ ト単位で順次発生し、 前記読み出しァドレ スと前記領域の座標とを比絞し、 前記読み出しァドレスが前記領域内でない埸合 は、 前記フレームメモリの前記読み出しァ ドレスから前記画像データを読み出し 、 前記読み出しア ドレスが前記領域内である場合は、 前記フレームメモリの前記 読み出しァ ドレスから前記画像データを読み出した後に、 当該ァドレスに前記ィ レースデータを書き込むことを特徴としている。  In order to achieve the above object, a frame memory control method according to the present invention writes a frame memory with image data to be displayed on a monitor, and reads the image data from the frame memory for each dot. When reading the image data, the coordinates of an arbitrary area on the frame memory and erase data to be written as background data in an address in the area are set, and Read addresses, which are read positions in the horizontal and vertical directions of the memory, are sequentially generated in dot units, and the read addresses and the coordinates of the area are narrowed down. In the case, the image data is read from the read address of the frame memory, and If the read address is within the region, after reading the image data from said reading § address of the frame memory, it is characterized in that writing the I race data to the Adoresu.
このため、 フレームメモリから画像データを読み出す際、 予め設定しておいた 領域の外側では、 フレームメモリから画像データが読み出されるのみであり、 そ の領域の内側では、 画像データが読み出された後にその位置にィレースデータが 害き込まれる。 そして、 この領域外の画像データは消去されずに残る。 従って、 このフレームメモリに画像データを書き込む際に、 この領域外に同じ画像データ を続けて書き込む必要がなく、 画像データの書き込み時間を短縮することができ る。  Therefore, when reading the image data from the frame memory, only the image data is read from the frame memory outside the preset area, and after reading the image data inside the area, Erase data is harmed at that position. Then, the image data outside this area remains without being erased. Therefore, when writing image data to this frame memory, it is not necessary to continuously write the same image data outside this area, and the time for writing image data can be reduced.
また、 本発明によるフレームメモリ制御装置は、 モニタに表示するための画像 データをフレームメモリに書き込む描画回路と、 前記フレームメモリから前記画 像データをドッ ト単位で読み出す表示回路とを具備し、 前記表示回路は、 前記フ レームメモリの水平方向及び垂直方向の読み出し位置を、 読み出しァドレスとし てドッ ト単位で順次発生するァドレス発生手段と、 前記フレームメモリ上の任意 の領域の座標が設定される座標設定レジスタと、 前記読み出しァ ドレスと前記領 域の座標とを比較し、 前記読み出しァドレスが前記領域内であるか否かを判断す る座標比較手段と、 前記領域内のァドレスに下地データとして害き込まれるべき ィレースデータが設定されるィレースデータ設定レジスタと、 前記座標比絞手段 の判断結果により、 前記読み出しア ドレスが前記領域内でない場合は、 前記フレ ームメモリの前記読み出しァ ドレスから前記画像データを読み出し、 前記読み出 しア ドレスが前記領域内である場合は、 前記画像データを読み出した後に、 当該 読み出しァ ドレスに前記ィレースデータを書き込む入出力制御手段とを有するこ とを特徴としている。 Also, a frame memory control device according to the present invention includes: a drawing circuit that writes image data to be displayed on a monitor into a frame memory; and a display circuit that reads the image data from the frame memory in dot units. A display circuit configured to sequentially generate a read address in the horizontal direction and the vertical direction of the frame memory as a read address in dot units; and coordinates at which coordinates of an arbitrary area on the frame memory are set. A setting register, a coordinate comparing unit that compares the read address with the coordinates of the area, and determines whether the read address is within the area, and harms the address in the area as background data. An erase data setting register in which erase data to be written is set; If the read address is not within the area, the image data is read from the read address of the frame memory.If the read address is within the area, the image data is read. And an input / output control unit for writing the erase data to the read address after reading the data.
このような構成により、 ァ ドレス発生手段から順次発生するフレームメモリの 読み出しァドレスは、 座標比較手段により、 座標設定レジスタに設定された任意 の領域の座標と比校される。 そして、 読み出しアドレスが上記領域内ではないと 判断されると、 入出力制御手段により、 フ レームメモリの当該読み出しァ ドレス から画像データが読み出される。 また、 読み出しア ドレスが上記領域内であると 判断されると、 上記画像データが読み出された後に、 当該読み出しア ドレスにィ レースデータが書き込まれる。  With such a configuration, the read address of the frame memory sequentially generated from the address generating means is compared with the coordinates of an arbitrary area set in the coordinate setting register by the coordinate comparing means. When it is determined that the read address is not within the above-mentioned area, the image data is read from the read address of the frame memory by the input / output control means. If it is determined that the read address is within the area, after the image data is read, erase data is written to the read address.
このように、 座標設定レジスタに設定された領域の内側の画像データは消去さ れるが、 外側の画像データは消去されない。 従って、 铳けて同じ画像を表示する 場合に、 フレームメモリに画像データを書き込む時間を短縮することができる。 また、 上記領域は、 座標設定レジスタに設定される値により任意に変更され得 るものであり、 ィレースデータもまた、 ィレースデータ設定レジスタに設定され る値により任意に変更され得る。  Thus, the image data inside the area set in the coordinate setting register is erased, but the image data outside is not erased. Therefore, when the same image is displayed for a while, the time for writing the image data to the frame memory can be reduced. The area can be arbitrarily changed by the value set in the coordinate setting register, and the erase data can also be arbitrarily changed by the value set in the erase data setting register.
また、 本発明によるフレームメモリ制御装置は、 前記表示回路が、 前記フレー ムメモリに対する読み出し信号を発生する読み出し信号発生手段と、 前記座標比 校手段により、 前記ア ドレス発生手段から発生する読み出しア ドレスが、 前記座 標設定レジスタに設定される領域内であると判断された場合に、 前記読み出し信 号が発生した直後に書き込み信号を発生する書き込み信号発生手段とを有し、 前 記入出力制御手段が、 前記フレームメモリの前記読み出しア ドレスから読み出さ れる画像データと前記ィ レースデータ設定レジス夕に設定されたィレースデータ とを保持する入出力バッファと、 前記読み出し信号が発生した場合は、 前記フレ ームメモリから前記画像データを読み出し、 前記書き込み信号が発生した場合は 、 前記ィレースデータを前記フレームメモリの当該読み出しァドレスに出力する よう、 前記入出力バッファを制御する入出力制御回路とを有することを特徴とし ている。 Also, in the frame memory control device according to the present invention, the display circuit may include a read signal generating unit configured to generate a read signal to the frame memory, and a read address generated from the address generating unit by the coordinate comparison unit. Writing signal generation means for generating a write signal immediately after the generation of the read signal when it is determined that the read signal is within the area set in the coordinate setting register; An input / output buffer for holding image data read from the read address of the frame memory and erase data set in the erase data setting register; and, when the read signal is generated, the frame memory. The image data is read from the memory, and when the write signal is generated, And outputs the serial I race data to the read Adoresu of the frame memory And an input / output control circuit for controlling the input / output buffer.
このような構成により、 読み出し信号が発生すると、 入出力制御回路による入 出力バッファの制御により、 フレームメモリの読み出しァ ドレスから画像データ が読み出される。 また、 書き込み信号が発生すると、 ィレースライ ト設定レジス タに設定されたィレースデータが、 フレームメモリの当該読み出しァ ドレスに出 力される。 この場合、 上記読み出し信号が発生した直後に害き込み信号が発生し 、 画像データが読み出された位置にィレースデータが害き込まれる。 このため、 短時間で指定された画像データの消去が行われる。  With such a configuration, when a read signal is generated, image data is read from the read address of the frame memory under the control of the input / output buffer by the input / output control circuit. When a write signal is generated, the erase data set in the erase write setting register is output to the read address of the frame memory. In this case, a damage signal is generated immediately after the generation of the read signal, and the erase data is damaged at the position where the image data is read. Therefore, the designated image data is erased in a short time.
また、 本発明によるフレームメモリ制御装置は、 前記フレームメモリが、 2面 からなり、 前記描画回路が前記フレームメモリのいずれか一方に前記画像データ を書き込んでいる間、 前記表示回路が前記フレームメモリの他方から前記画像デ 一夕を読み出すようにし、 前記書き込み及び読み出しが終了すると、 前記描画回 路と前記表示回路との切り替えを行い、 前記描画回路は前記フレームメモリの他 方に前記画像データを書き込み、 前記表示回路は前記フレームメモリの一方から 前記画像データを読み出すようにする描画ノ表示セレクタを有することを特徴と している。  Also, in the frame memory control device according to the present invention, the frame memory is formed of two surfaces, and while the drawing circuit is writing the image data into one of the frame memories, the display circuit is configured to store the image data in the frame memory. The image data is read from the other side, and when the writing and reading are completed, switching between the drawing circuit and the display circuit is performed, and the drawing circuit writes the image data to the other side of the frame memory. The display circuit has a drawing selector for reading the image data from one of the frame memories.
このような構成により、 描画回路がフレームメモリのいずれか一方に画像デー タを書き込んでいる間、 表示回路がフレームメモリの他方から画像データを読み 出し、 1画面分終了すると、 描画ノ表示セレクタにより切り替えられる。 そして 、 描画回路は他方のフレームメモリに画像データを書き込み、 表示回路は一方の 画像データを読み出す。  With such a configuration, while the drawing circuit is writing image data to one of the frame memories, the display circuit reads the image data from the other of the frame memory, and when one screen is completed, the display selector selects the drawing data. Can be switched. Then, the drawing circuit writes image data to the other frame memory, and the display circuit reads one image data.
更に、 本発明によるフレームメモリ制御装置は、 前記領域は、 水平方向の始点 及び終点と垂直方向の始点及び終点とによって 4点が指定される矩形であること を特徴としている。  Further, the frame memory control device according to the present invention is characterized in that the area is a rectangle whose four points are specified by a horizontal start point and an end point and a vertical start point and an end point.
このような構成により、 上記領域が矩形であるため、 領域の指定及び座標の比 校が容易となる。  With such a configuration, since the area is rectangular, it is easy to specify the area and compare the coordinates.
【図面の簡単な説明】 図 1は本発明の一実施例によるフレームメモリ制御装置を用いた画像処理装置 の全体構成を示すブロック図、 図 2は本実施例によるフレームメモリ制御装置の 構成を示すプロック図、 図 3は同実施例におけるフレームメモリ 20への画像デ 一夕の害き込みを説明する図、 図 4は同実施例におけるフレームメモリ 20から の画像データの読み出しを説明する図、 図 5は従来のフレームメモリに対するィ レースライ トを説明する図である。 [Brief description of the drawings] FIG. 1 is a block diagram showing the overall configuration of an image processing device using a frame memory control device according to one embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of the frame memory control device according to this embodiment, and FIG. FIG. 4 is a diagram for explaining the damage of the image data to the frame memory 20 in the embodiment, FIG. 4 is a diagram for explaining the reading of image data from the frame memory 20 in the embodiment, and FIG. FIG. 9 is a diagram illustrating an erase light.
【発明を実施するための最良の形態】 BEST MODE FOR CARRYING OUT THE INVENTION
以下、 本発明によるフレームメモリ制御装置の一実施例について、 図面を参照 して説明する。  Hereinafter, an embodiment of a frame memory control device according to the present invention will be described with reference to the drawings.
A. 実施例の構成  A. Configuration of the embodiment
ぐ全体構成 > Overall configuration>
図 1は、 本実施例によるフレームメモリ制御装置を有する画像処理装置の全体 構成を示すブ πック図である。 バス 14には、 システム全体をコントロールする CPU 15、 プログラムを格納する ROM 16、 前景画の画像処理を行うスプラ イ トエンジン (VDP 1) 17、 及び複数の背景画の画像処理を行うスクロール エンジン (VD P 2 ) 1 8が接続されている。 また、 スプライ トエンジン 17に は、 C PUからのコマンドデータ及び前景画の画像データを格納するコマンド R AM 19、 及び前景画の画像データを表示画面と対応させて展開するフレームメ モリ 20が接続されている。 すなわち、 スプライ トエンジン 17は、 本実施例に よるフレームメモリ制御装置である。 更に、 スクロールエンジン 18には、 背景 画のドッ ト毎の画像データを格納するビデオ RAM (以下、 VRAMとする) 2 1が接続されている。  FIG. 1 is a block diagram illustrating an overall configuration of an image processing apparatus having a frame memory control device according to the present embodiment. The bus 14 includes a CPU 15 for controlling the entire system, a ROM 16 for storing programs, a sprite engine (VDP 1) 17 for processing foreground images, and a scroll engine (for image processing for a plurality of background images). VD P 2) 18 is connected. Also connected to the split engine 17 are a command RAM 19 for storing command data from the CPU and foreground image data, and a frame memory 20 for expanding foreground image data in association with the display screen. Have been. That is, the split engine 17 is the frame memory control device according to the present embodiment. Further, the scroll engine 18 is connected to a video RAM (hereinafter referred to as VRAM) 21 for storing image data for each dot of the background image.
また、 スブライ トエンジン 17は、 コマン ド RAMI 9からキャラクタ等の前 景画の画像データを選択して読み出し、 回転、 拡大、 縮小、 及び色演算などの処 理を行った後、 フレームメモリ 20の所定のァ ドレスに ドッ 卜単位で害き込む。 また、 このスプライ トエンジン 17は、 フレームメモリ 20に書き込んだ 1フレ ーム分の画像データをドッ ト単位で順次読み出し、 バス 14を介さずに直接スク ロールエンジン 18に供給する。 スクロールェンジン 1 8は、 V R A M 2 1から各背景画の画像データを読み出 し、 1画素単位に画像データを出力する。 また、 スプライ トエンジン 1 7から供 給される前景画の画像データと、 上記背景画の画像データのプライオリティを比 校して、 それらのプライオリティに基づいて画像データを合成して R G Bデータ を生成し、 ドッ トクロックに同期したタイ ミ ングで出力す.る。 そして、 この R G Bデータは D Aコンバータ 2 2に供給される。 これにより、 D Z Aコンバータ 2 2は、 上記 R G Bデータをアナログ信号に変換して映像信号として出力する。 この映像信号は図示しないモニタに供給され、 T V画面に表示される。 In addition, the bright engine 17 selects and reads image data of a foreground image such as a character from the command RAMI 9, performs processing such as rotation, enlargement, reduction, and color calculation, and then executes processing of the frame memory 20. Damage to a given address in dot units. The split engine 17 sequentially reads out the image data for one frame written in the frame memory 20 in dot units, and supplies the image data directly to the scroll engine 18 without passing through the bus 14. The scroll engine 18 reads the image data of each background image from the VRAM 21 and outputs the image data in pixel units. In addition, the priorities of the foreground image data supplied from the split engine 17 and the background image data are compared, and the image data is synthesized based on those priorities to generate RGB data. Output at the timing synchronized with the dot clock. Then, this RGB data is supplied to the DA converter 22. Thereby, the DZA converter 22 converts the RGB data into an analog signal and outputs it as a video signal. This video signal is supplied to a monitor (not shown) and displayed on a TV screen.
くスプライ トエンジン 1 7の構成 > Structure of Split Engine 17>
図 2は、 上記スプライ トエンジン 1 7の構成を示すブロック図である。 同図に おいて、 フレームメモリ 2 0は 2面のフレームメモリ 2 0 a , 2 O bからなり、 —方が表示用となっているとき他方が描画用となっている。 以下、 いずれか一方 のフレームメモリに特定しない場合は、 フレームメモリ 2 0 として記載する。 ( 1 ) 描画回路 3 0  FIG. 2 is a block diagram showing a configuration of the split engine 17. In the figure, the frame memory 20 is composed of two frames of frame memories 20a and 20b, and when-is used for display, the other is used for drawing. Hereinafter, when it is not specified as any one of the frame memories, it is described as a frame memory 20. (1) Drawing circuit 30
まず、 描画用のフレームメモリ 2 0に対する制御を行う描画回路 3 0について 示す。 描画回路 3 0は、 コマン ド R A M I 9からのコマンドデータに基づいて、 描画が指定されたキャラクタの画像データをコマンド R A M 1 9から読み出し、 そのうち 1 ドッ 卜の画像データを描画データとして出力する。 また、 フレームメ モリ 2 0に書き込む画像データのァドレスを指定する描画ァ ドレスを、 描画ノ表 示セレクタ 4 5に出力する。 フレームメモリ 2 0は、 T V画面の走査順序と一致 するようア ドレスが付されているため、 X方向のア ドレス、 Y方向のア ドレスは 表示画面上の各画素の座標とみなす事ができる。  First, the drawing circuit 30 that controls the drawing frame memory 20 will be described. The drawing circuit 30 reads out the image data of the character designated to be drawn from the command RAM 19 based on the command data from the command RAM 9, and outputs one dot of the image data as the drawing data. Further, a drawing address designating the address of the image data to be written to the frame memory 20 is output to the drawing no display selector 45. Since the frame memory 20 is given an address so as to match the scanning order of the TV screen, the address in the X direction and the address in the Y direction can be regarded as the coordinates of each pixel on the display screen.
更に、 描画回路 3 0は、 描画用のフレームメモリ 2 0に対する読み出し及び害 き込みのタイミ ングを制御し、 読み出しを指定する描画時用読み出し信号と害き 込みを指定する描画時用書き込み信号とを描画 表示セレクタ 4 5に出力する。 上記描画時用読み出し信号は、 描画用のフレームメモリ 2 0に既に書き込まれ ている画像データを一旦読み出す場合に出力される。 これは、 概して以下の 2通 りの場合に行われる。 ①スクロールェンジン 1 8において特定の処理が行われる場合 Further, the drawing circuit 30 controls the timing of reading and damage to the frame memory 20 for drawing, and outputs a drawing-time read signal for specifying reading and a drawing-time write signal for specifying damage. Is output to the display selector 45. The read signal for drawing is output when the image data already written in the frame memory 20 for drawing is once read. This is generally done in two cases: ①When specific processing is performed in Scroll Engine 18
描画時用読み出し信号によって読み出された画像データの最上位ビッ 卜が、 「0」 から 「1」 に変更され、 再びフレームメモリ 20の元の位 Sに書き込まれ る。 このようにして最上位ビッ 卜が変更された画像データについては、 スクロー ルエンジン 18において、 例えばウインドウ処理及びシャ ドウ処理が施される。 ウィンドウ処理とは、 ウィン ドウとして指定された領域の内側もしくは外側に別 の面を表示する処理であり、 シャ ドウ処理とは、 画面上に表示されるキャラクタ に影をつける処理である。  The most significant bit of the image data read by the drawing read signal is changed from “0” to “1”, and is written again to the original position S of the frame memory 20. The scroll engine 18 performs, for example, window processing and shadow processing on the image data whose uppermost bit has been changed in this way. Window processing is processing to display another surface inside or outside the area specified as a window, and shadow processing is processing to cast a shadow on a character displayed on the screen.
②半透明演算処理を行う場合  ② When performing translucent calculation processing
描画時用読み出し信号によって読み出された画像データと、 スプライ トェンジ ン 17内で生成された画像データとの平均を求めることにより、 半透明演算を行 う。 この演算結果を、 新たに画像データとしてフ レームメモリ 20上に書き込む 。 これにより、 半透明の画像が表示される。  The translucent operation is performed by calculating the average of the image data read by the drawing read signal and the image data generated in the splicing engine 17. This calculation result is newly written on the frame memory 20 as image data. As a result, a translucent image is displayed.
(2) 表示回路 31  (2) Display circuit 31
次に、 表示用のフ レームメ モリ 20 bの制御を行う表示回路 31について示す 読み出し Xカウンタ 32は、 表示用のフ レームメモリ 20における X座標を、 TV画面の表示の 1 ドッ トクロック毎に 1づっカウン トアップすることにより生 成し、 読み出し座標 Xとして、 描画ノ表示セレクタ 45に出力する。 また、 読み 出し Yカウンタ 33は、 表示用のフレームメモリ 20における Y座標を、 TV画 面の表示の 1ライン (ラスタ) 毎に 1づっカウントアップすることにより生成し 、 読み出し座標 Yとして、 描画 表示セレクタ 45に出力する。  Next, the readout X counter 32, which shows the display circuit 31 that controls the display frame memory 20b, stores the X coordinate in the display frame memory 20 at one dot clock for each display on the TV screen. It is generated by counting up and outputs it to the drawing display selector 45 as the read coordinate X. The readout Y counter 33 generates the Y coordinate in the display frame memory 20 by incrementing the Y coordinate by one for each line (raster) of the display on the TV screen. Output to selector 45.
X 0レジスタ 34、 X Iレジスタ 35、 Y0レジスタ 36、 Y 1レジスタ 37 、 及びィレースライ トデータレジスタ 38は、 全て、 CPU 15によってその値 が設定されるコントロールレジスタである。 ここで、 図 3に表示用のフレームメ モリ 20の例を示し、 同図における領域 A Rをィレースライ 卜する領域であると する。 本実施例では、 ィレースライ トする領域は、 座標 (X 0, Y 0) 、 (X I , Υ0) 、 (X 0, Y l) 、 及び (X I, Y 1) を 4点とする矩形であるものと している。  The X0 register 34, the XI register 35, the Y0 register 36, the Y1 register 37, and the erase write data register 38 are all control registers whose values are set by the CPU 15. Here, FIG. 3 shows an example of the display frame memory 20, and it is assumed that the area AR in FIG. 3 is an area to be erased. In the present embodiment, the area to be erased is a rectangle having four points of coordinates (X0, Y0), (XI, Υ0), (X0, Yl), and (XI, Y1). And
すなわち、 X 0レジスタ 34は、 上記領域 A Rにおける左上の X座標 X 0を格 納し、 Y 0 レジスタ 3 6は、 その Υ座標 Υ 0を格納する。 また、 X I レジスタ 3 5は、 領域 A Rにおける右下の X座標 X 1を格納し、 Y 1 レジスタ 3 7は、 その Y座標 Y 1を格納する。 更に、 ィレースライ トレジスタ 3 8は、 領域 A Rに害き 込むデータ、 例えば透明を示すデータもしくは黒色を示すデータ等を格納する。 That is, the X0 register 34 stores the X coordinate X0 at the upper left in the area AR. The Y 0 register 36 stores the Υcoordinate Υ0. The XI register 35 stores the X coordinate X1 at the lower right in the area AR, and the Y1 register 37 stores the Y coordinate Y1. Further, the erase write register 38 stores data that harms the area AR, for example, data indicating transparency or data indicating black.
X座標比較回路 3 9は、 読み出し Xカウンタ 3 2から出力される読み出し座標 Xを、 X 0 レジスタ 3 4に格納された X座標 X 0、 及び X 1 レジスタ 3 5に格納 された X座標 X 1と比較して、 領域信号 X H I Tを出力する。 この領域信号 X H I Tは、 読み出し座標 Xが指定範囲内であるか否かを示す信号であり、 X 0≤X ≤X 1である場合に 「1」 となる。 そして、 読み出し座標 Xが上記以外の場合は 、 領域信号 X H I Tは 「0」 となる。 The X coordinate comparison circuit 39 reads the read coordinate X output from the read X counter 32 with the X coordinate X 0 stored in the X 0 register 34 and the X coordinate X 1 stored in the X 1 register 35. And outputs the area signal XHIT. The area signal X HIT is a signal indicating whether or not the read coordinate X is within the specified range, and becomes “1” when X 0 ≤X ≤X 1. When the read coordinate X is other than the above, the area signal X HIT becomes “0”.
また、 Y座標比铰回路 4 0は、 読み出し Yカウンタ 3 3から出力される読み出 し座標 Yを、 Y 0 レジスタ 3 6に格納された Y座標 Y 0、 及び Y 1 レジスタ 3 7 に格納された Y座標 Y 1 と比較して、 領域信号 Y H I Tを出力する。 この領域信 号 Y H I Tは、 読み出し座標 Yが指定範囲内であるか否かを示す信号であり、 Y 0≤Y≤Y 1である場合に 「 1」 となる。 そして、 読み出し座標 Υが上記以外の 場合は、 信号 Y H I Τは 「0」 となる。  The Y coordinate ratio circuit 40 stores the read coordinate Y output from the read Y counter 33 in the Y coordinate Y 0 stored in the Y 0 register 36 and the Y coordinate Y 0 stored in the Y 1 register 37. Outputs the area signal YHIT in comparison with the Y coordinate Y1. This area signal YHIT is a signal indicating whether or not the read coordinate Y is within the specified range, and becomes “1” when Y0≤Y≤Y1. When the read coordinates Υ are other than the above, the signal Y HI と becomes “0”.
表示時用書き込み信号発生回路 4 1は、 上記領域信号 X H I Τ及び Y H I 丁に 基づいて、 描画用のフレームメモリ 2 0にィレースライ トを行うための表示時用 害き込み信号を、 描画ノ表示セレクタ 4 5に出力する。 この表示時用書き込み信 号は、 上記両信号が 「1」 である時 O Nとなり、 いずれか一方が 「0」 であると き O F Fとなる。 一方、 表示時用読み出し信号発生回路 4 2は、 表示用のフレー ムメモリ 2 0に対する表示時用読み出し信号を、 描画 Z表示セレクタ 4 5に出力 する。  The display-time write signal generation circuit 41 outputs a display-time harmful signal for performing erase-write to the frame memory 20 for drawing based on the above-mentioned area signals XHI Τ and YHI, and a drawing-no-display selector. 4 Output to 5. The display-time write signal is ON when both of the above signals are "1", and is OFF when either one is "0". On the other hand, the display-time readout signal generation circuit 42 outputs a display-time readout signal to the display frame memory 20 to the drawing Z display selector 45.
入出力制御回路 4 3は、 表示時用害き込み信号発生回路 4 1から出力される表 示時用書き込み信号と表示時用読み出し信号発生回路 4 2から出力される表示時 用読み出し信号とに基づき、 データ入出力制御信号を入出力バッファ 4 4に出力 する。 すなわち、 表示時用読み出し信号が O Nであるか、 表示時用書き込み信号 が O Nであるか、 もしくはいずれも 0 F Fかにより、 入出力バッファ 4 4を制御 する信号を出力する。 これら表示時用読み出し信号及び表示時用書き込み信号は 、 いずれもが O Nとなることはなく、 表示時用書き込み信号が 0 Nとなるのは表 示時用読み出し信号が 0 F Fとなった直後である。 The input / output control circuit 43 converts the display write signal output from the display harmful signal generation circuit 41 and the display read signal output from the display read signal generation circuit 42. Based on this, it outputs a data input / output control signal to the input / output buffer 44. In other words, the I / O buffer 44 is controlled by whether the read signal for display is ON, the write signal for display is ON, or both are 0FF. Output a signal. Neither the read signal for display nor the write signal for display is turned ON, and the write signal for display becomes 0 N immediately after the read signal for display becomes 0 FF. is there.
上述したように、 表示用書き込み信号発生回路 4 1は、 領域信号 X H I T及び Y H I Tが共に 「1」 である時に、 表示時書き込み信号を O Nとする。 これに対 して、 表示用読み出し信号発生回路 4 2は、 ドッ トクロックの 1ノ 2の周期で表 示時用読み出し信号を O N Z O F Fさせる。 また、 表示時用読み出し信号を O N とした場合には、 同時に表示用書き込み信号発生回路 4 1に対して、 表示時用書 き込み信号の出力を制止するマスク信号を出力する。 これにより、 表示時用書き 込み信号と表示時用読み出し信号とが衝突 (重複) するのが防止される。 すなわ ち、 ブレームメモリ 2 0に対して表示時用書き込み信号と表示時用読み出し信号 とが同時に出力されることが防止される。  As described above, the display write signal generation circuit 41 sets the display-time write signal to ON when the area signals X HIT and Y HIT are both “1”. On the other hand, the display read signal generation circuit 42 causes the display read signal to be ONZOFF in the period of one to two of the dot clock. When the read signal for display is set to ON, a mask signal for suppressing the output of the write signal for display is simultaneously output to the display write signal generation circuit 41. This prevents the display-time write signal and the display-time read signal from colliding (overlapping). That is, it is possible to prevent the write signal for display and the read signal for display from being simultaneously output to the frame memory 20.
( 3 ) 入出力バッファ 4 4  (3) I / O buffer 4 4
入出力バッファ 4 4は、 上記データ入出力制御信号により、 データバス 4 6 a , 4 6 bとのデータの入出力方向が以下のように制御される。 すなわち、 表示時 用読み出し信号が 0 Nである場合は、 表示用のフレームメモリ 2 0からの画像デ 一夕がデータバス 4 6を介して入力され、 表示用の画像データとして直接スク口 ールエンジン 1 8に出力される。 また、 表示時用書き込み信号が O Nである場合 は、 ィ レースライ トデータレジスタ 3 8に設定されたィ レースライ トデータが、 データバス 4 6を介して表示用のブレームメモリ 2 0に出力される。 そして、 表 示時用読み出し信号及び表示時用害き込み信号の双方とも 0 F Fである場合は、 入出力バッファ 4 4に対するデータの入出力は行われない。 なお、 データバス 4 6 aはフレームメモリ 2 0 aに対応し、 データバス 4 6 bはフレームメモリ 4 6 bに対応している。  The input / output buffer 44 controls the data input / output direction to / from the data buses 46a and 46b as described below by the data input / output control signal. That is, when the readout signal for display is 0 N, the image data from the display frame memory 20 is input via the data bus 46, and is directly sent to the scale engine 1 as image data for display. Output to 8. When the write signal for display is ON, the erase write data set in the erase write data register 38 is output to the display frame memory 20 via the data bus 46. When both the display-time readout signal and the display-time harmful signal are 0FF, data is not input / output to / from the input / output buffer 44. The data bus 46a corresponds to the frame memory 20a, and the data bus 46b corresponds to the frame memory 46b.
( 4 ) 描画 Z表示セレクタ 4 5  (4) Drawing Z display selector 4 5
描画/表示セレクタ 4 5は、 入力される各ァ ドレス信号、 表示時用書き込み信 号、 及び表示時用読み出し信号に基づき、 フレームメモリ 2 0におけるァ ドレス と、 表示時用書き込み信号及び表示時用読み出し信号をフレームメモリ 2 0に供 給する。 すなわち、 描画用のフレームメモリ 2 0に対しては、 描画回路 3 0から 供給される描画ァ ドレスと描画時用書き込み信号と (場合によっては描画時用読 み出し信号と) を出力する。 また、 表示用のフレームメモリ 2 0に対しては、 読 み出し Xカウンタ 3 2からの読み出し座標 Xと、 読み出し Yカウンタ 3 3からの 読み出し座標 Yとをァドレスとして出力すると共に、 表示時用読み出し信号発生 回路 4 2からの表示時用読み出し信号を出力する。 更に、 表示用のフレームメモ リ 2 0から画像データを読み出すと共にィ レースライ トを行う場合は、 上記表示 時用読み出し信号と共に、 表示時用書き込み信号発生回路 4 1からの表示時用書 き込み信号を出力する。 The drawing / display selector 45 determines the address in the frame memory 20 based on each input address signal, display-time write signal, and display-time readout signal, a display-time write signal, and a display-time signal. The read signal is supplied to the frame memory 20. That is, for the frame memory 20 for drawing, the drawing circuit 30 It outputs the supplied drawing address, writing signal for drawing and (in some cases, reading signal for drawing). For the display frame memory 20, the read coordinates X from the read X counter 32 and the read coordinates Y from the read Y counter 33 are output as addresses, and read for display. The display generation read signal from the signal generation circuit 42 is output. Further, when image data is read out from the display frame memory 20 and erase writing is performed, a display write signal from the display write signal generation circuit 41 together with the display read signal is used. Is output.
B . 実施例の動作 B. Operation of the embodiment
次に、 上述した構成による本実施例の画像処理装置の動作について説明する。 ここで、 フレームメモリ 2 0 aが描画用となっており、 フレームメモリ 2 0 bが 表示用となっている場合について説明する。  Next, the operation of the image processing apparatus according to the present embodiment having the above-described configuration will be described. Here, the case where the frame memory 20a is for drawing and the frame memory 20b is for display will be described.
( 1 ) フレームメモリ 2 0 aへの描画  (1) Drawing to frame memory 20a
まず、 フレームメモリ 2 0 aへ描画する場合について説明する。 図 3に、 フレ ー厶メモリ 2 0 a平面の例を示す。 この場合、 描画回路 3 0によって、 コマンド R A M 1 9のコマン ドデータに指定されたキャラクタ C H R 1の画像データがコ マンド R A M I 9から読み出され、 そのうち 1 ドッ ト分の画像データが描画デー 夕として入出力バッファ 4 4に出力される。 同時に、 描画回路 3 0からは、 フレ ームメモリ 2 0 aの書き込み先である描画ァドレスが出力され、 描画ノ表示セレ クタ 4 5を介して書き込みア ドレスとしてフレームメモリ 2 0 aに供給される。 更に、 描画回路 3 0から、 フレームメモリ 2 0 aに対する描画時用書き込み信 号が出力され、 描画 表示セレクタ 4 5により書き込み信号としてフレームメモ リ 2 0 aに供給される。 この害き込み信号のタイミ ングで、 上記描画データが入 出力バッファ 4 4からデータバス 4 6を介して、 フレームメモリ 2 0 aに書き込 まれる。  First, the case of drawing in the frame memory 20a will be described. FIG. 3 shows an example of the frame memory 20a plane. In this case, the drawing circuit 30 reads out the image data of the character CHR 1 specified in the command data of the command RAM 19 from the command RAMI 9 and inputs one dot of the image data as the drawing data. Output to output buffer 4 4. At the same time, the drawing circuit 30 outputs a drawing address to which the frame memory 20a is to be written, and supplies the writing address to the frame memory 20a via the drawing display selector 45. Further, a writing signal for drawing to the frame memory 20a is output from the drawing circuit 30 and supplied to the frame memory 20a as a writing signal by the drawing display selector 45. The drawing data is written from the input / output buffer 44 to the frame memory 20a via the data bus 46 at the timing of the damage signal.
また、 上述したように、 フレームメモリ 2 0 aに既に害き込まれている画像デ 一夕を一旦読み出し、 特定の処理を施して再びフレームメモリ 2 0 aに書き込む 処理を行う場合は、 描画回路 3 0から描画時用読み出し信号が出力され、 描画ァ ドレスによって指定されるァ ドレスの画像データが読み出される。 そして、 最上 位ビッ 卜の変更、 もしくは半透明演算等が行われた後、 描画時用害き込み信号に より、 再び同じア ドレスに画像データが書き込まれる。 Further, as described above, when the image data already damaged in the frame memory 20a is once read out, subjected to specific processing, and then written back to the frame memory 20a, the drawing circuit is used. A readout signal for drawing is output from 30 and the drawing The image data of the address specified by the dress is read. After the most significant bit is changed or a translucent operation is performed, the image data is written to the same address again by the drawing damage signal.
同様に、 キャラクタ CHR2及び CHR 3の画像データもフレームメモリ 20 aに書き込まれる。  Similarly, the image data of the characters CHR2 and CHR3 are also written in the frame memory 20a.
(2) フレームメモリ 20 bの表示  (2) Display of frame memory 20b
次に、 上記フレームメモリ 20 aへの描画と同時に行われる、 フレームメモリ Next, the frame memory, which is performed simultaneously with the drawing to the frame memory 20a,
20 bの内容の表示について、 図 3を用いて説明する。 同図において、 キャラク タ CHR4をィレースし、 キャラクタ CHR 1及び C H R 2はィレースしないも のとする。 すなわち、 左上の座標 (X 0, Y 0) 、 右下の座標 (X I. Y 1) の 領域 ARを、 上述したィレースライ 卜する領域として設定する。 The display of the content of 20b will be described with reference to FIG. In this figure, assume that character CHR4 is erased, and characters CHR1 and CHR2 are not erased. That is, the area AR having the upper left coordinates (X 0, Y 0) and the lower right coordinates (X I. Y 1) is set as the area to be erased.
この時、 C PU 15は、 X 0レジスタ 34、 X 1 レジスタ 35、 Y 0レジスタ At this time, CPU 15 sets X0 register 34, X1 register 35, and Y0 register
36、 及び Y 1レジスタ 37の各々に、 座標値 X 0、 X I、 Y0、 及び Υ 1を設 定する。 そして、 領域 A Rに書き込むィレースライ トデータをィレースライ トデ 一夕レジスタ 38に設定する。 ここでは、 ィレースライ 卜データを透明データと する。 Set the coordinate values X0, XI, Y0, and Υ1 in the 36 and Y1 registers 37, respectively. Then, erase write data to be written to the area AR is set in the erase write data register 38. Here, the erase light data is assumed to be transparent data.
まず、 領域 A R以外の部分の表示として、 キャラクタ CHR 1を表示する場合 について示す。 読み出し Xカウンタ 32から読み出し座標 Xが出力され、 読み出 し Yカウンタ 33から読み出し座標 Yが出力されると、 これら読み出し座標 X, Yは、 描画 表示セレクタ 45を介し、 読み出しァドレスとしてフレームメモリ 2 O bに供給される。 また、 この時、 表示用読み出し信号発生回路 42から出力 される表示時用読み出し信号が ONとなる。  First, a case where a character CHR1 is displayed as a portion other than the area AR will be described. When the read coordinate X is output from the read X counter 32 and the read coordinate Y is output from the read Y counter 33, these read coordinates X and Y are sent to the frame memory 2 O as a read address via the drawing / display selector 45. supplied to b. At this time, the display read signal output from the display read signal generation circuit 42 is turned ON.
—方、 読み出し Xカウンタ 32からの読み出し座標 Xは X座標比較回路 39に 供給され、 読み出し Yカウンタ 33からの読み出し座標 Yは Y座標比詨回路 40 に供給される。 この時、 読み出し座標 X, Yは、 少なく とも Xく X 0もしくは Y く Y 0となるため、 領域信号 XH I T及び YH I Tの少なく ともいずれか一方が 「0」 となる。 従って、 表示用書き込み信号発生回路 41からの表示時用書き込 み信号は、 OF Fとなる。  The read coordinate X from the read X counter 32 is supplied to the X coordinate comparison circuit 39, and the read coordinate Y from the read Y counter 33 is supplied to the Y coordinate ratio / circuit 40. At this time, since the read coordinates X and Y are at least X and X0 or Y and Y0, at least one of the area signals XHIT and YHIT becomes "0". Therefore, the write signal for display from the display write signal generation circuit 41 is OFF.
また、 表示用読み出し信号発生回路 42からの表示時用読み出し信号が ONと なることにより、 入出力制御回路 4 3から入出力バッファ 4 4に対してデータ入 出力制御信号が供給される。 これにより、 入出力バッファ 4 4に対し、 上記読み 出しァドレスで指定されたフレームメモリ 2 0 b上の画像データが、 上記表示時 用読み出し信号に応じて、 データバス 4 6を介して入力される。 そして、 この画 像データは、 表示用の画像データとしてスクロールエンジン 1 8に供給され、 図 示しない T Vモニタに表示される。 Also, when the display read signal from the display read signal generation circuit 42 is ON, As a result, a data input / output control signal is supplied from the input / output control circuit 43 to the input / output buffer 44. As a result, the image data in the frame memory 20 b specified by the read address is input to the input / output buffer 44 via the data bus 46 in accordance with the display read signal. . Then, the image data is supplied to the scroll engine 18 as image data for display, and displayed on a TV monitor (not shown).
次に、 領域 A R内のキャラクタ C H R 4を表示する場合について示す。 この塲 合、 上記の場合と同様に、 読み出し Xカウンタ 3 2からの読み出し座標 Xと読み 出し Yカウンタ 3 3からの読み出し座標 Yとが、 描画 表示セレクタ 4 5を介し て読み出しァドレスとしてフレームメモリ 2 0 bに供給される。 また、 表示用読 み出し信号発生回路 4 2からの表示時用読み出し信号が O Nとなる。 そして、 こ の表示時用読み出し信号により、 上記の場合と同様に、 入出力バッファ 4 4にフ レームメモリ 2 0 bからの画像データが入力され、 入出力バッファ 4 4からスク ロールエンジン 1 8に出力されることにより、 T V画面に表示される。  Next, a case where the character CHR4 in the area AR is displayed will be described. In this case, as in the above case, the read coordinates X from the read X counter 32 and the read coordinates Y from the read Y counter 33 are passed through the drawing / display selector 45 to the frame memory 2 as a read address. Supplied to 0 b. Also, the display read signal from the display read signal generation circuit 42 becomes ON. Then, the image data from the frame memory 20b is input to the input / output buffer 44 in the same manner as described above by the display read signal, and the scroll engine 18 is input from the input / output buffer 44 to the scroll engine 18. The output will be displayed on the TV screen.
一方、 読み出し Xカウンタ 3 2からの読み出し座標 Xは X座標比較回路 3 9に 供給され、 読み出し Yカウンタ 3 3からの読み出し座標 Yは Y座標比校回路 4 0 に供給される。 この時、 読み出し座標 Xは X 0≤X≤X 1となり、 読み出し座標 Yは Y 0≤Y≤Y 1となるため、 領域信号 X H I Τ及び Y H I Τは双方とも 「 1 」 となる。 従って、 表示用書き込み信号発生回路 4 1からの表示時用書き込み信 号が O Nとなる。  On the other hand, the read coordinates X from the read X counter 32 are supplied to the X coordinate comparison circuit 39, and the read coordinates Y from the read Y counter 33 are supplied to the Y coordinate comparison circuit 40. At this time, since the read coordinate X is X 0 ≤ X ≤ X 1 and the read coordinate Y is Y 0 ≤ Y ≤ Y 1, the area signals X H I Τ and Y H I 双方 are both “1”. Therefore, the write signal for display from the display write signal generation circuit 41 becomes ON.
この時、 上述したように、 表示用読み出し信号発生回路 4 2からの表示時用読 み出し信号は O Nから 0 F Fとなっている。 従って、 データ入出力制御信号によ り、 入出力バッファ 4 4から、 ィ レースライ トデータレジスタ 3 8に設定された ィレースライ トデータが出力される。 そして、 このィレースライ トデータは、 デ —タバス 4 6を介してフレームメモリ 2 0 bに供袷される。 この場合、 上述した 読み出しァ ドレスが害き込みァ ドレスとなり、 このァドレスの示す位置にィレー スライ トデータが書き込まれる。 ここでは、 ィレースライ トデータとして透明デ 一夕が書き込まれる。  At this time, as described above, the display-time read signal from the display-read-signal generation circuit 42 changes from ON to 0FF. Therefore, the erase write data set in the erase write data register 38 is output from the input / output buffer 44 by the data input / output control signal. The erase write data is supplied to the frame memory 20b via the data bus 46. In this case, the above-mentioned read address becomes a harmful address, and the erase write data is written at the position indicated by this address. Here, transparent data is written as erase write data.
このように、 指定された領域 A R内では、 表示時用読み出し信号が出力される と、 読み出しァ ドレスの指定により画像データが読み出され、 表示時用書き込み 信号が出力されると、 その読み出しア ドレスが書き込みア ドレスとなり、 そのァ ドレスの指定する位置に、 ィレースライ トデータレジスタ 3 8に設定されたデー 夕が書き込まれる。 In this way, the read signal for display is output in the specified area AR. When the image data is read out by specifying the readout address and the write signal for display is output, the readout address becomes the write address, and the erase write data register 3 is set at the position specified by the address. The data set to 8 is written.
C 実施例の効果 C Effect of the embodiment
以上のように、 本実施例によれば、 領域 A Rの内側の画像データは消去され外 側の画像データは残されるため、 任意の領域 A Rを設定することにより、 铳けて 同じ画像を表示する際に同じ画像データを書き込む必要がない。 このため、 画像 データの害き込み時間を短縮することができる。  As described above, according to the present embodiment, since the image data inside the area AR is erased and the image data outside is left, the same image is displayed by setting an arbitrary area AR. In this case, it is not necessary to write the same image data. For this reason, the damage time of image data can be reduced.
また、 本実施例では、 領域 A R内において、 表示時用読み出し信号を出力した 直後に表示時用書き込み信号を出力するようになっており、 その読み出しァ ドレ スから画像データを読み出した直後にィレースデータを書き込むようになつてい るため、 短時間で画像データを消去させることができる。 ◎  Further, in this embodiment, in the area AR, the display-time write signal is output immediately after the display-time read signal is output, and the image data is read out immediately after the image data is read from the read address. Since the race data is written, the image data can be erased in a short time. ◎
更に、 領域 A Rを矩形とし、 その 4点を指定することによって領域 A Rを設定 するようにしたので、 領域の設定及び座標の比較を容易に行う事ができる。  Furthermore, since the area AR is rectangular and the area AR is set by designating the four points, the area setting and the coordinate comparison can be easily performed.
【産業上の利用可能性】 [Industrial applicability]
以上述べたように、 本発明によれば、 モニタに同じ画像を続けて表示する場合 に、 フレームメモリ上の指定した画像データのみ消去し、 続けて表示する画像デ ータを残すことができるため、 フレームメモリに画像データを害き込む時間を短 縮することが可能となる。 そのため、 1フレーム分の画像表示期間内に書き込み 可能なドッ ト数が増えなくても、 それ以上のドッ ト数分の画像データをフレーム メモリに害き込むことが可能となり、 ドッ ト数の多いキャラクタを表示させるこ とができる。  As described above, according to the present invention, when continuously displaying the same image on the monitor, only the specified image data in the frame memory can be erased and the image data to be displayed continuously can be left. However, it is possible to reduce the time for damaging the image data in the frame memory. Therefore, even if the number of dots that can be written does not increase within the image display period for one frame, it is possible to harm the image data of the larger number of dots to the frame memory, and the number of dots is large. Characters can be displayed.

Claims

【請求項 1】 フレームメモリに対し、 モニタに表示するための画像データ を書き込み、 前記フレームメモリから前記画像データをドッ ト毎に読み出すフレ ームメモリ制御方法であって、  1. A frame memory control method for writing image data to be displayed on a monitor into a frame memory and reading out the image data from the frame memory for each dot.
前記画像データの読み出しを行う際に、 前記フレームメモリ上の任意の領域の 座標と、 前記領域内のァ ドレスに下地データとして害き込まれるべきィレースデ 一夕とを設定しておき、  When reading out the image data, the coordinates of an arbitrary area on the frame memory and erase data to be harmed as background data in an address in the area are set,
前記フレームメモリの水平方向及び垂直方向の読み出し位置である読み出しァ ドレスをドッ ト単位で順次発生し、  Sequentially generating read addresses which are read positions in the horizontal and vertical directions of the frame memory in dot units;
前記読み出しァドレスと前記領域の座標とを比較し、  Comparing the read address with the coordinates of the area,
前記読み出しァドレスが前記領域内でない場合は、 前記フレームメモリの前記 読み出しァ ドレスから前記画像データを読み出し、  If the read address is not within the area, the image data is read from the read address of the frame memory;
前記読み出しァドレスが前記領域内である場合は、 前記フレームメモリの前記 読み出しァドレスから前記画像データを読み出した後に、 当該ァ ドレスに前記ィ レースデータを書き込むことを特徴とするフレームメモリ制御方法。  When the read address is within the area, after reading the image data from the read address of the frame memory, write the erase data to the address.
【請求項 2】 モニタに表示するための画像データをフレームメモリに書き 込む描画回路と、  2. A drawing circuit for writing image data to be displayed on a monitor into a frame memory,
前記フレームメモリから前記画像データをドッ ト単位で読み出す表示回路とを 具備し、  A display circuit that reads the image data from the frame memory in dot units.
前記表示回路は、  The display circuit,
前記フレームメモリの水平方向及び垂直方向の読み出し位 Sを、 読み出しア ド レスとしてドッ ト単位で順次発生するァドレス発生手段と、  Address generation means for sequentially generating the read position S in the horizontal and vertical directions of the frame memory as a read address in dot units;
前記フレームメモリ上の任意の領域の座標が設定される座標設定レジスタと、 前記読み出しァドレスと前記領域の座標とを比校し、 前記読み出しァドレスが 前記領域内であるか否かを判断する座標比較手段と、  A coordinate setting register in which coordinates of an arbitrary area on the frame memory are set; and a coordinate comparison for comparing the read address with the coordinates of the area to determine whether the read address is within the area. Means,
前記領域内のァドレスに下地データとして書き込まれるべきィレースデータが 設定されるィレースデータ設定レジスタと、 前記座標比較手段の判断結果により、 前記読み出しァ ドレスが前記領域内でな い場合は、 前記フレームメモリの前記読み出しァドレスから前記画像データを読 み出し、 前記読み出しア ドレスが前記領域内である場合は、 前記画像データを読 み出した後に、 当該読み出しァドレスに前記ィレースデータを害き込む入出力制 御手段と An erase data setting register in which erase data to be written as background data in an address in the area is set; As a result of the determination by the coordinate comparing means, if the read address is not in the area, the image data is read from the read address in the frame memory, and the read address is in the area. And I / O control means for reading the image data and then harming the erase data to the read address.
を有することを特徴とするフレームメモリ制御装置。 A frame memory control device comprising:
【請求項 3】 前記表示回路は、  3. The display circuit according to claim 2,
前記フレームメモリに対する読み出し信号を発生する読み出し信号発生手段と 前記座標比較手段により、 前記ア ドレス発生手段から発生する読み出しァ ドレ スが、 前記座標設定レジスタに設定される領域内であると判断された場合に、 前 記読み出し信号が発生した直後に書き込み信号を発生する書き込み信号発生手段 とを有し、  The read signal generating means for generating a read signal for the frame memory and the coordinate comparing means determine that the read address generated from the address generating means is within the area set in the coordinate setting register. Write signal generating means for generating a write signal immediately after the read signal is generated,
前記入出力制御手段は、  The input / output control means,
前記フレームメモリの前記読み出しァ ドレスから読み出される画像データと前 記ィレースデータ設定レジスタに設定されたィレースデータとを保持する入出力 ッファと、  An input / output buffer for holding image data read from the read address of the frame memory and erase data set in the erase data setting register;
前記読み出し信号が発生した場合は、 前記フレームメモリから前記画像データ を読み出し、 前記害き込み信号が発生した場合は、 前記ィレースデータを前記フ レームメモリの当該読み出しア ドレスに出力するよう、 前記入出力バッファを制 御する入出力制御回路と  When the read signal is generated, the image data is read from the frame memory, and when the harmful signal is generated, the erase data is output to the read address of the frame memory. An input / output control circuit that controls the input / output buffer
を有することを特徴とする請求項 2記載のフレームメモリ制御装置。 3. The frame memory control device according to claim 2, comprising:
【講求項 4】 前記フレームメモリは、 2面からなり、  [Course 4] The frame memory consists of two surfaces,
前記描画回路が前記フレームメモリのいずれか一方に前記画像データを書き込 んでいる間、 前記表示回路が前記フレームメモリの他方から前記画像データを読 み出すようにし、 前記書き込み及び読み出しが終了すると、 前記描画回路と前記 表示回路との切り替えを行い、 前記描画回路は前記フレームメモリの他方に前記 画像データを書き込み、 前記表示回路は前記フレームメモリの一方から前記画像 データを読み出すようにする描画/"表示セレクタを有することを特徴とする請求 項 2記載のフレームメモリ制御装置。 While the drawing circuit is writing the image data to one of the frame memories, the display circuit reads the image data from the other of the frame memories, and when the writing and reading are completed, Switching between the drawing circuit and the display circuit, the drawing circuit writes the image data to the other of the frame memories, and the display circuit reads the image data from one of the frame memories. Claims characterized by having a display selector Item 3. The frame memory control device according to item 2.
【請求項 5】 前記フレームメモリは、 2面からなり、  5. The frame memory comprises two surfaces,
前記描画回路が前記フレームメモリのいずれか一方に前記画像データを害き込 んでいる間、 前記表示回路が前記フレームメモリの他方から前記画像データを読 み出すようにし、 前記書き込み及び読み出しが終了すると、 前記描画回路と前記 表示回路との切り替えを行い、 前記描画回路は前記フレームメモリの他方に前記 画像データを書き込み、 前記表示回路は前記フレームメモリの一方から前記画像 データを読み出すようにする描画 表示セレクタを有することを特徴とする請求 項 3記載のフレームメモリ制御装置。  While the drawing circuit is poisoning the image data into one of the frame memories, the display circuit reads the image data from the other of the frame memories, and when the writing and reading are completed, Switching between the drawing circuit and the display circuit, the drawing circuit writes the image data to the other of the frame memories, and the display circuit reads the image data from one of the frame memories. The frame memory control device according to claim 3, further comprising a selector.
【請求項 6】 前記領域は、  6. The area,
水平方向の始点及び終点と垂直方向の始点及び終点とによつて 4点が指定され る矩形であることを特徴とする請求項 2記載のフレームメモリ制御装置。  3. The frame memory control device according to claim 2, wherein four points are specified by a horizontal start point and an end point and a vertical start point and an end point.
【請求項 7】 前記領域は、  7. The area,
水平方向の始点及び終点と垂直方向の始点及び終点とによって 4点が指定され る矩形であることを特徴とする請求項 3記載のフレームメモリ制御装置。  4. The frame memory control device according to claim 3, wherein four points are designated by a horizontal start point and an end point and a vertical start point and an end point.
【請求項 8】 前記領域は、  8. The region,
水平方向の始点及び終点と垂直方向の始点及び終点とによって 4点が指定され る矩形であることを特徴とする請求項 4記載のフレームメモリ制御装置。  5. The frame memory control device according to claim 4, wherein the rectangle is a rectangle in which four points are specified by a start point and an end point in a horizontal direction and a start point and an end point in a vertical direction.
PCT/JP1995/002058 1994-10-07 1995-10-06 Method and device for controlling frame memory WO1996011463A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP6244214A JPH08110770A (en) 1994-10-07 1994-10-07 Film memory control method and device
JP6/244214 1994-10-07

Publications (1)

Publication Number Publication Date
WO1996011463A1 true WO1996011463A1 (en) 1996-04-18

Family

ID=17115453

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP1995/002058 WO1996011463A1 (en) 1994-10-07 1995-10-06 Method and device for controlling frame memory

Country Status (2)

Country Link
JP (1) JPH08110770A (en)
WO (1) WO1996011463A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6122391A (en) * 1984-06-06 1986-01-30 富士通株式会社 Copy control system for display
JPS6484382A (en) * 1987-09-28 1989-03-29 Canon Kk Image processor
JPH06162121A (en) * 1992-11-24 1994-06-10 Sony Corp Image generating device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6122391A (en) * 1984-06-06 1986-01-30 富士通株式会社 Copy control system for display
JPS6484382A (en) * 1987-09-28 1989-03-29 Canon Kk Image processor
JPH06162121A (en) * 1992-11-24 1994-06-10 Sony Corp Image generating device

Also Published As

Publication number Publication date
JPH08110770A (en) 1996-04-30

Similar Documents

Publication Publication Date Title
KR100422082B1 (en) Drawing device and drawing method
US5453763A (en) Still picture display apparatus and external memory cartridge used therefor
EP0278526A2 (en) Graphics diplay controller having clipping function
US5454076A (en) Method and apparatus for simultaneously minimizing storage and maximizing total memory bandwidth for a repeating pattern
JP2001195230A (en) Plotting system and semiconductor integrated circuit for performing plotting arithmetic operation
JP3578533B2 (en) Image display control device
JPS6273385A (en) Boundary detecting object area indicating circuit
CA2055784C (en) Hierarchical memory controller
US6151035A (en) Method and system for generating graphic data
WO1996011463A1 (en) Method and device for controlling frame memory
JPH05249953A (en) Image display device
JPH08272344A (en) High speed picture display device and method therefor
GB2210239A (en) An apparatus for controlling the access of a video memory
JP3110975B2 (en) Display with character mask function
CA2050279C (en) Still picture display apparatus and external memory cartridge used therefor
JPH09222874A (en) Image display processor
JP2898482B2 (en) Computer game equipment
JP3740415B2 (en) Graphic processor
JPH07311568A (en) Method and device for outputting image
JP3252359B2 (en) Image processing device
JP2002258827A (en) Image display device
JPS62204389A (en) Clipping/shielding method by any polygons
JP3514763B6 (en) Scroll screen display circuit
JP2624667B2 (en) Graphic processing unit
JPH035755B2 (en)

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): BR CN KR RU US

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FR GB GR IE IT LU MC NL PT SE

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
122 Ep: pct application non-entry in european phase