[go: up one dir, main page]

JPS63221492A - Graphic processing device - Google Patents

Graphic processing device

Info

Publication number
JPS63221492A
JPS63221492A JP62054036A JP5403687A JPS63221492A JP S63221492 A JPS63221492 A JP S63221492A JP 62054036 A JP62054036 A JP 62054036A JP 5403687 A JP5403687 A JP 5403687A JP S63221492 A JPS63221492 A JP S63221492A
Authority
JP
Japan
Prior art keywords
microprogram
address
processing device
graphic processing
controlling
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.)
Granted
Application number
JP62054036A
Other languages
Japanese (ja)
Other versions
JP2708415B2 (en
Inventor
Shigeru Matsuo
茂 松尾
Akihiro Katsura
晃洋 桂
Jun Sato
潤 佐藤
Takashi Sone
崇 曽根
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62054036A priority Critical patent/JP2708415B2/en
Priority to KR1019870011207A priority patent/KR940006806B1/en
Publication of JPS63221492A publication Critical patent/JPS63221492A/en
Priority to US08/355,151 priority patent/US5717440A/en
Priority to US08/921,241 priority patent/US6429871B1/en
Application granted granted Critical
Publication of JP2708415B2 publication Critical patent/JP2708415B2/en
Priority to US09/988,157 priority patent/US6781590B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、図形処理装置に係り、特にxy座標と、前記
座標に対する表示用メモリアドレスを算出するに好適な
図形処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a graphic processing device, and particularly to a graphic processing device suitable for calculating xy coordinates and display memory addresses for the coordinates.

〔従来の技術〕 従来より図形処理装置は、特願昭59−251907の
ように、XY座標を演算し、かかる座標値に対応したX
メモリアドレスを演算しつつ描画を行うものが知られて
いる。前記公知例によれば、上記座標演算を行う演算部
とメモリアドレス演算を行う演算部は共通のマイクロプ
ログラムで制御されていた。
[Prior Art] Conventionally, graphic processing devices calculate XY coordinates and calculate the
There are known devices that perform drawing while calculating memory addresses. According to the known example, the arithmetic unit that performs the coordinate calculation and the arithmetic unit that performs the memory address calculation are controlled by a common microprogram.

一方では、図形描画を行うアルゴリズムは複雑であり、
前記アルゴリズムを前述するマイクロプログラムも複雑
になる。従って、処理中にはパラメータ等の条件により
、多方向に分岐を行う必要が起きる。上記従来技術によ
れば、2方向分岐を高速に行う手段は提供されているが
、多方向分岐を効率よく行う方法はなく、多方向に分岐
を行う場合には2方向分岐を多用する必要があった。
On the one hand, the algorithms for drawing figures are complex;
The microprogram that describes the algorithm also becomes complex. Therefore, during processing, it may be necessary to branch in multiple directions depending on conditions such as parameters. According to the above-mentioned conventional technology, a means for performing two-way branching at high speed is provided, but there is no method for efficiently performing multi-directional branching, and when branching in multiple directions, it is necessary to use two-way branching frequently. there were.

また、複雑なマイクロプログラム記述を行うと、該プロ
グラムのデバッグ方法によってプログラム作成効率は大
きく左右される。従って、効果的なデパック方法を持つ
ことが重要となる。
Furthermore, when a complex microprogram is written, the efficiency of program creation is greatly influenced by the method of debugging the program. Therefore, it is important to have an effective depacking method.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術は、座標演算を行う演算部とメモリアドレ
ス演算を行う演算部を共通のマイクロプログラムで制御
する。従って前記マイクロプログラムの記述は、アルゴ
リズムの記述と、メモリアドレスの記述を混合させるこ
とになり、記述性の向上について問題があった。
In the above-mentioned conventional technology, a common microprogram controls a calculation unit that performs coordinate calculations and a calculation unit that performs memory address calculations. Therefore, the description of the microprogram involves a mixture of algorithm description and memory address description, which poses a problem in improving the descriptive performance.

一方では、多方向分岐について配慮がなされておらず、
プログラム記述性並びに高速性に問題があった。
On the other hand, there is no consideration given to multidirectional branching;
There were problems with program description and high speed.

また、プログラムデパックについて配慮がなされておら
ず、デバッグ効率について問題があった。
Further, no consideration was given to program depacking, and there was a problem with debugging efficiency.

本発明の目的は、座標演算を行うマイクロプログラムと
メモリアドレス演算を行うマイクロプログラムを分離し
、プログラムの記述性を向上する図形処理装置を提供す
ることである。
SUMMARY OF THE INVENTION An object of the present invention is to provide a graphic processing device that separates a microprogram that performs coordinate calculations and a microprogram that performs memory address calculations, thereby improving program descriptiveness.

本発明の他の目的は、マイクロプログラムの効率の良い
多方向分岐方式を備えた図形処理装置を提供することで
ある。
Another object of the present invention is to provide a graphic processing device having an efficient multi-directional branching method for microprograms.

本発明の他の目的は、マイクロプログラムのデバッグ方
法として、実行中のマイクロプログラムを所望のアドレ
スで停止させ、かかる図形処理装置の内部情報を読み出
し、かつ、そのようにして内部情報を読み出した後、再
び停止中のプログラムを実行させるようにして、効果的
なデバッグ方法を備えた図形処理装置を提供することで
ある。
Another object of the present invention is to provide a method for debugging a microprogram, in which a microprogram being executed is stopped at a desired address, internal information of the graphic processing device is read out, and after the internal information is read out in this manner, the microprogram being executed is stopped at a desired address. An object of the present invention is to provide a graphic processing device having an effective debugging method by making a stopped program run again.

〔問題点を解決するための手段〕[Means for solving problems]

上記の目的は、座標演算を制御するマイクロプログラム
と、メモリアドレス演算を制御するマイクロプログラム
を個別に設け、前記座標演算を制御するマイクロプログ
ラムによって前記メモリアドレス演算を制御するマイク
ロプログラムを動作させ、そのようにして動作した後、
前記メモリアドレスを制御するマイクロプログラムは、
単独でプログラムを進行せしめると共に、前記メモリア
ドレス演算を制御するマイクロプログラムが動作中に更
に動作要求があった場合には、前記座標演算を制御する
マイクロプログラムに対し、前記メモリアドレス演算を
制御するマイクロプログラムが処理が終了するまで停止
させる手段を設けることにより達成される。
The above object is to separately provide a microprogram for controlling coordinate calculations and a microprogram for controlling memory address calculations, and to cause the microprograms for controlling the coordinate calculations to operate the microprograms for controlling the memory address calculations. After working like this,
The microprogram that controls the memory address is
In addition to allowing the program to proceed independently, if there is a request for further operation while the microprogram controlling the memory address calculation is operating, the microprogram controlling the memory address calculation This is achieved by providing a means for stopping the program until the processing is completed.

上記のその他の目的は、前記座標演算を制御するマイク
ロプログラムを多方向分岐させるための情報を記憶させ
る手段と、前記手段の有効ビット数を記憶する手段を設
け、ジャンプアドレスをアドレスレジスタへ置数する際
に、前記有効ビット数を記憶する手段で指定されたビッ
トのみ、前記多方向分岐をさせるための情報を記憶する
手段のデータを前記ジャンプアドレスの代りに置数する
ことにより達成される。
Another object of the above is to provide means for storing information for multi-directional branching of the microprogram that controls the coordinate calculation, and means for storing the effective number of bits of the means, and to store a jump address in an address register. This is achieved by placing only the bits designated by the means for storing the number of effective bits in place of the jump address with the data of the means for storing information for making the multidirectional branch.

上記のその他の目的は、前記座標演算を制御するマイク
ロプログラムを停止させるアドレスを記憶する手段と、
前記停止させるアドレスを記憶する手段と前記マイクロ
プログラムのアドレスを比較し、一致した時信号を出力
する手段を設け、前記一致信号をもって、前記アドレス
レジスタのセットまたはリセット信号とすることにより
、達成される。
The other object described above is a means for storing an address for stopping a microprogram that controls the coordinate calculation;
This is achieved by comparing the means for storing the address to be stopped with the address of the microprogram and outputting a signal when they match, and using the match signal as a set or reset signal for the address register. .

〔作用〕[Effect]

座標演算を制御するマイクロプログラムと、メモリアド
レス演算を制御するマイクロプログラムを個別に設ける
ことにより、上記座標演算を制御するマイクロプログラ
ムには、描画アルゴリズムの記述を行えば良いことにな
り、プログラムの記述性の向上を図ることができる。
By separately providing a microprogram that controls coordinate calculations and a microprogram that controls memory address calculations, it is possible to write a drawing algorithm in the microprogram that controls the coordinate calculations, and the program description It is possible to improve sexual performance.

マイクロプログラムの多分岐を行うための情報を記憶す
る手段と、前記手段の有効ビットを示す手段を設けるこ
とにより、分岐数を可変にすることができる。
The number of branches can be made variable by providing means for storing information for performing multi-branching of a microprogram and means for indicating an effective bit of the means.

マイクロプログラムを停止させるアドレスを記憶する手
段と、前記手段とマイクロプログラムのアドレスを比較
し、一致信号を出力する手段を設け、前記一致信号をも
って、マイクロプログラムのアドレスレジスタに固有値
を生成させることにより、マイクロプログラムを停止さ
せ、デバッグを行うことができる。
By providing means for storing an address for stopping the microprogram, and means for comparing the means and the address of the microprogram and outputting a match signal, and using the match signal to generate a unique value in the address register of the microprogram, A microprogram can be stopped and debugged.

〔実施例〕〔Example〕

第1図は、本発明に係る図形処理装置のブロック図であ
る。
FIG. 1 is a block diagram of a graphic processing device according to the present invention.

同図において、図形処理装置は、描画座標点をx、Y座
標値として演算する論理アドレス演算部310と、前記
座標値に対応したメモリアドレスを算出する物理アドレ
ス演算部320と、描画データを演算するカラーデータ
演算部330に大別される。
In the figure, the graphic processing device includes a logical address calculation unit 310 that calculates drawing coordinate points as x and Y coordinate values, a physical address calculation unit 320 that calculates a memory address corresponding to the coordinate values, and a physical address calculation unit 320 that calculates drawing data. The color data calculation section 330 is broadly divided into a color data calculation section 330.

論理アドレス演算部310は、主として描画アルゴリズ
ムに従って描画点が画面中のどこにあるかを演算するも
ので、論理マイクロプログラムROM210、論理マイ
クロ命令レジスタ260、論理マイクロ命令デゴーダ2
70、論理マイクロプログラムROMアドレスレジスタ
(1,、RAR)220、アドレスインクリメンタ (
I NC) 230゜スタック240、命令レジスタ2
50、マルチジャンプ制御(MJC)180、ブレーク
ポイントレジスタ(BPR)160、−数構出回路15
0とから構成される。
The logical address calculation unit 310 mainly calculates where the drawing point is on the screen according to the drawing algorithm, and includes the logic microprogram ROM 210, the logic microinstruction register 260, and the logic microinstruction degoder 2.
70, logic microprogram ROM address register (1, RAR) 220, address incrementer (
I NC) 230° stack 240, instruction register 2
50, multi-jump control (MJC) 180, break point register (BPR) 160, -number configuration circuit 15
It consists of 0.

物理アドレス演算部320とカラーデータ演算部330
は、物理マイクロプログラムROM100で制御され、
他の物理マイクロ命令レジスタ120゜物理マイクロ命
令デコーダ130、物理マイクロプログラムROMアド
レスレジスタ110. WAIT制御140とから構成
さ九ている。
Physical address calculation unit 320 and color data calculation unit 330
is controlled by a physical microprogram ROM 100,
Other physical microinstruction registers 120, physical microinstruction decoder 130, physical microprogram ROM address register 110. WAIT control 140.

また、論理アドレス演算部310と物理アドレス演算部
320間でデータの転送を行うための中間バッファ17
0と、演算パラメータや線種情報や画塗りを行うための
パターン情報等を格納する内部RAM340がある。
Also, an intermediate buffer 17 for transferring data between the logical address calculation unit 310 and the physical address calculation unit 320
0, and an internal RAM 340 that stores calculation parameters, line type information, pattern information for painting, and the like.

第2図は、論理アドレス演算部310の詳細を示したも
のである。FIF○バッファ3101と。
FIG. 2 shows details of the logical address calculation unit 310. With FIF○ buffer 3101.

マルチジャンプレジスタ(MJR)、3100と、汎用
レジスタ群(TROX、TR0Y、TRIX。
Multi-jump register (MJR), 3100, and general-purpose register group (TROX, TR0Y, TRIX.

TRIY、TR2X、TR2Y、TR3X、TR3Y)
3102と、描画座標を指す描画座標カレントポインタ
(CPDX)3103及び3104 (CPDY)と、
転送元座標を指す転送元座標カレントポインタ(CPS
X)3105と3106 (CPSY)と、領域管理レ
ジスタ(XMIN)3107゜3108 (YMIN)
 、 3111 (XMAX)及び3112(YMA)
と、領域判定比較器(ACMPN)3109及び311
0 (ACMPX)と、終了点レジスタ(X、E ND
) 3113及び3114(YEND)と、終了点比較
器(ECMP) 3115と、ソースラッチ(S F 
T 、 HEXSFT、 S L A V)3117及
び(SLAU)3116と、算術論理演算器(ALU)
3118と、デスティネーションラッチ(DLA)31
19と、定数発生器(LITERAL) 3123と、
読出しバス(UBA。
TRIY, TR2X, TR2Y, TR3X, TR3Y)
3102, drawing coordinate current pointers (CPDX) 3103 and 3104 (CPDY) pointing to drawing coordinates,
Transfer source coordinate current pointer (CPS) that points to the transfer source coordinate
X) 3105 and 3106 (CPSY) and area management register (XMIN) 3107°3108 (YMIN)
, 3111 (XMAX) and 3112 (YMA)
and area determination comparators (ACMPN) 3109 and 311
0 (ACMPX) and the end point register (X, E ND
) 3113 and 3114 (YEND), end point comparator (ECMP) 3115, source latch (S F
T, HEXSFT, SLAV) 3117 and (SLAU) 3116, and arithmetic logic unit (ALU)
3118 and destination latch (DLA) 31
19, constant generator (LITERAL) 3123,
Read bus (UBA.

VBA)3120及び3121と、書込みバス3122
とを備えている。
VBA) 3120 and 3121 and write bus 3122
It is equipped with

