JPH10312181A - How to write and read data - Google Patents

How to write and read data

Info

Publication number
JPH10312181A
JPH10312181A JP9120598A JP12059897A JPH10312181A JP H10312181 A JPH10312181 A JP H10312181A JP 9120598 A JP9120598 A JP 9120598A JP 12059897 A JP12059897 A JP 12059897A JP H10312181 A JPH10312181 A JP H10312181A
Authority
JP
Japan
Prior art keywords
data
writing
bank
frame memory
banks
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
JP9120598A
Other languages
Japanese (ja)
Inventor
Hitoshi Yamamoto
斉 山本
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP9120598A priority Critical patent/JPH10312181A/en
Publication of JPH10312181A publication Critical patent/JPH10312181A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

(57)【要約】 【課題】 高速データアクセスを行うことができるデー
タの書込読出方法を提供する。 【解決手段】 フレームメモリM0,M1の各々のバン
クβ0,β1への2次元的なデータ書き込みを、描画面
上の互いに隣接する水平方向のAラインとBラインにお
ける各々の書込単位であるデータA0,A1,A2,A
3,…An-1 ,A n ,…とデータB0,B1,B2,B
3,…,Bn-1 ,Bn ,…の各データA,Bについて互
いにフレームメモリは異なるがバンク番号が共通するよ
うに書き込むとともに、データAn-1 とデータAn 、及
びデータBn-1 とデータBn の各々の前後関係では、互
いに異なるフレームメモリの異なる番号のバンクに書き
込むことを繰り返すなかで、前回と同一のフレームメモ
リの異なる番号のバンクに書き込む手順が前記繰り返し
の回数αが4となるごとに挿入される。
(57) [Summary] PROBLEM TO BE SOLVED: To provide data capable of performing high-speed data access.
Data writing and reading methods. SOLUTION: Each van of a frame memory M0, M1 is provided.
Writing two-dimensional data to the blocks β0 and β1
On the horizontal A and B lines adjacent to each other
A0, A1, A2, A as write units
3, ... An-1, A n, ... and data B0, B1, B2, B
3, ..., Bn-1, Bn,... For each data A, B
Although the frame memory is different, the bank number is common
And write data An-1And data An,
And data Bn-1And data BnIn the context of each
Writing to different numbered banks in different frame memories
The same frame memo as last time
The procedure of writing to banks with different numbers
Is inserted every time the number of times α becomes 4.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、例えばグラフィッ
ク装置の描画データの書込読出に用いることができるデ
ータの書込読出方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for writing and reading data which can be used for writing and reading drawing data of a graphic device, for example.

【0002】[0002]

【従来の技術】グラフィックス装置には、描画データの
書込と読出の処理を行うためにフレームメモリが用いら
れている。そして、近年、描画データの高速処理を図る
方法として、メモリに対するアクセス時間を高速化する
方法や、バス幅を広げて一度にアクセスできるデータ量
を増やす方法が考えられている。
2. Description of the Related Art In a graphics device, a frame memory is used to write and read drawing data. In recent years, as a method of achieving high-speed processing of drawing data, a method of shortening an access time to a memory or a method of increasing a bus width to increase a data amount that can be accessed at a time have been considered.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記の
バス幅を広げてデータ量を増やす方法では、一度にアク
セスできるドット数が増えるため、小さな領域を塗りつ
ぶしたい場合に無駄なドットに対するアクセスが行われ
がちになるという不具合が生じ、却って描画性能を低下
させるおそれがある。また、フレームメモリは、一般に
DRAMで構成されるが、このDRAMは、プリチャー
ジ期間が必要でありアクセス後に次のアクセスを直ちに
は行えず、データアクセスが高速化されないことから描
画性能を十分に向上させるには至っていない。
However, in the above-described method of increasing the data amount by widening the bus width, the number of dots that can be accessed at one time increases, so that when a small area is to be filled, useless dots are accessed. There is a possibility that a drawback occurs that the drawing performance is rather deteriorated. In addition, the frame memory is generally composed of a DRAM, which requires a precharge period, so that the next access cannot be performed immediately after the access, and the data access is not accelerated, so that the drawing performance is sufficiently improved. I have not been able to.

【0004】また、特開昭59−149391号公報に
は、高速フレーム・バッファ書込方式が開示されてい
る。この方法はベクトル発生器(DDA:Digita
l Differential Analizer)で
求めたベクトル成分である点列をフレームバッファに書
き込む際に、一定の容量のDDAバッファに、この点列
を記憶すると同時に、フレームバッファを、前記DDA
バッファに対応した容量の大きさに分割して、一括して
DDAバッファの内容を書き込む方法である。しかしな
がら、この従来技術には、後に図17,18を用いて説
明する概念は開示されてはいない。
Japanese Patent Laid-Open Publication No. Sho 59-149391 discloses a high-speed frame buffer writing system. This method uses a vector generator (DDA: Digita).
When writing a sequence of points, which is a vector component obtained by [1 Differential Analyzer], to a frame buffer, the sequence of points is stored in a DDA buffer having a fixed capacity, and at the same time, the frame buffer is stored in the DDA.
This is a method in which the content of the DDA buffer is divided and written into the size of the buffer corresponding to the buffer, and the content of the DDA buffer is written collectively. However, this prior art does not disclose the concept described later with reference to FIGS.

【0005】本発明は、高速にデータアクセスを行うこ
とができるデータの書込読出方法を提供することを目的
とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a data write / read method capable of performing high-speed data access.

【0006】[0006]

【課題を解決するための手段】この発明のデータの書込
読出方法は、上記の課題を解決するため、フレームメモ
リを分割して用い、データ書込時は2次元的にデータア
クセスを行い、データ読出時は1次元的にデータアクセ
スを行うデータの書込読出方法であって、前記分割され
た個々のフレームメモリは二つのバンクをそれぞれ備
え、各フレームメモリのアクセスに際して一方のバンク
を用いたとき、次のアクセスで他方のバンクを用いるこ
とを特徴とする。
In order to solve the above-mentioned problems, a data writing / reading method according to the present invention uses a divided frame memory and performs two-dimensional data access when writing data. In the data reading, a data writing / reading method for performing one-dimensional data access is provided, wherein each of the divided frame memories includes two banks, and one of the banks is used for accessing each frame memory. At this time, the other access uses the other bank.

【0007】上記の構成によれば、各フレームメモリに
おいて、一方のバンクにアクセスが行われるときには他
方のバンクに対してはアクセスが行われないので、各バ
ンクがDRAMから成る場合でも前記アクセスが行われ
ないときに当該バンクにおけるデータの書込読出のため
の準備(プリチャージ)がなされることになり、フレー
ムメモリに対する連続的なアクセスを時間を置かずに行
うことが可能となり、データアクセスが高速化される。
[0007] According to the above configuration, in each frame memory, when one bank is accessed, the other bank is not accessed. Therefore, even when each bank is formed of a DRAM, the access is not performed. When the data is not read, preparation for data writing / reading (precharge) in the bank is performed, and continuous access to the frame memory can be performed without time, so that data access can be performed at high speed. Be transformed into

【0008】前記フレームメモリは、例えば、二つに分
割されてフレームメモリM0,M1とされ、各フレーム
メモリM0,M1にそれぞれバンクβ0,β1が備えら
れ、書込読出データとして描画データが用いられる。
The frame memory is divided into two, for example, frame memories M0 and M1. Each of the frame memories M0 and M1 is provided with a bank β0 and β1, respectively, and drawing data is used as write / read data. .

【0009】前記フレームメモリM0,M1の各々のバ
ンクβ0,β1への2次元的なデータ書き込みを、描画
面上の互いに隣接する水平方向のAラインとBラインに
おける各々の書込単位であるデータA0,A1,A2,
A3,…An-1 ,An ,…とデータB0,B1,B2,
B3,…,Bn-1 ,Bn ,…の各データA,Bについて
互いにフレームメモリは異なるがバンク番号が共通する
ように書き込むとともに、データAn-1 とデータAn
及びデータBn-1 とデータBn の各々の前後関係では、
互いに異なるフレームメモリの異なる番号のバンクに書
き込むことを繰り返すなかで、前回と同一のフレームメ
モリの異なる番号のバンクに書き込む手順が前記繰り返
しの回数αがα=2L (Lは自然数から選ばれる任意の
数値)となるごとに挿入されるようにしてもよい。
The two-dimensional data writing to each of the banks β0 and β1 of the frame memories M0 and M1 is performed by writing data as write units in adjacent horizontal A and B lines on the drawing surface. A0, A1, A2
A3,... An-1 , An ,... And data B0, B1, B2,
B3, ..., B n-1 , B n, ... each data A, with different but written as bank number is common frame memory together for B, the data A n-1 and the data A n,
And in the context of each of data B n-1 and data B n ,
In the process of repeatedly writing to different banks of different numbers in the frame memories different from each other, the procedure of writing to the different banks of the same frame memory as the previous time is based on the number of repetitions α = 2 L (L is an arbitrary number selected from natural numbers) May be inserted every time when the value of () is reached.

【0010】例えば、前記α=2(L=1)とする場合
であれば、 データA0,B0を「M0(β0),M1(β0)」に データA1,B1を「M1(β1),M0(β1)」に データA2,B2を「M1(β0),M0(β0)」に データA3,B3を「M0(β1),M1(β1)」に データA4,B4を「M0(β0),M1(β0)」に データA5,B5を「M1(β1),M0(β1)」に データA6,B6を「M1(β0),M0(β0)」に データA7,B7を「M0(β1),M1(β1)」に …のごとくなる。
For example, when α = 2 (L = 1), data A0 and B0 are set to “M0 (β0), M1 (β0)” and data A1 and B1 are set to “M1 (β1), M0 (Β1) ”for data A2, B2 for“ M1 (β0), M0 (β0) ”for data A3, B3 for“ M0 (β1), M1 (β1) ”for data A4, B4 for“ M0 (β0), M1 (β0) ”to data A5, B5 to“ M1 (β1), M0 (β1) ”Data A6, B6 to“ M1 (β0), M0 (β0) ”Data A7, B7 to“ M0 (β1) , M1 (β1) ”.

【0011】また、前記α=4(L=2)とする場合で
あれば、 データA0,B0を「M0(β0),M1(β0)」に データA1,B1を「M1(β1),M0(β1)」に データA2,B2を「M0(β0),M1(β0)」に データA3,B3を「M1(β1),M0(β1)」に データA4,B4を「M1(β0),M0(β0)」に データA5,B5を「M0(β1),M1(β1)」に データA6,B6を「M1(β0),M0(β0)」に データA7,B7を「M0(β1),M1(β1)」に …のごとくなる。
If α = 4 (L = 2), data A0 and B0 are set to “M0 (β0), M1 (β0)” and data A1 and B1 are set to “M1 (β1), M0 (Β1) ”to data A2, B2 to“ M0 (β0), M1 (β0) ”to data A3, B3 to“ M1 (β1), M0 (β1) ”to data A4, B4 to“ M1 (β0), M0 (β0) ”to data A5, B5 to“ M0 (β1), M1 (β1) ”to data A6, B6 to“ M1 (β0), M0 (β0) ”to data A7, B7 to“ M0 (β1) ” , M1 (β1) ”.

