JPH01114990A - Texture mapping device - Google Patents

Texture mapping device

Info

Publication number
JPH01114990A
JPH01114990A JP62272861A JP27286187A JPH01114990A JP H01114990 A JPH01114990 A JP H01114990A JP 62272861 A JP62272861 A JP 62272861A JP 27286187 A JP27286187 A JP 27286187A JP H01114990 A JPH01114990 A JP H01114990A
Authority
JP
Japan
Prior art keywords
data
memory
double buffer
buffer memory
holding means
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
JP62272861A
Other languages
Japanese (ja)
Inventor
Tomoaki Ueda
智章 上田
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.)
Daikin Industries Ltd
Original Assignee
Daikin Industries 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 Daikin Industries Ltd filed Critical Daikin Industries Ltd
Priority to JP62272861A priority Critical patent/JPH01114990A/en
Priority to US07/260,513 priority patent/US4945495A/en
Publication of JPH01114990A publication Critical patent/JPH01114990A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To rapidly execute texture mapping processing as a whole by temporarily storing information on a source vector read out of a source information holding means and writing the information in any one of blocks through a duplicated buffer memory. CONSTITUTION:Address information is successively changed in synchronism with successively supplied structural plane coordinate information and information on the source vector 48 read out correspondingly to the structural plane coordinates is temporarily stored in a holding means 43. The source information is read out of the means 43 in the order of storage in synchronism with the display plane coordinate forming operation on a display vector 49 corresponding to the vector 48 and supplied to an object information holding means 41. The holding means 41 is constituted of block memories 410-413, double buffer memories 450-453 are correspondingly connected to the block memories 410-413, timing control means 460-463 input the display plane coordinate information, decode the lower digit of the information and generate picture element information writing control signals through the double buffer memories to supply source information. In said constitution, mapping graphic information of high quality can be sufficiently rapidly displayed without stopping the operation of a linear interpolation calculator 43.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 この発明はテクスチャマツピング装置に関し、さらに詳
細にいえば、直線補間演算器(以下、ODAと略称する
)の演算動作を停止させることなく、ソースベクトル上
の画素データの読出し、およびディスティネーションベ
クトル上の画素データの書込みを行なわせることができ
る新規なテクスチャマツピング装置を提供することを目
的としている。
[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to a texture mapping device, and more specifically, the present invention relates to a texture mapping device, and more specifically, the present invention relates to a texture mapping device. It is an object of the present invention to provide a novel texture mapping device that can read pixel data on a source vector and write pixel data on a destination vector.

〈従来の技術〉 従来から、予め画像入力装置により取込まれた図形デー
タ、或は図形描画装置により描画された図形データ等の
所望の領域を、所望の立体図形の表面に投影することに
より、デザイン設計、影像効果の確認等を行なう要求が
強く、このような要求を満足させるために、所望の2次
元図形を所望の3次元図形上に投影して表示するテクス
チャマツピング装置が提供されている。
<Prior Art> Conventionally, by projecting a desired area of figure data, such as figure data input in advance by an image input device or figure data drawn by a figure drawing device, onto the surface of a desired three-dimensional figure, There is a strong demand for designing designs, checking image effects, etc., and in order to satisfy these demands, texture mapping devices that project and display a desired two-dimensional figure onto a desired three-dimensional figure have been provided. There is.

従来から提供されているテクスチャマツピング装置とし
ては、2次元のテクスチャ原図をスキャンライン方向の
線分に分解し、ディスプレイ面においてスキャンライン
方向に走査しながら、逆投視変換を各画素単位で行なう
ようにしたもの([テクスチャマツピングについて(1
)」柴本猛、小林誠 講演論文集l (社)情報処理学
会 昭和60年9月9日発行)が提供されていた。
Conventionally available texture mapping devices decompose a two-dimensional texture original into line segments in the scan line direction, and perform inverse projection transformation for each pixel while scanning in the scan line direction on the display surface. ([About texture mapping (1)
)'' Takeshi Shibamoto, Makoto Kobayashi Collected Lectures, Information Processing Society of Japan, September 9, 1985) was provided.

〈発明が解決しようとする問題点〉 上記の構成のものにおいては、1画素単位にマトリクス
演算を行なう必要があるため、処理速度が遅くなるとと
もに、余分なメモリが必要になるという問題がある。ま
た、テクスチャ原図を構成する単位多角形と、ディスプ
レイ面における図形を構成する単位多角形との組合せに
よっては、正確なマツピングを行なうことができず、デ
ィスプレイ面において表示される図形データの品°質が
低下してしまうことになるという問題もある。
<Problems to be Solved by the Invention> In the configuration described above, since it is necessary to perform matrix calculation on a pixel-by-pixel basis, there are problems in that the processing speed is slow and extra memory is required. In addition, depending on the combination of the unit polygons that make up the texture original image and the unit polygons that make up the figure on the display surface, accurate mapping may not be possible, and the quality of the figure data displayed on the display surface may be affected. There is also the problem that this results in a decrease in

このような問題点を解消するために、本件発明者は、デ
ィスプレイ側単位多角形領域の互に対向する2辺を直線
補間するとともに、テクスチャ側単位多角形領域の互に
対向する2辺を直線補間し、上記各直線補間データに基
いて定まる線分の補間演算を互に同期させて行ない、テ
クスチャ側の線分補間演算により得られるアドレスデー
タに基いてマツピングメモリからデータを読出してディ
スプレイ平面に供給することにより、余分なメモリを必
要とせず、しかも高品質のマツピング図形データを高速
に表示することができるテクスチャマツピング装置を考
えた。
In order to solve these problems, the inventor of the present invention linearly interpolated the two opposing sides of the unit polygonal area on the display side, and linearly interpolated the two opposing sides of the unit polygonal area on the texture side. Interpolation is performed, and line segment interpolation calculations determined based on the above-mentioned linear interpolation data are performed in synchronization with each other. Data is read from the mapping memory based on the address data obtained by the line segment interpolation calculation on the texture side, and the display plane is read out. We have devised a texture mapping device that does not require extra memory and can display high-quality mapping figure data at high speed by supplying data to the texture mapper.

しかし、このテクスチャマツピング装置においても、十
分な高速化を達成することができず、より一層の改善が
必要であった。
However, even with this texture mapping device, a sufficient increase in speed could not be achieved, and further improvements were needed.

さらに詳細に説明すると、−膜内に、グラフィックディ
スプレイ装置において任意の方向を向くベクトル(以下
、ランダムベクトルと略称する)を高速に描画するため
には、画像メモリ(以下、フレームメモリと称呼づる)
を、実際の表示を行なうために必要な容量よりも多くす
ることが必要である。例えば、1280x1024画素
の表示しか行なわない場合についてみれば、256にピ
ットのダイナミックランダムアクセスメモリ(以下、D
RAMと略称する)を5個使用することにより、十分な
メモリ空間を達成することができるのであるが、各DR
AM毎のビット幅が4である関係上、全体として20ビ
ツトのビット幅しか得ることができず、しかも、DRA
Mの個数が5であり、2の累乗で表現できないのである
から、十分なデータ入出力速度を達成することができな
いことになる。しかし、フレームメモリの容量を204
8x1024画素に設定すれば、DRAM8個でメモリ
空間を達成することになり、全体としてのビット幅が3
2になるとともに、DRAMの個数が2の累乗になるの
で、十分なデータ入出力速度を達成することができる。
To explain in more detail: - In order to draw vectors pointing in arbitrary directions (hereinafter referred to as random vectors) in a graphic display device at high speed, image memory (hereinafter referred to as frame memory) is required.
It is necessary to make the capacity larger than that required for actual display. For example, in the case where only 1280x1024 pixels are displayed, there are 256 pits in the dynamic random access memory (hereinafter referred to as D
Sufficient memory space can be achieved by using five RAMs (abbreviated as RAM), but each DR
Since the bit width for each AM is 4, a total bit width of only 20 bits can be obtained.
Since the number of M is 5 and cannot be expressed as a power of 2, a sufficient data input/output speed cannot be achieved. However, the frame memory capacity is 204
If it is set to 8x1024 pixels, the memory space will be achieved with 8 DRAMs, and the overall bit width will be 3.
2, and the number of DRAMs becomes a power of 2, so a sufficient data input/output speed can be achieved.

但し、後者の場合には、必然的に768X1024画素
分の空領域が発生することになる。したがって、この空
領域をテクスチャマツピングメモリ領域として使用する
ことが、特別にメモリを設ける必要がないので構成の簡
素化の面から非常に有利になるのであるが、上記本件発
明者が考えたテクスチャマツビンタ装置を適用する場合
には、1画素のマツピングを行なうために、フレームメ
モリの互に異なるアドレスをアクセスすることが必要に
なり、直線補間演算器の動作速度が早くても、フレーム
メモリに対するアクセス所要時間がかなり長いのである
から、全体としてテクスチャマツピング速度を余り向上
させることができないのである。
However, in the latter case, an empty area of 768×1024 pixels will inevitably occur. Therefore, using this empty area as a texture mapping memory area is very advantageous in terms of simplifying the configuration since there is no need to provide a special memory. When applying the Matsu Binta device, it is necessary to access different addresses in the frame memory in order to map one pixel, and even if the linear interpolation calculator has a fast operation speed, the frame memory Since the access time is quite long, the overall texture mapping speed cannot be improved much.

さらに詳細に説明すると、上記フレームメモリとしては
、著しく大容量であること、および消費電力を小さくす
る必要があること等を考慮して、−殻内にD RA M
が使用されるのであるが、DRAMのアクセス所要時間
は230〜4 Q Q n5ec程度であり、例えば、
400 n5ecであると仮定すれば、3000ポリゴ
ン/秒(但し、1ポリゴンは任意方向に傾斜した20X
20画素のものである)程度のマツピング速度しか達成
することができないという問題もある。この問題は、線
分の直線補間演算を行なう場合に、スキャンライン方向
の線分の直線補間演算のみに限定することができれば、
1回のアクセスで複数画素データの書込み、続出しを行
なうことができるので、1画素当りに換算した場合のア
クセス所要時間を直線補間演算所要時間にほぼ等しい時
間にすることができるのである。しかし、L記のように
、互に対向する辺の補間演算を行なって得られたデータ
に基いて定まる線分の直線補間演算を行なう場合には、
スキャンライン方向に存在する画素数が著しく少なくな
ってしまい、著しく少ない画素データの書込み、或は読
出しのために上述した230〜400 n5ecのアク
セス所要時間が必要になってしまうので、全体としてテ
クスチャマツピング速度を余り向上させることができな
いのである。
To explain in more detail, in consideration of the extremely large capacity of the frame memory and the need to reduce power consumption, the frame memory has a DRAM inside the shell.
is used, but the time required to access DRAM is about 230~4QQn5ec, for example,
Assuming 400 n5ec, 3000 polygons/second (however, one polygon is 20X inclined in any direction)
There is also the problem that a mapping speed of only about 20 pixels can be achieved. This problem can be solved by limiting the linear interpolation calculation of line segments to only the linear interpolation calculation of line segments in the scan line direction.
Since multiple pixel data can be written and successively output in one access, the time required for access when converted to one pixel can be made almost equal to the time required for linear interpolation calculation. However, when performing linear interpolation calculations on line segments determined based on data obtained by performing interpolation calculations on mutually opposing sides, as shown in L,
The number of pixels existing in the scan line direction is significantly reduced, and the above-mentioned access time of 230 to 400 n5ec is required to write or read the significantly small number of pixel data. Therefore, the ping speed cannot be improved much.

〈発明の目的〉 この発明は上記の問題点に鑑みてなされたものであり、
テクスチャ平面上の所望の領域の画素データをディスプ
レイ平面上の3次元図形の所望領域に対して著しく高速
に投影することができるテクスチャマツピング装置を提
供することを目的としている。
<Object of the invention> This invention was made in view of the above problems,
It is an object of the present invention to provide a texture mapping device that can project pixel data of a desired area on a texture plane onto a desired area of a three-dimensional figure on a display plane at extremely high speed.

く問題点を解決するための手段〉 上部の目的を達成するための、この発明のテクスチャマ
ツピング装置は、順次供給されるテクスチャ平面座標デ
ータに同期してアドレスデータが順次変化させられ、テ
クスチャ平面座標データに対応して読出されるソースベ
クトル上のソースデータを保持するソースデータ一時保
持手段と、ソースベクトルに対応するディスティネーシ
ョンベクトル上のディスプレイ平面座標データ生成動作
と同期してソースデータ一時保持手段に保持されている
ソースデータを格納順に読出してディスティネーション
データ保持手段に供給するソースデータ供給手段とを有
しており、しかも、上記ディスティネーションデータ保
持手段が、複数個のブロックメモリで構成されていると
ともに、上記ソースデータ供給手段が、各ブロックメモ
リに対応させてダブルバッファメモリ、およびディスプ
レイ平面座標データを入力として下位桁をデコードし、
デコード信号に基いてダブルバッフアメエリを通しての
画素データの僕込みを行なわせる制御信号を生成するタ
イミング制御手段を有している。
Means for Solving the Problems> In order to achieve the above object, the texture mapping device of the present invention sequentially changes address data in synchronization with sequentially supplied texture plane coordinate data. source data temporary holding means for holding source data on a source vector read in correspondence with coordinate data; and source data temporary holding means in synchronization with an operation of generating display plane coordinate data on a destination vector corresponding to the source vector. and source data supply means for reading out the source data held in the memory in the order in which they are stored and supplying the read data to the destination data holding means, and furthermore, the destination data holding means is composed of a plurality of block memories. At the same time, the source data supply means inputs the double buffer memory and display plane coordinate data corresponding to each block memory and decodes the lower digits,
It has timing control means for generating a control signal for causing pixel data to be transferred through the double buffer memory based on the decode signal.

但し、上記ソースデータ保持手段と、ディス1イネ−ジ
ョンデータ保持手段とが、互に同一・の画像メモリ上に
割当てられていることが好ましい。
However, it is preferable that the source data holding means and the disinduction data holding means are allocated to the same image memory.

また、上記ソースデータ保持手段が、複数個のブロック
メモリで構成されているとともに、各ブロックメモリに
対応させて書込み用ダブルバッファメモリ、読出し用ダ
ブルバッファメモリ、およびテクスチャ平面座標データ
を入力として下位桁をデコードし、デ」−ド信号に基い
て書込み用ダブルバッファメモリを通しての画素データ
の書込みを行なわせるMill信号を生成するタイミン
グ制御手段、および上記テクスチャ平面座標データを所
定時間だけ遅延させて読出し用ダブルバッファメモリに
供給する遅延手段を有していることが好ましい。
In addition, the source data holding means is composed of a plurality of block memories, and a double buffer memory for writing, a double buffer memory for reading, and a lower digit by inputting the texture plane coordinate data in correspondence with each block memory. timing control means for decoding and generating a Mill signal for writing pixel data through the double buffer memory for writing based on the dead signal; and timing control means for delaying the texture plane coordinate data by a predetermined time for reading. Preferably, it includes delay means for supplying the double buffer memory.

そして、上記遅延手段としては、FIFOメモリ、およ
びデコーダで構成されていてもよく、或は、所定R間遅
延させられたタイミングでテクスチャ平面座標データを
生成する直線補間演算器、およびデコーダで構成されて
いてもよい。
The delay means may be composed of a FIFO memory and a decoder, or may be composed of a linear interpolation calculator that generates texture plane coordinate data at a timing delayed by a predetermined period R, and a decoder. You can leave it there.

また、上記ソースデータ一時保持手段としては、スタテ
ィックランダムアクセスメモリ(以下、SRAMと略称
する)であってもよく、或は、FIFOメモリであって
もよい。
Further, the source data temporary holding means may be a static random access memory (hereinafter abbreviated as SRAM) or a FIFO memory.

さらに、上記タイミング制御手段としては、スキャン方
向の座標データの下位桁をデコードしてダブルバッファ
メモリの切替えを行なわせるt/J III信号を生成
するとともに、スキャン方向と直角な方向の座標データ
の下位桁をデコードしてダブルバッファの選択を行なわ
せる制御信号を生成するものであることが好ましい。
Furthermore, the timing control means generates a t/J III signal that decodes the lower digits of the coordinate data in the scan direction to switch the double buffer memory, and also generates the t/J III signal that switches the double buffer memory. Preferably, the control signal decodes the digit and generates a control signal for selecting the double buffer.

また、上記タイミング制御手段としては、座標データの
下位所定桁が変化するタイミングで制御信号を生成する
ものであることが好ましい。
Preferably, the timing control means generates a control signal at a timing when a predetermined lower digit of the coordinate data changes.

さらに、上記タイミング制御手段としては、スキャン方
向の座標データについては、ダブルバッファメモリの容
量に対応する下位所定桁が変化するタイミングでllI
w信号を生成し、スキャン方向と直角な方向の座標デー
タについては、最も最下位桁が変化するタイミングで1
jlIll信号を生成するものであることが好ましい。
Further, as for the coordinate data in the scan direction, the timing control means is configured to control the coordinate data in the scan direction at the timing when the lower predetermined digit corresponding to the capacity of the double buffer memory changes.
For the coordinate data in the direction perpendicular to the scan direction, 1 is generated at the timing when the lowest digit changes.
Preferably, it generates a jlIll signal.

さらには、上記タイミングilJ″m手段としては、O
DAから出力される描画終了信号をも入力としてダブル
バッファメモリの切替えを行なわせる制御信号を生成す
るものであることが好ましい。
Furthermore, as the timing ilJ″m means, O
Preferably, the drawing end signal output from the DA is also input to generate a control signal for switching the double buffer memory.

また、上記画像メモリが所定サイズの複数駒のブロック
メモリで構成されているとともに、各ブロックメモリが
、互に異なる画像データを格納すべく2分割されている
ことが好ましく、デュアルポートDRAMであることが
一層好ましい。
Further, it is preferable that the image memory is constituted by a block memory of a plurality of frames of a predetermined size, and that each block memory is divided into two to store mutually different image data, and that it is a dual port DRAM. More preferred.

く作用〉 以上の構成のテクスチャマツピング装置であれば、投影
するための1i像情報を保持しているソースデータ保持
手段に対してテクスチャ平面座標データを供給すること
によりソースデータを読出し、表示のための画像情報を
保持するディスティネーションデータ保持手段に対して
、供給されるディスプレイ平面座標データに対応させて
ソースデータを供給することによりテクスチャマツピン
グを行なう場合において、テクスチャ平面座標データを
゛供給することによりソースデータ保持手段からソース
ベクトル上の画素のカラーデータを順次読出し、上記テ
クスチャ平面座標データに同期してアドレスデータが順
次変化させられるソースデータ一時保持手段に順次格納
する。そして、ソースデータ供給手段により、ソースベ
クトルに対応するディスデイネーションベクトル上のデ
ィスプレイ平面座標データ生成動作と同期してソースデ
ータ一時保持手段に保持されているカラーデータを格納
順に読出してディスティネーションデータ保持手段に供
給する。この場合において、上記ディスティネーション
データ保持手段が、複数個のブロックメモリで構成され
ているとともに、上記ソースデータ供給手段が、各ブロ
ックメモリに対応させてダブルバッファメモリ、および
ディスプレイ平面座標データを入力として下位桁をデコ
ードし、デコード信号に基いてダブルバッファメモリを
通しての画素データの書込みを行なわせる制御信号を生
成プるタイミングI制御手段を有しているのであるから
、順次ソースデータ一時保持手段から読出されるカラー
データを直ちに何れかのバッファメモリに保持させ、バ
ッファメモリに保持されているデータを順次ブロックメ
モリに供給するのであるから、カラーデータ格納アドレ
スを生成する動作を中断させることなく、常時カラーデ
ータの供給を行なわせることができ、しかも、生成され
た画素データを一時的にバッフ7メモリに保持させてお
いて、順次画像メモリに書込むことができ、全体として
テクスチャマツピング速度を向上させることができる。
With the texture mapping device having the above configuration, texture plane coordinate data is supplied to the source data holding means that holds 1i image information for projection, thereby reading out the source data and displaying it. When texture mapping is performed by supplying source data in correspondence with the supplied display plane coordinate data to a destination data holding means that holds image information for the display, the texture plane coordinate data is supplied. As a result, the color data of the pixels on the source vector are sequentially read from the source data holding means and sequentially stored in the source data temporary holding means whose address data is sequentially changed in synchronization with the texture plane coordinate data. Then, the source data supply means reads out the color data held in the source data temporary holding means in the order of storage in synchronization with the display plane coordinate data generation operation on the destination vector corresponding to the source vector, and holds the destination data. Supply means. In this case, the destination data holding means is composed of a plurality of block memories, and the source data supply means receives double buffer memory and display plane coordinate data in correspondence with each block memory. Since it has a timing I control means that decodes the lower digits and generates a control signal for writing pixel data through the double buffer memory based on the decoded signal, the source data is sequentially read from the temporary storage means. The color data stored in the buffer memory is immediately stored in one of the buffer memories, and the data stored in the buffer memory is sequentially supplied to the block memory. Data can be supplied, and the generated pixel data can be temporarily held in the buffer 7 memory and sequentially written to the image memory, improving the overall texture mapping speed. be able to.

そして、F記ソースデータ保持手段と、ディスティネー
ションデータ保持手段とが、互に同一の画像メモリ上に
割当てられている場合には、メモリ数を特別に増加させ
ることなく、上記と同様の作用を達成することができる
If the source data holding means described in F and the destination data holding means are allocated to the same image memory, the same effect as described above can be achieved without increasing the number of memories. can be achieved.

また、上記ソースデータ保持手段が、複数個のブロック
メモリで構成されているとともに、各ブロックメモリに
対応させて自込み用ダブルバッファメモリ、読出し用ダ
ブルバッファメモリ、およびテクスチャ平面座標データ
を入力として下位桁をデコードし、デコード信号に基い
て書込み用ダブルバッファメモリを通しての画素データ
の書込みを行なわせる制御信号を生成するタイミング制
御手段、および上記テクスチャ平面座標データを所定時
間だけ遅延させて読出し用ダブルバッファメモリに供給
する遅延手段を有している場合には、ソースデータ保持
手段に対する読出し用のアドレスデータの供給を高速に
行なわせることができ、しかも、上記アドレスデータを
所定時間だけ遅延させて読出し用ダブルバッファメモリ
の切替え、選択を行なわせることができるので、読出し
データを高速にソースデータ一時保持手段に供給するこ
とができる。
Further, the source data holding means is composed of a plurality of block memories, and in correspondence with each block memory, a built-in double buffer memory, a read double buffer memory, and texture plane coordinate data are input to a lower level. timing control means for decoding the digit and generating a control signal for writing pixel data through the writing double buffer memory based on the decoded signal; and a reading double buffer for delaying the texture plane coordinate data by a predetermined time. When the memory is provided with a delay means for supplying the address data for reading to the source data holding means, it is possible to supply the address data for reading to the source data holding means at high speed. Since the double buffer memories can be switched and selected, read data can be supplied to the source data temporary holding means at high speed.

この場合において、上記遅延手段が、FIFOメモリ、
およびデコーダで構成されていても、或は、所定時間遅
延させられたタイミングでテクスチャ平面座標データを
生成する直線補間演算器、およびデコーダで構成されて
いても、上記と同様の作用を達成することができる。
In this case, the delay means is a FIFO memory,
and a decoder, or a linear interpolation calculator that generates texture plane coordinate data at a timing delayed by a predetermined time, and a decoder, the same effect as above can be achieved. Can be done.

さらに、上記ソースデータ一時保持手段がスタティック
ランダムアクセスメモリである場合にも、或は、FIF
Oメモリである場合にも、上記と同様の作用を達成する
ことができる。
Furthermore, even when the source data temporary holding means is a static random access memory, or a FIF
Even in the case of O memory, the same effect as described above can be achieved.

そして、上記タイミング制御手段が、スキ1rン方向の
座標データの下位桁をデコードしてダブルバッファメモ
リの切替えを行なわせるi制御信号を生成するとともに
、スキャン方向と直角な方向の座標データの下位桁をデ
コードしてダブルバッフ?の選択を行なわせる制御信号
を生成するものである場合には、スキャン方向に連続す
るソースベクトル、ディスティネーションベクトルに基
くマツピングが行なわれる状態において、スキャン方向
の座標データの下位桁をデコードしてダブルバッファメ
モリの切替えを行なわせるので、全体としてソースデー
タ保持手段、或は、ディスティネーションデータ保持手
段に対するデータ書込み速度、或はデー°夕読出し速度
を向上させることができ、逆に、スキャン方向に対して
傾斜したソースベクトル、ディスティネーションベクト
ルに基くマツピングが行なわれる状態において、スキャ
ン方向と直角な方向の座標データの下位桁をデコードし
てダブルバッファの選択を行なわせるので、次に同一の
ダブルバッファが選択されるまでの間にディスティネー
ションデータ保持手段に対するデータ書込み、或はソー
スデータ保持手段からのデータ読出しを行なわせること
が可能となり、全体としてテクスチャマツピング速度を
向上させることができる。
The timing control means decodes the lower digits of the coordinate data in the scan direction and generates an i control signal for switching the double buffer memory, and also generates the lower digits of the coordinate data in the direction perpendicular to the scan direction. Decode and double buff? If the control signal is to be generated for selection, the lower digits of the coordinate data in the scan direction are decoded and the double Since the buffer memory is switched, the overall data writing speed or data reading speed for the source data holding means or destination data holding means can be improved. In a state where mapping is performed based on source vectors and destination vectors that are tilted, the lower digits of the coordinate data in the direction perpendicular to the scan direction are decoded to select a double buffer, so the same double buffer is selected next time. It becomes possible to write data to the destination data holding means or read data from the source data holding means until selection, and it is possible to improve the texture mapping speed as a whole.

また、上記タイミング制御手段が、座標データの下位所
定桁が変化するタイミングで制御信号を生成するもので
ある場合には、読出されたソースデータを正確に所定の
バッフ7メモリに保持させることができ、上記と同様の
作用を達成することができる。
Furthermore, if the timing control means generates a control signal at the timing when a lower predetermined digit of the coordinate data changes, the read source data can be accurately held in the predetermined buffer 7 memory. , the same effect as above can be achieved.

さらに、上記タイミング制御手段が、スキャン方向の座
標データについて、ダブルバッファメモリの容量に対応
する下位所定桁が変化するタイミングで制御信号を生成
し、スキャン方向と直角な方向の座標データについて、
最も最下位桁が変化するタイミングで制御信号を生成す
るものである場合には、生成される制御データに基いて
ダブルバッフ1メモリの切替え、或はダブルバッファメ
モリの選択を行なわせることができ、上記と同様の作用
を達成することができる。
Furthermore, the timing control means generates a control signal for the coordinate data in the scan direction at a timing when a lower predetermined digit corresponding to the capacity of the double buffer memory changes, and for the coordinate data in the direction perpendicular to the scan direction,
When the control signal is generated at the timing when the least significant digit changes, the double buffer 1 memory can be switched or the double buffer memory can be selected based on the generated control data. A similar effect can be achieved.

さらにまた、上記タイミング制御手段が、DDAから出
力される描画終了信号をも入力としてダブルバッファメ
モリの切替えを行なわせる制御信号を生成するものであ
る場合には、描画終了時点で自動的にダブルバッファメ
モリを切替えることができる。
Furthermore, if the timing control means generates a control signal for switching the double buffer memory by also inputting the drawing end signal output from the DDA, the timing control means automatically switches the double buffer memory at the end of drawing. Memory can be switched.

また、上記画像メモリが所定サイズの複数個のブロック
メモリで構成されているとともに、各ブロックメモリが
、互に異なる画像データを格納すべく2分割されている
場合には、画像メモリ全体としてのデータ書込み用入力
ビツト数を増加させることができる。
In addition, if the image memory is composed of a plurality of block memories of a predetermined size and each block memory is divided into two to store different image data, the data of the entire image memory The number of input bits for writing can be increased.

そして、上記画像メモリがデュアルポートDRAMであ
る場合には、画像メモリからのデータ読出しに伴なうデ
ータ書込みの禁止時間を大巾に減少させることができる
外、上記と同様の作用を達成することができる。
When the image memory is a dual-port DRAM, it is possible to significantly reduce the time during which data writing is prohibited when reading data from the image memory, and to achieve the same effect as described above. Can be done.

さらに詳細に説明すると、DDAによる演算所要時間が
tlであり、画像メモリに対するデータ書込み所要時間
がt2  (但し、t2−ntl)であれば、画像メモ
リをn個の70ツクメモリで構成し、各ブロックメモリ
に対応させてダブルバッファメモリ、およびタイミング
制御手段を設けておくことにより、ODAによる演算動
作を停止させることなく、ダブルバッファメモリから対
応するブロックメモリにデータを供給することにより、
高速に画像メモリに対するデータの書込みを行なわせる
ことができる。即ち、ODAからスキャンライン方向に
連続するデータ書込み用のアドレスデータが順次生成さ
れる場合には、そのスキャンラインに対応するダブルバ
ッファメモリに対して順次所定数の画素データを供給し
、所定数の画素データが供給された場合には、ダブルバ
ッファメモリを切替えて、再び所定数の画素データを供
給することができる。そして、一方のバッファメモリに
画素データを供給している問に他方のバッファメモリか
らブロックメモリに対して所定数の画素データを一括し
て供給することができる。この結果、DDAを常時動作
させ続けながら画像メモリに対するマツピングデータの
書込みを連続的に行なわせることができる。
To explain in more detail, if the time required for calculation by DDA is tl, and the time required to write data to the image memory is t2 (however, t2 - ntl), then the image memory is configured with n 70-block memories, and each block By providing a double buffer memory and a timing control means in correspondence with the memory, data can be supplied from the double buffer memory to the corresponding block memory without stopping the arithmetic operation by ODA.
Data can be written to the image memory at high speed. That is, when address data for data writing that is continuous in the scan line direction is generated sequentially from the ODA, a predetermined number of pixel data is sequentially supplied to the double buffer memory corresponding to the scan line, and a predetermined number of pixel data are sequentially generated. When pixel data is supplied, the double buffer memory can be switched to supply the predetermined number of pixel data again. Then, while pixel data is being supplied to one buffer memory, a predetermined number of pixel data can be supplied at once to the block memory from the other buffer memory. As a result, mapping data can be continuously written into the image memory while the DDA is kept operating at all times.

DDAによりデータ読出し用のアドレスデータを生成す
る場合にも、同様に、DDAを常時動作させ続けながら
画像メモリからのデータの読出しを連続的に行なわせる
ことができる。
Similarly, when the DDA generates address data for reading data, it is possible to continuously read data from the image memory while keeping the DDA in constant operation.

また、ODAからスキャンラインに対して傾斜した方向
に連続するアドレスデータが順次生成される場合には、
同一のスキャンラインに属する画素データについては、
上記と同様にスキャンラインに対応するダブルバッファ
メモリに供給することができ、スキャンラインが変化し
た場合には、異なるダブルバッファメモリに供給するこ
とができる。そして、スキャンラインが変化する場合に
は、順次具なるダブルバッファメモリが選択されるので
あるから、元のダブルバッファメモリが再び選択される
までには、スキャンラインが0回変化す志ことになり、
それまでの間に画像メモリに対するデータの書込みを完
了することができるので、ODAによる演算動作の停止
を伴なうことなく、上記一連の動作を反復することがで
きる。
In addition, when continuous address data is generated sequentially from the ODA in a direction inclined to the scan line,
For pixel data belonging to the same scan line,
Similarly to the above, it can be supplied to the double buffer memory corresponding to the scan line, and when the scan line changes, it can be supplied to a different double buffer memory. When the scan line changes, additional double buffer memories are selected one after another, so the scan line will change 0 times before the original double buffer memory is selected again. ,
Since writing of data to the image memory can be completed until then, the series of operations described above can be repeated without stopping the arithmetic operation by ODA.

〈実施例〉 以下、実施例を示す添付図面によって詳細に説明する。<Example> Hereinafter, embodiments will be described in detail with reference to the accompanying drawings showing examples.

第3図はこの発明のデクスチャマッピング装置の一実施
例を示すブロック図であり、2辺のX。
FIG. 3 is a block diagram showing an embodiment of the texture mapping device of the present invention.

y値(ディスプレイ平面における2次元座標データ、或
は、テクスチャ平面における2次元座標データ)、およ
び2値(ディスプレイ平面における奥行き座標データ)
に対応する辺補間回路(11)(12)(13)(21
)(22H23)と、上記辺補間回路(11)(12)
(21)(22)から出力されるx、y値を入力とする
線分補間回路(31)と、上記辺補閤回路(13) (
23)から出力されるZ値をそれぞれ入力とする線分補
間回路(32)と、上記線分補間回路(31)から出力
されるx、y値がデータ読出しアドレスとして供給され
るソースデータメモリ(42)と、ソースデータメモリ
(42)から読出されるカラーデータが順次格納される
スタティックランダムアクセスメモリ(以下、SRAM
と略称する) (43)と、上記データ読出しアドレス
の供給と同期して順次増加するアドレスデータをS R
A M (43)に供給するアップカウンタ(44)と
、上記Z値が供給されることにより2ソート処理を行な
い、2フラグを生成する2−バッファ(図示せず)と、
上記x、y値がデータ書込みアドレスとして供給される
ことによりSRA M (43)からの読出しカラーデ
ータが該当アドレスに書込まれるディスティネーション
データメモリ(41)とから構成されている。尚、上記
ディスティネーションデータメモリ(41)とソースデ
ータメモリ(42)とは同一のフレームメモリ(4)の
互に異なるアドレス空間にそれぞれ割当てられている。
y value (two-dimensional coordinate data on the display plane or two-dimensional coordinate data on the texture plane) and binary (depth coordinate data on the display plane)
Edge interpolation circuits (11) (12) (13) (21) corresponding to
) (22H23) and the above edge interpolation circuit (11) (12)
(21) A line segment interpolation circuit (31) which inputs the x and y values output from (22), and the edge interpolation circuit (13) (
a line segment interpolation circuit (32) that receives the Z values output from the line segment interpolation circuit (31), and a source data memory (32) that receives the x and y values output from the line segment interpolation circuit (31) as data read addresses. 42) and a static random access memory (hereinafter referred to as SRAM) in which color data read out from the source data memory (42) is sequentially stored.
) (43), and the address data that increases sequentially in synchronization with the supply of the data read address is S R
an up counter (44) that supplies the A M (43); and a 2-buffer (not shown) that performs 2 sort processing and generates 2 flags by being supplied with the Z value;
It consists of a destination data memory (41) in which the color data read from the SRAM (43) is written to the corresponding address by supplying the above x, y values as a data write address. Incidentally, the destination data memory (41) and the source data memory (42) are respectively allocated to different address spaces of the same frame memory (4).

そして、上記各辺補間回路、および線分補間回路は、そ
れぞれ除算回路、および加算回路で構成されている。ま
た、(14)は上位プロセッサ(図示せず)から供給さ
れる描画コマンドデータを取込むためのI10インター
フェース、(15)は辺選択処理等を行なうプロセッサ
、(16)はメモリである。
The side interpolation circuit and line segment interpolation circuit each include a division circuit and an addition circuit. Further, (14) is an I10 interface for taking in drawing command data supplied from a host processor (not shown), (15) is a processor that performs edge selection processing, etc., and (16) is a memory.

第2図はディスティネーションデータメモリ(41)に
対するカラーデータの書込みを行なうための構成を示す
ブロック図であり、デイステイネ−シコンデータメモリ
(41)を4つのブロックメモリ(41G)(411)
(412)(413)に区画しているとともに、上記線
分補間回路(31)から出力されるx、y値、およびS
 RA M (43)から読出されるカラーデータを、
それぞれダブルバッファメモリ(45G)(451)(
452)(453)を介して上記ブロックメモリ(41
G)(411)(412)(413)に供給している。
FIG. 2 is a block diagram showing the configuration for writing color data to the destination data memory (41), in which the destination data memory (41) is divided into four block memories (41G) (411).
(412) and (413), and the x, y values and S output from the line segment interpolation circuit (31)
The color data read from RAM (43) is
Double buffer memory (45G) (451) (
452) and the block memory (41) via (453).
G) (411) (412) (413).