また、第3図は、中間バッファ170と物理アドレス演
算部320の詳細を示したものである。
Further, FIG. 3 shows details of the intermediate buffer 170 and the physical address calculation unit 320.

内部RAMバッファ(RBUF)320と、汎用レジス
タ群(TDRO,TDRI、TDR2゜TDR3)32
05,3206,3207及び3208と、描画座標系
のメモリアドレスを記憶するレジスタ(DRAD)32
12と、転送元座標系のメモリアドレスを記憶するレジ
スタ(DRAS)3213と、図形の塗りつぶし模様を
記憶するパターン座標系のメモリアドレスを指すレジス
タ(PTNA)3214と、太線描画のためのベル領域
を指すレジスタ(PLA)3215と、汎用レジスタ 
(TAO,TAI)3216及び3217と、描画座標
系のメモリ幅を記憶するレジスタ(CMWD)3218
と、転送元座標系のメモリ幅を記憶するレジスタ (C
MWS)3219と、パターン座標系のメモリ幅を記憶
するレジスタ(PMW) 3220と、パターン制御レ
ジスタ (PS、PE、PP)3221.3222及び
3223と、パターンポインタ(PP)32.23を更
新するパターンポインタカウンタ(PCNT)3224
と、ソースラッチ(SLBU)3225及び(S L 
B V) 3226と、算術演算器(AU)3227と
、バレルシフタ(BRLSFT) 3228と、データ
拡張器(DE)3229と、マルチプレクサ(MPX)
3230と、デスティネーションラッチ(DLB)32
31と、読み出しバス(UBB、VBB、UBC。
Internal RAM buffer (RBUF) 320 and general-purpose register group (TDRO, TDRI, TDR2°TDR3) 32
05, 3206, 3207, and 3208, and a register (DRAD) 32 that stores the memory address of the drawing coordinate system.
12, a register (DRAS) 3213 that stores the memory address of the transfer source coordinate system, a register (PTNA) 3214 that points to the memory address of the pattern coordinate system that stores the fill pattern of the figure, and a bell area for drawing thick lines. Pointing register (PLA) 3215 and general-purpose register
(TAO, TAI) 3216 and 3217, and a register (CMWD) 3218 that stores the memory width of the drawing coordinate system.
and a register that stores the memory width of the source coordinate system (C
MWS) 3219, a register (PMW) 3220 that stores the memory width of the pattern coordinate system, pattern control registers (PS, PE, PP) 3221, 3222 and 3223, and a pattern that updates the pattern pointer (PP) 32.23. Pointer counter (PCNT) 3224
and source latch (SLBU) 3225 and (S L
B V) 3226, arithmetic unit (AU) 3227, barrel shifter (BRLSFT) 3228, data expander (DE) 3229, and multiplexer (MPX)
3230 and destination latch (DLB) 32
31 and read buses (UBB, VBB, UBC.

VBC)3232,3233.3235及び3236と
、書込みバス(WBB、WBC)3234及び3237
と、バススイッチ3201,3202゜3203.32
09.3210及び3211とを備えている。
VBC) 3232, 3233.3235 and 3236 and write bus (WBB, WBC) 3234 and 3237
and bus switch 3201, 3202゜3203.32
09.3210 and 3211.

