JPH08123968A - Plotting processor - Google Patents

Plotting processor

Info

Publication number
JPH08123968A
JPH08123968A JP6259980A JP25998094A JPH08123968A JP H08123968 A JPH08123968 A JP H08123968A JP 6259980 A JP6259980 A JP 6259980A JP 25998094 A JP25998094 A JP 25998094A JP H08123968 A JPH08123968 A JP H08123968A
Authority
JP
Japan
Prior art keywords
stage
register
processor
execution
cpu
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.)
Withdrawn
Application number
JP6259980A
Other languages
Japanese (ja)
Inventor
Taketoshi Yasumuro
武寿 安室
Nobuhiko Minamoto
信彦 源
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.)
Fujitsu Ltd
PFU Ltd
Original Assignee
Fujitsu Ltd
PFU 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 Fujitsu Ltd, PFU Ltd filed Critical Fujitsu Ltd
Priority to JP6259980A priority Critical patent/JPH08123968A/en
Publication of JPH08123968A publication Critical patent/JPH08123968A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE: To speed up processing and to reduce the overhead of register setting with simple circuit constitution. CONSTITUTION: A buffer register 16 as a 1st stage which receives instructions and parameters from a CPU 10 and an execution register 18 as a 2nd stage which receives instructions and parameters transferred from the 1st-stage buffer register and makes a processor 20 perform plotting processing are provided in series in front of the plotting processor 20. Further, a selecting circuit 30 which sets the value of the execution register 18 used for the current plotting processing in the execution register 18 so that the value will be used as it is for next plotting processing is provided between the 1st-stage buffer register 16 and 2nd-stage execution register 18.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、パーソナルコンピュー
タやワークステーション等のグラフィックス表示に使用
される描画処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drawing processing apparatus used for displaying graphics such as a personal computer or a workstation.

【0002】[0002]

【従来技術】近年、プロセッサの処理能力の向上とOS
技術の発達により、ビットマップ処理を多用したグラフ
ィカル・ユーザ・インタフェース(GUI)が一般化し
てきている。しかしながら、描画に必要な全ての処理を
CPUにより行うには負荷が重く、実用的な応答速度が
得られないため、表示部分には専用のハードウェアを設
け、CPUの処理を補うことが多い。
2. Description of the Related Art In recent years, the processing capacity of processors and the OS
With the development of technology, a graphical user interface (GUI) that makes extensive use of bitmap processing has become popular. However, since the load is heavy for the CPU to perform all the processing necessary for drawing and a practical response speed cannot be obtained, dedicated hardware is often provided in the display portion to supplement the CPU processing.

【0003】この表示専用のハードウェアは、グラフィ
ックス・アクセラレータまたは描画処理装置と呼ばれ、
描画プロセッサを含む専用のハードウェアで構成してい
る。図7は従来の描画処理装置であり、CPU100の
命令及びパラメータを受けるため、レジスタ1段分のみ
もっている。レジスタは命令レジスタ102−1、コマ
ンドパラメータを格納するX座標レジスタ102−2、
Y座標レジスタ102−3及びカラー値レジスタ(RG
Bレジスタ)102−4等に分けて設けられる。
This display-only hardware is called a graphics accelerator or drawing processing device,
It consists of dedicated hardware including a drawing processor. FIG. 7 shows a conventional drawing processing apparatus, which has only one register for receiving instructions and parameters of the CPU 100. The register is an instruction register 102-1, an X coordinate register 102-2 for storing command parameters,
Y coordinate register 102-3 and color value register (RG
B register) 102-4 and the like.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の描画処理装置にあっては、一旦、CPU10
2がレジスタ102−1〜102−4に命令及びパラメ
ータを設定して処理プロセッサ104の描画処理グラフ
ィックエンジン106がフレームメモリ108に対し描
画動作を開始すると、1命令分の処理を終了するまでレ
ジスタ102−1〜102−4の設定が行えなくなる。
このため文字描画やベクトル描画といった連続した処理
の場合、処理プロセッサ104の処理終了を待っている
時間が無視できなくなってくる。
However, in such a conventional drawing processing apparatus, once the CPU 10
2 sets an instruction and a parameter in the registers 102-1 to 102-4 and the drawing processing graphic engine 106 of the processing processor 104 starts a drawing operation with respect to the frame memory 108. -1 to 102-4 cannot be set.
Therefore, in the case of continuous processing such as character drawing and vector drawing, the time waiting for the processing end of the processing processor 104 cannot be ignored.

【0005】図8は、命令及びパラメータの格納にFI
FO110を使用した従来装置である。この場合には、
処理プロセッサ104の処理終了の待ち時間は少なくす
ることができる。しかし、FIFO110の制御回路が
複雑であり、またFIFO110で命令を受けてから処
理プロセッサ104で処理を終了するまでの時間が長く
なる。このため、まとまった描画処理でない場合は、そ
の都度、命令を解釈する時間が必要なため、逆に応答が
悪くなる。
FIG. 8 shows a FI for storing instructions and parameters.
This is a conventional device using the FO110. In this case,
The waiting time for the processing processor 104 to complete the processing can be reduced. However, the control circuit of the FIFO 110 is complicated, and it takes a long time from when an instruction is received by the FIFO 110 to when the processing processor 104 finishes the processing. For this reason, if the drawing process is not organized, it takes time to interpret the command each time, and the response becomes worse.