そして、上記各ブロックメモリ、およびダブルバッファ
メモリに対応させてそれぞれタイミング制御回路(46
0)(461)(462)(463)を設けている。尚
、上記タイミング制御回路(460) (461)(4
62)(463)は、上記線分補間回路(31)から出
力されるx、y値をデコードしてダブルバッファ切替信
号、或は、ダブルパンファ選択信号、およびブロックメ
モリ選択信号を生成するものであり、さらに詳細に説明
すると、線分補間回路(31)から出力されるアドレス
データを入力として、X値、およびylilをそれぞれ
デコードするものであり、X値の所定桁データCl1F
位桁を基準として、ダブルバッファメモリの容量に基い
て定まる所定桁だけ上位の桁のデータ)に対応するデコ
ード信号に基いてダブルバッファメモリ切替え制御信号
を生成するとともに、ブロックメモリに対するデータ書
込み制御信号を生成し、y座標の最下位桁データに対応
するデコード信号に基いてダブルバッファ選択制御信号
、およびダブルバッファメモリ切替え制御信号を生成す
るとともに、ブロックメモリに対するデータ書込み制御
信号を生成し、さらに、線分描画終了信号(n分捕間回
路(31)の制御カウンタが0になったことを示す信号
)に対応するデコード信号に基いてダブルバッフ1メモ
リ切替え制御信号を生成するものである。また、上記フ
レームメモリ(4)はそれぞれデュアルプレーン構成で
あり、1つの画像を表示している間に、他の画像データ
の禽込みを行なうことができるようにしている。
A timing control circuit (46) is provided corresponding to each block memory and double buffer memory.
0) (461) (462) (463). In addition, the above timing control circuits (460) (461) (4
62) (463) decodes the x and y values output from the line segment interpolation circuit (31) to generate a double buffer switching signal, a double puncher selection signal, and a block memory selection signal. To explain in more detail, the X value and ylil are each decoded by inputting the address data output from the line segment interpolation circuit (31), and the predetermined digit data Cl1F of the X value is decoded.
A double buffer memory switching control signal is generated based on a decode signal corresponding to a predetermined number of upper digits determined based on the capacity of the double buffer memory, and a data write control signal for the block memory is generated based on the decode signal. , generates a double buffer selection control signal and a double buffer memory switching control signal based on the decoded signal corresponding to the least significant digit data of the y coordinate, and generates a data write control signal for the block memory, and further, A double buffer 1 memory switching control signal is generated based on a decode signal corresponding to a line segment drawing end signal (a signal indicating that the control counter of the n-segmentation circuit (31) has reached 0). Further, each of the frame memories (4) has a dual plane configuration, so that while one image is being displayed, other image data can be loaded.