【0012】また、前記α=8とする場合であれば、 データA0,B0を「M0(β0),M1(β0)」に データA1,B1を「M1(β1),M0(β1)」に データA2,B2を「M0(β0),M1(β0)」に データA3,B3を「M1(β1),M0(β1)」に データA4,B4を「M0(β0),M1(β0)」に データA5,B5を「M1(β1),M0(β1)」に データA6,B6を「M0(β0),M1(β0)」に データA7,B7を「M1(β1),M0(β1)」に データA8,B8を「M1(β0),M0(β0)」に データA9,B9を「M0(β1),M1(β1)」に データA10,B10を「M1(β0),M0(β0)」に データA11,B11を「M0(β1),M1(β1)」に データA12,B12を「M1(β0),M0(β0)」に データA13,B13を「M0(β1),M1(β1)」に データA14,B14を「M1(β0),M0(β0)」に データA15,B15を「M0(β1),M1(β1)」に …のごとくなる。If α = 8, the data A0 and B0 are changed to “M0 (β0), M1 (β0)” and the data A1 and B1 are changed to “M1 (β1), M0 (β1)”. Data A2, B2 to “M0 (β0), M1 (β0)” Data A3, B3 to “M1 (β1), M0 (β1)” Data A4, B4 to “M0 (β0), M1 (β0)” Data A5, B5 to “M1 (β1), M0 (β1)” Data A6, B6 to “M0 (β0), M1 (β0)” Data A7, B7 to “M1 (β1), M0 (β1) Data A8, B8 to "M1 (β0), M0 (β0)" Data A9, B9 to "M0 (β1), M1 (β1)" Data A10, B10 to "M1 (β0), M0 (β0) )) And data A11 and B11 to “M0 (β1), M1 (β1)” and data A12 and B12 to “M1 (β0 , M0 (β0) ”to data A13, B13 to“ M0 (β1), M1 (β1) ”Data A14, B14 to“ M1 (β0), M0 (β0) ”Data A15, B15 to“ M0 (β1 ), M1 (β1) ”.

【0013】前記フレームメモリM0,M1の各々のバ
ンクβ0,β1への2次元的なデータ書き込みを、描画
面上の互いに隣接する水平方向のAラインとBラインに
おける各々の書込単位であるデータA0,A1,A2,
A3,…An-1 ,An ,…とデータB0,B1,B2,
B3,…,Bn-1 ,Bn ,…について、 データA0,B0を「M0(β0),M1(β0)」に データA1,B1を「M1(β0),M0(β0)」に データA2,B2を「M0(β1),M1(β1)」に データA3,B3を「M1(β1),M0(β1)」に …のごとく、データA,Bについて互いにフレームメモ
リは異なるがバンク番号が共通するように書き込むとと
もに、データAn-1 とデータAn 、及びデータBn-1
データBn の各々の前後関係では、互いにフレームメモ
リは異なるが同一番号のバンクに書き込むことを2回ず
つ行うことを繰り返すようにしてもよい。
The two-dimensional data writing to the banks .beta.0 and .beta.1 of the frame memories M0 and M1 is performed by writing data as write units in the horizontal A and B lines adjacent to each other on the drawing surface. A0, A1, A2
A3,... An-1 , An ,... And data B0, B1, B2,
For B3,..., B n−1 , B n ,..., Data A0, B0 to “M0 (β0), M1 (β0)” Data A1, B1 to “M1 (β0), M0 (β0)” A2 and B2 are replaced with "M0 (β1), M1 (β1)" Data A3 and B3 are replaced with "M1 (β1), M0 (β1)" As shown in FIG. 2 but is written as a common, data a n-1 and the data a n, and data in the context of each of the B n-1 and the data B n, the writing frame memory bank different but same number to each other You may make it repeat what is done every time.

【0014】前記フレームメモリM0,M1の各々のバ
ンクβ0,β1への2次元的なデータ書き込みを、描画
面上の互いに隣接する水平方向のAラインとBラインに
おける各々の書込単位であるデータA0,A1,A2,
A3,…An-1 ,An ,…とデータB0,B1,B2,
B3,…,Bn-1 ,Bn ,…について、 データA0,B0を「M0(β0),M1(β0)」に データA1,B1を「M0(β1),M1(β1)」に データA2,B2を「M1(β0),M0(β0)」に データA3,B3を「M1(β1),M0(β1)」に …のごとく、データA,Bについて互いにフレームメモ
リは異なるがバンク番号が共通するように書き込むとと
もに、データAn-1 とデータAn 、及びデータBn-1
データBn の各々の前後関係では、互いにバンク番号は
異なるが同一のフレームメモリに書き込むことを2回ず
つ行うことを繰り返すようにしてもよい。
The two-dimensional data writing to each of the banks β0 and β1 of the frame memories M0 and M1 is performed by writing data as write units in adjacent horizontal A and B lines on the drawing surface. A0, A1, A2
A3,... An-1 , An ,... And data B0, B1, B2,
For B3,..., B n−1 , B n ,..., Data A0, B0 to “M0 (β0), M1 (β0)” Data A1, B1 to “M0 (β1), M1 (β1)” A2 and B2 are replaced by "M1 (β0), M0 (β0)" Data A3 and B3 are replaced by "M1 (β1), M0 (β1)" 2 but is written as a common, data a n-1 and the data a n, and the context of each of the data B n-1 and the data B n, bank number are different from each other to be written to the same frame memory You may make it repeat what is done every time.

【0015】[0015]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

(実施の形態1)以下、この発明の実施の形態を図1乃
至図16に基づいて説明するが、この説明に先立って、
図17及び図18を用い、この発明の前提となる考え方
を説明することとする。
(Embodiment 1) An embodiment of the present invention will be described below with reference to FIGS. 1 to 16. Prior to the description,
The concept underlying the present invention will be described with reference to FIGS.

【0016】グラフィックス装置では、多角形のデータ
(以下、これをポリゴンデータという)をフレームメモ
リに書き込むことが多いという特徴がある。そこで、フ
レームメモリを“mドット×nドット”の2次元領域に
分割し、2次元的にデータアクセスを行い、1次元的に
データアクセスを行う場合の無駄なドットに対するアク
セスを低減することを考えた。具体的には、図18に示
すように、ポリゴンデータの書込時には、例えば4×2
ドット(図の4×1ドットの単位枠を縦方向に二つ分)
のごとく2次元的にデータアクセスを行い、ポリゴンデ
ータの読出時には8×1ドット(図の4×1ドットの単
位枠を横方向に二つ分)のごとく1次元的にデータアク
セスを行う。この方法であれば、6個の領域(図18の
〜)に対してアクセスを行えば良く、書き込みを1
次元的に行う場合(この場合は12個の領域に対するア
クセスが必要)に比べ、アクセス数が低減されることに
なる。
A graphics device is characterized in that polygon data (hereinafter, referred to as polygon data) is often written in a frame memory. Therefore, it is considered that the frame memory is divided into a two-dimensional area of “m dots × n dots”, two-dimensional data access is performed, and access to useless dots in the case of one-dimensional data access is reduced. Was. Specifically, as shown in FIG. 18, when writing polygon data, for example, 4 × 2
Dot (two 4 x 1 dot unit frames in the vertical direction in the figure)
The data access is performed two-dimensionally as described above, and the data is accessed one-dimensionally as 8 × 1 dots (two unit frames of 4 × 1 dots in the figure in the horizontal direction) when reading polygon data. According to this method, it is sufficient to access six areas (-in FIG. 18),
The number of accesses is reduced as compared with the case of performing dimensionally (in this case, access to 12 areas is necessary).

【0017】図17(a)は、描画面上のドット配置に
対応させてデータ配置を示した説明図であり、同図
(b)及び同図(c)は、二つのフレームメモリM0,
M1の各々の格納データ内容を示した説明図である。こ
れらの図において、一つの枠を構成するデータ(A0,
A1,B0等)は、それぞれ4×1ドット分のデータで
あり、AはA行目のデータであることを、BはB行目の
データであることをそれぞれ示している。そして、1ド
ットを8ビットデータで構成すると、データA0等は3
2ビットデータとなる。また、バス幅(一度にアクセス
できるデータ量)は64ビットとしてある。
FIG. 17A is an explanatory diagram showing the data arrangement corresponding to the dot arrangement on the drawing surface. FIGS. 17B and 17C show two frame memories M0 and M0.
FIG. 4 is an explanatory diagram showing the contents of stored data of each of M1. In these figures, data (A0,
A1, B0, etc.) are data for 4 × 1 dots, respectively, where A indicates data on the A-th row, and B indicates data on the B-th row. When one dot is composed of 8-bit data, data A0 and the like are 3 bits.
It becomes 2-bit data. The bus width (the amount of data that can be accessed at one time) is 64 bits.

【0018】データの書込時には、まずデータA0とデ
ータB0に対する4×2ドットの2次元的データアクセ
スが行われ、フレームメモリM0にはデータA0が、フ
レームメモリM1にはデータB0がそれぞれ書き込まれ
る。次に、データA1とデータB1に対する4×2ドッ
トの2次元的データアクセスが行われ、フレームメモリ
M0にはデータB1が、フレームメモリM1にはデータ
A1がそれぞれ書き込まれる。以後、同様のアクセスが
行われ、フレームメモリM0には図17(b)のごとく
データが書き込まれ、フレームメモリM1には同図
(c)のごとくデータが書き込まれる。
When writing data, first, two-dimensional data access of 4 × 2 dots is performed on data A0 and data B0, and data A0 is written into frame memory M0 and data B0 is written into frame memory M1. . Next, two-dimensional data access of 4 × 2 dots is performed on the data A1 and the data B1, and the data B1 is written in the frame memory M0 and the data A1 is written in the frame memory M1. Thereafter, similar access is performed, and data is written into the frame memory M0 as shown in FIG. 17B, and data is written into the frame memory M1 as shown in FIG.

【0019】一方、データの読出時には、フレームメモ
リM0,M1に対する1次元的データアクセスが行わ
れ、データA0,A1についての8×1ドット分のデー
タ、データA2,A3についての8×1ドットのデー
タ、のごとく順にデータアクセスが行われる。なお、B
行目のデータにおいては、データB0はフレームメモリ
M1に、データB1はフレームメモリM0に格納されて
いるので、これらデータB0,B1は図示しないシフト
レジスタに格納され、所定の順序で読み出されることに
なる。
On the other hand, at the time of data reading, one-dimensional data access to the frame memories M0 and M1 is performed, and 8 × 1 dot data for the data A0 and A1 and 8 × 1 dot data for the data A2 and A3. Data access is performed in the order of data. Note that B
In the data in the row, since the data B0 is stored in the frame memory M1 and the data B1 is stored in the frame memory M0, these data B0 and B1 are stored in a shift register (not shown) and read out in a predetermined order. Become.