また第4図及び第5図はカラーデータ演算部の詳細図で
ある。カラーデータ演算部330は、マルチプレクサ3
304と、カラーレジスタ(CLO。
Further, FIGS. 4 and 5 are detailed diagrams of the color data calculation section. The color data calculation unit 330 is connected to the multiplexer 3
304 and a color register (CLO.

CLI)3305及び3306と、色比較レジスタ (
CLCMP)3307と、エツジカラーレジスタ(ED
G)3308と、描画モードレジスタ(DM)3309
と、マスクレジスタ (GMASK 。
CLI) 3305 and 3306, color comparison register (
CLCMP) 3307 and edge color register (ED)
G) 3308 and drawing mode register (DM) 3309
and a mask register (GMASK).

SMASK、EMASK、TMASK、ItlMASK
SMASK, EMASK, TMASK, ItlMASK
.

RMASK)3311,3312,3313゜3314
.3315及び3316と、カラー比較器3317と、
ゼロフラグ拡張器(ZE)3318と、キャリーフラグ
拡張器(CMPMSEL) 3320と、デスティネー
ションラッチ(DLC)3321と。
RMASK) 3311, 3312, 3313°3314
.. 3315 and 3316, a color comparator 3317,
A zero flag extender (ZE) 3318, a carry flag extender (CMPMSEL) 3320, and a destination latch (DLC) 3321.