【0006】更に、1つの描画処理の終了を待って次の
描画処理を行う場合、フレームメモリ108上の描画領
域が重なると、FIFO110が空になるまで待つ必要
があり、FIFO110を使う利点が失われる。図9
は、レジスタを並列に二重化した従来装置である。即
ち、コマンドレジスタ102−1,114−1、X座標
レジスタ102−1,114−2、Y座標レジスタ10
2−3,114−3及びカラー値レジスタ102−4,
114−4を設け、マルチプレクサ116−1〜116
−4で切替えるようにしている。
Further, when the next drawing process is performed after the completion of one drawing process, if the drawing areas on the frame memory 108 overlap, it is necessary to wait until the FIFO 110 becomes empty, and the advantage of using the FIFO 110 is lost. Be seen. Figure 9
Is a conventional device in which registers are duplicated in parallel. That is, command registers 102-1, 114-1, X coordinate registers 102-1, 114-2, Y coordinate register 10
2-3 and 114-3 and the color value register 102-4,
114-4 is provided and multiplexers 116-1 to 116
-4 is used for switching.

【0007】このようなレジスタの二重化により、ハー
ドウェアも簡単になり、片方のレジスタにCPU100
が命令及びパラメータの設定を行っている間に、もう片
方のレジスタを選択して処理プロセッサ104で描画処
理を行うことができ、待ち時間も少なくすることが可能
である。しかし、2つのレジスタ群が独立して動作する
ことになるため、処理の継続性が失われる。例えばベク
トルの連続描画のように、前の処理に引き続き同一のパ
ラメータ(座標、色情報・大きさ等の値)で処理する場
合、同一パラメータであっても、全てのパラメータを改
めて設定をする必要があり、レジスタ設定のオーバヘッ
ドが大きくなる。
Such duplication of the registers also simplifies the hardware, and one register has the CPU 100
While setting the command and parameter, the other register can be selected and the processing processor 104 can perform the drawing process, and the waiting time can be shortened. However, since the two register groups operate independently, continuity of processing is lost. When processing with the same parameters (values such as coordinates, color information, size, etc.) following the previous processing, such as continuous drawing of vectors, it is necessary to set all parameters again, even if they are the same parameters. Therefore, the overhead of register setting becomes large.

【0008】本発明は、このような従来の問題点に鑑み
てなされたもので、簡単な回路構成で、処理の高速化と
レジスタ設定のオーバヘッドを低減できる描画処理装置
を提供することを目的とする。
The present invention has been made in view of such conventional problems, and an object of the present invention is to provide a drawing processing apparatus capable of accelerating processing and reducing register setting overhead with a simple circuit configuration. To do.

【0009】[0009]

【課題を解決するための手段】図1は本発明の原理説明
図である。まず本発明は、命令及びパラメータを作成す
るCPU10に対し独立して命令及びパラメータに基づ
いた描画処理動作を行う描画プロセッサ20を備えた描
画処理装置14を対象とする。
FIG. 1 is a diagram illustrating the principle of the present invention. First, the present invention is directed to a drawing processing apparatus 14 including a drawing processor 20 that performs a drawing processing operation based on a command and a parameter independently of a CPU 10 that creates a command and a parameter.

【0010】このような描画処理装置14として本発明
は、図1(A)のように、描画プロセッサ20の前段
に、CPU10からの命令及びパラメータを受け取る1
段目のバッファレジスタ16と、1段目のバッファレジ
スタ16から命令及びパラメータの転送を受け処理プロ
セッサ20に描画処理を行わせる2段目の実行レジスタ
18とを、直列に設けたことを特徴とする。
According to the present invention as the drawing processing device 14 as described above, as shown in FIG. 1A, the drawing processor 20 receives a command and a parameter 1 from the CPU 10 before the drawing processor 20.
The buffer register 16 in the second stage and the execution register 18 in the second stage, which receives instructions and parameters from the buffer register 16 in the first stage and causes the processor 20 to perform the drawing process, are provided in series. To do.

【0011】更に、本発明は、図1(B)のように、1
段目のバッファレジスタ16と2段目の実行レジスタ1
8の間に、今回の描画処理に使用した実行レジスタ18
の値を次回の描画処理にそのまま使用させるために、実
行レジスタ18に再度セットする選択回路30を設けた
ことを特徴とする。レジスタ16,18を直列に二重化
した場合、描画プロセッサ20は、1段目のバッファレ
ジスタ18の命令及びパラメータの格納状態を示すビジ
ィ・ステータスと、2段目の実行レジスタ18の値に基
づいた描画処理の実行中を示すラン・ステータスを、C
PU10に通知するこのためCPU10で命令及びパラ
メータを連続的に設定して描画を指示する場合、描画プ
ロセッサ20からのビジィ・ステータスが解除される毎
に、1段目のバッファレジスタ16に命令及びステータ
スを設定する。
Further, according to the present invention, as shown in FIG.
Buffer register 16 in the second stage and execution register 1 in the second stage
During 8, the execution register 18 used for this drawing process
In order to use the value of 1 as it is in the next drawing process as it is, a selection circuit 30 for resetting the value in the execution register 18 is provided. When the registers 16 and 18 are duplicated in series, the drawing processor 20 draws based on the busy status indicating the storage state of the instruction and parameter of the buffer register 18 of the first stage and the value of the execution register 18 of the second stage. The run status indicating that the process is being executed is C
When the CPU 10 continuously sets instructions and parameters to notify the PU 10 to instruct drawing, each time the busy status from the drawing processor 20 is released, the instruction and status are stored in the buffer register 16 of the first stage. To set.

【0012】一方、CPU10で1つの命令及びパラメ
ータの設定による1回の描画処理が終了した後に次の描
画処理を指示する場合、描画プロセッサ20からのラン
・ステータスの解除を待って1段目のバッファレジスタ
16に次の命令及びパラメータを設定する。
On the other hand, when the CPU 10 instructs the next drawing process after one drawing process is completed by setting one command and parameter, the run status is released from the drawing processor 20 and the first stage is waited for. The following instructions and parameters are set in the buffer register 16.