【0020】以上の説明でこの発明の前提となる考え
方、手法を示したが、かかる手法では、フレームメモリ
としてDRAMを用いる場合のプリチャージ期間に起因
するデータ処理速度の低下を解消しきれない。
In the above description, the concept and the method which are the premise of the present invention have been described. However, such a method cannot solve the decrease in the data processing speed caused by the precharge period when the DRAM is used as the frame memory.

【0021】そこで、フレームメモリとしてDRAMを
用いたとしてもデータ処理速度を高速化できる本発明の
データの書込読出方法を案出した。以下、この発明のデ
ータの書込読出方法を説明していく。
Therefore, a data writing / reading method of the present invention has been devised which can increase the data processing speed even when a DRAM is used as a frame memory. Hereinafter, a method for writing and reading data according to the present invention will be described.

【0022】図1は、本発明のデータの書込読出方法が
用いられる3次元グラフィックス装置の概略構成を示し
たブロック図である。この3次元グラフィックス装置
は、幾何変換部1と描画部2と表示部3とから構成され
る。
FIG. 1 is a block diagram showing a schematic configuration of a three-dimensional graphics apparatus using the data writing / reading method of the present invention. The three-dimensional graphics device includes a geometric conversion unit 1, a drawing unit 2, and a display unit 3.

【0023】幾何変換部1は、一つの3次元ポリゴンデ
ータを最小単位として、モデリング変換、視野変換、及
び透視変換と呼ばれる計算処理を行うようになってい
る。
The geometric conversion unit 1 performs calculation processing called modeling conversion, visual field conversion, and perspective conversion using one piece of three-dimensional polygon data as a minimum unit.

【0024】描画部2は、幾何変換部1にて生成された
ポリゴンの平面座標値に従ってピクセルデータ(RGB
データの場合もあり、Look Up Table方式
のLUTアドレスの場合もある)を求め、このピクセル
データをフレームメモリ15に書き込むとともに、表示
期間においてはフレームメモリ15から表示部3の走査
に従ってデータを読み出して表示部3に転送するように
なっている。
The drawing unit 2 generates pixel data (RGB) according to the plane coordinate values of the polygon generated by the geometric conversion unit 1.
In some cases, the pixel data may be a LUT address of a Look Up Table method, and the pixel data may be written to the frame memory 15. During the display period, the data may be read from the frame memory 15 according to the scanning of the display unit 3. The data is transferred to the display unit 3.

【0025】表示部3は、描画部2から転送されたデー
タを図示しないCRT上に表示するようになっている。
The display unit 3 displays the data transferred from the drawing unit 2 on a CRT (not shown).

【0026】図2は、前記描画部2の具体的構成例を示
したブロック図である。この描画部2において、本発明
のデータの書込読出方法が実施される。垂直DDA(D
igital Differential Anali
zer)4は、前記の幾何変換部1からのデータを入力
し、このデータから各垂直ラインの左右両端点のデータ
を求め、このデータを二つの水平DDA5,6に転送す
る。上記の左右両端点のデータは、例えば、図14に示
したポリゴンにおける縁部分の各ピクセルの位置情報を
示すことになる。水平DDA5,6は、左右両端点のデ
ータに基づき、両端点間のスクリーン上のピクセルデー
タを求め、そのデータをバッファ7,8に書き込む。
FIG. 2 is a block diagram showing a specific example of the configuration of the drawing section 2. As shown in FIG. In the drawing unit 2, the data write / read method of the present invention is performed. Vertical DDA (D
digital Differential Anali
zer) 4 receives the data from the geometric transformation unit 1, obtains data of both left and right end points of each vertical line from the data, and transfers the data to two horizontal DDAs 5 and 6. The data at the left and right end points indicate, for example, the position information of each pixel at the edge of the polygon shown in FIG. The horizontal DDAs 5 and 6 obtain pixel data on the screen between both end points based on the data at the left and right end points, and write the data to the buffers 7 and 8.

【0027】ここで、一つのドット(ピクセル)データ
は8ビットで構成され、4×1ドット単位(図14の4
×1ドットの単位枠参照)で処理がなされるようにして
ある。従って、前記のバッファ7,8は、それぞれ図3
に示すように、4×1ドット分のデータを保持するよう
に構成され、当該バッファ7,8のデータ出力バス幅は
それぞれ32ビットとされている。なお、前記二つの水
平DDA5,6(二つのバッファ7,8)を備えるの
は、この実施の形態では、2次元的な描画ライトを2ラ
イン単位で行うようにしているからである。
Here, one dot (pixel) data is composed of 8 bits, and is composed of 4 × 1 dot units (4 in FIG. 14).
The processing is performed in a unit frame of × 1 dot). Therefore, the buffers 7 and 8 are respectively shown in FIG.
As shown in (1), data for 4 × 1 dots are held, and the data output bus width of the buffers 7 and 8 is 32 bits. It should be noted that the two horizontal DDAs 5 and 6 (two buffers 7 and 8) are provided because, in this embodiment, a two-dimensional drawing write is performed in units of two lines.

【0028】バッファ7,8は、MUX(マルチプレク
サ)9及びFMバスコントロール12を介してフレーム
メモリ15に接続されている。バッファ7,8にデータ
が満たされると(即ち、4×2ドット分のデータが格納
されると)、当該データはMUX9を通してFMバスコ
ントロール12に送られる。MUXは、4×2のドット
分のデータのスクリーン上のX座標アドレスによって制
御され、二組の32ビットバスを入れ換えて4×2ドッ
ト分のデータをFM(フレームメモリ)バスコントロー
ル12に出力するようになっている。
The buffers 7 and 8 are connected to a frame memory 15 via a MUX (multiplexer) 9 and an FM bus control 12. When data is filled in the buffers 7 and 8 (that is, when data of 4 × 2 dots is stored), the data is sent to the FM bus control 12 through the MUX 9. The MUX is controlled by an X coordinate address on the screen of data of 4 × 2 dots, and outputs data of 4 × 2 dots to an FM (frame memory) bus control 12 by exchanging two sets of 32-bit buses. It has become.

【0029】FMバスコントロール12は、描画ライト
時においては、図4(a)に示すように、4×2ドット
分のデータ(4ドット×2ライン分のデータ)単位でフ
レームメモリ15にアクセスしてデータ書き込みを行う
ようになっている。一方、表示リード時においては、同
図(b)に示すように、8×1ドット分のデータ(8ド
ット×1ライン分のデータ)単位でフレームメモリ15
にアクセスしてデータ読み出しを行うようになってい
る。
4A, the FM bus control 12 accesses the frame memory 15 in units of 4.times.2 dot data (4 dot.times.2 line data) as shown in FIG. To write data. On the other hand, at the time of display reading, as shown in FIG. 3B, the frame memory 15 is divided into 8 × 1 dot data (8 dot × 1 line data).
To read data.

【0030】フレームメモリ15は、二つのフレームメ
モリM0,M1(以下、フレームメモリM0,M1のど
ちらかを特定せずに示すときには符号Mのみを付す)を
備えて成り、各フレームメモリMは32ビット幅で処理
を行う。そして、この実施の形態では、フレームメモリ
MはシンクロナスDRAMにて構成される。
The frame memory 15 is provided with two frame memories M0 and M1 (hereinafter, when any one of the frame memories M0 and M1 is indicated without being specified, only the symbol M is attached). Process with bit width. In this embodiment, the frame memory M is constituted by a synchronous DRAM.

【0031】シンクロナスDRAMは、二つのバンクβ
0,β1(以下、バンクβ0,β1のどちらかを特定せ
ずに示すときには符号βのみを付す)を備え、これら二
つのバンクβ0,β1を交互にアクセスすることで高速
アクセスを可能にするものである。このシンクロナスD
RAMの説明を図5及び図6を用いて行う。図5は、シ
ンクロナスDRAMの一例を概念的に示した説明図であ
り、図6(a)はCASLatency=3 ,Burst length=4とし
た場合のバーストリード時のタイミングを、同図(b)
はバーストライト時のタイミングをそれぞれ示してい
る。
The synchronous DRAM has two banks β.
0, β1 (hereinafter, when either of the banks β0, β1 is indicated without specifying, only the symbol β is added), and high-speed access is enabled by alternately accessing these two banks β0, β1. It is. This synchronous D
The RAM will be described with reference to FIGS. FIG. 5 is an explanatory diagram conceptually showing an example of a synchronous DRAM. FIG. 6A shows the timing at the time of burst reading when CASLatency = 3 and Burst length = 4, and FIG.
Indicates the timing at the time of burst write.

【0032】図6(a)において、始めにActive
0でバンクβ0のRowアドレスをアクティブにし、C
olumnアドレスをリードコマンドで設定すると、3
サイクル後にデータが出力される。次に、バンクβ0を
アクティブにできるのは、最後のデータ出力から2サイ
クル後のActive0でしか行えず、次のデータアク
セスは遅れることになる。しかし、バンクβ0のリード
後にバンクβ1のデータをアクセスするのであれば、図
6中の斜線部のコマンドでバンクβ1をアクティブにで
きるので、バンクβ0のリードサイクルのすぐ後からデ
ータアクセスを行うことができ、高速アクセスが可能と
なる。図6(b)のバーストライト時においても同様
に、バンクβ0とバンクβ1を交互に用いることにより
高速アクセスが可能となる。
In FIG. 6A, first, Active
0 activates the Row address of bank β0,
When the column address is set by the read command, 3
Data is output after the cycle. Next, the bank β0 can be activated only in Active0 two cycles after the last data output, and the next data access is delayed. However, if data of bank β1 is accessed after reading of bank β0, bank β1 can be activated by the command in the hatched portion in FIG. 6, so that data access can be performed immediately after the read cycle of bank β0. And high-speed access is possible. Similarly, at the time of the burst write in FIG. 6B, high-speed access is enabled by alternately using the banks β0 and β1.

【0033】MUX(マルチプレクサ)10は、前記の
FMバスコントロール12に接続されており、フレーム
メモリ15から読み出された32ビット×2データのう
ちから必要とされる32ビットデータを選択してシフト
レジスタ11に出力する。
The MUX (multiplexer) 10 is connected to the FM bus control 12 and selects and shifts required 32-bit data from the 32-bit × 2 data read from the frame memory 15. Output to register 11.

