JPH02275593A - Painting-out imaging circuit - Google Patents
Painting-out imaging circuitInfo
- Publication number
- JPH02275593A JPH02275593A JP1097924A JP9792489A JPH02275593A JP H02275593 A JPH02275593 A JP H02275593A JP 1097924 A JP1097924 A JP 1097924A JP 9792489 A JP9792489 A JP 9792489A JP H02275593 A JPH02275593 A JP H02275593A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- pattern
- pattern memory
- circuit
- data
- 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.)
- Ceased
Links
Landscapes
- Image Generation (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は塗りつぶし描画回路に関し、タイリングパター
ンによる塗りつぶし描画回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a fill-in drawing circuit, and more particularly, to a fill-in drawing circuit using a tiling pattern.
従来、この種の塗りつぶし回路は、多くの場合ソフトウ
ェアにより処理を行っていた。Conventionally, this type of filling circuit has been processed by software in most cases.
第3図はこのソフトウェアで描画処理する時のフローチ
ャートを示す、先ず、ステップ101でぬりつぶすパタ
ーンであるタイリングパターンを計算して求める0次に
、ステップ102で描画すべきフレームバッファの領域
からフレームバッファのデータを読取る(リード) こ
のステップ102でリードしたデータと塗りつぶすエリ
アとを処理し、フレームバッファへ書込むデータを求め
る。最後に、ステップ104でフレームバッファヘデー
タを書込む(ライトする)。Figure 3 shows a flowchart when drawing processing is performed using this software.First, in step 101, a tiling pattern, which is a pattern to be filled in, is calculated and obtained. (Read) The data read in step 102 and the area to be painted are processed to obtain data to be written to the frame buffer. Finally, in step 104, data is written to the frame buffer.
また、ハードウェアで描画を行う場合、フレームバッフ
ァと同じ容量のメモリを用意し、予めりイリングパター
ンを書き込んでおきそこから読出し単にフレームバッフ
ァの書込みエリアヘコピーするようになっていた。Furthermore, when drawing is performed using hardware, a memory with the same capacity as the frame buffer is prepared, an illing pattern is written in advance, read from there, and simply copied to the writing area of the frame buffer.
上述した従来の塗りつぶし回路は、その多くがソフトウ
ェアで処理されるので、高速化できないという欠点があ
った。また、ハードウェアで処理する場合も、フレーム
バッファと同じ容量のメモリに予め同一のタイリングパ
ターンを格納し単にフレームバッファヘコビーするよう
になっているので、複数のタイリングパターンを必要と
するとき、タイリングパターン変更の毎にタイリングパ
ターン格納用メモリの全空間を、新たに必要とするタイ
リングパターンで埋め直す必要があるため処理速度が遅
くなるという欠点があった。The conventional fill-in circuit described above has the disadvantage that it cannot be processed at high speed because most of the processing is done by software. Also, when processing with hardware, the same tiling pattern is stored in advance in memory with the same capacity as the frame buffer, and the frame buffer is simply loaded, so when multiple tiling patterns are required, However, each time the tiling pattern is changed, it is necessary to refill the entire space of the tiling pattern storage memory with the newly required tiling pattern, resulting in a slow processing speed.
本発明の目的は、これらの欠点を除き、複数のタイリン
グパターンを扱う場合でも高速処理を可能とした塗りつ
ぶし描画回路を提供することにある。An object of the present invention is to provide a fill-in drawing circuit that eliminates these drawbacks and enables high-speed processing even when handling a plurality of tiling patterns.
本発明の構成は、フレームバッフメモリにデータを書込
んだ領域を塗りつぶして描画を行う塗りつぶし描画回路
において、前記描画の塗りつぶし領域となるブロックご
とのタイリングパターンを格納するパターンメモリと、
前記フレームバッフメモリの塗りつぶし領域を指定する
データと前記パターンメモリのデータとを論理積の演算
をする論理回路と、前記フレームバッフメモリおよび前
記パターンメモリの書込み・読出しを制御する制御回路
と、前記パターンメモリのアドレスを入力アドレスおよ
び入力データから形成するアドレス生成回路とを有し、
前記パターンメモリを複数のブロックに分けてアクセス
できるようにしたことを特徴とする。The present invention provides a fill-in drawing circuit that performs drawing by filling in an area in which data has been written in a frame buffer memory, comprising: a pattern memory that stores a tiling pattern for each block that becomes the filled-in area of the drawing;
a logic circuit that performs an AND operation between data specifying a filled area of the frame buffer memory and data of the pattern memory; a control circuit that controls writing and reading of the frame buffer memory and the pattern memory; and a control circuit that controls writing and reading of the frame buffer memory and the pattern memory; and an address generation circuit that forms a memory address from an input address and input data,
The present invention is characterized in that the pattern memory can be divided into a plurality of blocks and accessed.
次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は、本発明の一実施例のブロック図、第2図(a
)〜(h)は第1図の動作を説明するタイミング図であ
る。第1図で、1はアドレス線、2はデータ線、3はメ
モリ制御線、4は描画のためのフレームバッファ、8は
タイリングパターンを格納するパターンメモリで、予め
各ブロック■〜■に異なるタイリングパターンが書き込
まれているものとする。これらフレームバッファ4とパ
ターンメモリ8は同一容量で同一アドレスにマツピング
されている。さらに、本実施例には、メモリ制御線3に
遅延を与えるデイレイ回路5と、複数のNAND回路か
らなる演算回路6と、この演算回路6人力のラッチ回路
7と、パターンメモリ8のアドレス生成回路9と、イン
バータ11と、メモリ制御線12およびNAND回路]
回路上が含まれる。以後、パターンメモリ8のブロック
■に格納されているタイリングパターンで塗りつぶし処
理を行う例で説明する。FIG. 1 is a block diagram of an embodiment of the present invention, and FIG.
) to (h) are timing diagrams illustrating the operation of FIG. 1. In Figure 1, 1 is an address line, 2 is a data line, 3 is a memory control line, 4 is a frame buffer for drawing, and 8 is a pattern memory for storing tiling patterns, which are different for each block in advance. It is assumed that a tiling pattern has been written. These frame buffer 4 and pattern memory 8 have the same capacity and are mapped to the same address. Furthermore, this embodiment includes a delay circuit 5 that delays the memory control line 3, an arithmetic circuit 6 consisting of a plurality of NAND circuits, a latch circuit 7 manually operated by the arithmetic circuit 6, and an address generation circuit for the pattern memory 8. 9, inverter 11, memory control line 12 and NAND circuit]
Included on the circuit. Hereinafter, an example will be explained in which the filling process is performed using the tiling pattern stored in block (2) of the pattern memory 8.
先ず、アドレス生成回路9にパターンメモリ8のブロッ
ク■を使うことを指定する。次に、アドレス線1にフレ
ームバッファ4のアドレスデータ(第2図(a)>、お
よびデータ線2に塗りつぶしエリアを指定するデータ(
第2図(b))を送出する。アドレス線1に送出された
フレームバッファ4のアドレスデータは、パターンメモ
リ8のブロック■の領域の1アドレスに相当するものと
する。また、データ線2に送出されたフレームバッファ
4の塗りつぶし領域を指定するデータは、塗りつぶし領
域が「1」として送出される。メモリ制御線3は、フレ
ームバッファ4ヘデータライトとして制御される(第2
図(C))、この信号は、インバータ11を経由してパ
ターンメモリ8のリード信号として与えられる(第2図
(e))、また、この信号はデイレイ回路5を経由して
フレームバッファ4へ一定の時間遅れでライト信号とし
て与えられる(第2図(f))、このデイレイ回路5は
パターンメモリ8のデータをラッチ回路7にラッチする
時間を保証するものである。First, it is specified to the address generation circuit 9 that block (2) of the pattern memory 8 is to be used. Next, the address data of the frame buffer 4 (Fig. 2 (a)) is placed on the address line 1, and the data that specifies the fill area is placed on the data line 2 (
Figure 2(b)) is sent. It is assumed that the address data of the frame buffer 4 sent to the address line 1 corresponds to one address in the area of block 2 of the pattern memory 8. Further, the data specifying the filled area of the frame buffer 4 sent to the data line 2 is sent with the filled area set as "1". The memory control line 3 is controlled as data write to the frame buffer 4 (second
(C)), this signal is given as a read signal to the pattern memory 8 via the inverter 11 (FIG. 2(e)), and this signal is sent to the frame buffer 4 via the delay circuit 5. This delay circuit 5, which is given as a write signal with a certain time delay (FIG. 2(f)), guarantees the time for latching the data in the pattern memory 8 into the latch circuit 7.
アドレス生成回路9にはパターンメモリ8のブロック■
に相当するアドレスが与えられる。アドレス生成回路9
には前もってパターンメモリ8のブロック■のタイリン
グパターンを塗りつぶしに使うことが入力されているの
で、ブロック■をアクセスするアドレスを生成し、パタ
ーンメモリ8に与える(第2図(d))。第3図にはフ
レームバッファ4とパターンメモリ8とのアドレスマツ
ピングを説明する模式図を示す。The address generation circuit 9 has a block of pattern memory 8.
The address corresponding to is given. Address generation circuit 9
Since it has been input in advance that the tiling pattern of block (2) in the pattern memory 8 will be used for filling, an address for accessing block (2) is generated and given to the pattern memory 8 (FIG. 2(d)). FIG. 3 is a schematic diagram illustrating address mapping between the frame buffer 4 and the pattern memory 8.
同様に、ブロック■のエリアへのアクセスであれば、そ
れもブロック■へのアクセスへ変換する。つまりアドレ
ス生成回路9はブロック■のタイリングパターンがパタ
ーンメモリ8の全域に格納されているように見せる働き
をする。パターンメモリ8のデータはラッチ回路7にラ
ッチされる。2のデータ線に与えられたデータは、フレ
ームバッファ4の塗りつぶしエリアのみ「1」にセット
されているので、塗りつぶし以外のフレームバッファエ
リアのメモリはチップセレクト信号を生成するメモリ制
御線12とNANDl 3とによりアクセス禁止となる
。このNAND 1 Bの出力が真になってセレクトさ
れたフレームバッファ4を構成しているメモリには、演
算回路6の出力結果(第2図(h))が書き込まれる。Similarly, if the access is to the area of block ■, it is also converted to an access to block ■. In other words, the address generation circuit 9 functions to make it appear as if the tiling pattern of block (2) is stored in the entire area of the pattern memory 8. Data in pattern memory 8 is latched by latch circuit 7. Since the data given to the data line 2 is set to "1" only in the filled area of the frame buffer 4, the memory in the frame buffer area other than the filled area is connected to the memory control line 12 that generates the chip select signal and the NANDl 3. Access will be prohibited due to this. When the output of NAND 1 B becomes true, the output result of the arithmetic circuit 6 (FIG. 2(h)) is written into the memory constituting the selected frame buffer 4.
データ線1に送出されたデータのうち「IJになってい
る部分のみ有効となり、それらのデータはラッチ回路7
のデータと演算回路6により演算される。これら一連の
動作により、フレームバッファ4にはパターンメモリ8
のブロック■のタイリングパターンが書き込まれる。Of the data sent to the data line 1, only the part that is "IJ" is valid, and those data are transferred to the latch circuit 7.
The data is calculated by the calculation circuit 6. Through these series of operations, the pattern memory 8 is stored in the frame buffer 4.
The tiling pattern of block ■ is written.
以上説明したように本発明は、タイリングパターン用メ
モリをブロックに分け、アクセスするアドレスを変換す
ることにより、各ブロックがあたかも全メモリにマツピ
ングされているように扱うことができ、複数のタイリン
グパターンの塗りつぶしを高速に行うことができる効果
がある。As explained above, the present invention divides the memory for tiling patterns into blocks and converts the access address, so each block can be treated as if it were mapped to all memories, and multiple tiling patterns can be processed. This has the effect of allowing pattern filling to be performed at high speed.
第1図は本発明の一実施例のブロック図、第2図は第1
図の各点の動作を説明するタイミングチャート、第3図
は第1図のフレームバッファ4とパターンメモリ8のア
ドレスマツピングを示した模式図、第4図は従来のぬり
つぶし描画処理を説明するフロー図である。
1・・・アドレス線、2・・・データ線、3.12・・
・メモリ制御線、4・・・フレームバッファ、5・・・
デイレイ回路、6・・・演算回路、7・・・ラッチ回路
、8・・・パターンメモリ、9・・・アドレス生成回路
、11・・・インバータ、13・・・NAND回路。FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
A timing chart explaining the operation of each point in the figure, FIG. 3 is a schematic diagram showing address mapping of the frame buffer 4 and pattern memory 8 in FIG. 1, and FIG. 4 is a flowchart explaining the conventional coloring drawing process. It is a diagram. 1...address line, 2...data line, 3.12...
・Memory control line, 4...Frame buffer, 5...
Delay circuit, 6... Arithmetic circuit, 7... Latch circuit, 8... Pattern memory, 9... Address generation circuit, 11... Inverter, 13... NAND circuit.
Claims (1)
ぶして描画を行う塗りつぶし描画回路において、前記描
画の塗りつぶし領域となるブロックごとのタイリングパ
ターンを格納するパターンメモリと、前記フレームバッ
フメモリの塗りつぶし領域を指定するデータと前記パタ
ーンメモリのデータとを論理積の演算をする論理回路と
、前記フレームバッフメモリおよび前記パターンメモリ
の書込み・読出しを制御する制御回路と、前記パターン
メモリのアドレスを入力アドレスおよび入力データから
形成するアドレス生成回路とを有し、前記パターンメモ
リを複数のブロックに分けてアクセスできるようにした
ことを特徴とする塗りつぶし描画回路。In a fill drawing circuit that performs drawing by filling in an area in which data has been written to the frame buffer memory, specify a pattern memory that stores a tiling pattern for each block that will be the fill area for the drawing, and a fill area in the frame buffer memory. a logic circuit that performs an AND operation on the data to be processed and the data in the pattern memory; a control circuit that controls writing and reading of the frame buffer memory and the pattern memory; 1. An address generation circuit formed from a plurality of blocks, the pattern memory being divided into a plurality of blocks so as to be accessible.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1097924A JPH02275593A (en) | 1989-04-17 | 1989-04-17 | Painting-out imaging circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1097924A JPH02275593A (en) | 1989-04-17 | 1989-04-17 | Painting-out imaging circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02275593A true JPH02275593A (en) | 1990-11-09 |
Family
ID=14205236
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1097924A Ceased JPH02275593A (en) | 1989-04-17 | 1989-04-17 | Painting-out imaging circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02275593A (en) |
-
1989
- 1989-04-17 JP JP1097924A patent/JPH02275593A/en not_active Ceased
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5475636A (en) | Memory device | |
| JPH0122652B2 (en) | ||
| KR920002468B1 (en) | Image processing device | |
| US5493528A (en) | Memory device | |
| US6643189B2 (en) | Memory device | |
| US5265234A (en) | Integrated memory circuit and function unit with selective storage of logic functions | |
| JPS59188764A (en) | memory device | |
| US5113487A (en) | Memory circuit with logic functions | |
| JP3036441B2 (en) | One-chip memory device | |
| US5923591A (en) | Memory circuit | |
| JP3075280B2 (en) | Information processing system | |
| JPS6382530A (en) | Semiconductor storage device | |
| JP3285033B2 (en) | Information processing system | |
| JP2621493B2 (en) | Electronic musical instrument sound generator | |
| JPS6019258A (en) | Memory | |
| JP3085299B2 (en) | Information processing system | |
| KR950011061B1 (en) | A i/o data control circuit for shared memory | |
| JPH0423296A (en) | Integrated circuit and its way of using | |
| JPH02108171A (en) | Frame memory device | |
| JPS60262282A (en) | Image memory control system | |
| JPH0764850A (en) | Fill drawing device | |
| JPH05346886A (en) | Address designating system for dynamic ram | |
| JPH0695348B2 (en) | Address generator for template matching | |
| JPS6156826B2 (en) | ||
| JPH06318169A (en) | 1-chip memory device |