【0013】[0013]

【作用】このような本発明の描画処理装置によれば、C
PU10により命令及びパラメータの設定を受けるレジ
スタを直列に二重化することにより、描画プロセッサ2
0の動作中に1段目のバッファレジスタ16を解放する
ことで、待ち時間の無駄をなくし、且つ、設定値を1段
目のバッファレジスタ16から2段目の実行レジスタ1
8に引き継ぐことにより、処理の継続性を保つことがで
きる。また、レジスタを直列に繋ぎ合わせるだけである
ため、ハード量が少なくて済む。
According to the drawing processing apparatus of the present invention as described above, C
By duplicating the registers that receive instructions and parameter settings by the PU 10 in series, the drawing processor 2
By releasing the buffer register 16 of the first stage during the operation of 0, waste of waiting time is eliminated, and the set value is changed from the buffer register 16 of the first stage to the execution register 1 of the second stage.
By taking over to 8, the continuity of processing can be maintained. Moreover, since the registers are simply connected in series, the amount of hardware is small.

【0014】[0014]

【実施例】図2は本発明の第1実施例である。CPU1
0は、描画処理に必要な描画データを生成して本発明の
描画処理装置14に転送する。CPU10で作成される
1つの描画データは、コマンドとそのパラメータで構成
される。例えば2次元描画を例にとると、基本的な描画
データはコマンドX座標値、Y座標値、座標点のカラー
値(例えばRGB値)で構成される。勿論、3次元デー
タについては、これにZ座標値が加わる。このような描
画データを生成するため、CPU10にあっては、レン
ダリング処理として知られた形状変形のためのモデリン
グ変換、着色のための色計算、見る範囲を変更するため
の視野計算、領域を制限するためのクリッピング、見る
方向を変更するための座標変換、ギザギザを除去するた
めのアンチエイリアシングなどを行う。更に高品位の処
理として、濃淡の色表現を行うためのフォン・シェーデ
ィング、透明感を表現するαブレンディング、影や反射
を表現するラジオシティやレイ・トレーシングなどを行
うこともできる。
FIG. 2 shows a first embodiment of the present invention. CPU1
0 generates the drawing data necessary for the drawing process and transfers it to the drawing processing device 14 of the present invention. One drawing data created by the CPU 10 is composed of a command and its parameter. Taking two-dimensional drawing as an example, basic drawing data is composed of command X coordinate values, Y coordinate values, and color values (for example, RGB values) of coordinate points. Of course, for three-dimensional data, the Z coordinate value is added to this. In order to generate such drawing data, the CPU 10 performs modeling conversion for shape transformation known as rendering processing, color calculation for coloring, field-of-view calculation for changing a viewing range, and area limitation. Clipping to do this, coordinate transformation to change the viewing direction, anti-aliasing to remove jagged edges, etc. Further, as high-quality processing, phon shading for expressing shades of color, α blending for expressing transparency, and radiosity and ray tracing for expressing shadows and reflections can be performed.

【0015】本発明の描画処理装置14は、描画プロセ
ッサ20を有する。描画プロセッサ20には、プログラ
ム制御により実現される描画処理グラフィックエンジン
22が搭載されている。描画プロセッサ20の処理結果
は、フレームメモリ24に例えば2次元ドットパターン
として展開される。フレームメモリ24の描画パターン
は、CRT26に読出し表示される。
The drawing processing apparatus 14 of the present invention has a drawing processor 20. The drawing processor 20 is equipped with a drawing processing graphic engine 22 realized by program control. The processing result of the drawing processor 20 is developed in the frame memory 24 as, for example, a two-dimensional dot pattern. The drawing pattern of the frame memory 24 is read and displayed on the CRT 26.

【0016】描画プロセッサ20の前段には、本発明に
あっては、二重化したレジスタを直列に設けている。こ
の実施例にあっては、CPU10からのコマンドに加
え、X座標、Y座標およびカラー値の3つのコマンドパ
ラメータを例にとっていることから、直列に二重化した
レジスタが4系統設けられる。即ち、コマンド系につい
て、コマンドバッファレジスタ16−1とコマンド実行
レジスタ18−1が直列に設けられる。
In the present invention, a duplicated register is provided in series in front of the drawing processor 20. In this embodiment, in addition to the command from the CPU 10, three command parameters of the X coordinate, the Y coordinate and the color value are taken as an example, so that there are provided four systems of duplicated registers in series. That is, for the command system, the command buffer register 16-1 and the command execution register 18-1 are provided in series.

【0017】X座標については、X座標バッファレジス
タ16−2とX座標実行レジスタ18−2が直列に設け
られる。Y座標については、Y座標バッファレジスタ1
6−3とY座標実行レジスタ18−3が設けられる。更
にカラー値については、カラー値バッファレジスタ16
−4とカラー値実行レジスタ18−4が直列に設けられ
る。
Regarding the X coordinate, an X coordinate buffer register 16-2 and an X coordinate execution register 18-2 are provided in series. For Y coordinate, Y coordinate buffer register 1
6-3 and a Y-coordinate execution register 18-3 are provided. For color values, the color value buffer register 16
-4 and the color value execution register 18-4 are provided in series.

【0018】1段目のバッファレジスタ16−1〜16
−4に対しては、CPU10からのCPUバス12が接
続される。各バッファレジスタ16−1〜16−4に対
するコマンドおよびパラメータの格納は、CPU10で
作成された1つの画素データのリスト構造からコマンド
およびパラメータの順番に順次読み出して転送すること
で格納できる。
First stage buffer registers 16-1 to 16
The CPU bus 12 from the CPU 10 is connected to -4. The commands and parameters can be stored in the buffer registers 16-1 to 16-4 by sequentially reading and transferring the commands and parameters in order from the list structure of one pixel data created by the CPU 10.