【0034】図7は、MUX10とシフトレジスタ11
の接続構成関係の一例を示したブロック図である。MU
X10は、8個のMUX部10a〜10hから成り、シ
フトレジスタ11も、8個のシフトレジスタ部11a〜
11hから成る。そして、MUX部10aはシフトレジ
スタ部11aに、MUX部10bはシフトレジスタ部1
1bに、という具合に接続されている。各シフトレジス
タ部11a〜11hは、4×1ドット分のデータ(32
ビットデータ)を保持するが、この保持のタイミング
は、シフトレジスタ部11a〜11hに与えられる制御
信号により設定される。また、MUX部10a〜10h
における選択もこれらに与えられる制御信号により行わ
れる。
FIG. 7 shows the MUX 10 and the shift register 11
FIG. 3 is a block diagram showing an example of a connection configuration relationship. MU
X10 includes eight MUX units 10a to 10h, and the shift register 11 also includes eight shift register units 11a to 11h.
11h. The MUX unit 10a is connected to the shift register unit 11a, and the MUX unit 10b is connected to the shift register unit 1a.
1b, and so on. Each of the shift register sections 11a to 11h stores 4 × 1 dot data (32
Bit data) is held, and the timing of this holding is set by a control signal given to the shift register units 11a to 11h. Also, the MUX units 10a to 10h
Are also made by the control signals given to them.

【0035】次に、描画ライトの態様を図8を用いて説
明する。同図(a)は描画面上のドット配置に対応させ
てデータ配置を示した説明図であり、同図(b)は、フ
レームメモリM0の各々のバンクβ0,β1の格納デー
タ内容を示した説明図であり、同図(c)は、フレーム
メモリM1の各々のバンクβ0,β1の格納データ内容
を示した説明図である。
Next, the form of the drawing light will be described with reference to FIG. FIG. 7A is an explanatory view showing the data arrangement corresponding to the dot arrangement on the drawing surface, and FIG. 8B shows the contents of data stored in the banks β0 and β1 of the frame memory M0. FIG. 9C is an explanatory diagram showing the contents of data stored in the banks β0 and β1 of the frame memory M1.

【0036】これらの図において、一つの単位枠を構成
するデータ(A0,A1,B0等)は、それぞれ4×1
ドット分のデータであり、AはA行目のデータであるこ
とを、BはB行目のデータであることを、CはC行目の
データであることを、DはD行目のデータであることを
それぞれ示している。そして、1ドットを8ビットデー
タで構成すると、データA0等は32ビットデータとな
る。また、バス幅(一度にアクセスできるデータ量)は
64ビットとしている。
In these figures, data (A0, A1, B0, etc.) constituting one unit frame is 4 × 1
A is data for a dot, A is data on the A line, B is data on the B line, C is data on the C line, D is data on the D line. Respectively. When one dot is composed of 8-bit data, data A0 and the like are 32-bit data. The bus width (the amount of data that can be accessed at one time) is 64 bits.

【0037】データの書込時には、まずデータA0とデ
ータB0に対する4×2ドット分の2次元的なデータア
クセスが行われ、フレームメモリM0のバンクβ0には
データA0が、フレームメモリM1のバンクβ0にはデ
ータB0がそれぞれ書き込まれる。次に、データA1と
データB1に対する4×2ドットの2次元的データアク
セスが行われ、フレームメモリM1のバンクβ1にはデ
ータA1が、フレームメモリM0のバンクβ1にはデー
タB1がそれぞれ書き込まれる。以後、同様のアクセス
が行われ、フレームメモリM0には同図(b)のごとく
データが書き込まれ、フレームメモリM1には同図
(c)のごとくデータが書き込まれる。
At the time of writing data, first, two-dimensional data access for 4 × 2 dots is performed for data A0 and data B0, and data A0 is stored in bank β0 of frame memory M0 and bank β0 of frame memory M1. Is written with data B0. Next, two-dimensional data access of 4 × 2 dots is performed on the data A1 and the data B1, and the data A1 is written to the bank β1 of the frame memory M1 and the data B1 is written to the bank β1 of the frame memory M0. Thereafter, similar access is performed, and data is written into the frame memory M0 as shown in FIG. 3B, and data is written into the frame memory M1 as shown in FIG.

【0038】なお、2つのフレームメモリM0,M1の
各々のバンクβ0,β1への書き込みの態様を簡潔に示
せば、 データA0,B0を「M0(β0),M1(β0)」に データA1,B1を「M1(β1),M0(β1)」に データA2,B2を「M0(β0),M1(β0)」に データA3,B3を「M1(β1),M0(β1)」に データA4,B4を「M1(β0),M0(β0)」に データA5,B5を「M0(β1),M1(β1)」に データA6,B6を「M1(β0),M0(β0)」に データA7,B7を「M0(β1),M1(β1)」に …のごとくなる。即ち、データA,Bについて互いにフ
レームメモリは異なるがバンク番号が共通するように書
き込むとともに、データAn-1 とデータAn 、及びデー
タBn-1 とデータBn の各々の前後関係では、互いに異
なるフレームメモリの異なる番号のバンクに書き込むも
のであり、更にこのような書き込みを繰り返すなかで、
前回と同一のフレームメモリの異なる番号のバンクに書
き込む手順が前記繰り返しの回数αがα=4となるごと
に挿入される。
It should be noted that the manner of writing to the banks β0 and β1 of the two frame memories M0 and M1 will be briefly described. Data A0 and B0 are converted to “M0 (β0), M1 (β0)”. B1 to “M1 (β1), M0 (β1)” Data A2, B2 to “M0 (β0), M1 (β0)” Data A3, B3 to “M1 (β1), M0 (β1)” Data A4 , B4 to “M1 (β0), M0 (β0)” Data A5, B5 to “M0 (β1), M1 (β1)” Data A6, B6 to “M1 (β0), M0 (β0)” A7 and B7 are changed to "M0 (β1), M1 (β1)". That is, the data A and B are written so that the frame memories are different from each other but the bank numbers are common, and the data A n-1 and the data A n , and the data B n-1 and the data B n in the order of the data, This is to write to different numbered banks of different frame memories, and as such writing is repeated,
A procedure for writing to a bank of a different number in the same frame memory as the previous time is inserted every time the number of repetitions α becomes 4.

【0039】一方、データの読出時には、フレームメモ
リM0,M1の各バンクβ0において、まずデータA
0,A4についての8×1ドットの1次元的なデータア
クセスが行われ、次に、フレームメモリM0,M1の各
バンクβ1において、データA5,A1についての8×
1ドットの1次元的データアクセスが行われる。以後デ
ータA7まで同様のアクセスが行われる。なお、バンク
β0を続けて2回用い、その後にバンクβ1を続けて2
回用いるというように、各バンクを2回ずつ用いた交互
使用を行うようにしてもよいものである(図9(a)参
照)。
On the other hand, at the time of reading data, the data A is first stored in each bank β0 of the frame memories M0 and M1.
One-dimensional data access of 8 × 1 dots for 0 and A4 is performed. Next, in each bank β1 of the frame memories M0 and M1, 8 × 1 dots of data A5 and A1 are accessed.
One-dimensional one-dimensional data access is performed. Thereafter, the same access is performed up to data A7. Note that the bank β0 is used twice consecutively, and thereafter the bank β1 is continuously used twice.
Alternatively, the banks may be alternately used by using each bank twice (see FIG. 9A).

【0040】ここで、データA0,A4の読み出しが行
われるとき、シフトレジスタ部11a,11eがデータ
書込状態となり、これらに接続されているMUX部10
a,10eにおいて、MUX部10aがデータA0を、
MUX部10eがデータA4をそれぞれ選択するように
切り換えがなされる。また、次にデータA5,A1の読
み出しが行われるとき、シフトレジスタ部11f,11
bがデータ書込状態となり、これらに接続されているM
UX部10f,10bにおいて、MUX部10fがデー
タA5を、MUX部10bがデータA1をそれぞれ選択
するように切り換えがなされる。他のデータについても
同様である。これにより、データA0〜A7はシフトレ
ジスタ部11a〜11hに順に格納される。従って、シ
フトレジスタからはデータA0〜A7がこの順序で出力
される。
Here, when the data A0 and A4 are read, the shift registers 11a and 11e enter a data write state, and the MUX 10 connected to these shift registers 11a and 11e.
a, 10e, the MUX unit 10a converts the data A0 into
Switching is performed so that the MUX unit 10e selects the data A4. When the data A5 and A1 are read next time, the shift register units 11f and 11f
b enters a data write state, and M connected to these
In the UX units 10f and 10b, switching is performed so that the MUX unit 10f selects data A5 and the MUX unit 10b selects data A1. The same applies to other data. Thus, the data A0 to A7 are sequentially stored in the shift register units 11a to 11h. Therefore, data A0 to A7 are output from the shift register in this order.

【0041】次に、各フレームメモリMについてのバン
クβ0,β1のリード時およびライト時のタイミングの
一例について説明する。図9は、1ドットを8ビットで
構成したとき(8bitカラー)の各フレームメモリM
についてのバンクβのリード時およびライト時のタイミ
ングの一例を示したタイミングチャートであり、フレー
ムメモリM0,M1は、共に当該図9のごとく動作す
る。また、この図9では、CAS Latency=3 ,Burst leng
th1とした場合を示している。
Next, an example of the timing of reading and writing of the banks β0 and β1 in each frame memory M will be described. FIG. 9 shows each frame memory M when one dot is composed of 8 bits (8-bit color).
10 is a timing chart showing an example of the timings at the time of reading and writing of the bank β with respect to the frame memory M. Both the frame memories M0 and M1 operate as shown in FIG. In FIG. 9, CAS Latency = 3, Burst leng
The case where th1 is set is shown.

【0042】描画ライト時は、図9(b)に示している
ように、バンクβ0のラスアドレス(R0)を設定した
2クロック後にバンクβ0のカラムアドレス(C0w)
が設定され、このタイミングでデータ(Pw)が書き込
まれる。そして、上記カラムアドレス(C0w)の次の
クロックでバンクβ1のラスアドレス(R1)が設定さ
れ、以後同様にカラムアドレスが設定されてデータが書
き込まれていく。なお、この図において、各データ(P
w)下に表記しているA0/B0,B1/A1等は、図
8に対応させたときの書込データ内容を表しており、例
えば上記のA0/B0は、フレームメモリM0のバンク
β0へデータA0が、フレームメモリM1のバンクβ0
へデータB0が、それぞれ書き込まれることを意味す
る。
At the time of drawing writing, as shown in FIG. 9B, the column address (C0w) of the bank β0 after two clocks after the setting of the raster address (R0) of the bank β0.
Is set, and data (Pw) is written at this timing. Then, at the next clock of the column address (C0w), the lath address (R1) of the bank β1 is set, and thereafter the column address is set and data is written. In this figure, each data (P
w) A0 / B0, B1 / A1, etc. shown below represent the contents of the write data corresponding to FIG. 8, and for example, the above A0 / B0 is stored in the bank β0 of the frame memory M0. The data A0 is stored in the bank β0 of the frame memory M1.
Means that the data B0 is respectively written to