上記の構成のテクスチャマツピング装置の動作は次°の
とおりである。
The operation of the texture mapping device having the above configuration is as follows.

第1図はマツピング動作を説明する概略図であり、フレ
ームメモリ6)上にソースデータメモリ(42)、およ
びディスティネーションデータメモリ(41)が割当て
られている。
FIG. 1 is a schematic diagram for explaining the mapping operation, in which a source data memory (42) and a destination data memory (41) are allocated on the frame memory 6).

したがり゛て、先ず、線分補間回路(31)からソース
データメモリ(42)上のx、y値を順次生成して、デ
ータ読出しアドレスデータとして供給することにより、
ソースベクトル(48)上のカラーデータが順次読出さ
れ、上記x、y値の生成と同期して順次内容が増加させ
られるアップカウンタ(44)により書込みアドレスが
指定されるS RA M (43)に読出されたカラー
データを順次書込むことができる。
Therefore, first, by sequentially generating the x and y values on the source data memory (42) from the line segment interpolation circuit (31) and supplying them as data read address data,
The color data on the source vector (48) is sequentially read out and sent to SRAM (43) where the write address is specified by the up counter (44) whose contents are sequentially incremented in synchronization with the generation of the x and y values. The read color data can be sequentially written.

次いで、線分補間回路(31)からデイステイネ−シコ
ンデータメモリ(41)上のx、y値を順次生成して、
データ書込みアドレスデータとして供給することにより
、S RA M (43)から書込み順に読出されるカ
ラーデータをディスティネーションベクトル(49)上
に書込み、マツピングを行なわせることができる。
Next, the x and y values on the destination data memory (41) are sequentially generated from the line segment interpolation circuit (31).
By supplying the data as the data write address data, the color data read from the S RAM (43) in the writing order can be written onto the destination vector (49) for mapping.