【0019】描画プロセッサ20は、1段目のバッファ
レジスタ16−1〜16−4の格納状態を監視してお
り、バッファレジスタ16−1〜16−4にCPU10
より命令およびパラメータが格納された状態で、ビジィ
・ステータスをCPUバス12を介してCPU10に通
知する。また描画プロセッサ20は、2段目の実行レジ
スタ18−1〜18−4の値に基づいて、描画処理グラ
フィックエンジン22で描画処理の実行中にあるとき
は、ラン・ステータスをCPUバス12を介してCPU
10に通知する。
The drawing processor 20 monitors the storage states of the first-stage buffer registers 16-1 to 16-4, and the CPU 10 is stored in the buffer registers 16-1 to 16-4.
The CPU 10 is notified of the busy status via the CPU bus 12 in the state where the instruction and the parameter are stored. Further, the drawing processor 20 sends the run status via the CPU bus 12 based on the values of the execution registers 18-1 to 18-4 in the second stage while the drawing processing graphic engine 22 is executing the drawing processing. CPU
Notify 10.

【0020】このためCPU10は、ベクトル描画や文
字描画のように連続的にコマンドとパラメータを設定し
て描画を指示する場合には、描画プロセッサ20からの
ビジィ・ステータスをチェックし、ビジィ・ステータス
の解除で1段目のバッファレジスタ16−1〜16−4
が空き状態となったときに次のコマンドおよびパラメー
タを設定するようになる。
For this reason, the CPU 10 checks the busy status from the drawing processor 20 in order to instruct drawing by continuously setting commands and parameters such as vector drawing or character drawing, and checks the busy status of the busy status. When released, the first-stage buffer registers 16-1 to 16-4
The following commands and parameters will be set when is empty.

【0021】一方、実行レジスタ18−1〜18−4の
値に基づく描画プロセッサ20での描画処理が終了した
後に次の描画データの指示による描画を行う場合には、
CPU10は描画プロセッサ20のラン・ステータスを
チェックしており、ラン・ステータスが解除となったこ
とで、描画プロセッサ20における1回の描画処理の終
了を認識し、次のコマンドおよびパラメータを1段目の
バッファレジスタ16−1〜16−4に設定して、次の
描画処理を行わせるようになる。
On the other hand, in the case of performing drawing according to the instruction of the next drawing data after the drawing processing in the drawing processor 20 based on the values of the execution registers 18-1 to 18-4 is completed,
The CPU 10 checks the run status of the drawing processor 20, and when the run status is released, the CPU 10 recognizes the end of one drawing process in the drawing processor 20 and sets the next command and parameter to the first stage. The buffer registers 16-1 to 16-4 are set to enable the next drawing process.

【0022】更に、描画処理装置14における1段目の
バッファレジスタ16−1〜16−4のそれぞれから2
段目の実行レジスタ18−1〜18−4へのコマンドお
よびパラメータの転送は、描画プロセッサ20におい
て、現在実行レジスタ18−1〜18−4に格納してい
る値に基づく描画処理が終了してラン・ステータスが解
除となったタイミングで、1段目のバッファレジスタ1
6−1〜16−4に既にCPUで設定した値を転送す
る。この1段目のレジスタから2段目のレジスタへの転
送は、描画プロセッサ20によるラン・ステータスの解
除検出に基づくハードウェアで自動的にレジスタ転送を
行わせる。
Further, two bits are provided from each of the first-stage buffer registers 16-1 to 16-4 in the drawing processing device 14.
The transfer of commands and parameters to the execution registers 18-1 to 18-4 of the second stage is performed by the drawing processor 20 after the drawing processing based on the values currently stored in the execution registers 18-1 to 18-4 is completed. At the timing when the run status is released, the first stage buffer register 1
The values already set by the CPU are transferred to 6-1 to 16-4. The transfer from the register of the first stage to the register of the second stage is automatically performed by the hardware based on the detection of the run status release by the drawing processor 20.

【0023】図3(A)は、図2の描画処理装置14に
おける1段目の各バッファレジスタ16−1〜16−4
の処理である。まずステップS1で、CPU10からバ
ッファレジスタ16−1〜16−4に命令およびパラメ
ータが設定されたか否かチェックしている。命令および
パラメータが設定されると、ステップS2に進み、描画
プロセッサ20はCPU10にビジィ・ステータスを応
答する。
FIG. 3A shows each of the first-stage buffer registers 16-1 to 16-4 in the drawing processing apparatus 14 of FIG.
Processing. First, in step S1, it is checked whether an instruction and a parameter have been set in the buffer registers 16-1 to 16-4 from the CPU 10. When the command and the parameters are set, the drawing processor 20 returns the busy status to the CPU 10 in step S2.

【0024】続いてステップS3で、描画プロセッサ2
0による描画処理の実行中に伴うラン・ステータスをチ
ェックし、ラン・ステータスが解除されると、ステップ
S4に進み、バッファレジスタ16−1〜16−4に設
定した値を2段目の実行レジスタ18−1〜18−4に
転送する。転送が済むと、ステップS5で、CPU10
に対するビジィ・ステータスを解除する。そして再びス
テップS1に戻り、次のCPU10からの命令およびパ
ラメータの設定を待つ。
Then, in step S3, the drawing processor 2
The run status accompanying the execution of the drawing process by 0 is checked, and when the run status is released, the process proceeds to step S4, and the values set in the buffer registers 16-1 to 16-4 are set in the execution register of the second stage. 18-1 to 18-4. When the transfer is completed, in step S5, the CPU 10
Release the busy status for. Then, the process returns to step S1 again and waits for the next instruction and parameter setting from the CPU 10.