【0043】表示リード時においては、図9(a)に示
しているように、バンクβ0のラスアドレス(R0)を
設定した2クロック後にバンクβ1のラスアドレス(R
1)を設定する。そして、前記ラスアドレス(R0),
(R1)に対してそれぞれ2回のカラムアドレス(C0
r,C0r),(C1r,C1r)を繰り返し設定す
る。カラムアドレスが設定されてからその3クロック後
にデータ(Pr)…が読み出されるが、前述のごとくカ
ラムアドレスが設定されることにより、一つのフレーム
メモリMにつき16回のデータリードが連続して行われ
る。なお、この図において、各データ(Pr)下に表記
しているA0/A4,A2/B6等は、図8に対応させ
たときの読出データ内容を表しており、例えば上記のA
0/A4は、フレームメモリM0のバンクβ0からデー
タA0が、フレームメモリM1のバンクβ0からデータ
A4が、それぞれ読み出されることを意味する。
At the time of display reading, as shown in FIG. 9A, two clocks after the setting of the raster address (R0) of the bank β0, the raster address (R
Set 1). Then, the lath address (R0),
(R1) twice for each column address (C0
r, C0r) and (C1r, C1r) are repeatedly set. Data (Pr)... Are read out three clocks after the column address is set, but by setting the column address as described above, 16 data reads are performed continuously for one frame memory M. . In this figure, A0 / A4, A2 / B6, and the like described below each data (Pr) represent the contents of the read data corresponding to FIG.
0 / A4 means that data A0 is read from bank β0 of frame memory M0 and data A4 is read from bank β0 of frame memory M1.

【0044】ここで、図9(a)に示したデータ読出に
対応させるため、図2に示したシフトレジスタ11は、
128ドット×8ビットの容量のバッファを2つ用いて
構成される。そして、16回のデータリードで得られる
128ドット×8ビットのデータを一方のバッファに蓄
え、この一方のバッファから表示部3へデータをシフト
出力している間に、フレームメモリM0,M1へのデー
タ書込を行い、このフレームメモリM0,M1に対する
次の16回のデータリードで得られる128×8ビット
のデータを他方のバッファに蓄える処理が順次行われ
る。
Here, in order to correspond to the data reading shown in FIG. 9A, the shift register 11 shown in FIG.
It is configured using two buffers each having a capacity of 128 dots × 8 bits. Then, the data of 128 dots × 8 bits obtained by 16 data readings is stored in one buffer, and while the data is shifted from the one buffer to the display unit 3, the data is transferred to the frame memories M0 and M1. Data writing is performed, and a process of sequentially storing data of 128 × 8 bits obtained in the next 16 data reads from the frame memories M0 and M1 in the other buffer is performed.

【0045】なお、図9(a)では、16回のデータア
クセスを行っているが、4回のアクセスで連続すべきデ
ータA0〜A7までが読み出せるので、MUX10及び
シフトレジスタ11は基本的には図6に対応した構成と
すればよい。図9(a)のごとく16回のデータアクセ
スを行っているのは、1ドットを8ビットカラーとした
ときだけでなく、1ドットを16ビットカラーとした
り、24ビットカラーとするような場合にも対応できる
ようにするため、及び、連続読出期間をある程度長く確
保してプリチャージ期間を省くようにしたためである。
In FIG. 9A, the data access is performed 16 times. However, since the data A0 to A7 to be continued can be read by the four accesses, the MUX 10 and the shift register 11 are basically provided. May have a configuration corresponding to FIG. As shown in FIG. 9A, the data access is performed 16 times not only when one dot is set to an 8-bit color but also when one dot is set to a 16-bit color or a 24-bit color. This is because the continuous readout period is secured to some extent and the precharge period is omitted.

【0046】図10は、1ドットを16ビットカラーと
した場合の描画ライト時および表示リード時のタイミン
グを示したタイミングチャートである。この場合、図9
と異なるのは、シフトレジスタ11が、64ドット×1
6ビットの容量のバッファを2つ用いて構成される点、
及び描画ライト時の4×2ドットの2次元的データアク
セス及び表示リード時の8×1ドットの1次元的データ
アクセスを共に2回のアクセスで行うようにする点であ
る。例えば、表示リード時の2回のアクセスのうち第1
回目のアクセスは図9(a)と同様に行われ(即ち、各
ドットの16ビットデータのうちの8ビットデータが得
られ)、第2回目のアクセスは図10(a)に示すよう
に、各データ(Pr)下に表記しているA0′/A
4′,A2′/B6′等のごとく行われ、各ドットの残
りの8ビットデータが得られることになる。なお、デー
タA0′やデータB0′は、各フレームメモリM0,M
1においては、図8(b)(c)の点線で示しているよ
うに格納される。また、同様に24ビットカラーとした
いときには、3回のアクセスを行えばよい。
FIG. 10 is a timing chart showing timings at the time of drawing writing and display reading when one dot is 16-bit color. In this case, FIG.
The difference from this is that the shift register 11 is 64 dots × 1
A point configured by using two buffers each having a capacity of 6 bits,
In addition, two-dimensional data access of 4 × 2 dots at the time of drawing writing and one-dimensional data access of 8 × 1 dots at the time of display reading are both performed by two accesses. For example, the first of two accesses during display read
The first access is performed in the same manner as in FIG. 9A (that is, 8-bit data of the 16-bit data of each dot is obtained), and the second access is performed as shown in FIG. A0 '/ A described below each data (Pr)
4 ', A2' / B6 ', etc., so that the remaining 8-bit data of each dot is obtained. The data A0 'and the data B0' are stored in each of the frame memories M0 and M0.
1 is stored as indicated by the dotted lines in FIGS. 8B and 8C. Similarly, when it is desired to use 24-bit color, it is sufficient to perform access three times.

【0047】更に、この実施の形態においては、図9
(b)に示したように、描画ライトのタイミングではラ
イトしか行っていないが、この描画ライトを3次元グラ
フィックス処理のZバッファ法やアルファブレンディン
グのためのリードモディファイライト(一旦フレームメ
モリにあるデータをリードし内部的処理して直ちにライ
トする処理)とすることも可能である。Zバッファ法に
おけるリードモディファイライトを、図9(b)を参照
して簡単に説明する。この図のクロック1においてR0
を設定し、クロック3においてC0r(リード)を設定
する。すると、クロック6においてデータZrがリード
される。そして、クロック8においてC0w(ライト)
を設定すると、このタイミングでデータZwがライトさ
れることになる。
Further, in this embodiment, FIG.
As shown in (b), only writing is performed at the timing of drawing light. However, this drawing light is read by a Z-buffer method for three-dimensional graphics processing or a read-modify write for alpha blending (data temporarily stored in the frame memory). To read, perform internal processing, and immediately write). The read-modify-write in the Z-buffer method will be briefly described with reference to FIG. In clock 1 of this figure, R0
Is set, and C0r (read) is set at clock 3. Then, at clock 6, data Zr is read. Then, at clock 8, C0w (write)
Is set, the data Zw is written at this timing.

【0048】なお、先に、4回のアクセスで連続すべき
データA0〜A7までが読み出せると説明したが、読み
出しのアドレスを工夫することにより、1回のアクセス
で連続すべきデータA0,A1、或いはA2,A3、或
いはA4,A5、…を読み出すことも可能である。即
ち、フレームメモリM0とフレームメモリM1のバンク
を互いに違えて用いるとともに、同一のバンクに対する
アクセスを2回ずつ続けて行うようにすればよい。例え
ば、データA0,A1、データA2,A3についてであ
れば、フレームメモリM0に対してはバンクβ0にアク
セスし、フレームメモリM1に対してはバンクβ1にア
クセスすることを2回続けれるようにすればよい。具体
的な読出アドレスを示せば、図12に示すようになる。
Although it has been described above that data A0 to A7 which should be continuous in four accesses can be read, data A0 and A1 which should be continuous in one access can be obtained by devising a read address. , Or A2, A3, or A4, A5,... In other words, the banks of the frame memory M0 and the frame memory M1 may be used differently, and the same bank may be accessed twice successively. For example, for data A0, A1, and data A2, A3, access to bank β0 for frame memory M0 and access to bank β1 for frame memory M1 can be continued twice. I just need. FIG. 12 shows the specific read address.

【0049】また、2次元的なデータアクセスを2ライ
ンとした場合を例に説明したが、これに限らず3ライン
以上としてもよいものである。例えば、4ラインとする
場合であれば、図2において、水平DDA、4×1ピク
セルバッファ、及びフレームメモリをそれぞれ4つずつ
備える。そして、ピクセルデータの書き込み処理は、図
11のごとく行えばよい。同図(a)は、画面上のドッ
ト配置に対応させてデータ配置を示した説明図であり、
同図(b)は、4つのフレームメモリM0,M1,M
2,M3の各々のバンクβ0,β1の格納データ内容を
示した説明図である。
Also, the case where the two-dimensional data access is set to two lines has been described as an example. For example, in the case of four lines, four horizontal DDAs, four 4 × 1 pixel buffers, and four frame memories are provided in FIG. Then, the writing process of the pixel data may be performed as shown in FIG. FIG. 3A is an explanatory diagram showing a data arrangement corresponding to a dot arrangement on a screen.
FIG. 4B shows four frame memories M0, M1, and M.
FIG. 3 is an explanatory diagram showing the contents of data stored in banks β0 and β1 of M2 and M3.

【0050】例えば、データA0,B0,C0,D0、
データA1,B1,C1,D1、データA2,B2,C
2,D2、データA3,B3,C3,D3、…の2次元
書き込みは、 「M0(β0),M1(β0),M2(β0),M3
(β0)」 「M1(β1),M2(β1),M3(β1),M0
(β1)」 「M2(β0),M3(β0),M0(β0),M1
(β0)」 「M3(β1),M0(β1),M1(β1),M2
(β1)」 …のごとく行われることになる。
For example, data A0, B0, C0, D0,
Data A1, B1, C1, D1, data A2, B2, C
, D2, and data A3, B3, C3, D3,... Are written as “M0 (β0), M1 (β0), M2 (β0), M3
(Β0) ”“ M1 (β1), M2 (β1), M3 (β1), M0
(Β1) ”“ M2 (β0), M3 (β0), M0 (β0), M1
(Β0) ”“ M3 (β1), M0 (β1), M1 (β1), M2
(Β1) ”...

【0051】以上説明した例では、データA0,A1,
A2,A3,…An-1 ,An ,…とデータB0,B1,
B2,B3,…,Bn-1 ,Bn ,…の各データA,Bに
ついて互いにフレームメモリは異なるがバンク番号が共
通するように書き込むとともに、データAn-1 とデータ
n 、及びデータBn-1 とデータBn の各々の前後関係
では、互いに異なるフレームメモリの異なる番号のバン
クに書き込むことを繰り返すなかで、前回と同一のフレ
ームメモリの異なる番号のバンクに書き込む手順を前記
繰り返しの回数αが4となるごとに挿入したが、繰り返
し回数αが4である場合に限らず、α=2L (Lは自然
数から選ばれる任意の数値)の条件を満たせばよい。
In the example described above, the data A0, A1,
A2, A3,... A n−1 , A n ,.
B2, B3, ..., B n -1, B n, ... each data A, with different but written as bank number is common frame memory together for B, the data A n-1 and the data A n, and data In the context of each of B n-1 and data B n , while writing to different numbers of banks of different frame memories is repeated, the procedure of writing to different numbers of banks of the same frame memory as the previous time is repeated. The insertion is performed every time the number of times α becomes 4. However, the present invention is not limited to the case where the number of times of repetition α is 4, and may satisfy the condition of α = 2 L (L is an arbitrary number selected from natural numbers).