即ち、フレームメモリ(4)上に割当てられたソースデ
ータメモリ(42)からソースベクトル(48)上のカ
ラーデータを順次読出してS RA M (43)に−
時的に保持させ、次いで、S RA M (43)から
格納順にカラーデータを読出してディスティネーション
データメモリ(41)のディスティネーションベクトル
(49)上に書込むことにより、マツピング処理を行な
わせることができるのである。
That is, the color data on the source vector (48) is sequentially read out from the source data memory (42) allocated on the frame memory (4) and stored in SRAM (43).
Mapping processing can be performed by temporarily retaining the color data and then reading the color data from the SRAM (43) in the order in which they were stored and writing them onto the destination vector (49) of the destination data memory (41). It can be done.

そして、上記一連の処理のうち、ソースベクトル(48
)上のカラーデータのS RA M (43)への格納
については、S RA M (43)のアクセス速度が
早いのであるから、短時間で行なうことができる。
Among the above series of processing, the source vector (48
) can be stored in the S RAM (43) in a short time because the access speed of the S RAM (43) is fast.

また、S RA M (43)から読出されたカラーデ
ータのディスティネーションデータメモリ(41)への
書込みについては、ディスティネーションデータメモリ
(41)を4つのブロックメモリに区画しているととも
に、各70ツクメモリに対応させてそれぞれダブルバッ
ファメモリ、およびタイミング制御回路を設けているの
で、以下に説明するように、1画素当りに換算して短時
間で行なうことができ、全体εしてテクスチャマツピン
グ速度を著しく向上させることができる。
Furthermore, for writing the color data read from the SRAM (43) into the destination data memory (41), the destination data memory (41) is divided into four block memories, each with 70 block memories. Since a double buffer memory and a timing control circuit are provided for each, as explained below, it can be done in a short time on a per pixel basis, and the overall texture mapping speed can be increased. can be significantly improved.

即ち、X座標方向に連続するアドレスデータが線分補間
回路(31)から順次生成されている状態においては、
1つのタイミング制御回路のみが書込み制御信号を生成
し、所定数の画素データが生成される毎にダブルバッフ
ァメモリを切替えて、−方のバッファメモリにS RA
 M (43)からの読出しカラーデータを供給してい
る間に、他方のバッファメモリからブロックメモリに対
して複数個のカラーデータを一括して書込むことができ
る。したがって、線分補間回路(31)による演算動作
を全く中断することなく、所定数のカラーデータを一括
してディスティネーションデータメモリ(41)にN込
むことができる。
That is, in a state where continuous address data in the X coordinate direction is sequentially generated from the line segment interpolation circuit (31),
Only one timing control circuit generates a write control signal, switches the double buffer memory every time a predetermined number of pixel data is generated, and sends SRA to the negative buffer memory.
While the read color data from M (43) is being supplied, a plurality of color data can be written at once from the other buffer memory to the block memory. Therefore, a predetermined number of color data can be loaded into the destination data memory (41) at once without interrupting the calculation operation by the line segment interpolation circuit (31).

スキャンラインに対して所定角度傾斜した方向に連続す
るアドレスデータが線分補間回路(31)から順次生成
されている状態においては、同一のスキャンラインに属
するアドレスデータが連続的に生成されている間、該当
するタイミング制御回路が言込み制御信号を生成してダ
ブルバッファメモリへのカラーデータの供給、およびダ
ブルバッファメモリからブロックメモリへのカラーデー
タの1込みを行なわせることができる。そして、隣のス
キャンラインに属するアドレスデータが生成された場合
には、該当するタイミング制御回路が書込み制御信号を
生成してダブルバッファメモリへのカラーデータの供給
、およびダブルバッファメモリからブロックメモリへの
カラーデータの硼込みを行なわせることができる。
In a state where continuous address data in a direction inclined at a predetermined angle with respect to the scan line is being generated sequentially from the line segment interpolation circuit (31), while address data belonging to the same scan line is being generated continuously. , an appropriate timing control circuit can generate a verbal control signal to cause color data to be supplied to the double buffer memory and to be loaded from the double buffer memory to the block memory. When address data belonging to the adjacent scan line is generated, the corresponding timing control circuit generates a write control signal to supply color data to the double buffer memory and from the double buffer memory to the block memory. Color data can be refined.

以下、生成されるアドレスデータが属するスキャンライ
ンが変化する毎に書込み制御信号を生成するタイミング
制御回路が変化し、スキャンラインに対して所定角度傾
斜した方向に連続するカラーデータをディスティネーシ
ョンデータメモリ(41)に書込むことができる。
Thereafter, every time the scan line to which the generated address data belongs changes, the timing control circuit that generates the write control signal changes, and the continuous color data in a direction inclined at a predetermined angle with respect to the scan line is transferred to the destination data memory ( 41).

即ち、各ダブルバッファメモリに供給される力・ラーデ
ータ数はダブルバッファメモリの容量に基いて定まる限
度数よりも一般的に少なくなるのであるが、同一のダブ
ルバッファメモリにカラーデータ′が供給されるまでの
時間が、ダブルバッファメモリからブロックメモリに対
するデータ書込み所要時間より短くない時間に設定され
ていれば、線分補間回路(31)による演算動作を全く
中断することなく、ダブルバッファメモリに保持されて
いるカラーデータを一括してディスティネーションデー
タメモリ(41)に書込むことができる。
In other words, the number of color data supplied to each double buffer memory is generally smaller than the limit determined based on the capacity of the double buffer memory, but if color data is supplied to the same double buffer memory, If the time required to write data from the double buffer memory to the block memory is set to a time that is not shorter than the time required to write data from the double buffer memory to the block memory, data is stored in the double buffer memory without interrupting the calculation operation by the line segment interpolation circuit (31). It is possible to write all color data in the destination data memory (41) all at once.

そして、以上のようにして1つの画像データのマツピン
グが行なわれた場合には、該当するディスティネーショ
ンデータメモリプレーンから画像データを読出して画像
表示を行なわせることができ、画像表示を行なっている
闇に他方の画像メモリプレーンに対して次の画像データ
の書込みを行なわせることができる。
When one piece of image data is mapped as described above, the image data can be read out from the corresponding destination data memory plane and displayed. The next image data can be written to the other image memory plane.

フレームメモリ(4)に対するデータ書込み所要時間が
長くても、1画素当りに換算した這込み所要時間を、線
分補間回路(31)の演算所要時間とほぼ等しくするこ
とができ、マツピング速度を著しく向上させることがで
きるのである。
Even if the time required to write data to the frame memory (4) is long, the time required to write data per pixel can be made almost equal to the time required for calculation of the line segment interpolation circuit (31), and the mapping speed can be significantly increased. It can be improved.

第4図はソースデータメモリ(42)からソースベクト
ル(48)上のカラーデータを読出す速度をも向上させ
るための構成を示すブロック図であり、フレームメモリ
4)を4つのブロックメモリ(400)(401)(4
02)(403)に区画しているとともに、各ブロック
メモリに対応させて書込み用ダブルバッファメモリ(4
5G)(451)(452)(453)、読出し用ダブ
ルバッファメモリ(454H455)(456)(45
7)、およびタイミング制御回路(460)(461)
(462)(463)を設けており、しかも、線分補間
回路(31)から出力されるx、y値をそのまま上記書
込み用ダブルバッファメモリ(450)(451)(4
52)(453)に供給しているとともに、遅延用のF
IFOメモリ(50)を通してデコ゛−ダ(40)に供
給し、デコーダ(40)から出力されるデコードデータ
を上記読出し用ダブルバッファメモリ(454)(45
5)(456) (457)に供給している。また、上
記読出し用ダブルバッファメモリ(454)(455)
(456)(457)を通して読出されたカラーデータ
を、アップカウンタ(44)により順次格納アドレスが
増加さゼられるS RA M (43)に供給し、SR
AM(43)からの読出しデータを、線分補間回路(3
1)から出力されるアドレスデータと共に上記書込み用
ダブルバッファメモリ(450)(451)(452)
(453)に供給している。尚、上記線分補間回路(3
1)は、フレームメモリ(4)に対するデータ書込み、
或はデータ読出しのためのアドレスデータを生成すると
ともに、データ読出しのためのアドレスデータを生成す
る場合には、書込むべきデータの供給を禁止するように
している。
FIG. 4 is a block diagram showing a configuration for improving the speed of reading color data on a source vector (48) from a source data memory (42). (401) (4
02) (403), and a write double buffer memory (403) corresponding to each block memory.
5G) (451) (452) (453), double buffer memory for reading (454H455) (456) (45
7), and timing control circuits (460) (461)
(462) (463), and the x and y values output from the line segment interpolation circuit (31) are directly transferred to the writing double buffer memory (450) (451) (4
52) (453) as well as delay F.
The decoded data is supplied to the decoder (40) through the IFO memory (50), and the decoded data output from the decoder (40) is sent to the read double buffer memory (454) (45).
5) (456) (457). In addition, the double buffer memory for reading (454) (455)
The color data read out through (456) and (457) is supplied to SRAM (43) whose storage address is sequentially incremented by an up counter (44).
The read data from AM (43) is transferred to the line segment interpolation circuit (3).
1) The above writing double buffer memory (450) (451) (452) together with the address data output from
(453). In addition, the above line segment interpolation circuit (3
1) Writing data to frame memory (4);
Alternatively, when address data for reading data is generated and address data for reading data is generated, supply of data to be written is prohibited.