算術論理演算器(ALU)3322と、書込みデータバ
ッファ(WDBR(M)、WDBR(S))3223及
び3224と、読み出しデータバッファ(RDBR)3
325と、内部RAMアドレス定義レジスタ (IRA
R)3327と、−数構出塁3328と、スタック領域
定義レジスタ(SSDR)3329と、−数構出塁33
30と、スタック先頭アドレスレジスタ(SSAR)3
331と、メモリアドレスレジスタ(MAR(M)、M
AR(S))3332及び3333と、−数構出塁33
34と、マスクバス(MSKB)3310と、カラーデ
ータバス(CLB)3301と、メモリ入出力バス32
37と、アドレス出力バス3335と、メモリアドレス
バス(MAB)3338と、人出カバツファ3336と
を備えている。
Arithmetic logic unit (ALU) 3322, write data buffers (WDBR(M), WDBR(S)) 3223 and 3224, and read data buffer (RDBR) 3
325 and internal RAM address definition register (IRA
R) 3327, -number of bases on base 3328, stack area definition register (SSDR) 3329, -number of bases on base 33
30 and stack start address register (SSAR) 3
331, memory address registers (MAR(M), M
AR(S)) 3332 and 3333, - several bases on base 33
34, a mask bus (MSKB) 3310, a color data bus (CLB) 3301, and a memory input/output bus 32.
37, an address output bus 3335, a memory address bus (MAB) 3338, and a traffic buffer 3336.

次に、上記のように構成された実施例の動作について説
明する。まず、本発明の特徴の1つである2レベルマイ
クロプログラムについて説明する。
Next, the operation of the embodiment configured as described above will be explained. First, a two-level microprogram, which is one of the features of the present invention, will be explained.