【0052】α=2(L=1)の場合であれば、データ
A0,B0、データA1,B1、データA2,B2、デ
ータA3,B3、…の2次元書き込みは、 データA0,B0を「M0(β0),M1(β0)」に データA1,B1を「M1(β1),M0(β1)」に データA2,B2を「M1(β0),M0(β0)」に データA3,B3を「M0(β1),M1(β1)」に データA4,B4を「M0(β0),M1(β0)」に データA5,B5を「M1(β1),M0(β1)」に データA6,B6を「M1(β0),M0(β0)」に データA7,B7を「M0(β1),M1(β1)」に …のごとくなる。図13は、α=2とした場合のフレー
ムメモリM0,M1の各バンクの書込データ内容を示し
ている。また、図14(a)はα=2とした場合のリー
ドタイミングを示し、同図(b)はライトタイミングを
示している。タイミング自体は、図9の場合と異なると
ころはない。
If α = 2 (L = 1), two-dimensional writing of data A0, B0, data A1, B1, data A2, B2, data A3, B3,. M0 (β0), M1 (β0) ”for data A1, B1 for“ M1 (β1), M0 (β1) ”for data A2, B2 for“ M1 (β0), M0 (β0) ”for data A3, B3 Data A4, B4 for “M0 (β1), M1 (β1)” Data A5, B5 for “M0 (β1), M0 (β1)” Data A6, B6 To “M1 (β0), M0 (β0)” and data A7, B7 to “M0 (β1), M1 (β1)”. FIG. 13 shows the contents of write data in each bank of the frame memories M0 and M1 when α = 2. FIG. 14A shows the read timing when α = 2, and FIG. 14B shows the write timing. The timing itself is not different from the case of FIG.

【0053】α=8(L=3)の場合であれば、データ
A0,B0、データA1,B1、データA2,B2、デ
ータA3,B3、…の2次元書き込みは、 データA0,B0を「M0(β0),M1(β0)」に データA1,B1を「M1(β1),M0(β1)」に データA2,B2を「M0(β0),M1(β0)」に データA3,B3を「M1(β1),M0(β1)」に データA4,B4を「M0(β0),M1(β0)」に データA5,B5を「M1(β1),M0(β1)」に データA6,B6を「M0(β0),M1(β0)」に データA7,B7を「M1(β1),M0(β1)」に データA8,B8を「M1(β0),M0(β0)」に データA9,B9を「M0(β1),M1(β1)」に データA10,B10を「M1(β0),M0(β0)」に データA11,B11を「M0(β1),M1(β1)」に データA12,B12を「M1(β0),M0(β0)」に データA13,B13を「M0(β1),M1(β1)」に データA14,B14を「M1(β0),M0(β0)」に データA15,B15を「M0(β1),M1(β1)」に …のごとくなる。図15は、α=8とした場合のフレー
ムメモリM0,M1の各バンクの書込データ内容を示し
ている。また、図16(a)はα=8とした場合のリー
ドタイミングを示し、同図(b)はライトタイミングを
示している。タイミング自体は、図9の場合と異なると
ころはない。
If α = 8 (L = 3), two-dimensional writing of data A0, B0, data A1, B1, data A2, B2, data A3, B3,. M0 (β0), M1 (β0) ”for data A1, B1 for“ M1 (β1), M0 (β1) ”for data A2, B2 for“ M0 (β0), M1 (β0) ”for data A3, B3 Data A4, B4 for “M1 (β1), M0 (β1)” Data A5, B5 for “M1 (β1), M0 (β1)” Data A6, B6 To "M0 (β0), M1 (β0)" Data A7, B7 to "M1 (β1), M0 (β1)" Data A8, B8 to "M1 (β0), M0 (β0)" Data A9, B9 is set to “M0 (β1), M1 (β1)”. Data A10 and B10 are set to “M1 (β0), M1”. (Β0) ”for data A11, B11 for“ M0 (β1), M1 (β1) ”for data A12, B12 for“ M1 (β0), M0 (β0) ”for data A13, B13 for“ M0 (β1), The data A14 and B14 become “M1 (β0), M0 (β0)” and the data A15 and B15 become “M0 (β1) and M1 (β1)”. FIG. 15 shows the write data contents of each bank of the frame memories M0 and M1 when α = 8. FIG. 16A shows the read timing when α = 8, and FIG. 16B shows the write timing. The timing itself is not different from the case of FIG.

【0054】なお、上記の図9、図14、及び図16で
は、バンクβ0のラスアドレス(R0)を設定した2ク
ロック後にバンクβ1のラスアドレス(R1)を設定
し、同一バンクから2度続けて表示リードを行っている
が、バンクβ0のラスアドレス(R0)を設定して直ち
にバンクβ1のラスアドレス(R1)を設定し得る場合
には、バンクβ0とバンクβ1を交互にリードすること
もできる。また、αの大小は、リードデータを一時的に
保持するバッファの大きさに影響を与えるものであり、
αが小さい方がバッファ量を小さくすることができる。
In FIG. 9, FIG. 14, and FIG. 16, the lath address (R1) of the bank β1 is set two clocks after the lath address (R0) of the bank β0 is set, and the same address is applied twice from the same bank. In this case, when the lath address (R0) of the bank β0 is set and the lath address (R1) of the bank β1 can be immediately set, the bank β0 and the bank β1 may be alternately read. it can. Also, the magnitude of α affects the size of the buffer that temporarily holds the read data,
The smaller α is, the smaller the buffer amount can be.

【0055】(実施の形態2)次に、この発明の他の実
施の形態を図19を用いて説明する。図19(a)は、
画面上のドット配置に対応させてデータ配置を示した説
明図であり、図19(b)は、2つのフレームメモリM
0,M1の各々のバンクβ0,β1の格納データ内容を
示した説明図である。
(Embodiment 2) Next, another embodiment of the present invention will be described with reference to FIG. FIG. 19 (a)
FIG. 19B is an explanatory diagram showing the data arrangement corresponding to the dot arrangement on the screen. FIG.
FIG. 7 is an explanatory diagram showing the contents of data stored in banks β0 and β1 of 0 and M1, respectively.

【0056】この実施の形態では、フレームメモリM
0,M1の各々のバンクβ0,β1への2次元的なデー
タ書き込みを、描画面上の互いに隣接する水平方向のA
ラインとBラインにおける各々の書込単位であるデータ
A0,A1,A2,A3,…A n-1 ,An ,…とデータ
B0,B1,B2,B3,…,Bn-1 ,Bn ,…につい
て、 データA0,B0を「M0(β0),M1(β0)」に データA1,B1を「M1(β0),M0(β0)」に データA2,B2を「M0(β1),M1(β1)」に データA3,B3を「M1(β1),M0(β1)」に …のごとく、データA,Bについて互いにフレームメモ
リは異なるがバンク番号が共通するように書き込むとと
もに、データAn-1 とデータAn 、及びデータBn-1
データBn の各々の前後関係では、互いにフレームメモ
リは異なるが同一番号のバンクに書き込むことを2回ず
つ行うことを繰り返す。
In this embodiment, the frame memory M
0, M1 two-dimensional data to each bank β0, β1
Data writing in the horizontal direction A adjacent to each other on the drawing surface.
Data that is each writing unit in line and B line
A0, A1, A2, A3,... A n-1, An, ... and data
B0, B1, B2, B3, ..., Bn-1, Bn, ...
The data A0 and B0 are converted to “M0 (β0), M1 (β0)”. The data A1 and B1 are converted to “M1 (β0), M0 (β0)”. )) And data A3 and B3 as “M1 (β1), M0 (β1)”.
If the banks are written differently but have the same bank number,
Data An-1And data An, And data Bn-1When
Data BnIn the context of each
Rewriting is different, but writing to the same numbered bank twice
Repeat what you do.

【0057】ここで、各フレームメモリMに着目する
と、β0→β0→β1→β1のごとくなるから、バンク
に対する一つ置きの交互使用にはならない。即ち、バン
クに対して二つ置きの交互使用となってしまう。
Here, paying attention to each frame memory M, the order becomes β0 → β0 → β1 → β1, so that every other bank is not used alternately. That is, every other bank is used alternately.

【0058】しかしながら、データ読み出しを、 「M0(β0),M1(β0)」 「M0(β1),M1(β1)」 「M0(β0),M1(β0)」 「M0(β1),M1(β1)」 …のごとく行えば、(A0/A1)、(A2/A3)、
…のごとく、データを連続させて読み出すことができる
という利点がある。即ち、前述の実施の形態1であれ
ば、先にも述べたが、読み出しデータの連続性を確保し
ようとすると、各フレームメモリM0,M1において互
いにバンクを違えて用いるとともに同一のバンクに対す
るアクセスを2回ずつ続けて行うといった工夫が必要で
ある。これに対し、この実施の形態であれば、かかる工
夫なしに読み出しデータの連続性を確保することができ
るという利点がある。
However, the data reading is performed as follows: "M0 (β0), M1 (β0)", "M0 (β1), M1 (β1)", "M0 (β0), M1 (β0)", "M0 (β1), M1 ( β1) ”..., then (A0 / A1), (A2 / A3),
.. Has the advantage that data can be read out continuously. That is, in the first embodiment, as described above, in order to ensure the continuity of the read data, in each of the frame memories M0 and M1, the banks are used differently, and the access to the same bank is performed. It is necessary to devise two consecutive times. On the other hand, according to this embodiment, there is an advantage that continuity of read data can be ensured without such a device.

【0059】(実施の形態3)次に、この発明の他の実
施の形態について図20および図21を用いて説明す
る。図20(a)は、画面上のドット配置に対応させて
データ配置を示した説明図であり、図20(b)は、2
つのフレームメモリM0,M1の各々のバンクβ0,β
1の格納データ内容を示した説明図である。
(Embodiment 3) Next, another embodiment of the present invention will be described with reference to FIGS. FIG. 20A is an explanatory diagram showing the data arrangement corresponding to the dot arrangement on the screen, and FIG.
Banks β0, β of the two frame memories M0, M1
FIG. 3 is an explanatory diagram showing the contents of storage data of No. 1;