したがって、この実施例の場合には、4つのブロックメ
モリに区画されたフレームメモリ(4)に対するデータ
の書込みを行なう場合、即ち、SRAM (43)から
順次続出されるカラーデータの書込みを行なう場合に、
第2図の実施例と同様に1画素当りに換算したデータ書
込み所要時間を、線分補間回路(31)による演算所要
時間と等しくすることができる。
Therefore, in the case of this embodiment, when writing data to the frame memory (4) divided into four block memories, that is, when writing color data sequentially output from the SRAM (43), ,
As in the embodiment shown in FIG. 2, the time required to write data per pixel can be made equal to the time required for calculation by the line segment interpolation circuit (31).

また、フレームメモリ(4)からソースベクトル(48
)上のソースデータを読出す場合には、タイミング制御
回路から出力される切替制御信号、選択制御信号に基い
て該当する書込み用ダブルバッファメモリ、およびブロ
ックメモリを選択し、線分補間回路(31)から出力さ
れるアドレスデータに基いてブロックメモリから必要な
カラーデータを読出させる。そして、上記アドレスデー
タは、読出し完rまでの所要時間に対応する時間だけF
IFOメモリ(50)により遅延させられてデコーダ(
40)に供給されるので、読出し用のx、y座標を再度
生成しなくても、そのままダブルバッファメモリ(45
4H455)(456)(457)を介してS A R
M (43)に読出しデータを供給するだけでよく、第
2図の実施例の場合と同様に、1画素当りに換算したデ
ータ読出し所要時間を、線分補間回路(31)による演
算所要時間と等しくすることができる。
Also, source vector (48
), the corresponding writing double buffer memory and block memory are selected based on the switching control signal and selection control signal output from the timing control circuit, and the line segment interpolation circuit (31 ) The necessary color data is read out from the block memory based on the address data output from the block memory. Then, the address data is stored in F for a time corresponding to the time required to complete reading.
The IFO memory (50) delays the decoder (
40), so there is no need to generate the x, y coordinates for reading again, and the double buffer memory (45
S A R via 4H455) (456) (457)
It is only necessary to supply the read data to M (43), and as in the case of the embodiment shown in FIG. can be made equal.

さらに詳細に説明すると、上記線分補間回路(31)か
ら出力されるアドレスデータの特定の桁の内容の変化は
、第5図Aに示すように、線分補間回路(31)からの
出力データを順次レジスタ(51)(52)に供給する
パイプライン構成を採用しておくことにより容易に行な
うことができる。
More specifically, as shown in FIG. This can be easily done by adopting a pipeline configuration in which the data are sequentially supplied to the registers (51) and (52).