第1図に於いて、FIFO350を経由して命令レジス
タに書き込まれた図示しない中央処理装置等の外部から
の命令コードは、論理マイクロプログラムROM210
を読み出すため、LRAR220に入る、該LRAR2
20に設定されたアドレスに従い、論理マイクロ命令が
読み出され、このようにして読み出された論理マイクロ
命令は、論理マイクロ命令レジスタ260に入る。その
後上記論理マイクロ命令は、論理マイクロ命令デコ−ダ
270でデコードされ、論理アドレス演算部310を制
御し、論理アドレスを算出する。一方アドレスインクリ
メンタ(INC)230によってLRAR220の値は
更新され、それに従って論理マイクロ命令が順に読み出
される。また、サブルーチンを用いる場合には、スタッ
ク240にサブルーチンからの戻りアドレスをセットし
ておく。
In FIG. 1, an instruction code from an external device such as a central processing unit (not shown) written to the instruction register via the FIFO 350 is stored in the logic microprogram ROM 210.
LRAR2 enters the LRAR220 to read out the LRAR2.
According to the address set to 20, the logic microinstruction is read out, and the logic microinstruction thus read out enters the logic microinstruction register 260. Thereafter, the logical micro-instruction is decoded by the logical micro-instruction decoder 270, which controls the logical address calculation section 310 to calculate a logical address. Meanwhile, the value of LRAR 220 is updated by address incrementer (INC) 230, and the logical microinstructions are read out in sequence accordingly. Further, when using a subroutine, a return address from the subroutine is set in the stack 240.

また、一方では、論理アドレスに対応した物理アドレス
を算出するために、論理マイクロ命令は物理マイクロプ
ログラムROM100を読み出す。
On the other hand, the logical microinstruction reads the physical microprogram ROM 100 in order to calculate the physical address corresponding to the logical address.

物理マイクロ命令は、物理アドレス演算部320と、か
ラーデータ演算330を制御するものである。論理マイ
クロ命令の一部が、PRARIIOに入り、物理マイク
ロ命令を読み出すアドレスとなる。上記PRARIIO
に従って読み出された物理マイクロ命令は、物理マイク
ロ命令レジスタ120に入る。その後上記物理マイクロ
命令は、物理マイクロ命令デコーダ130でデコードさ
れ。
The physical microinstructions are for controlling the physical address calculation unit 320 and the color data calculation unit 330. A portion of the logical microinstruction goes into PRARIIO and becomes the address from which the physical microinstruction is read. PRARIIO above
The physical microinstruction read according to the physical microinstruction register 120 is read. The physical microinstruction is then decoded by a physical microinstruction decoder 130.

物理アドレス演算320を制御し、物理アドレスを算出
すると共に、該物理アドレスによって表示用メモリのデ
ータを読み出し、カラーデータ演算部330でカラーデ
ータ演算を行い、該演算されたデータを表示用メモリへ
書込む。
Controls the physical address calculation unit 320, calculates the physical address, reads data in the display memory using the physical address, performs color data calculation in the color data calculation unit 330, and writes the calculated data to the display memory. It's crowded.

第6図は、上記のように、論理アドレス演算用のマイク
ロプログラムと、物理アドレス演算用のマイクロプログ
ラムを分離して2レベルとした場合のプログラム例を示
している。(C)に示すような値線(a > b )を
描画する例を、(a)に論理マイクロプログラム例、(
b)に物理マイクロプログラム例として示す。本実施例
の特徴として、(a)のフローは論理アドレスを算出す
るアルゴリズムの記述のみであり、マイクロプログラム
の記述性を向上することができ、記述ミスを削減できる
。物理マイクロプログラムは、論理マイクロプログラム
から起動がかかると、独立にプログラムシーケンスを進
めることができる。物理マイクロプログラムが実行中に
、更に論理マイクロプログラムからの起動要求があった
時は、WAIT制御部140から論理マイクロに対し、
動作停止信号(ウェイト信号)を出し、物理マイクロプ
ログラムが動作を停止するまで、論理マイクロプログラ
ムを停止させておく。
FIG. 6 shows an example of a program in which the microprogram for logical address calculation and the microprogram for physical address calculation are separated into two levels as described above. An example of drawing a value line (a > b) as shown in (C) is shown in (a) as an example of a logic microprogram, (
b) is shown as an example of a physical microprogram. A feature of this embodiment is that the flow in (a) is only a description of an algorithm for calculating a logical address, which improves the writeability of a microprogram and reduces writing errors. The physical microprogram can independently advance the program sequence when activated by the logical microprogram. When a startup request is received from a logical microprogram while the physical microprogram is being executed, the WAIT control unit 140 issues a request to the logical microprogram.
An operation stop signal (wait signal) is issued, and the logical microprogram is stopped until the physical microprogram stops operating.

また、本実施例のもう一つの特徴として、物理マイクロ
プログラムは、描画アルゴリズムに左右されない記述が
多いため、たとえば第6図の(b)のような記述は、直
線描画のみならず、円や楕円といった描画にも適用でき
る。この結果、論理マイクロプログラムと論理マイクロ
プログラムを同一のマイクロプログラムとして記述して
いた特願昭59−251907に示す方式に比較して、
本実施例でのマイクロプログラム容量は実質的に削減で
きる。
Another feature of this embodiment is that the physics microprogram has many descriptions that are not affected by the drawing algorithm, so the description shown in FIG. It can also be applied to drawings such as As a result, compared to the method shown in Japanese Patent Application No. 59-251907, in which a logic microprogram and a logic microprogram were written as the same microprogram,
The microprogram capacity in this embodiment can be substantially reduced.

次に本発明の他の特徴である多分岐制御(マルチジャン
プ)について述べる。
Next, multi-branch control (multi-jump), which is another feature of the present invention, will be described.

描画アルゴリズムの記述を行う論理マイクロプログラム
ROM210では、パラメータの違い等によって多方向
分岐を行う必要がある場合がある。
In the logic microprogram ROM 210 that describes the drawing algorithm, it may be necessary to perform multi-directional branching due to differences in parameters.