【0060】この実施の形態では、フレームメモリM
0,M1の各々のバンクβ0,β1への2次元的なデー
タ書き込みを、描画面上の互いに隣接する水平方向のA
ラインとBラインにおける各々の書込単位であるデータ
A0,A1,A2,A3,…A n-1 ,An ,…とデータ
B0,B1,B2,B3,…,Bn-1 ,Bn ,…につい
て、 データA0,B0を「M0(β0),M1(β0)」に データA1,B1を「M0(β1),M1(β1)」に データA2,B2を「M1(β0),M0(β0)」に データA3,B3を「M1(β1),M0(β1)」に …のごとく、データA,Bについて互いにフレームメモ
リは異なるがバンク番号が共通するように書き込むとと
もに、データAn-1 とデータAn 、及びデータBn-1
データBn の各々の前後関係では、互いにバンク番号は
異なるが同一のフレームメモリに書き込むことを2回ず
つ行うことを繰り返す。
In this embodiment, the frame memory M
0, M1 two-dimensional data to each bank β0, β1
Data writing in the horizontal direction A adjacent to each other on the drawing surface.
Data that is each writing unit in line and B line
A0, A1, A2, A3,... A n-1, An, ... and data
B0, B1, B2, B3, ..., Bn-1, Bn, ...
Data A0 and B0 are "M0 (β0), M1 (β0)" Data A1 and B1 are "M0 (β1), M1 (β1)" Data A2 and B2 are "M1 (β0), M0 (β0) )) And data A3 and B3 as “M1 (β1), M0 (β1)”.
If the banks are written differently but have the same bank number,
Data An-1And data An, And data Bn-1When
Data BnIn each context, the bank numbers are
Write twice to different but same frame memory
Repeat what you do.

【0061】この実施の形態では、連続すべきデータが
同一フレームメモリに属することになるため、読み出し
データの連続性を確保することができない。
In this embodiment, since data to be consecutive belongs to the same frame memory, continuity of read data cannot be ensured.

【0062】従って、このデータの連続性の点では、実
施の形態2のデータの書込読出方法に対してこの実施の
形態3は不利な点を有することになるが、実施の形態2
では、データ書き込みに際し、バンクに対して二つ置き
の交互使用となったのに対し、この実施の形態3であれ
ば、バンクに対して一つ置きの交互使用が行えるという
利点を有することになる。
Therefore, in the data continuity, the third embodiment has a disadvantage with respect to the data writing / reading method of the second embodiment, but the second embodiment has a disadvantage.
In the data write operation, every other bank is used alternately in writing data. On the other hand, the third embodiment has an advantage that every other bank can be used alternately. Become.

【0063】図21は、この実施の形態におけるMUX
100a,100bとシフトレジスタ110a,110
b,110c,110dの接続構成の一例を示したブロ
ック図である。二つの入力端子In0,In1に例えば
データA0,A3がそれぞれ入力されると、そのうちの
一方がMUX100aにてシフトレジスタ110aと1
10cに与えられ、他方はMUX100bにてシフトレ
ジスタ110bと110dに与えられる。シフトレジス
タ110aと110cはいずれか一方のみが与えられた
データを保持するように図示しない信号線から制御信号
を受け、また、シフトレジスタ110bと110dもい
ずれか一方のみが与えられたデータを保持するように図
示しない信号線から制御信号を受けるようになってい
る。かかる構成により、シフトレジスタ110a,11
0b,110c,110dには、データA0,A1,A
2,A3がこの順に格納され、この順に読み出されるこ
とになる。
FIG. 21 shows a MUX in this embodiment.
100a, 100b and shift registers 110a, 110
It is the block diagram which showed an example of the connection structure of b, 110c, 110d. When, for example, data A0 and A3 are input to the two input terminals In0 and In1, respectively, one of them is shifted by the MUX 100a to the shift registers 110a and 110a.
10c, and the other is supplied to shift registers 110b and 110d in MUX 100b. One of shift registers 110a and 110c receives a control signal from a signal line (not shown) so that only one of them holds given data, and one of shift registers 110b and 110d holds only one given data. As described above, the control signal is received from a signal line (not shown). With such a configuration, shift registers 110a, 11
0b, 110c, and 110d include data A0, A1, A
2, A3 are stored in this order, and are read out in this order.

【0064】[0064]

【発明の効果】以上説明したように、本発明によれば、
1次元的データアクセスと2次元的データアクセスの両
方をシングルポートのフレームメモリを用いつつ、当該
フレームメモリに対する連続的なアクセスを時間を置か
ずに行うことが可能となり、データアクセスを高速化し
て描画性能を向上できるという効果を奏する。
As described above, according to the present invention,
It is possible to perform one-dimensional data access and two-dimensional data access using a single-port frame memory, and to perform continuous access to the frame memory without time delay, thereby increasing the speed of data access and drawing. This has the effect of improving performance.

【図面の簡単な説明】[Brief description of the drawings]

【図1】グラフィックス装置の概略構成を示すブロック
図である。
FIG. 1 is a block diagram illustrating a schematic configuration of a graphics device.

【図2】本発明のデータの書込読出方法が実施される描
画部の具体的構成を示したブロック図である。
FIG. 2 is a block diagram showing a specific configuration of a drawing unit in which the data write / read method of the present invention is implemented.

【図3】本発明の1×4ドットから成るデータ処理単位
を示す説明図である。
FIG. 3 is an explanatory diagram showing a data processing unit composed of 1 × 4 dots according to the present invention.

【図4】本発明を示す図であって、同図(a)はデータ
書込時の2次元的データアクセスの説明図であり、同図
(b)はデータ読出時の1次元的データアクセスの説明
図である。
FIGS. 4A and 4B are diagrams showing the present invention, wherein FIG. 4A is an explanatory diagram of two-dimensional data access at the time of data writing, and FIG. 4B is one-dimensional data access at the time of data reading; FIG.

【図5】本発明のシンクロナスDRAMから成るフレー
ムメモリの概念図である。
FIG. 5 is a conceptual diagram of a frame memory including a synchronous DRAM of the present invention.

【図6】同図(a)はシンクロナスDRAMのバースト
リード時のタイミングを示すタイミングチャートであ
り、同図(b)はシンクロナスDRAMのバーストライ
ト時のタイミングを示すタイミングチャートである。
FIG. 6A is a timing chart showing a burst read timing of the synchronous DRAM, and FIG. 6B is a timing chart showing a burst write timing of the synchronous DRAM.

【図7】本発明の図2のMUXとシフトレジスタの接続
構成関係の一例を示したブロック図である。
FIG. 7 is a block diagram showing an example of a connection configuration relationship between the MUX and the shift register in FIG. 2 of the present invention.

【図8】本発明を示す図であって、同図(a)は画面上
のドット配置に対応させてデータ配置を示した説明図で
あり、同図(b)及び同図(c)は、繰り返し回数αが
4である場合のフレームメモリの各々のバンクの格納デ
ータ内容を示した説明図である。
FIGS. 8A and 8B are diagrams showing the present invention, wherein FIG. 8A is an explanatory diagram showing a data arrangement corresponding to a dot arrangement on a screen, and FIG. 8B and FIG. FIG. 9 is an explanatory diagram showing the contents of data stored in each bank of the frame memory when the number of repetitions α is 4.

【図9】本発明を示す図であって、同図(a)はシンク
ロナスDRAMから成るフレームメモリの表示リード時
のタイミングを示すタイミングチャートであり、同図
(b)は同描画ライト時のタイミングを示すタイミング
チャートである(1ドットを8ビットカラーとしてい
る)。
9A and 9B are diagrams showing the present invention, wherein FIG. 9A is a timing chart showing the timing at the time of display reading of a frame memory composed of a synchronous DRAM, and FIG. 6 is a timing chart showing timing (1 dot is 8-bit color).

【図10】本発明を示す図であって、同図(a)はシン
クロナスDRAMから成るフレームメモリの表示リード
時のタイミングを示すタイミングチャートであり、同図
(b)は同描画ライト時のタイミングを示すタイミング
チャートである(1ドットを16ビットカラーとしてい
る)。
10A and 10B are diagrams showing the present invention, wherein FIG. 10A is a timing chart showing the timing at the time of display reading of a frame memory composed of a synchronous DRAM, and FIG. 6 is a timing chart showing timing (1 dot is 16-bit color).

【図11】本発明において2次元的なデータアクセスを
4ラインとした場合の説明図であって、同図(a)は画
面上のドット配置に対応させてデータ配置を示した説明
図であり、同図(b)はフレームメモリの各々のバンク
の格納データ内容を示した説明図である。
FIG. 11 is an explanatory diagram when two-dimensional data access is performed in four lines in the present invention, and FIG. 11A is an explanatory diagram showing a data arrangement corresponding to a dot arrangement on a screen. FIG. 3B is an explanatory diagram showing the contents of data stored in each bank of the frame memory.

【図12】本発明において、読み出しデータの連続を確
保する場合の表示リード時のタイミングを示すタイミン
グチャートである。
FIG. 12 is a timing chart showing the timing at the time of display reading when the continuation of read data is secured in the present invention.

【図13】本発明を示す図であって、同図(a)及び同
図(b)は、繰り返し回数αが2である場合のフレーム
メモリの各々のバンクの格納データ内容を示した説明図
である。
FIGS. 13A and 13B are diagrams showing the present invention, and FIGS. 13A and 13B are explanatory diagrams showing the contents of data stored in each bank of the frame memory when the number of repetitions α is 2. FIG. It is.

【図14】図13に対応する図であって、同図(a)は
表示リード時のタイミングを示すタイミングチャートで
あり、同図(b)は同描画ライト時のタイミングを示す
タイミングチャートである。
14A and 14B are diagrams corresponding to FIG. 13, wherein FIG. 14A is a timing chart showing a timing at the time of display reading, and FIG. 14B is a timing chart showing a timing at the time of drawing writing; .

【図15】本発明を示す図であって、同図(a)及び同
図(b)は、繰り返し回数αが8である場合のフレーム
メモリの各々のバンクの格納データ内容を示した説明図
である。
15A and 15B are diagrams showing the present invention, and FIGS. 15A and 15B are explanatory diagrams showing the contents of data stored in each bank of the frame memory when the number of repetitions α is 8. FIG. It is.

【図16】図15に対応する図であって、同図(a)は
表示リード時のタイミングを示すタイミングチャートで
あり、同図(b)は同描画ライト時のタイミングを示す
タイミングチャートである。
16 is a diagram corresponding to FIG. 15, wherein FIG. 16A is a timing chart showing a timing at the time of display reading, and FIG. 16B is a timing chart showing a timing at the time of drawing writing; .

【図17】本発明の前提となる考え方を説明する図であ
って、同図(a)は画面上のドット配置に対応させてデ
ータ配置を示した説明図であり、同図(b)及び同図
(c)はそれぞれフレームメモリの格納データ内容を示
した説明図である。
17A and 17B are diagrams for explaining the concept underlying the present invention, wherein FIG. 17A is an explanatory diagram showing a data arrangement corresponding to a dot arrangement on a screen, and FIG. FIG. 3C is an explanatory diagram showing the contents of data stored in the frame memory.