即ち、第5図Bに示すように、上記レジスタ(512(
52)としてDタイプの7リツプ70ツブ(以下、D−
FFと略称する)を使用し、第1段目のD −F F 
(51)のD入力端子に線分補間回路(31)から出力
されるJ桁目のデータを供給し、第1段目のD −F 
F (51)のQ出力信号を第2段目のD −F F 
(52)のD入力端子に供給し、さらに1両D −F 
F (51)(52)のタイミング入力端子にDDAク
ロック信号を供給する構成を採用すれば、両D −F 
F (51)(52)のQ出力信号aj、bJ、J5.
J=び0出力信号fiJ、5Jが得ら九る。そして、得
らしtc信号bJ、 および!:IJをAND’)”−
ト(53)に供給するとともに、信号aJ、および5J
をANDゲート(54)に供給し、両ANDゲート(5
3)(54)からの出力信号をNORゲート(55)に
供給することにより、特定桁変化を検出する検出フラグ
を生成することができる。
That is, as shown in FIG. 5B, the register (512(
52) as D type 7 lip 70 lip (hereinafter referred to as D-
(abbreviated as FF), and the first stage D -F F
The J-th digit data output from the line segment interpolation circuit (31) is supplied to the D input terminal of (51), and the
The Q output signal of F (51) is converted to the second stage D -F F
(52) is supplied to the D input terminal, and one additional car D -F
If a configuration is adopted in which the DDA clock signal is supplied to the timing input terminals of F (51) and (52), both D - F
F (51) (52) Q output signals aj, bJ, J5.
J = 0 output signal fiJ, 5J is obtained. Then, the obtained tc signal bJ, and! : IJ AND')"-
(53), and the signals aJ and 5J
is supplied to the AND gate (54), and both AND gates (5
3) By supplying the output signal from (54) to the NOR gate (55), a detection flag for detecting a change in a specific digit can be generated.

第6図はy座標の最下位桁の変化、X座標の最下位桁か
ら所定数だけ上位桁の変化、および線分描画終了を、y
座標の下位桁が所定の値である場合にのみ検出する回路
構成を示しており、X座標用のDDAjJO算器(56
)、y座標用のDDA7J11算器(57)からの出力
データを、それぞれ第5図の構成と同じ構成の回路に供
給しているとともに、ODAダウンカウンタ(58)か
ら出力されるフラグ(ダウンカウンタ(58)の内容が
0の場合にハイレベルになるオーバーフローフラグ)、
およびDDAから出力されるy座標データを入力として
下位桁の内容が所定のブロックメモリに対応する値とな
った場合にハイレベルとなるデコーダ(59)からの出
力信号をANDゲート(60)に供給している。そして
、上記デコーダ(59)からの出力信号を全てのAND
ゲートに供給しているとともに、全てのANDゲートか
らの出力信号をNORゲート(61)に供給している。
Figure 6 shows the changes in the least significant digit of the y coordinate, the changes in the upper digits by a predetermined number from the least significant digit of the X coordinate, and the end of line segment drawing.
It shows a circuit configuration that detects only when the lower digit of the coordinate is a predetermined value, and the DDAjJO calculator (56
), the output data from the DDA7J11 calculator (57) for the y coordinate are supplied to circuits having the same configuration as that shown in FIG. (overflow flag that becomes high level when the content of (58) is 0),
And an output signal from the decoder (59) which takes the y-coordinate data output from the DDA as input and becomes high level when the content of the lower digit becomes a value corresponding to a predetermined block memory is supplied to the AND gate (60). are doing. Then, all the output signals from the decoder (59) are ANDed.
It also supplies the output signals from all AND gates to the NOR gate (61).

したがって、上記の構成を採用した場合には、デコーダ
(59)からの出力信号がハイレベルの場合において、
y座標の最)位桁の変化、X座標の所定桁の変化、およ
び線分mFfj終了に対応してNORゲート(61)か
ら負論理のダブルバッファメモリ切替えタイミング検出
フラグを出力することができる。
Therefore, when the above configuration is adopted, when the output signal from the decoder (59) is at a high level,
A negative logic double buffer memory switching timing detection flag can be output from the NOR gate (61) in response to a change in the most significant digit of the y coordinate, a change in a predetermined digit of the X coordinate, and the end of the line segment mFfj.

尚、第6図に示すデコーダ、およびAND−OR−IN
VERTERは簡単にp L D (Prografl
lable Logic Device)化することが
できる。
In addition, the decoder shown in FIG. 6 and AND-OR-IN
VERTER is easy to use pLD (Prografl
It can be converted into a lable Logic Device).

第7図は上記の実施例において例示された回路構成によ
り生成されたダブルバッファメモリ切替えタイミング検
出フラグに基いて線分補間回路(以下、DDAと略称す
る)を停止させることなく、DRAMのタイミング制御
、およびダブルバッファメモリ切替えを行なわせるため
の回路構成を示す図であり、8つのD−FF(γ1)(
72)・・・(78)を有している。
FIG. 7 shows DRAM timing control without stopping the line segment interpolation circuit (hereinafter abbreviated as DDA) based on the double buffer memory switching timing detection flag generated by the circuit configuration illustrated in the above embodiment. , and a circuit configuration for performing double buffer memory switching, in which eight D-FFs (γ1) (
72)...(78).

上記D −F F (71)は、図示しないCRTコン
トローラから出力される水平同期信号1−1sYNc(
第8図C参照)をタイミング入力とし、かつリード転送
、或はリフレッシュを受付けたか否かを示すハンドシェ
ーク信号H81(第8図C参照)をクリア入力として、
DRAMに対するリード転送、或はリフレッシュの要求
が発生しているか否かを示IQ出力信号Q1  (第8
図C参照)を生成プるものであり、このQ出力信号Q1
はそのまま、サンプリングストローブ信MSRCK (
第8図り参照)をタイミング入力とするD −F F 
(72)のD入力端子に供給され、[)RAMに対する
書込みサイクルか、リード転送、リフレッシュサイクル
かを示すQ出力信号Q2  (第8図M参照)を生成す
る。
The above D -F F (71) is a horizontal synchronizing signal 1-1sYNc (
8C) as a timing input, and a handshake signal H81 (see FIG. 8C) indicating whether read transfer or refresh has been accepted as a clear input,
IQ output signal Q1 (8th
(see Figure C), and this Q output signal Q1
The sampling strobe signal MSRCK (
D -F F with timing input (see diagram 8)
It is supplied to the D input terminal of (72) and generates a Q output signal Q2 (see FIG. 8M) indicating whether it is a write cycle, read transfer, or refresh cycle for the RAM.

上記D −F F (73)(74)はダブルバッファ
メモリ切替えタイミング検出フラグBOVI”(第8図
C参照)を保持するものであり、互に選択的に動作する
点を除けば、互に同一の動作を行なうようにしである。
The above D-F F (73) and (74) hold the double buffer memory switching timing detection flag BOVI" (see Figure 8C), and are identical to each other except that they operate selectively. It is designed to perform the following actions.

即ち、上記D−FFの◇出力信号を制御信号とするNA
NDゲート(79)を通してダブルバッファメモリ切替
えタイミング検出フラグB。
That is, NA using the ◇output signal of the above D-FF as a control signal.
Double buffer memory switching timing detection flag B is passed through the ND gate (79).

VFがD入力端子に供給されているとともに、1画素毎
にレベルが変動するDDA画素ストローブ信号DDAR
CK (第8図C参照)がORゲート(80)を通して
タイミング入力端子に供給されており、しかも、メモリ
書込みサイクルが受付けられたことを示す負論理のハン
ドシェーク信号H82(第8図C参照)がORゲート(
81)、およびANDゲート(82)を通してクリア入
力端子に供給されている。そして、一方のD−FFに対
応させて、D −F F (78)から出力されるQ出
力信号5ELA(第8図り参照)、および0出力信号5
ELB(第8図C参照)がそれぞれORゲート(80)
(81)に供給されており、他方のD−FFに対応させ
て、D −F F (78)から出力されるQ出力信号
5ELA。
VF is supplied to the D input terminal, and the DDA pixel strobe signal DDAR whose level fluctuates for each pixel.
CK (see Figure 8C) is supplied to the timing input terminal through the OR gate (80), and a negative logic handshake signal H82 (see Figure 8C) indicating that the memory write cycle has been accepted is supplied. OR gate (
81) and an AND gate (82) to the clear input terminal. The Q output signal 5ELA (see the eighth diagram) and the 0 output signal 5 output from the D-F F (78) correspond to one D-FF.
Each ELB (see Figure 8C) is an OR gate (80)
(81) and is outputted from D-FF (78) in correspondence with the other D-FF.

および◇出力信号5ELBがそれぞれORゲート(81
)(80)に供給されている。
and ◇Output signal 5ELB is OR gate (81
) (80).

したがって、ORゲート(80)に供給されているQ出
力信号5ELA1或はQ出力信号5ELBの内、ローレ
ベルである側のD=FFがデータ保持用として選択され
、DDA画素ストローブ信号DDARCKの立上りのタ
イミングでダブルバッファメモリ切替えタイミング検出
フラグBOVFが取込まれる。但し、上記ダブルバッフ
ァメモリ切替えタイミング検出フラグs o v r:
は、0出力信号によりv制御されるNANDゲート(7
9)を通して供給されているので(信号BFI、F3F
2(第8図I、J)参照)、バッファメモリフルの状態
が発生しそうなタイミングでD入力端子に供給されると
同時に後述するORゲート(83)に供給され、そのま
まホールドされる。
Therefore, of the Q output signal 5ELA1 or the Q output signal 5ELB supplied to the OR gate (80), the D=FF on the low level side is selected for data retention, and the rising edge of the DDA pixel strobe signal DDARCK is selected. The double buffer memory switching timing detection flag BOVF is taken in at the timing. However, the double buffer memory switching timing detection flag s o v r:
is a NAND gate (7
9), so (signal BFI, F3F
2 (see FIG. 8 I, J)), the signal is supplied to the D input terminal at a timing when a buffer memory full state is likely to occur, and at the same time, it is supplied to an OR gate (83), which will be described later, and is held as is.

上記D −F F (75)は、次のダブルバッファメ
モリ切替え状態に対応するQ出力信号Q3を生成するも
のであり、Q出力信号をD入力端子に供給しているとと
もに、上記負論理のハンドシェーク信号H82がタイミ
ング入力端子に供給されている。
The above D-F F (75) generates a Q output signal Q3 corresponding to the next double buffer memory switching state, and supplies the Q output signal to the D input terminal, and also performs the above negative logic handshake. A signal H82 is provided to the timing input terminal.

上記D −F F (7B)(77)は、グリッジを発
生させることなく、クロックに同期したサンプリングス
トローブ信号5RCKを生成するものであり、メモリサ
イクル終了の2クロツク前を示す負論理パルス信号MB
F2(第8図C参照)がD−FF(16)のタイミング
入力端子に供給されているとともに、メモリサイクル中
に必ず1回発生する負論理パルス信号CAS (例えば
、DRAMのカラムアドレスストローブ信号(第8図C
参照))がプリセット入力端子に供給されている。そし
て、上記D −F F (71)のQ出力信号Q1、お
よび両D−F F’(73)(74)に対応するNAN
Dゲート(79)からの出力信号をORゲート(83)
を通してD−FF(77)のD入力端子に供給している
とともに、D−F F (76H77)の0出力信号、
およびサンプリングクロック信号SCK (第8図N参
照)を入力とするNANDゲート(84)からの出力信
号をサンプリングストローブ信号5RGKとして出力し
、D−FF(7γ)のタイミング入力端子にも供給して
いる。
The above D-F F (7B) (77) generates the sampling strobe signal 5RCK synchronized with the clock without generating glitches, and generates the negative logic pulse signal MB indicating two clocks before the end of the memory cycle.
F2 (see FIG. 8C) is supplied to the timing input terminal of D-FF (16), and a negative logic pulse signal CAS (for example, a column address strobe signal of DRAM) is supplied to the timing input terminal of D-FF (16). Figure 8C
) is supplied to the preset input terminal. Then, the Q output signal Q1 of the above D-F F (71) and the NAN corresponding to both D-F F' (73) (74)
OR gate (83) output signal from D gate (79)
The 0 output signal of D-FF (76H77) is supplied to the D input terminal of D-FF (77) through
The output signal from the NAND gate (84) which inputs the sampling clock signal SCK (see Fig. 8N) is outputted as the sampling strobe signal 5RGK, and is also supplied to the timing input terminal of the D-FF (7γ). .

そして、上記負論理パルス信号CASがD−FF(71
)のクリア入力端子に供給されている。また、D −F
 F (77)のQ出力信号を、立上りのタイミングで
メモリサイクルが開始することを示すスタート信号(第
8図N参照)として出力している。
Then, the negative logic pulse signal CAS is applied to the D-FF (71
) is supplied to the clear input terminal. Also, D-F
The Q output signal of F (77) is outputted as a start signal (see N in FIG. 8) indicating that a memory cycle starts at the rising timing.

上記D −F F (78)はダブルバッファメモリ切
替え用の信号5ELA、5ELBをそれぞれQ出力信号
、0出力信号として出力するものであり、上記D −F
 F (75)のQ出力信号がD入力端子に供給されて
いるとともに、上記サンプリングストローブ信号5RG
Kがタイミング入力端子に供給されており、しかも、上
記ORゲート(83)からの出力信号ACDM (第8
図に参照)がインバータ(85)を通してG入力端子に
供給されている。
The above D -F F (78) outputs the double buffer memory switching signals 5ELA and 5ELB as a Q output signal and a 0 output signal, respectively.
The Q output signal of F (75) is supplied to the D input terminal, and the sampling strobe signal 5RG
K is supplied to the timing input terminal, and the output signal ACDM (8th
(see figure) is supplied to the G input terminal through an inverter (85).

したがって、G入力端子に供給される信号がローレベル
で、しかもサンプリングストローブ信号5RGKが立上
るタイミングで上記0− F F (75)からのQ出
力信号を保持し、このQ出力信号のレベルに対応させて
、互に逆レベルとなるQ出力信号5ELA、および0出
力信号5ELBを継続的に出力する。
Therefore, at the timing when the signal supplied to the G input terminal is low level and the sampling strobe signal 5RGK rises, the Q output signal from the above 0-FF (75) is held, and the output signal corresponds to the level of this Q output signal. In this way, the Q output signal 5ELA and the 0 output signal 5ELB, which have mutually opposite levels, are continuously output.

さらに、負論理の初期化信号RESET (第8図N参
照)が上記D −F F (71H73)(74)・・
・(78)の・クリア入力端子にそれぞれ供給されてい
る。
Furthermore, the negative logic initialization signal RESET (see FIG. 8N) is applied to the above D -F F (71H73) (74)...
・They are supplied to the ・clear input terminals of (78), respectively.

第7図に示す回路の動作は次のとおりである。The operation of the circuit shown in FIG. 7 is as follows.

先ず、電源投入時、或は処理中断時等に、初期化信号7
により必要な初期化を行なう。
First, when the power is turned on or processing is interrupted, the initialization signal 7 is sent.
performs the necessary initialization.

その後は、負論理のハンドシェーク信号H82がタイミ
ング入力端子に供給される毎にD−FF(75)のQ出
力信号のレベルが交互に変化するので、G入力端子にロ
ーレベル信号が供給され、かつサンプリングストローブ
信号5RGKが立上るタイミン゛グでD −F F (
78)が上記Q出力信号を保持し、Q出力信号のレベル
に対応するQ出力信号5ELA1および0出力信号5E
LBを出力することができる。したがって、Q出力信号
5ELA、およびΦ出力信号5ELBのレベルに基いて
D−FF(T3)(74)の何れかが選択される。即ち
、ORゲート(80)にローレベル信号が供給されてい
る側のD−FFが選択される。
After that, the level of the Q output signal of the D-FF (75) changes alternately every time the negative logic handshake signal H82 is supplied to the timing input terminal, so a low level signal is supplied to the G input terminal, and At the timing when the sampling strobe signal 5RGK rises, D −FF (
78) holds the Q output signal, and outputs a Q output signal 5ELA1 and a 0 output signal 5E corresponding to the level of the Q output signal.
LB can be output. Therefore, one of the D-FFs (T3) (74) is selected based on the levels of the Q output signal 5ELA and the Φ output signal 5ELB. That is, the D-FF to which the low level signal is supplied to the OR gate (80) is selected.

そして、選択された側のD−FFには、Q出力信号によ
りv4mされるNANOゲート(19)を通して、D入
力信号として、ダブルバッファメモリ切替えタイミング
検出フラグBOVFが供給されているとともに、ORゲ
ート(80)を通して、タイミング入力信号として、O
DA画素ストローブ信号DDARCKが供給されている
のであるから、DDAii素ストローブ信号DDARC
Kの立上りのタイミングでダブルバッフアメそり切替え
タイミング検出フラグBOVFを取込み、そのまま保持
する。また、上記、ダブルバッファメモリ切替えタイミ
ング検出フラグBOVFは、D−FFのQ出力端子から
取出されるのではなく、NANOゲート(19)の出力
端子からそのまま取出されるのであるから、1画素分の
遅れを伴なうことなく、バッファメモリフルが発生する
タイミングでORゲート(83)に供給され、D −F
 F (77)のD入力端子に供給されることにより、
Q出力端子から、メモリサイクルの開始を示すスタート
信号を出力することができる。
The selected D-FF is supplied with the double buffer memory switching timing detection flag BOVF as the D input signal through the NANO gate (19) which is V4m-controlled by the Q output signal, and the OR gate ( 80) as a timing input signal.
Since the DA pixel strobe signal DDARCK is supplied, the DDAii pixel strobe signal DDARC
At the rising edge of K, the double buffer switching timing detection flag BOVF is read and held as is. Furthermore, the double buffer memory switching timing detection flag BOVF mentioned above is not taken out from the Q output terminal of the D-FF, but is taken out as it is from the output terminal of the NANO gate (19). It is supplied to the OR gate (83) at the timing when the buffer memory is full without any delay, and D - F
By being supplied to the D input terminal of F (77),
A start signal indicating the start of a memory cycle can be output from the Q output terminal.

そして、負論理のハンドシェーク信号H82がタイミン
グ入力端子に供給される毎に、D−FF(73)(74
)の選択状態を切替えて、上記一連の動作を行なわせる
ことができる。
Then, each time the negative logic handshake signal H82 is supplied to the timing input terminal, D-FF (73) (74
) can be used to perform the series of operations described above.

第8図は第7図の回路の各部の動作を説明するタイミン
グチャートであり、T1の期間において画像データを読
出すリード転送動作が行なわれ、T 2. T 3の期
間において画像データの書込み動作が行なわれている。
FIG. 8 is a timing chart illustrating the operation of each part of the circuit of FIG. 7, in which a read transfer operation for reading image data is performed during a period T1, and a read transfer operation for reading image data is performed during a period T2. An image data writing operation is performed during the period T3.

したがって、第6図、および第7図に示す構成のタイミ
ング制御回路を各ブロックメモリに対応させてVIIプ
ることにより、D D A (31)の演算動作を停止
させることなく、フレームメモリ(4)に割当てられた
ソースデータメモリ(42)とディスティネーションデ
ータメモリ(41)とに対するデータ読出し、およびデ
ータ書込みを順次行なわせることにより、テクスチャマ
ツピングを行なわせることができる。即ち、ソースベク
トル(48)、ディスティネーションベクトル(49)
の傾斜による影響を排除して、どのようなベクトルであ
っても、1画素当りに換算して、D D A (31)
の演算所要時間と等しい時間でフレームメモリ(4)に
おけるマツピング処理を行なわせることができる。
Therefore, by associating timing control circuits with the configurations shown in FIGS. 6 and 7 with each block memory and performing VII, the frame memory (4 ) Texture mapping can be performed by sequentially reading data from and writing data to the source data memory (42) and destination data memory (41) assigned to the data memory (41). That is, source vector (48), destination vector (49)
By eliminating the influence of the slope of , any vector can be converted per pixel to D D A (31)
The mapping process in the frame memory (4) can be performed in a time equal to the time required for the calculation.

グラフィックディスプレイ装置において2048X10
24画素の画像メモリを得ようとすれば、256にビッ
トのDRAMを8個使用して1つの画像メモリを構成し
、1画面分の画素データを記憶するようにしているとと
もに、ダブルバッファメモリとして1X8ビツトのもの
を2個一組として使用している。そして、上記画像メモ
リとして、表示中の画素データを記憶しておくためのプ
レーンと、次の表示を行なうための画素データを書込む
ためのプレーンとからなるデュアルプレーン構成が採用
され、各プレーン共に256にビットのDRAMを8個
で構成されている。
2048X10 for graphic display devices
To obtain a 24-pixel image memory, one image memory is constructed using eight 256-bit DRAMs to store pixel data for one screen, and is also used as a double buffer memory. Two 1x8 bits are used as a set. The image memory has a dual plane configuration consisting of a plane for storing pixel data being displayed and a plane for writing pixel data for the next display. It consists of eight 256-bit DRAMs.

したがって、上記のようにデュアルブレーン構成のまま
で、各プレーンについて、画面メモリを8つのブロック
メモリに分割し、各ブロックメモリに対応させてダブル
バッファメモリ、およびタイミング制御回路を設けよう
としても、各画像メモリ全体としての入力ビツト幅が小
さいため、適用することができない。即ち、256にビ
ットのDRAMの入力ビツト幅は4ビツトに設定されて
いるのであるから、各画像メモリ全体としての入力ビツ
ト幅は32ビツトしかないことになる。
Therefore, even if you try to divide the screen memory into eight block memories for each plane and provide a double buffer memory and a timing control circuit corresponding to each block memory while maintaining the dual-brain configuration as described above, it will be difficult to This cannot be applied because the input bit width of the image memory as a whole is small. That is, since the input bit width of the 256-bit DRAM is set to 4 bits, the input bit width of each image memory as a whole is only 32 bits.

しかし、1×8ビツトのダブルバッファメモリを8個設
けた場合には、ダブルバッファメモリ全体としてのビッ
ト幅が64ビツトになるため、側底1対1の対応関係を
確保することができず、1プレーン当り16個のDRA
Mを使用しなければならなくなってしまうので、必要以
上にメモリを必要とすることになってしまうという問題
がある。
However, when eight 1x8-bit double buffer memories are provided, the bit width of the double buffer memories as a whole is 64 bits, so it is not possible to ensure a one-to-one correspondence between the sides. 16 DRAs per plane
Since M must be used, there is a problem in that more memory is required than necessary.

こ゛のような問題を解消して、しかも、画像メモリとし
て、デュアルブレーン構成を確保するとともに、十分な
入力ピット幅を確保するために、DRAM単位で各プレ
ーンの区画を行なうのではなく、各DRAMの内部にお
いて、各プレーンの区画を行ない、D D A (31
)から出力されるy値の下3桁のデータに基いて何れの
プレーンに対するアクセスを行なうべきかをIIItm
する構成を採用した(第9図A参照)。
In order to solve these problems, to ensure a dual-plane configuration as an image memory, and to ensure a sufficient input pit width, each DRAM is Inside of , each plane is partitioned and D D A (31
) to determine which plane should be accessed based on the last three digits of the y value output from
(See Figure 9A).

第9図Bはさらに詳細に説明する図であり、タイミング
制御回路CNTO1CNT1・・・CNT7を設けてい
るとともに、各タイミング制御回路に対応させてダブル
バッファメモリDBO,DBI・・・DB7を設け、さ
らに、各ダブルバッファメモリに対応させて16個のD
RAMOlDRAMl・・・DRAM単位を、それぞれ
・・・DRAMj−2、DRAMj−1、DRAM、D
RAM単位1 、DRAM単位2・・・に区画している
。尚、DRAMの偶数番目と奇数番目とが対になって各
ダブルバッファメモリにそれぞれ対応させられており、
しかも、各タイミング制御回路に対応させられている。
FIG. 9B is a diagram for further detailed explanation, in which timing control circuits CNTO1CNT1...CNT7 are provided, and double buffer memories DBO, DBI...DB7 are provided corresponding to each timing control circuit. , 16 D corresponding to each double buffer memory
RAMOLDRAMl...DRAM units, respectively...DRAMj-2, DRAMj-1, DRAM, D
It is divided into RAM unit 1, DRAM unit 2, and so on. Furthermore, the even-numbered and odd-numbered DRAMs are paired and correspond to each double buffer memory, respectively.
Moreover, it is made to correspond to each timing control circuit.

また、上記各タイミング1111回路は、0DA(31
)から出力されるX値、およびyllの上位アドレスデ
ータに基いて、ダブルバッファメモリに供給された画素
データを書込むべきDRAM上のアドレスデータ・・・
j−2、j−1、j、j+1、j+2・・・を保持して
おくとともに、下7桁目のデータに基いてプレーンを選
択するためのデータをも保持しておくものである。
In addition, each of the above timing 1111 circuits has 0DA (31
) and the address data on the DRAM to which the pixel data supplied to the double buffer memory should be written based on the upper address data of yll...
j-2, j-1, j, j+1, j+2, . . . are held, and data for selecting a plane based on the data in the last 7th digit is also held.

したがって、上記実施例の場合と同様に、y座標の最下
位桁が変化したこと、X座標のF4桁目が変化したこと
、或は線分描画が終了したことを条件としてOD A 
(31)から出力されるデータを何れかのダブルバッフ
ァメモリの、一方のバッフ7メモリに供給するとともに
、他方のバッファメモリに保持されているデータを−・
括して対応するDRAMに書込むことができ、全体とし
て、D RAMに対する1画素当りのデータ書込み所要
時間を、OD A (31)による1画素分の演算所要
時間と等しくすることができる。
Therefore, as in the case of the above embodiment, OD A is performed on the condition that the least significant digit of the y-coordinate changes, the F4th digit of the X-coordinate changes, or the line segment drawing is completed.
The data output from (31) is supplied to one buffer 7 memory of either double buffer memory, and the data held in the other buffer memory is supplied to -.
Data can be written to the corresponding DRAM all at once, and as a whole, the time required to write data per pixel to the DRAM can be made equal to the time required for calculation for one pixel by ODA (31).

この結果、DRAMに対するリフレッシュ動作期間、お
よび表示のIこめにDRAMから画素データを読出す期
間についてはOD A (31)による演算動作を停止
させなければならないが、上記以外の期間については、
D D A (31)による演算動作を停止させること
なく、画素データの生成、および生成された画素データ
のDRAMへの書込みを行なわせることができる。しか
も、上記D RA Mのリフレッシュ動作期間について
は、予め定められているのであるから、予知することか
り能であり、DDAの制御クロックを予め間引いておく
だけで対処することができるので、上記期間を識別する
ためのハンドシェークを不要とし、画像メモリへのデー
タ書込み所要時間を一層短縮することができる。
As a result, the arithmetic operation by OD A (31) must be stopped during the refresh operation period for the DRAM and the period during which pixel data is read out from the DRAM at the time of display, but for periods other than the above,
Pixel data can be generated and the generated pixel data can be written into the DRAM without stopping the arithmetic operation by DDA (31). Moreover, since the DRAM refresh operation period is predetermined, it is possible to predict it, and it can be dealt with simply by thinning out the DDA control clock in advance. This eliminates the need for a handshake to identify the data, and further reduces the time required to write data to the image memory.

また、上記の実施例において、DRAMとして、デュア
ルポートDRAMを使用ずれば、表示のための読出し所
要時間を大巾に短縮することができ、98%程度の時間
をデータ書込みのために割当てることができるので、全
体として、画像メモリに対するデータ書込み所要時間を
短縮することができる。
Furthermore, in the above embodiment, if a dual-port DRAM is used as the DRAM, the time required for reading for display can be greatly reduced, and about 98% of the time can be allocated for data writing. Therefore, the time required to write data to the image memory can be shortened as a whole.

尚、この発明は上記の″実施例に限定されるものではな
く、例えば、S RA M (43)に代えてFIFO
メモリを使用することが可能であるほか、遅延用のFI
FOメモリ(50)に代えて、線分補間回路(31)よ
りも所定時間だけ遅延したタイミングでアドレスデータ
を生成する別個のDDAを使用することが可能であり、
さらに、ダブルバッファメモリの数、およびタイミング
制御回路の数を変化させることが可能であるほか、拡大
、縮小、回転等の処理をも行なわせることが可能であり
、その他、この発明の要旨を変更しない範囲内において
種々の設計変更を施すことが可能である。
It should be noted that the present invention is not limited to the above-mentioned embodiment. For example, instead of S RAM (43), FIFO
In addition to being able to use memory, FI for delay
Instead of the FO memory (50), it is possible to use a separate DDA that generates address data at a timing delayed by a predetermined time from the line segment interpolation circuit (31),
Furthermore, it is possible to change the number of double buffer memories and the number of timing control circuits, and it is also possible to perform processing such as enlargement, reduction, rotation, etc., and other changes can be made to the gist of the invention. It is possible to make various design changes within the scope.

〈発明の効果〉 以上のようにこの発明は、ソースデータ保持手段から読
出したソースベクトル上のデータを、アドレスが順次増
加させられるソースデータ一時保持手段に一時的に保持
させ、−時的に保持されたデータを、タイミング制御手
段から出力される制御信箒に基いて制御されるダブルバ
ッファメモリを介してデイステイネ−シコンデータ保持
手段を構成する何れかのブロックメモリに書込むことに
よりマツピング処理が施されたディスティネーションデ
ータを得るようにしているので、全体としてテクスチャ
マツピング処理を著しく高速に行なうことができるとい
う特有の効果を奏する。
<Effects of the Invention> As described above, the present invention causes the data on the source vector read from the source data holding means to be temporarily held in the source data temporary holding means whose addresses are sequentially increased; The mapping process is performed by writing the data into one of the block memories constituting the destination data holding means via a double buffer memory that is controlled based on a control signal output from the timing control means. Since the destination data that has been mapped is obtained, there is a unique effect that the texture mapping process can be performed at an extremely high speed as a whole.

【図面の簡単な説明】 第1図はマツピング動作を説明する概略図、第2図はデ
ィスディネーションデータメモリに対するカラーデータ
の書込みを行なうための構成を示すブロック図、 第3図はこの発明のチクスゲ・ヤマツビング装置の一実
施例を示すブロック図、 第4図はソースデータメモリからソースベクトルFのカ
ラーデータを読出す速度をも向上させるための構成を示
すブロック図、 第5図AはODAをバイブライン化した状態を示す概略
図、 第5図Bはアドレスデータの特定の桁の内容の変化を検
出するための回路構成の一例を示す図、第6図はアドレ
スデータの特定の桁の内容の変化を検出するための回路
構成の他側を示す図、第7図はダブルバッファメモリ切
替えタイミング検出フラグに基いてDRAMのタイミン
グ制御、およびダブルバッファメモリ切替えを行なわせ
るための回路構成を示す図、 第8図は第7図の回路図の動作を説明するタイミングチ
ャート、 第9図Aは画像メモリのブレーン構成を説明する図、 第9図Bは、第9図Aの構成の画像メモリと、ダブルバ
ッファメモリ、およびタイミング制御回路との関係を示
す図。 (4)・・・フレームメモリ、(31)・・・線分補間
回路、(40)・・・デコーダ、(41)・・・ディス
アイネーションデータメモリ、 (42)・・・ソースデータメモリ、 (43)・・・SRAM、(44)・・・アップカウン
タ、(48)・・・ソースベクトル、 (49)・・・ディスティネーションベクトル、(50
)・F I F Oメモリ、 (400)(401)(402)(403)・・・ブロ
ックメモリ、(450)(451)・・・(457)・
・・ダブルバッファメモリ、(460)(461)(4
62)(463)・・・タイミング制御回路特許出願人
  ダイキン工業株式会社 代 理 人  弁理士 津 川 友 士第2図 第5図 (B) 第6図 (A)
[Brief Description of the Drawings] Fig. 1 is a schematic diagram explaining the mapping operation, Fig. 2 is a block diagram showing the configuration for writing color data to the destination data memory, and Fig. 3 is a schematic diagram illustrating the mapping operation. FIG. 4 is a block diagram showing an embodiment of the Chikusuge Yamatsubing device; FIG. 4 is a block diagram showing a configuration for also improving the speed of reading color data of source vector F from the source data memory; FIG. 5A is an ODA A schematic diagram showing the vibrating state; Figure 5B is a diagram showing an example of a circuit configuration for detecting a change in the content of a specific digit of address data; Figure 6 is a diagram showing the content of a specific digit of address data. FIG. 7 is a diagram showing the other side of the circuit configuration for detecting a change in , and FIG. 7 is a diagram showing a circuit configuration for controlling the timing of the DRAM and performing double buffer memory switching based on the double buffer memory switching timing detection flag. , FIG. 8 is a timing chart explaining the operation of the circuit diagram in FIG. 7, FIG. 9A is a diagram explaining the brain configuration of the image memory, and FIG. 9B is a diagram showing the image memory with the configuration shown in FIG. 9A. , a double buffer memory, and a timing control circuit. (4) Frame memory, (31) Line interpolation circuit, (40) Decoder, (41) Disaination data memory, (42) Source data memory, (43)...SRAM, (44)...up counter, (48)...source vector, (49)...destination vector, (50
)・FIFO memory, (400) (401) (402) (403)...Block memory, (450) (451)...(457)・
・Double buffer memory, (460) (461) (4
62) (463)... Timing control circuit patent applicant Daikin Industries, Ltd. Agent Patent attorney Tomoshi Tsugawa Figure 2 Figure 5 (B) Figure 6 (A)

Claims (1)

【特許請求の範囲】 1、投影するための画像情報を保持しているソースデー
タ保持手段(42)に対してテクスチャ平面座標データ
を供給することによりソースデータを読出し、表示のた
めの画像情報を保持するディスティネーシヨンデータ保
持手段(41)に対して、供給されるディスプレイ平面
座標データに対応させてソースデータを供給するテクス
チャマッピング装置において、 順次供給されるテクスチャ平面座標データに同期してア
ドレスデータが順次変化させられ、テクスチャ平面座標
データに対応して読出されるソースベクトル(48)上
のデータを保持するソースデータ一時保持手段(43)
と、ソースベクトル(48)に対応するディスプレイベ
クトル(49)上のディスプレイ平面座標データ生成動
作と同期してソースデータ一時保持手段(43)に保持
されているソースデータを格納順に読出してディスティ
ネーションデータ保持手段(41)に供給するソースデ
ータ供給手段とを有しており、しかも、上記ディスティ
ネーシヨンデータ保持手段(41)が複数制のブロック
メモリ(410)(411)(412)(413)で構
成されているとともに、上記ソースデータ供給手段が、
各ブロックメモリに対応させてダブルバッファメモリ(
450)(451)(452)(453)、およびディ
スプレイ平面座標データを入力として下位桁をデコード
し、デコード信号に基いてダブルバッファメモリを通し
ての画素データの書込みを行なわせる制御信号を生成す
るタイミング制御手段(460)(461)(462)
(463)を有していることを特徴とするテクスチャマ
ッピング装置。 2、ソースデータ保持手段(42)と、ディスティネー
シヨンデータ保持手段(41)とが、互に同一の画像メ
モリ(4)上に割当てられている上記特許請求の範囲第
1項記載のテクスチャマッピング装置。 3、ソースデータ保持手段(42)が、複数個のブロッ
クメモリ(400)(401)(402)(403)で
構成されているとともに、各ブロックメモリ(400)
(401)(402)(403)に対応させて書込み用
ダブルバッファメモリ(450)(451)(452)
(453)、読出し用ダブルバッファメモリ(454)
(455)(456)(457)、およびテクスチャ平
面座標データを入力として下位桁をデコードし、デコー
ド信号に基いて書込み用ダブルバッファメモリを通して
の画素データの書込みを行なわせる制御信号を生成する
タイミング制御手段(460)(461)(462)(
463)、および上記テクスチャ平面座標データを所定
時間だけ遅延させて読出し用ダブルバッファメモリに供
給する遅延手段(50)を有している上記特許請求の範
囲第1項、または第2項に記載のテクスチャマツピング
装置。 4、遅延手段が、FIFOメモリ(50)、およびデコ
ーダ(40)で構成されている上記特許請求の範囲第3
項記載のテクスチャマッピング装置。 5、遅延手段が、所定時間遅延させられたタイミングで
テクスチャ平面座標データを生成する直線補間演算器、
およびデコーダで構成されている上記特許請求の範囲第
3項記載のテクスチャマッピング装置。 6、ソースデータ一時保持手段がスタティックランダム
アクセスメモリである上記特許請求の範囲第1項記載の
テクスチャマッピング装置。 7、ソースデータ一時保持手段がFIFOメモリである
上記特許請求の範囲第1項記載のテクスチャマツピング
装置。 8、タイミング制御手段が、スキャン方向の座標データ
の下位桁をデコードしてダブルバッファメモリの切替え
を行なわせる制御信号を生成するとともに、スキャン方
向と直角な方向の座標データの下位桁をデコードしてダ
ブルバッファの選択を行なわせる制御信号を生成する上
記特許請求の範囲第1項から第3項の何れかに記載のテ
クスチャマッピング装置。 9、タイミング制御手段が、座標データの下位所定桁が
変化するタイミングで制御信号を生成するものである上
記特許請求の範囲第1項から第3項の何れかに記載のテ
クスチャマツピング装置。 10、タイミング制御手段が、スキャン方向の座標デー
タについては、ダブルバッフアメモリの容量に対応する
下位所定桁が変化するタイミングで制御信号を生成し、
スキャン方向と直角な方向の座標データについては、最
も最下位桁が変化するタイミングで制御信号を生成する
ものである上記特許請求の範囲第9項記載のテクスチャ
マッピング装置。 11、タイミング制御手段が、直線補間演算器から出力
される描画終了信号をも入力としてダブルバッファメモ
リの切替えを行なわせる制御信号を生成するものである
上記特許請求の範囲第8項から第10項の何れかに記載
のテクスチャマツピング装置。 12、画像メモリが所定サイズの複数個のブロックメモ
リで構成されているとともに、 各ブロックメモリが、互に異なる画像データを格納すべ
く2分割されている上記特許請求の範囲第1項から第3
項の何れかに記載のテクスチャマッピング装置。 13、画像メモリがデュアルポートダイナミックランダ
ムアクセスメモリである上記特許請求の範囲第1項、第
2項、または第12項に記載のテクスチャマッピング装
置。
[Claims] 1. Read the source data by supplying texture plane coordinate data to the source data holding means (42) holding image information for projection, and read the image information for display. In a texture mapping device that supplies source data to destination data holding means (41) in correspondence with supplied display plane coordinate data, address data is supplied in synchronization with sequentially supplied texture plane coordinate data. source data temporary holding means (43) for holding data on a source vector (48) that is sequentially changed and read out in accordance with the texture plane coordinate data;
Then, in synchronization with the display plane coordinate data generation operation on the display vector (49) corresponding to the source vector (48), the source data held in the source data temporary holding means (43) is read out in the order in which they are stored, and destination data is generated. and a source data supply means for supplying the source data to the holding means (41), and furthermore, the destination data holding means (41) is a plurality of block memories (410), (411), (412), and (413). The source data supply means is configured to include:
Double buffer memory (
450) (451) (452) (453) and display plane coordinate data as input, decodes the lower digits, and generates a control signal to write pixel data through the double buffer memory based on the decoded signal. Means (460) (461) (462)
(463) A texture mapping device comprising: (463). 2. Texture mapping according to claim 1, wherein the source data holding means (42) and the destination data holding means (41) are allocated on the same image memory (4). Device. 3. The source data holding means (42) is composed of a plurality of block memories (400) (401) (402) (403), and each block memory (400)
(401) (402) (403) Double buffer memory for writing (450) (451) (452)
(453), double buffer memory for reading (454)
(455), (456), and (457), and timing control that decodes the lower digits by inputting texture plane coordinate data and generates a control signal to write pixel data through the writing double buffer memory based on the decoded signal. Means (460) (461) (462) (
463), and a delay means (50) for delaying the texture plane coordinate data by a predetermined time and supplying the same to a reading double buffer memory. Texture mapping device. 4. The third aspect of the above claim, wherein the delay means is composed of a FIFO memory (50) and a decoder (40).
The texture mapping device described in Section 1. 5. A linear interpolation calculator in which the delay means generates texture plane coordinate data at a timing delayed by a predetermined time;
The texture mapping device according to claim 3, comprising a decoder and a decoder. 6. The texture mapping apparatus according to claim 1, wherein the source data temporary holding means is a static random access memory. 7. The texture mapping apparatus according to claim 1, wherein the source data temporary holding means is a FIFO memory. 8. The timing control means decodes the lower digits of the coordinate data in the scan direction to generate a control signal for switching the double buffer memory, and also decodes the lower digits of the coordinate data in the direction perpendicular to the scan direction. A texture mapping device according to any one of claims 1 to 3, which generates a control signal for selecting a double buffer. 9. The texture mapping device according to any one of claims 1 to 3, wherein the timing control means generates the control signal at a timing when a lower predetermined digit of the coordinate data changes. 10. The timing control means generates a control signal for coordinate data in the scanning direction at a timing when a predetermined lower digit corresponding to the capacity of the double buffer memory changes;
10. The texture mapping apparatus according to claim 9, wherein the control signal is generated at the timing when the least significant digit changes for coordinate data in a direction perpendicular to the scanning direction. 11. Claims 8 to 10 above, wherein the timing control means generates a control signal for switching the double buffer memory by also inputting a drawing end signal output from the linear interpolation calculator. The texture mapping device according to any one of the above. 12. Claims 1 to 3 above, wherein the image memory is composed of a plurality of block memories of a predetermined size, and each block memory is divided into two to store mutually different image data.
The texture mapping device according to any one of the above items. 13. The texture mapping device according to claim 1, 2, or 12, wherein the image memory is a dual-port dynamic random access memory.
JP62272861A 1987-10-21 1987-10-28 Texture mapping device Pending JPH01114990A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62272861A JPH01114990A (en) 1987-10-28 1987-10-28 Texture mapping device
US07/260,513 US4945495A (en) 1987-10-21 1988-10-20 Image memory write control apparatus and texture mapping apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62272861A JPH01114990A (en) 1987-10-28 1987-10-28 Texture mapping device

Publications (1)

Publication Number Publication Date
JPH01114990A true JPH01114990A (en) 1989-05-08

Family

ID=17519795

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62272861A Pending JPH01114990A (en) 1987-10-21 1987-10-28 Texture mapping device

Country Status (1)

Country Link
JP (1) JPH01114990A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1995035139A1 (en) * 1994-06-17 1995-12-28 Namco Ltd. Three-dimensional simulator and image generating method
WO1996008298A1 (en) * 1994-09-16 1996-03-21 Namco Ltd. Three-dimensional simulator and image synthesis method
WO1997013221A1 (en) * 1995-09-29 1997-04-10 Hitachi, Ltd. Drawing device
US7136068B1 (en) 1998-04-07 2006-11-14 Nvidia Corporation Texture cache for a computer graphics accelerator
US7330188B1 (en) 1999-03-22 2008-02-12 Nvidia Corp Texture caching arrangement for a computer graphics accelerator

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1995035139A1 (en) * 1994-06-17 1995-12-28 Namco Ltd. Three-dimensional simulator and image generating method
GB2295757A (en) * 1994-06-17 1996-06-05 Namco Ltd Three-dimensional simulator and image generating method
GB2295757B (en) * 1994-06-17 1998-04-08 Namco Ltd Three-dimensional simulator and image synthesis method
US5966132A (en) * 1994-06-17 1999-10-12 Namco Ltd. Three-dimensional image synthesis which represents images differently in multiple three dimensional spaces
WO1996008298A1 (en) * 1994-09-16 1996-03-21 Namco Ltd. Three-dimensional simulator and image synthesis method
US5764232A (en) * 1994-09-16 1998-06-09 Namco Ltd. Three-dimensional simulator apparatus and image synthesis method
WO1997013221A1 (en) * 1995-09-29 1997-04-10 Hitachi, Ltd. Drawing device
US7136068B1 (en) 1998-04-07 2006-11-14 Nvidia Corporation Texture cache for a computer graphics accelerator
US7330188B1 (en) 1999-03-22 2008-02-12 Nvidia Corp Texture caching arrangement for a computer graphics accelerator
US8018467B2 (en) 1999-03-22 2011-09-13 Nvidia Corporation Texture caching arrangement for a computer graphics accelerator

Similar Documents

Publication Publication Date Title
US6278645B1 (en) High speed video frame buffer
US5864512A (en) High-speed video frame buffer using single port memory chips
US5036475A (en) Image memory data processing control apparatus
US10163180B2 (en) Adaptive memory address scanning based on surface format for graphics processing
KR860002872A (en) Image memory peripherals
KR950006578A (en) Method and apparatus for constructing frame buffer with fast copy means
JPH08212382A (en) Z-buffer tag memory constitution
KR950001542A (en) Shape drawing processing device
JPH01114990A (en) Texture mapping device
JPH067304B2 (en) Graphic processing device
JPH07122905B2 (en) Polygon fill control device
JP2551045B2 (en) Image memory data processing controller
KR100472478B1 (en) Method and apparatus for controlling memory access
JPS5971564A (en) Picture data memory control system
JP2757790B2 (en) Memory controller
JPH07110786A (en) Semiconductor storage device
JPH01108686A (en) Image memory write controller
JP2741710B2 (en) Memory write control method and device
JPH1153573A (en) Three-dimensional image processor and video window generating method
KR920008275B1 (en) Memory address control system
JPS63298673A (en) Image memory element
JPH02163793A (en) Graphics display device
JPH01187679A (en) Sectioning device
JPH0765198A (en) Image memory device
JPH04139529A (en) Graphic display device