この様な場合、2方向分岐を複数回用いて行うより、一
度に複数方向に分岐できる方が高速処理できる。そこで
実施例では、多方向分岐を可能とすると共に、分岐数が
可能できる方式を述べる。
In such a case, it is possible to perform faster processing by branching in multiple directions at once than by using two-way branches multiple times. Therefore, in the embodiment, a method will be described that allows multi-directional branching and increases the number of branches.

・ 第7図は、本方式によって分岐を行う場合のフロー
を示したものである。まず1分岐数を設定する。本方式
の特徴は、分岐数を2のn乗単位に設定可能であると共
に1分岐先アドレス間の間隔も変えることが可能である
ことである。例えば4方向分岐を行う時、その分岐先の
各々のアドレス間隔を4番地単位から512番地単位ま
で2のn乗間隔で設定できる。分岐先のプログラム量の
大小により、分岐先のアドレス間隔を変えることにより
、アドレス空間を有効に用いることができる。
- Figure 7 shows the flow when branching using this method. First, set the number of branches. The feature of this method is that the number of branches can be set in units of 2 to the nth power, and the interval between one branch destination address can also be changed. For example, when performing a four-way branch, the address interval for each branch destination can be set at intervals of 2 to the nth power from 4 addresses to 512 addresses. The address space can be used effectively by changing the address interval of the branch destination depending on the size of the program amount of the branch destination.

第8図と第9図は、上記の方式は説明したものである。8 and 9 illustrate the above system.

分岐数は、マルチジャンプ制御回路180内のマルチジ
ャンプコントロールレジスタ1801の各レジスタに設
定する。分岐するための情報はマルチジャンプレジスタ
(MJR)31.00に設定する。その後論理マイクロ
プログラムから、ジャンプアドレスがLRAR220に
設定される時、マルチジャンプコントロールレジスタ1
801のレジスタにIt I Itが設定されているビ
ットのみ。
The number of branches is set in each register of the multi-jump control register 1801 in the multi-jump control circuit 180. Information for branching is set in multi-jump register (MJR) 31.00. Then from the logic microprogram, when the jump address is set to LRAR220, the multi-jump control register 1
Only bits with It I It set in the 801 register.

マルチジャンプレジスタMJR3100のデータがLR
AR220に設定される。第9図の(a)では、LRA
R220のビット2とビット3にMJR3100の2ビ
ツトが設定されており、4方向分岐になっている。(b
)では、16方向分岐の例を示す。上記のようにしてL
RAR220に分岐アドレスが設定された後、該セット
信号をシフトレジスタ18o2でタイミング調整し、マ
ルチジャンプコントロールレジスタ18o1をリセット
する。このようにすることにより、次にジャンプアドレ
スがLRAR220に設定する時には全てのビットに対
しマイクロ命令からのジャンプアドレスが設定され、通
常の無条件分岐が行える。
Multi-jump register MJR3100 data is LR
It is set to AR220. In FIG. 9(a), LRA
Two bits of MJR3100 are set to bits 2 and 3 of R220, resulting in 4-way branching. (b
) shows an example of 16-way branching. As above, L
After the branch address is set in the RAR 220, the timing of the set signal is adjusted by the shift register 18o2, and the multi-jump control register 18o1 is reset. By doing this, the next time the jump address is set in the LRAR 220, the jump address from the microinstruction is set for all bits, and a normal unconditional branch can be performed.

次に、マイクロプログラムのデバッグに有効な手段とし
てブレークポイント設定によるマイクロプログラムの停
止方式を説明する。
Next, a method of stopping a microprogram by setting a breakpoint will be described as an effective means for debugging a microprogram.

描画アルゴリズムを記述する論理マイクロプログラムで
は、記述の複雑さのため、デバッグに多大な労力を要す
る。そこで、プログラムを実行させながら、任意の部分
で停止させ、内部状態を読み出すことは、デバッグに対
し、有効な手段とな机 第10図は、上記におけるマイクロプログラムを停止さ
せる方式を説明したものである。被検査プログラムを実
行させる前に、ブレークポイントレジスタ(BPR)1
60に、停止を希望するアドレスを設定しておく、被検
査プログラムを実行させLRAR220がBPR160
と同一になった時、−数棟出回路が一致信号を出力する
。上記一致信号はシフトレジスタ1501によってタイ
ミング調整され、LRAR220に送られる。
A logic microprogram that describes a drawing algorithm requires a great deal of effort to debug due to the complexity of the description. Therefore, it is an effective means for debugging to stop the program at an arbitrary point while executing it and read the internal state. Figure 10 explains the method for stopping the microprogram in the above. be. Before running the program under test, breakpoint register (BPR) 1
Set the address you wish to stop in 60, run the program to be inspected, and LRAR 220 returns to BPR 160.
When they become the same, the -several output circuit outputs a matching signal. The coincidence signal is timed by shift register 1501 and sent to LRAR 220.

LRAR220では、上記一致信号をセットまたはリセ
ット端子に接続する事により、任意のアドレスを置数す
ることができる。第11図では、前記の動作をタイムチ
ャートで説明したものである。
In the LRAR 220, an arbitrary address can be set by connecting the match signal to the set or reset terminal. FIG. 11 illustrates the above operation using a time chart.

このようにして置数されるアドレスを次コマンドのフェ
ッチプログラムの先頭アドレスとしておく。
The address set in this way is set as the start address of the fetch program of the next command.