【図18】本発明の前提となる考え方を説明する図であ
って、ポリゴンデータに対する2次元書込/1次元読出
を説明する説明図である。
FIG. 18 is a diagram for explaining the concept underlying the present invention, and is an explanatory diagram for explaining two-dimensional writing / one-dimensional reading for polygon data.

【図19】本発明の実施の形態2を示す図であって、同
図(a)はデータ書込時の2次元的データアクセスの説
明図であり、同図(b)はデータ読出時の1次元的デー
タアクセスの説明図である。
FIGS. 19A and 19B are diagrams showing a second embodiment of the present invention, in which FIG. 19A is an explanatory diagram of two-dimensional data access at the time of data writing, and FIG. FIG. 3 is an explanatory diagram of one-dimensional data access.

【図20】本発明の実施の形態3を示す図であって、同
図(a)はデータ書込時の2次元的データアクセスの説
明図であり、同図(b)はデータ読出時の1次元的デー
タアクセスの説明図である。
FIG. 20 is a diagram showing a third embodiment of the present invention, wherein FIG. 20 (a) is an explanatory diagram of two-dimensional data access at the time of data writing, and FIG. 20 (b) is a diagram at the time of data reading; FIG. 3 is an explanatory diagram of one-dimensional data access.

【図21】本発明の実施の形態3を示す図であって、M
UXとシフトレジスタの接続構成の一例を示したブロッ
ク図である。
FIG. 21 is a diagram illustrating a third embodiment of the present invention,
FIG. 3 is a block diagram illustrating an example of a connection configuration between a UX and a shift register.

【符号の説明】[Explanation of symbols]

1 幾何変換部 2 描画部 3 表示部 4 垂直DDA 5 水平DDA 6 水平DDA 7 ピクセルバッファ 8 ピクセルバッファ 9 MUX 10 MUX 11 シフトレジスタ 12 FMバスコントロール 15 フレームメモリ DESCRIPTION OF SYMBOLS 1 Geometric conversion part 2 Drawing part 3 Display part 4 Vertical DDA 5 Horizontal DDA 6 Horizontal DDA 7 Pixel buffer 8 Pixel buffer 9 MUX 10 MUX 11 Shift register 12 FM bus control 15 Frame memory

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 フレームメモリを分割して用い、データ
書込時は2次元的にデータアクセスを行い、データ読出
時は1次元的にデータアクセスを行うデータの書込読出
方法であって、前記分割された個々のフレームメモリは
二つのバンクをそれぞれ備え、各フレームメモリのアク
セスに際して一方のバンクを用いたとき、次のアクセス
で他方のバンクを用いることを特徴とするデータの書込
読出方法。
1. A data writing / reading method in which a frame memory is divided and used to perform two-dimensional data access during data writing and one-dimensional data access during data reading. A method for writing and reading data, wherein each of the divided frame memories includes two banks, and when one of the banks is used for accessing each frame memory, the other bank is used for the next access.
【請求項2】 前記フレームメモリは二つに分割されて
フレームメモリM0,M1とされ、各フレームメモリM
0,M1にそれぞれバンクβ0,β1が備えられ、書込
読出データとして描画データを用いることを特徴とする
請求項1に記載のデータの書込読出方法。
2. The frame memory is divided into two frame memories M0 and M1.
2. The data writing / reading method according to claim 1, wherein banks 0 and M1 are provided in 0 and M1, respectively, and drawing data is used as write / read data.
【請求項3】 前記フレームメモリM0,M1の各々の
バンクβ0,β1への2次元的なデータ書き込みを、描
画面上の互いに隣接する水平方向のAラインとBライン
における各々の書込単位であるデータA0,A1,A
2,A3,…A n-1 ,An ,…とデータB0,B1,B
2,B3,…,Bn-1 ,Bn ,…の各データA,Bにつ
いて互いにフレームメモリは異なるがバンク番号が共通
するように書き込むとともに、データAn-1 とデータA
n 、及びデータBn-1 とデータB n の各々の前後関係で
は、互いに異なるフレームメモリの異なる番号のバンク
に書き込むことを繰り返すなかで、前回と同一のフレー
ムメモリの異なる番号のバンクに書き込む手順が前記繰
り返しの回数αがα=2L (Lは自然数から選ばれる任
意の数値)となるごとに挿入されることを特徴とする請
求項2に記載のデータの書込読出方法。
3. Each of the frame memories M0 and M1
Writing two-dimensional data to banks β0 and β1
Horizontal A and B lines adjacent to each other on the screen
A0, A1, A, which are the respective write units in
2, A3, ... A n-1, An, ... and data B0, B1, B
2, B3, ..., Bn-1, Bn, ... for each data A, B
Frame memories are different from each other but the bank numbers are common
And write data An-1And data A
n, And data Bn-1And data B nIn each context of
Are different numbered banks of different frame memories
In the same frame as the previous
The procedure for writing to banks of different numbers in
The number of repetitions α is α = 2L(L is a natural number
Each time it reaches a certain value).
A method for writing and reading data according to claim 2.
【請求項4】 前記フレームメモリM0,M1の各々の
バンクβ0,β1への2次元的なデータ書き込みを、描
画面上の互いに隣接する水平方向のAラインとBライン
における各々の書込単位であるデータA0,A1,A
2,A3,…A n-1 ,An ,…とデータB0,B1,B
2,B3,…,Bn-1 ,Bn ,…について、 データA0,B0を「M0(β0),M1(β0)」に データA1,B1を「M1(β0),M0(β0)」に データA2,B2を「M0(β1),M1(β1)」に データA3,B3を「M1(β1),M0(β1)」に …のごとく、 データA,Bについて互いにフレームメモリは異なるが
バンク番号が共通するように書き込むとともに、データ
n-1 とデータAn 、及びデータBn-1 とデータBn
各々の前後関係では、互いにフレームメモリは異なるが
同一番号のバンクに書き込むことを2回ずつ行うことを
繰り返すことを特徴とする請求項2に記載のデータの書
込読出方法。
4. Each of the frame memories M0 and M1
Writing two-dimensional data to banks β0 and β1
Horizontal A and B lines adjacent to each other on the screen
A0, A1, A, which are the respective write units in
2, A3, ... A n-1, An, ... and data B0, B1, B
2, B3, ..., Bn-1, Bn,..., Data A0, B0 to “M0 (β0), M1 (β0)” Data A1, B1 to “M1 (β0), M0 (β0)” Data A2, B2 to “M0 (β1), M1 (Β1), data A3 and B3 as “M1 (β1), M0 (β1)”, and so on.
Write so that the bank number is common, and
An-1And data An, And data Bn-1And data Bnof
In each context, the frame memories are different from each other,
Writing to the same numbered bank twice
3. The data book according to claim 2, wherein the data is repeated.
Reading method.
【請求項5】 前記フレームメモリM0,M1の各々の
バンクβ0,β1への2次元的なデータ書き込みを、描
画面上の互いに隣接する水平方向のAラインとBライン
における各々の書込単位であるデータA0,A1,A
2,A3,…A n-1 ,An ,…とデータB0,B1,B
2,B3,…,Bn-1 ,Bn ,…について、 データA0,B0を「M0(β0),M1(β0)」に データA1,B1を「M0(β1),M1(β1)」に データA2,B2を「M1(β0),M0(β0)」に データA3,B3を「M1(β1),M0(β1)」に …のごとく、 データA,Bについて互いにフレームメモリは異なるが
バンク番号が共通するように書き込むとともに、データ
n-1 とデータAn 、及びデータBn-1 とデータBn
各々の前後関係では、互いにバンク番号は異なるが同一
のフレームメモリに書き込むことを2回ずつ行うことを
繰り返すことを特徴とする請求項2に記載のデータの書
込読出方法。
5. Each of the frame memories M0 and M1
Writing two-dimensional data to banks β0 and β1
Horizontal A and B lines adjacent to each other on the screen
A0, A1, A, which are the respective write units in
2, A3, ... A n-1, An, ... and data B0, B1, B
2, B3, ..., Bn-1, Bn,..., Data A0, B0 to “M0 (β0), M1 (β0)” Data A1, B1 to “M0 (β1), M1 (β1)” Data A2, B2 to “M1 (β0), M0 (Β0) ”for data A3 and B3 for“ M1 (β1), M0 (β1) ”.
Write so that the bank number is common, and
An-1And data An, And data Bn-1And data Bnof
In each context, the bank numbers are different but the same
Writing to the frame memory twice
3. The data book according to claim 2, wherein the data is repeated.
Reading method.
JP9120598A 1997-05-12 1997-05-12 How to write and read data Pending JPH10312181A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9120598A JPH10312181A (en) 1997-05-12 1997-05-12 How to write and read data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9120598A JPH10312181A (en) 1997-05-12 1997-05-12 How to write and read data

Publications (1)

Publication Number Publication Date
JPH10312181A true JPH10312181A (en) 1998-11-24

Family

ID=14790231

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9120598A Pending JPH10312181A (en) 1997-05-12 1997-05-12 How to write and read data

Country Status (1)

Country Link
JP (1) JPH10312181A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100307597B1 (en) * 1999-08-13 2001-11-01 윤종용 Image data storing method and retriving method therefor for display device adapted for pulse width driving

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100307597B1 (en) * 1999-08-13 2001-11-01 윤종용 Image data storing method and retriving method therefor for display device adapted for pulse width driving

Similar Documents

Publication Publication Date Title
US5170468A (en) Graphics system with shadow ram update to the color map
US5029105A (en) Programmable pipeline for formatting RGB pixel data into fields of selected size
JPH08278779A (en) Frame memory device for graphics
US4876663A (en) Display interface system using buffered VDRAMs and plural shift registers for data rate control between data source and display
JPH08212382A (en) Z-buffer tag memory configuration
JP3083724B2 (en) Graphic system signal processing method and apparatus
JPH09282136A (en) How to write and read data
JPH10312181A (en) How to write and read data
JPH10177647A (en) Image processing device
JP3001763B2 (en) Image processing system
JPS60230273A (en) Expansion/reduction memory device
JP2946360B2 (en) Image data interpolation method and apparatus
JP4381778B2 (en) Texture processing device
JP2000232623A (en) Video memory circuit
JP3016372B2 (en) Image processing device
JPH04225481A (en) Storage device
JPH0632041B2 (en) Depth information buffer control device
JP2551045B2 (en) Image memory data processing controller
JPH09134439A (en) Image processing device
JPH1049705A (en) Z-buffer hidden surface erasing device
JPS63149690A (en) Information processor
JPS6030037B2 (en) Memory addressing method
JPH11162158A (en) Memory device and image generation device
JPH08286886A (en) Graphics circuit
JPH04278652A (en) Graphic drawing device and its memory access method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040105

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040204

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080220

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090220

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20100220

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20100220

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110220

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20120220

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20130220

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20130220

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140220

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250