【0025】図3(B)は、図2の2段目の実行レジス
タ18−1〜18−4の処理である。まずステップS1
01で、1段目のバッファレジスタ16−1〜16−4
から実行レジスタ18−1〜18−4に命令およびパラ
メータが転送されたか否かチェックしている。命令およ
びパラメータの転送を受けると、ステップS102で、
描画プロセッサ20が実行レジスタ18−1〜18−4
の内容に基づく描画処理を実行する。
FIG. 3B shows the processing of the execution registers 18-1 to 18-4 in the second stage of FIG. First, step S1
01, the first-stage buffer registers 16-1 to 16-4
It is checked whether the instruction and the parameter are transferred from the execution register 18-1 to the execution register 18-4. Upon receiving the instruction and parameter transfer, in step S102,
The drawing processor 20 uses the execution registers 18-1 to 18-4.
The drawing process based on the contents of is executed.

【0026】この描画処理の実行に伴い、ステップS1
03で、CPU10に対するラン・ステータスを応答す
る。ステップS104にあっては、描画処理の実行終了
を監視しており、実行を終了すると、ステップS105
でラン・ステータスを解除し、再びステップS101に
戻って、次の実行レジスタ18−1〜18−4に対する
命令およびパラメータの転送を待つ。
With the execution of this drawing process, step S1
At 03, the run status to the CPU 10 is returned. In step S104, the completion of execution of the drawing process is monitored, and when the execution is completed, step S105
Then, the run status is released and the process returns to step S101 to wait for the transfer of the instruction and parameter to the next execution register 18-1 to 18-4.

【0027】図4は、図2の実施例におけるCPU10
の処理である。CPU10は、まずステップS1で、文
字描画やベクトル描画のような連続処理か、それとも1
つの命令とパラメータによる非連続の処理かを判別して
いる。連続処理であった場合には、ステップS2に進
み、描画プロセッサ20によるビジィ・ステータスの解
除を待つ。
FIG. 4 shows the CPU 10 in the embodiment of FIG.
Processing. First, in step S1, the CPU 10 performs continuous processing such as character drawing or vector drawing, or 1
It is discriminated whether it is a non-sequential process with one command and parameter. If it is a continuous process, the process proceeds to step S2, and waits for the drawing processor 20 to release the busy status.

【0028】即ち、1段目のバッファレジスタ16−1
〜16−4の空き状態を待つ。ビジィ・ステータスが解
除されると、ステップS4に進み、命令およびパラメー
タを1段目のバッファレジスタ16−1〜16−4に転
送して設定する。ステップS5で描画終了でなければ再
びステップS1に戻り、次の連続処理のための命令およ
びパラメータの設定を繰り返す。
That is, the first-stage buffer register 16-1
Wait for ~ 16-4 available. When the busy status is released, the process proceeds to step S4, where the instruction and the parameter are transferred to the buffer registers 16-1 to 16-4 in the first stage and set. If the drawing is not completed in step S5, the process returns to step S1 again, and the command and parameter setting for the next continuous process are repeated.

【0029】一方、ステップS1で連続処理でなかった
場合には、現在描画プロセッサ20で実行中の描画処理
の終了を待つ。この描画処理の終了は、ステップS3
で、描画プロセッサ20からのラン・ステータスをチェ
ックすることで検出できる。ステップS3でラン・ステ
ータスの解除を判別すると、1回の処理終了待合せが済
んだことで、ステップS4に進み、次の描画処理のため
の命令およびパラメータをバッファレジスタ16−1〜
16−4に転送して設定する。
On the other hand, if the continuous processing is not performed in step S1, the drawing processor 20 waits for the end of the drawing processing currently being executed. The end of this drawing process is step S3.
Can be detected by checking the run status from the drawing processor 20. When it is determined in step S3 that the run status has been released, one processing end wait has been completed, and therefore the process proceeds to step S4, in which the buffer register 16-1 to the instruction and parameter for the next drawing process are stored.
16-4 and set.

【0030】この場合、ビジィ・ステータスをチェック
したくとも、ラン・ステータスの解除でそれ以前にビジ
ィ・ステータスが解除されて、1段目のバッファレジス
タは空き状態となっている。図5は本発明の第2実施例
である。この第2実施例にあっては、描画処理装置14
に設けた1段目のバッファレジスタと2段目の実行レジ
スタの間に選択回路を設けて、現在の描画処理の値を次
回の描画処理にそのまま使用できるようにしたことを特
徴とする。
In this case, even if it is desired to check the busy status, the busy status is canceled before the run status is canceled and the first-stage buffer register is in an empty state. FIG. 5 shows a second embodiment of the present invention. In the second embodiment, the drawing processing device 14
It is characterized in that a selection circuit is provided between the first-stage buffer register and the second-stage execution register, which are provided in step 1, so that the current drawing process value can be used as it is in the next drawing process.

【0031】即ち、コマンドおよびパラメータの各系統
の1段目のバッファレジスタ16−1〜16−4と2段
目の実行レジスタ18−1〜18−4の間に、選択回路
(マルチプレクサ)30−1〜30−4を設けている。
選択回路30−1〜30−4は2つの入力A,Bを有
し、更に制御入力Sをもっている。一方の入力Aには、
1段目のバッファレジスタ16−1〜16−4の出力が
与えられる。
That is, the selection circuit (multiplexer) 30- is provided between the buffer registers 16-1 to 16-4 in the first stage and the execution registers 18-1 to 18-4 in the second stage of each system of command and parameter. 1 to 30-4 are provided.
The selection circuits 30-1 to 30-4 have two inputs A and B, and further have a control input S. One input A,
The outputs of the first-stage buffer registers 16-1 to 16-4 are given.