つまり、被検査プログラムの後に、内部レジスタを読み
出すコマンドを転送することにより、内部情報を知るこ
とができる。その後更に、任意のアドレスから実行でき
るコマンドを送れば、被検査プログラムの停止した次の
番地から再実行も可能である。
In other words, internal information can be known by transferring a command to read internal registers after the program under test. After that, by sending a command that can be executed from any address, it is possible to re-execute the program to be inspected from the next address where it stopped.

第12図は、本発明による図形処理装置10を適用した
図形処理システムの例である。中央処理装置(CPU)
20は、システムメモリ30からコマンドやパラメータ
を図形処理装置i!10に転送する。図形処理装置10
は、前記コマンドを解釈し、フレームバッファ4o上に
描画実行を行う。
FIG. 12 is an example of a graphic processing system to which the graphic processing device 10 according to the present invention is applied. central processing unit (CPU)
20 transfers commands and parameters from the system memory 30 to the graphic processing device i! Transfer to 10. Graphic processing device 10
interprets the command and executes drawing on the frame buffer 4o.

そのようにして描画された図形は、表示データ変換器5
0でシリアルデータに変換され、表示装置60で表示さ
れる。
The figure drawn in this way is transferred to the display data converter 5.
0, it is converted into serial data and displayed on the display device 60.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、座標演算を制御するマイクロプログラ
ムとメモリアドレス演算を制御するマイクロプログラム
を分離することができるので、座標演算を制御するマイ
クロプログラムには1図形描画アルゴリズムの記述を行
うだけでよく、プログラムの記述性の向上とプログラム
容量を低減することかできる。
According to the present invention, the microprogram that controls coordinate calculations and the microprogram that controls memory address calculations can be separated, so it is only necessary to write one graphic drawing algorithm in the microprogram that controls coordinate calculations. , it is possible to improve the program description and reduce the program capacity.

本発明のその他の効果は、多方向分岐の分岐数を可変に
できるので、プログラムの記述が容易になる。
Another advantage of the present invention is that the number of multidirectional branches can be made variable, making it easier to write programs.

本発明のその他の効果は、マイクロプログラムを任意の
アドレスで停止できるので、その時の内部状態を把握で
き、効率の良いデバッグを行うことができる。
Another advantage of the present invention is that since the microprogram can be stopped at any address, the internal state at that time can be grasped, and efficient debugging can be performed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の図形処理装置のブロック図、第2図〜
第5図は演算部の詳細を示す図、第6図は2レベルマイ
クロプログラミング例を示す図、第7図〜第9図はマル
チジャンプの詳細を示す図、第10図、第11図はブレ
ークポイント設定によるマイクロプログラムの停止方式
を示す図、第12図は、本発明による図形処理装置を適
用した図形処理システムの例を示す図である。 10・・・図形処理装置、100・・・物理マイクロプ
ログラムROM、140・・・WA I T制御回路、
150・・・−数構出塁、160・・・ブレークポイン
トレジスタ、180・・・マルチジャンプ制御回路、2
10・・論理マイクロプログラムROM、310・・・
論理フドレス演算部、320・・・物理アドレス演算部
、330・・・カラーデータ演算部。
FIG. 1 is a block diagram of the graphic processing device of the present invention, and FIG.
Figure 5 is a diagram showing details of the calculation section, Figure 6 is a diagram showing an example of two-level microprogramming, Figures 7 to 9 are diagrams showing details of multi-jump, and Figures 10 and 11 are breaks. FIG. 12, which is a diagram showing a method for stopping a microprogram by point setting, is a diagram showing an example of a graphic processing system to which the graphic processing device according to the present invention is applied. 10... Graphic processing device, 100... Physical micro program ROM, 140... WAIT control circuit,
150...-Several bases on base, 160... Break point register, 180... Multi-jump control circuit, 2
10...Logic microprogram ROM, 310...
Logical address calculation unit, 320...Physical address calculation unit, 330...Color data calculation unit.

Claims (1)