【0032】他方の入力Bには、描画プロセッサ20に
よるそのときの実行レジスタ18−1〜18−4の実行
結果としての格納値がフィードバックされて入力され
る。制御入力Sに対しては、バッファレジスタ16−1
〜16−4の特定ビットを制御用の選択ビット32−1
〜32−4として入力する。この選択ビット32−1〜
32−4をビットオフ(ビット0)としたとき、選択回
路30−1は入力Aを選択する。
To the other input B, the stored value as the execution result of the execution registers 18-1 to 18-4 at that time by the drawing processor 20 is fed back and input. For the control input S, the buffer register 16-1
Selection bits 32-1 for controlling specific bits of 16-4
Input as 32-4. This selection bit 32-1
When the bit 32-4 is turned off (bit 0), the selection circuit 30-1 selects the input A.

【0033】これに対し、選択ビット32−1〜32−
4をオン(ビット1)としたとき、入力Bの選択に切り
替えられる。バッファレジスタ16−1〜16−4の選
択ビット32−1〜32−4は、CPU10によりオ
ン、オフすることができる。このためCPU10は、バ
ッファレジスタ16−1〜16−4の値をそのまま実行
レジスタ18−1〜18−4に転送したい場合には、選
択ビット32−1〜32−4をビットオフ(ビット0)
にセットする。
On the other hand, the selection bits 32-1 to 32-
When 4 is turned on (bit 1), input B is switched to selection. The selection bits 32-1 to 32-4 of the buffer registers 16-1 to 16-4 can be turned on and off by the CPU 10. Therefore, when the CPU 10 wants to transfer the values of the buffer registers 16-1 to 16-4 to the execution registers 18-1 to 18-4 as they are, the selection bits 32-1 to 32-4 are bit-off (bit 0).
Set to.

【0034】これに対し、現在描画処理を行っている実
行レジスタ18−1〜18−4の値を次の描画処理の値
にそのまま使用したい場合には、バッファレジスタ16
−1〜16−4に対する命令およびパラメータをセット
する代わりに、選択ビット32−1〜32−4のビット
オン(ビット1)を行うだけでよい。現在、実行レジス
タ18−1〜18−4の値を使用した描画処理につい
て、次回の描画処理で現在の値をそのまま使用する場合
は、ベクトル連続描画を行う場合である。ベクトル連続
描画に際しては、各ベクトルの始点と終点が連続的に設
定される。勿論、始点および終点のそれぞれは、コマン
ドとX座標,Y座標およびカラー値のパラメータをもつ
1つの描画データである。
On the other hand, when it is desired to use the values of the execution registers 18-1 to 18-4 currently undergoing the drawing process as the values of the next drawing process, the buffer register 16 is used.
Instead of setting the instructions and parameters for -1 to 16-4, it is only necessary to bit-on (bit 1) the selection bits 32-1 to 32-4. Regarding the drawing process using the values of the execution registers 18-1 to 18-4, when the current value is used as it is in the next drawing process, vector continuous drawing is performed. In continuous vector drawing, the start point and end point of each vector are continuously set. Of course, each of the start point and the end point is one drawing data having a command and parameters of X coordinate, Y coordinate and color value.

【0035】あるベクトルの終点が実行レジスタ18−
1〜18−4に転送されて描画プロセッサ20で処理中
のとき、次の連続するベクトルの始点は、現在実行中の
実行レジスタ18−1〜18−4の終点の値と同じにな
る。このような場合、CPU10はバッファレジスタ1
6−1〜16−4に次のベクトルの始点の命令およびパ
ラメータを設定する代わりに、その選択ビット32−1
〜32−4をビットオン(ビット1)とする。
The end point of a certain vector is the execution register 18-
When transferred to 1 to 18-4 and being processed by the drawing processor 20, the start point of the next continuous vector becomes the same as the end point value of the execution register 18-1 to 18-4 currently being executed. In such a case, the CPU 10 uses the buffer register 1
Instead of setting the instruction and parameter of the start point of the next vector in 6-1 to 16-4, the selection bit 32-1
Bits 32 to 32-4 are turned on (bit 1).

【0036】この選択ビット32−1〜32−4のオン
を受けて、選択回路30−1〜30−4は、それまでの
入力Aの選択状態から描画プロセッサ20よりフィード
バックされる前回のベクトルの終点の値である入力Bの
選択状態に切り替わり、実行レジスタ18−1〜18−
4に再度、前回の描画処理の終点に関するコマンドおよ
びパラメータが今回のベクトル始点のコマンドおよびパ
ラメータとしてセットされる。
In response to the selection bits 32-1 to 32-4 being turned on, the selection circuits 30-1 to 30-4 indicate the previous vector fed back from the drawing processor 20 from the selected state of the input A so far. Switch to the selected state of input B, which is the end point value, and execute registers 18-1 to 18-
4 again, the command and parameter relating to the end point of the previous drawing process are set as the command and parameter of the current vector start point.

【0037】このようなベクトル描画における現在の終
点の情報を次のベクトル描画の始点情報にそのまま転用
することで、CPU10による1段目のバッファレジス
タ16−1〜16−4に対する設定を簡略化でき、レジ
スタ設定のオーバヘッドを低減することができる。図6
は、図5のCPU処理である。ステップS1〜S4につ
いては、図4の第1実施例と同じである。第2実施例に
あっては、連続処理の場合に、ステップS2でビジィ・
ステータスの解除を判定すると、ステップS6に進み、
先の終点は今回の始点か否かチェックする。先の終点が
今回の始点であれば、ステップS7に進み、前回の処理
結果を選択するためのバッファレジスタ16−1〜16
−4の選択ビット32−1〜32−4をビットオンにセ
ットすることになる。
By using the information of the current end point in such vector drawing as it is as the start point information of the next vector drawing, the setting for the first-stage buffer registers 16-1 to 16-4 by the CPU 10 can be simplified. The overhead of register setting can be reduced. Figure 6
Is the CPU processing of FIG. Steps S1 to S4 are the same as in the first embodiment of FIG. In the second embodiment, in the case of continuous processing, the busy
If the release of the status is determined, the process proceeds to step S6,
Check whether the previous end point is the start point of this time. If the previous end point is the current start point, the process proceeds to step S7, and buffer registers 16-1 to 16-16 for selecting the previous processing result.
-4 selection bits 32-1 to 32-4 are set to bit-on.

【0038】勿論、前回のレジスタ値を次回に再セット
してそのまま使うのは、連続的なベクトル描画に限定さ
れず、必要に応じた適宜の描画処理について同様にして
適用することができる。尚、図5の第2実施例にあって
は、各系統ごとに選択回路30−1〜30−4を設け、
その選択制御をCPU10に対するバッファレジスタ1
6−1〜16−4の特定の選択ビット32−1〜32−
4の制御で行っているが、このようなハードウェア構成
に限定されず、ソフトウェアと組み合わせた選択、更に
はソフトウェアのみによる選択であってもよい。
Of course, the fact that the previous register value is reset and used as it is next time is not limited to continuous vector drawing, and can be similarly applied to appropriate drawing processing as necessary. In the second embodiment shown in FIG. 5, selection circuits 30-1 to 30-4 are provided for each system,
The selection control is performed by the buffer register 1 for the CPU 10.
Specific selection bits 32-1 to 32 of 6-1 to 16-4
However, the selection is not limited to such a hardware configuration, and selection may be made in combination with software, or selection may be made only by software.

【0039】またレジスタ系統は実施例の4系統に限定
されず、パラメータの数に応じて適宜の系統数とする。
Further, the register system is not limited to the four systems of the embodiment, and an appropriate number of systems is used according to the number of parameters.

【0040】[0040]

【発明の効果】以上説明してきたように本発明によれ
ば、描画プロセッサの前段にレジスタを直列に二重化し
て設けたことで、描画プロセッサが動作中に次の動作の
ための命令およびパラメータを上位のCPUから設定す
ることができ、描画プロセッサによる処理終了待ち時間
を省くことで描画処理の高速化を図ることができる。
As described above, according to the present invention, since the registers are serially duplicated and provided in the preceding stage of the drawing processor, the instruction and the parameter for the next operation can be stored while the drawing processor is operating. It can be set by the upper CPU, and the drawing processing can be speeded up by omitting the processing end waiting time by the drawing processor.

【0041】また前回の実行レジスタの処理値を次の回
の処理値に継承する選択処理を行うことで、CPUによ
るレジスタのアクセス回数を低減することができる。更
に、処理プロセッサの前段にレジスタを直列に2つ繋ぎ
合わせるだけの構成で済むことから、少ないハードウェ
ア量で実現することができる。
Further, by performing the selection processing of inheriting the processing value of the previous execution register to the processing value of the next time, it is possible to reduce the number of times of register access by the CPU. Furthermore, since it suffices to connect two registers in series in the preceding stage of the processor, it can be realized with a small amount of hardware.

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

【図1】本発明の原理説明図FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の第1実施例のブロック図FIG. 2 is a block diagram of a first embodiment of the present invention.

【図3】図2のレジスタ処理のフローチャートFIG. 3 is a flowchart of register processing of FIG.

【図4】図2のCPU処理のフローチャート4 is a flowchart of the CPU processing of FIG.

【図5】本発明の第2実施例のブロック図FIG. 5 is a block diagram of a second embodiment of the present invention.

【図6】図5のCPU処理のフローチャートFIG. 6 is a flowchart of CPU processing in FIG.

【図7】レジスタを1段用いた従来装置のブロック図FIG. 7 is a block diagram of a conventional device using one stage of a register.

【図8】FIFOを用いた従来装置のブロック図FIG. 8 is a block diagram of a conventional device using a FIFO.

【図9】レジスタを並列に二重化した従来装置のブロッ
ク図
FIG. 9 is a block diagram of a conventional device in which registers are duplicated in parallel.

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

10:CPU 12:CPUバス 14:描画処理装置 16:バッファレジスタ(1段目) 16−1:コマンド・バッファレジスタ 16−2:X座標バッファレジスタ 16−3:Y座標バッファレジスタ 16−4:カラー値バッファレジスタ 18:実行レジスタ 18−1:コマンド実行レジスタ 18−2:X座標実行レジスタ 18−3:Y座標実行レジスタ 18−4:カラー値実行レジスタ 20:描画プロセッサ 22:描画処理グラフィックエンジン 24:フレームメモリ 26:CRT 10: CPU 12: CPU bus 14: Drawing processing device 16: Buffer register (first stage) 16-1: Command buffer register 16-2: X coordinate buffer register 16-3: Y coordinate buffer register 16-4: Color Value buffer register 18: Execution register 18-1: Command execution register 18-2: X coordinate execution register 18-3: Y coordinate execution register 18-4: Color value execution register 20: Drawing processor 22: Drawing processing graphic engine 24: Frame memory 26: CRT

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】描画用の命令及びパラメータを作成するC
PUに対し独立して前記命令及びパラメータに基づいた
描画処理動作を行う描画プロセッサを備えた描画処理装
置に於いて、 前記描画プロセッサの前段に、前記CPUからの命令及
びパラメータを受け取る1段目のバッファレジスタと、
前記1段目のバッファレジスタから前記命令及びパラメ
ータの転送を受け前記描画プロセッサに描画処理を行わ
せる2段目の実行レジスタとを直列に設けたことを特徴
とする描画処理装置。
1. A C for creating drawing commands and parameters.
In a rendering processing device including a rendering processor that independently performs a rendering processing operation based on the instruction and parameters with respect to a PU, a first stage that receives an instruction and a parameter from the CPU before the rendering processor A buffer register,
A drawing processing apparatus comprising a second-stage execution register, which receives the instruction and the parameter transferred from the first-stage buffer register and causes the drawing processor to perform a drawing process, in series.
【請求項2】請求項1記載の描画処理装置に於いて、更
に、 前記1段目のバッファレジスタと2段目の実行レジスタ
の間に、今回の描画処理に使用した実行レジスタの値を
次回の描画処理にそのまま使用させるために、実行レジ
スタに再度セットする選択回路を設けたことを特徴とす
る描画処理装置。
2. The drawing processing apparatus according to claim 1, further comprising the value of the execution register used for the current drawing processing between the buffer register of the first stage and the execution register of the second stage. The drawing processing device is provided with a selection circuit for resetting the execution register so that the drawing processing can be used as it is.
【請求項3】請求項1,2記載の描画処理装置に於い
て、前記描画プロセッサは、前記1段目のバッファレジ
スタの命令及びパラメータの格納状態を示すビジィ・ス
テータスと、前記2段目の実行レジスタの値に基づいた
描画処理の実行中を示すラン・ステータスを、前記CP
Uに通知することを特徴とする描画処理装置。
3. The drawing processing device according to claim 1, wherein the drawing processor has a busy status indicating a storage state of an instruction and a parameter of the buffer register in the first stage and the drawing stage in the second stage. The run status indicating that the drawing process based on the value of the execution register is being executed
A drawing processing device characterized by notifying U.
【請求項4】請求項3記載の描画処理装置に於いて、前
記CPUで命令及びパラメータを連続的に設定して描画
を指示する場合、前記描画プロセッサからのビジィステ
ータスが解除される毎に、前記1段目のバッファレジス
タに命令及びステータスを設定することを特徴とする描
画処理装置。
4. The drawing processing apparatus according to claim 3, wherein when the CPU continuously sets an instruction and a parameter to instruct drawing, each time the busy status from the drawing processor is released, A drawing processing apparatus which sets an instruction and a status in the first-stage buffer register.
【請求項5】請求項3記載の描画処理装置に於いて、前
記CPUで1つの命令及びパラメータの設定による1回
の描画処理が終了した後に次の描画処理を指示する場
合、前記描画プロセッサからのラン・ステータスの解除
を待って前記1段目のバッファレジスタに次の命令及び
パラメータを設定することを特徴とする描画処理装置。
5. The drawing processing apparatus according to claim 3, wherein when the CPU draws one drawing process by setting one command and one parameter and then instructs the next drawing process, the drawing processor The drawing processing apparatus, wherein the next instruction and parameter are set in the buffer register at the first stage after the run status is canceled.
JP6259980A 1994-10-25 1994-10-25 Plotting processor Withdrawn JPH08123968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6259980A JPH08123968A (en) 1994-10-25 1994-10-25 Plotting processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6259980A JPH08123968A (en) 1994-10-25 1994-10-25 Plotting processor

Publications (1)

Publication Number Publication Date
JPH08123968A true JPH08123968A (en) 1996-05-17

Family

ID=17341612

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6259980A Withdrawn JPH08123968A (en) 1994-10-25 1994-10-25 Plotting processor

Country Status (1)

Country Link
JP (1) JPH08123968A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007292877A (en) * 2006-04-21 2007-11-08 Yamaha Corp Image processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007292877A (en) * 2006-04-21 2007-11-08 Yamaha Corp Image processor

Similar Documents

Publication Publication Date Title
US5185599A (en) Local display bus architecture and communications method for Raster display
KR960003041B1 (en) Extendable multiple image-buffer for graphics systems
US5949440A (en) Method and apparatus for processing graphics primitives in multiple modes using reconfigurable hardware
US6412061B1 (en) Dynamic pipelines with reusable logic elements controlled by a set of multiplexers for pipeline stage selection
US6624819B1 (en) Method and system for providing a flexible and efficient processor for use in a graphics processing system
JPH0727571B2 (en) Raster scan display device and graphic data transfer method
US20030067473A1 (en) Method and apparatus for executing a predefined instruction set
EP0475422A2 (en) Multifunction high performance graphics rendering processor
US6166743A (en) Method and system for improved z-test during image rendering
JPH07104734A (en) Device for displaying and parallel processing figure data
US6085310A (en) Method and apparatus for performing an operation multiple times in response to a single instruction
WO1997034224A9 (en) Method and apparatus for performing an operation multiple times in response to a single instruction
JP3642259B2 (en) Multi-screen display device
US6003098A (en) Graphic accelerator architecture using two graphics processing units for processing aspects of pre-rasterized graphics primitives and a control circuitry for relaying pass-through information
JPH08123968A (en) Plotting processor
JPH02297594A (en) Data processor
US6895458B2 (en) Opcode to turn around a bi-directional bus
JPS6334658A (en) Dma controller for image processor
JP2992406B2 (en) Information processing device
JPH0962852A (en) Graphic processor
JPH10161636A (en) Graphics display device
JP2001051674A (en) Device and method for processing plotting
JP2000285246A (en) Information processor
JPH0962853A (en) Graphic processor and graphic processing system
JPS6362079A (en) Graphic display

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020115