【特許請求の範囲】 1、図形データを記憶する表示用メモリ上への図形デー
タの作成、転送を制御する図形処理装置において、 所定のアルゴリズムに従い描画座標を順次算出する第1
の手段と、 前記描画座標に対応したメモリアドレスを算出し描画実
行する第2の手段と、 前記第1の手段を制御するマイクロプログラム制御装置
と、前記第2の手段を制御するマイクロプログラム制御
装置を個別に設け、 前記第1の手段を制御するマイクロプログラムによつて
前記第2のマイクロプログラムを動作させることを特徴
とする図形処理装置。 2、特許請求の範囲第1項記載の図形処理装置において
、前記第2の手段を制御するマイクロプログラムは、前
記第1の手段を制御するマイクロプログラムによつて動
作した後、単独でプログラムが動作可能なことを特徴と
する図形処理装置。 3、特許請求の範囲第1項記載の図形処理装置において
、前記第1の手段を制御するマイクロプログラムが前記
第2の手段を制御するマイクロプログラムを動作させる
時、既に前記第2の手段を制御するマイクロプログラム
が実行中であつた場合、該実行が終了するまで、前記第
1の手段を制御するマイクロプログラムを停止させるこ
とを特徴とする図形処理装置。 4、特許請求の範囲第1項記載の図形処理装置において
、前記第1の手段を制御するマイクロプログラムのアド
レスを置数する第3の手段と、該プログラムを多方向分
岐させるための情報を設定する第4の手段と、前記第4
の手段の有効ビット位置を指定する第5の手段とを設け
、前記第1の手段を制御するマイクロプログラムがジャ
ンプアドレスを前記第3の手段に置数する際に、前記第
5の手段で指定されたビット位置に対し、前記ジャンプ
アドレスの代りに、前記第4の手段の情報を置数するこ
とにより多方向分岐を可能とすることを特徴とする図形
処理装置。 5、特許請求の範囲第1項記載の図形処理装置において
、前記第1の手段を制御するマイクロプログラムを停止
させるアドレスを置数する第6の手段と、前記第3の手
段と前記第6の手段を比較し、一致した時信号を出力す
る第7の手段を設け、前記第7の手段が出力する信号を
前記第3の手段のセットまたはリセット信号とし、前記
一致信号が出力された時前記第3の手段に個有のデータ
を置数することを特徴とした図形処理装置。
[Claims] 1. In a graphic processing device that controls the creation and transfer of graphic data to a display memory that stores graphic data, the first step is to sequentially calculate drawing coordinates according to a predetermined algorithm.
a second means for calculating a memory address corresponding to the drawing coordinates and executing drawing; a microprogram control device for controlling the first means; and a microprogram control device for controlling the second means. A graphic processing device, wherein: is separately provided, and the second microprogram is operated by a microprogram that controls the first means. 2. In the graphic processing device according to claim 1, the microprogram for controlling the second means is operated by the microprogram for controlling the first means, and then the program is operated independently. A graphic processing device characterized by the following features: 3. In the graphic processing apparatus according to claim 1, when the microprogram for controlling the first means operates the microprogram for controlling the second means, the second means is already controlled. 2. A graphics processing apparatus, characterized in that, when a microprogram that controls the first means is being executed, the microprogram that controls the first means is stopped until the execution is completed. 4. In the graphic processing device according to claim 1, third means for setting an address of a microprogram that controls the first means and information for branching the program in multiple directions are set. a fourth means for
and a fifth means for specifying a valid bit position of the means, and when the microprogram controlling the first means sets a jump address in the third means, the fifth means specifies the effective bit position of the means. 2. A graphics processing device, characterized in that multi-directional branching is possible by setting information of the fourth means in place of the jump address for the bit position of the jump address. 5. The graphic processing device according to claim 1, further comprising: a sixth means for setting an address for stopping a microprogram that controls the first means; A seventh means is provided for comparing the means and outputting a signal when they match, and the signal outputted by the seventh means is used as a set or reset signal for the third means, and when the matching signal is output, the A graphic processing device characterized in that unique data is stored in the third means.
JP62054036A 1986-10-06 1987-03-11 Graphic processing unit Expired - Fee Related JP2708415B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP62054036A JP2708415B2 (en) 1987-03-11 1987-03-11 Graphic processing unit
KR1019870011207A KR940006806B1 (en) 1986-10-06 1987-10-06 Graphic processing apparatus
US08/355,151 US5717440A (en) 1986-10-06 1994-12-06 Graphic processing having apparatus for outputting FIFO vacant information
US08/921,241 US6429871B1 (en) 1986-10-06 1997-08-29 Graphic processing method and system for displaying a combination of images
US09/988,157 US6781590B2 (en) 1986-10-06 2001-11-19 Graphic processing system having bus connection control functions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62054036A JP2708415B2 (en) 1987-03-11 1987-03-11 Graphic processing unit

Publications (2)

Publication Number Publication Date
JPS63221492A true JPS63221492A (en) 1988-09-14
JP2708415B2 JP2708415B2 (en) 1998-02-04

Family

ID=12959362

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62054036A Expired - Fee Related JP2708415B2 (en) 1986-10-06 1987-03-11 Graphic processing unit

Country Status (1)

Country Link
JP (1) JP2708415B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61875A (en) * 1984-06-14 1986-01-06 Hitachi Ltd Method and device for graphic processing

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61875A (en) * 1984-06-14 1986-01-06 Hitachi Ltd Method and device for graphic processing

Also Published As

Publication number Publication date
JP2708415B2 (en) 1998-02-04

Similar Documents

Publication Publication Date Title
US4109310A (en) Variable field length addressing system having data byte interchange
US4890218A (en) Variable length instruction decoding apparatus having cross coupled first and second microengines
EP0211152A2 (en) Program switching with vector registers
EP0438961A2 (en) Hardware data string operation controller
US4941111A (en) Video picking and clipping method and apparatus
US4833640A (en) Register bank change including register to register transfer in a data processing system
EP0318154A2 (en) A method of operating a computer graphics system
KR920004290B1 (en) Instruction pipeline microprocessor
US5117387A (en) Microprogrammed timer processor
JPS62226232A (en) Control system for branch instruction
US5291615A (en) Instruction pipeline microprocessor
TWI484441B (en) Arithmetic logic unit pipe state, graphics processor unit pipeline and method of processing data in the same
US4924377A (en) Pipelined instruction processor capable of reading dependent operands in parallel
JPS63221492A (en) Graphic processing device
JPH0363092B2 (en)
US5812836A (en) System for processing iterative tasks in data processing systems
US5819081A (en) Method of executing a branch instruction of jumping to a subroutine in a pipeline control system
US5115513A (en) Microprogrammed timer processor
US7038684B2 (en) Rendering process apparatus capable of improving processing speed of overall graphic system
KR880000817B1 (en) Data processing device and method
JPH10307721A (en) Improvement system for geometry accelerator performance
JPS60250438A (en) Information processor
JPS5995646A (en) Arithmetic control system
JP2555124B2 (en) Image processing device
JPS59173876A (en) Vector data processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees