JP2626894B2 - Straight line drawing circuit of bitmap type display device - Google Patents
Straight line drawing circuit of bitmap type display deviceInfo
- Publication number
- JP2626894B2 JP2626894B2 JP62314750A JP31475087A JP2626894B2 JP 2626894 B2 JP2626894 B2 JP 2626894B2 JP 62314750 A JP62314750 A JP 62314750A JP 31475087 A JP31475087 A JP 31475087A JP 2626894 B2 JP2626894 B2 JP 2626894B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- color
- pattern data
- register
- output
- 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.)
- Expired - Lifetime
Links
Landscapes
- Image Generation (AREA)
Description
【発明の詳細な説明】 〔概要〕 直線を高速に描画するDDA回路を、フレームメモリに
形成される複数プレーンのそれぞれに配設したビットマ
ップ型表示装置の直線描画方式に関し、 線の表示色および線間の背景色からなる破線等の2色
で形成される直線を、高速に描画することを目的とし、 1色描画または2色描画を指定するモードレジスタ
と、該モードレジスタとラインスタイルレジスタの出力
信号により、演算器への入力信号を制御するゲート回路
をDDA回路の線種制御部に設け、表示色に対応してそれ
ぞれの前記線種制御部の各レジスタに設定を行い、線お
よび線間の描画データを各プレーンに同時に設定して、
2色からなる直線の描画を行う。DETAILED DESCRIPTION OF THE INVENTION [Summary] Regarding a straight line drawing method of a bit map type display device in which a DDA circuit for drawing a straight line at high speed is arranged on each of a plurality of planes formed in a frame memory, A mode register for designating one-color drawing or two-color drawing, for the purpose of drawing a straight line formed of two colors such as a broken line composed of a background color between lines at high speed, and a mode register and a line style register. A gate circuit that controls an input signal to the arithmetic unit according to the output signal is provided in the line type control unit of the DDA circuit, and the register of each of the line type control units is set in accordance with a display color, and a line and a line are set. The drawing data between is set to each plane at the same time,
Draws a straight line of two colors.
本発明は、直線を高速に描画する、いわゆるDDA(デ
ィジタル・ディファレンシャル・アナライザ)回路を、
フレームメモリに形成される複数プレーンのそれぞれに
配設したビットマップ型表示装置の直線描画回路に関す
る。The present invention provides a so-called DDA (Digital Differential Analyzer) circuit that draws straight lines at high speed.
The present invention relates to a straight line drawing circuit of a bit map type display device provided on each of a plurality of planes formed in a frame memory.
近年、文字,図形,イメージの情報をCRT画面に表示
する一方法として、ビットマップ型表示装置が多く使わ
れている。これは第3図に一例を示すように、ビットマ
ップ化されたフレームメモリ(FM)をもち、文字等の表
示内容をビット(点)単位に展開して書き込み、逐次フ
レームメモリから読み出しCRT画面に表示する装置であ
る。この装置では画面上の1ドットがメモリの1ビット
に対応し、またカラー表示する場合はそれに対応した複
数のプレーン(面)がフレームメモリに構成される。1
つのプレーンはCRT画面のドットに対応したビットを有
し、それぞれのプレーンから読み出されたデータからテ
ーブル(LUT)を参照し、R,G,Bの三原色の強度を得るこ
とにより表示される。例えば、4つのプレーンにより表
示色を決める場合は、画面の1つのドットに対して4ビ
ットのデータが与えられる。従って、16色の表示が可能
となる。2. Description of the Related Art In recent years, as a method of displaying information of characters, figures, and images on a CRT screen, a bitmap display device has been widely used. As shown in FIG. 3, as an example, this has a bit-mapped frame memory (FM), which expands and writes the display contents such as characters in bit (point) units, reads out from the frame memory sequentially, and displays it on the CRT screen. It is a device for displaying. In this device, one dot on the screen corresponds to one bit of the memory, and in the case of color display, a plurality of planes (surfaces) corresponding to the one bit are formed in the frame memory. 1
The three planes have bits corresponding to the dots on the CRT screen, and are displayed by referring to a table (LUT) from data read from each plane and obtaining the intensities of the three primary colors R, G, and B. For example, when the display color is determined by four planes, 4-bit data is given to one dot on the screen. Therefore, 16 colors can be displayed.
このビットマップ型表示装置は、任意の位置に任意の
情報を表示することが可能であるため、文字,図形、イ
メージの情報を表示する場合に適しており、画素密度を
上げて表示を細密化する傾向にある一方、フレームメモ
リに書き込む単位が、ドット単位であるため全画面にわ
たるフレームメモリの書換えに時間がかかるため、表示
速度の向上が今後の課題とされている。This bitmap display device is capable of displaying arbitrary information at an arbitrary position, and thus is suitable for displaying information of characters, figures, and images. On the other hand, since the unit of writing to the frame memory is a dot unit, it takes time to rewrite the frame memory over the entire screen, so that improvement of the display speed is a future subject.
従来、カラー表示可能なビットマップ型表示装置にお
いて、直線を描画する場合には、第3図に示すように、
フレームメモリ(FM)4に構成される各プレーンそれぞ
れにDDA回路3が設けられ、CPU1の設定する直線パター
ンおよび線の表示色に対応して、各プレーンのDDA回路
3により直線データが展開され描画がなされている。Conventionally, in the case of drawing a straight line in a bitmap display device capable of color display, as shown in FIG.
A DDA circuit 3 is provided for each plane configured in the frame memory (FM) 4, and the linear data is developed and drawn by the DDA circuit 3 of each plane according to the linear pattern and line display color set by the CPU 1. Has been made.
第4図は、DDA回路3の説明図であり、(a)に概略
構成図を示し、(b)にはドットマトリックス上に描画
パターンを展開した一例を示す。(a)に示すように、
DDA回路3は方向制御部31,線種制御部32,ディストネー
ションレジスタ(以下、ddrと呼称する)33から構成さ
れている。ddr33には対応するプレーンの描画対応位置
の内容が、例えば4×4ドット単位で読込まれる。この
ddr33に対して方向制御部31ではCPU1からの角度情報に
より、描画位置を算出しアドレス指定を行う。例えば、
(b)のドットマトリックス42で説明すると、X方向に
順次1ドットづつ位置を進め、各ドット位置でのY方向
へ1ドット上がるか上がらないかを算出し指定する。FIG. 4 is an explanatory diagram of the DDA circuit 3, in which (a) shows a schematic configuration diagram, and (b) shows an example in which a drawing pattern is developed on a dot matrix. As shown in (a),
The DDA circuit 3 includes a direction control unit 31, a line type control unit 32, and a destination register (hereinafter, referred to as ddr) 33. The contents of the corresponding drawing position of the corresponding plane are read into the ddr 33, for example, in units of 4 × 4 dots. this
The direction control unit 31 calculates the drawing position and specifies the address for the ddr 33 based on the angle information from the CPU 1. For example,
To explain with the dot matrix 42 of (b), the position is advanced one dot at a time in the X direction, and it is calculated and designated whether one dot is raised or not raised in the Y direction at each dot position.
また、線種制御部32ではCPU1から指定される、例えば
(b)に示す41のように直線パターンに従って、前述の
方向制御部31が指定するddr33内のドットに、描画デー
タとして“1"または“0"を出力し書き込みを行う。In the line type control unit 32, according to a straight line pattern designated by the CPU 1 such as 41 shown in FIG. Outputs “0” and writes.
ddr33内への読み込みが4×4ドットであれば、上述
のddr33への書込みは4ドットで終了し、フレームメモ
リ4へ書戻して、次を読み込み順次描画データを書き込
む。If the reading into the ddr 33 is 4 × 4 dots, the writing into the above-mentioned ddr 33 ends with 4 dots, the writing back to the frame memory 4, the next is read, and the drawing data is written sequentially.
第5図に従来の線種制御部32の回路図を示す。同図に
おいて、321は線の表示色に対応した“0"または“1"を
保持するソースデータレジスタ(以下、sdrと呼称す
る),322は直線パターンデータを保持するラインスタイ
ルレジスタ(以下、lsrと呼称する),323はsdr321およ
びlsr322のデータを入力し、ddr33へ描画データを出力
する演算器(以下、ALUと呼称する),324はALU321への
操作指令を保持するオペレーションレジスタ(以下、op
rと呼称する)である。FIG. 5 shows a circuit diagram of a conventional line type control unit 32. In the figure, reference numeral 321 denotes a source data register (hereinafter, referred to as sdr) holding “0” or “1” corresponding to the display color of a line, and 322 denotes a line style register (hereinafter, lsr) holding linear pattern data. 323, an operation unit (hereinafter, referred to as ALU) for inputting data of sdr321 and lsr322, and outputting drawing data to ddr33, and 324, an operation register (hereinafter, op) for holding an operation command to ALU321.
r).
sdr321へは、例えば4つのプレーン0〜3があり、線
の表示色がプレーン1,3へ“1",プレーン0,2へ“0"のデ
ータを書き込むことにより作成される場合は、プレーン
1,3に対応するそれぞれのsdr321には“1"が設定され、
他のプレーンのsdr321には“0"が設定される。lsr323へ
は、例えば第4図(b)の直線パターン41であれば“11
1000"のデータが保持されており、前述の方向制御部31
のドット指定のタイミングで、1ビットづつ順に繰り返
し出力される。ALU323はopr324へ設定される操作指令に
より種々の動きをする。The sdr 321 has, for example, four planes 0 to 3. If the display color of a line is created by writing data of “1” to the planes 1 and 3 and “0” to the planes 0 and 2,
"1" is set to each sdr321 corresponding to 1,3,
“0” is set to the sdr 321 of the other plane. For example, in the case of the linear pattern 41 in FIG.
1000 "data is held, and the direction control unit 31
Are repeatedly output in order of one bit at a time designated by the dot. The ALU 323 performs various operations according to operation commands set to the opr 324.
「sdr→ddr」である設定では、sdr321に設定されたデ
ータがddr33に出力され、「▲▼→ddr」ではsdr3
21の反転データが出力される。また、「0→ddr」では
方向制御部31の指定するドット位置すべてに“0"のデー
タが出力され、同様に「1→ddr」では“1"のデータが
すべてに出力される。In the setting “sdr → ddr”, the data set in sdr321 is output to ddr33, and in “▲ ▼ → ddr”, sdr3
21 inverted data is output. In the case of “0 → ddr”, data of “0” is output to all dot positions specified by the direction control unit 31, and in the case of “1 → ddr”, data of “1” is output to all.
上記従来のDDA回路は、直線を1色で描くものであっ
たため、例えば、実線を破線に変更する場合には、表示
されている実線の上に背景色で実線を描画し一旦消し
て、次に線の表示色で破線を上描きする処理が必要であ
った。そのため実線の描画に比べ倍の時間が必要となっ
ており、特に、太線の場合では1ドット幅の1回の線描
画を、1ドットずらしながら複数回行うものであるため
極めて遅くなるという問題があった。Since the above-mentioned conventional DDA circuit draws a straight line in one color, for example, when changing a solid line to a broken line, a solid line is drawn with a background color on the displayed solid line, and is erased once. It was necessary to perform a process of overwriting the broken line with the display color of the line. Therefore, it takes twice as much time as drawing a solid line. Particularly, in the case of a thick line, one line drawing of one dot width is performed a plurality of times while being shifted by one dot, which is extremely slow. there were.
本発明は、上記問題点に鑑みてなされたもので、線の
表示色および線間の背景色からなる破線等の2色で形成
される直線を、高速に描画するビットマップ型表示装置
の直線描画回路を提供することを目的とする。SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has been made in consideration of the above problem, and has been made in consideration of a straight line formed by two colors such as a dashed line including a display color of a line and a background color between the lines. It is an object to provide a drawing circuit.
本発明において、上記問題点を解決するための手段
は、表示色または背景色を指定するデータを保持するソ
ースデータレジスタと、描画するパターンデータを保持
するラインスタイルレジスタと、前記ソースデータレジ
スタからのデータを入力して演算し、該ラインスタイル
レジスタからのデータを入力して前記演算の結果を描画
データに形成し、フレームメモリへ描画データを送出す
る演算器と、該演算器へ前記演算の動作を設定して送出
するオペレーションレジスタとからなる線種制御部を備
えたDDA回路を、フレームメモリに形成される複数プレ
ーンのそれぞれに配設したビットマップ型表示装置の直
線描画回路において、表示色または背景色のいずれかか
らなる1色描画、または線の表示色および線間の背景色
の2色からなる2色描画を指定するモードレジスタと、
該モードレジスタに1色描画を指定した際は、ラインス
タイルレジスタからのデータをそのまま演算器へ送出
し、該モードレジスタに2色描画を指定した際にはライ
ンスタイルレジスタからのデータと、ソースデータレジ
スタからのデータを、またはオペレーションレジスタか
らの部分的なデータを排他的論理和によりゲートして演
算器へ送出するゲート回路を前記線種制御部に設ける。In the present invention, means for solving the above problems include a source data register for holding data specifying a display color or a background color, a line style register for holding pattern data to be drawn, and a source data register. An arithmetic unit for inputting data, performing an operation, inputting data from the line style register to form a result of the operation into drawing data, and sending the drawing data to a frame memory; A DDA circuit having a line type control unit consisting of an operation register for setting and sending the data is displayed in a linear drawing circuit of a bit map type display device arranged in each of a plurality of planes formed in a frame memory. One-color drawing consisting of any of the background colors, or two-color drawing consisting of the display color of lines and the background color between lines And a mode register that specifies,
When one-color drawing is designated in the mode register, the data from the line style register is sent to the computing unit as it is. When two-color drawing is designated in the mode register, the data from the line style register and the source data The line type control unit is provided with a gate circuit that gates data from a register or partial data from an operation register by exclusive OR and sends the gate to an arithmetic unit.
複数プレーンからなる構成において、破線のように1
色からなる直線の描画では、線および線間(背景)の表
示色に応じて各プレーンに描画データが設定されなけれ
ばならない。例えば、4つのプレーン0〜3の構成で、
線の表示にはプレーン2,3上に“1"が、プレーン0,1には
“0"が、線間の表示にはプレーン1,3上に“1"が、プレ
ーン0,2には“0"である描画データが設定されて、破線
の表示色が作成されCRTに描画される。すなわち、常に
“0"を出力するプレーン0には「0→ddr」の動作をopr
に設定し、常に“1"を出力するプレーン3には「1→dd
r」の動作をoprに設定する。又、線および線間に依っ
て、“0"又は“1"を出力するプレーン1,2には「sdr→dd
r」又は「▲▼→ddr」の動作をoprに設定する。
この様にして、線と線間とでプレーンへの出力データを
切替える事により、所望の2色表示を得ることができ
る。In a configuration composed of a plurality of planes, 1
In drawing a straight line composed of colors, drawing data must be set in each plane according to the display color of the line and the space between the lines (background). For example, in the configuration of four planes 0 to 3,
“1” is displayed on planes 2 and 3 to display lines, “0” is displayed for planes 0 and 1, “1” is displayed on planes 1 and 3 for display between lines, and planes 0 and 2 are displayed. The drawing data of “0” is set, and the display color of the broken line is created and drawn on the CRT. That is, the operation of “0 → ddr” is performed on the plane 0 that always outputs “0” by opr.
And “1 → dd” is assigned to plane 3 which always outputs “1”.
Set "r" action to opr. Also, depending on the line and the distance between the lines, the planes 1 and 2 that output “0” or “1” have “sdr → dd”
Set the operation of “r” or “▲ ▼ → ddr” to opr.
In this way, by switching the output data to the plane between the lines, a desired two-color display can be obtained.
本発明では、DDA回路の線種制御部において、モード
レジスタを2色表示に、ソースデータレジスタおよびオ
ペレーションレジスタを各プレーンの条件に即してそれ
ぞれに設定し、ゲート回路がラインスタイルレジスタの
直線パターンの出力信号により、演算器への入力信号、
例えばソースデータレジスタまたはオペレーションレジ
スタからの入力信号を制御することにより、各プレーン
への描画データの出力を制御し、線および線間の描画デ
ータをそれぞれのプレーン上に同時に設定する。According to the present invention, in the line type control unit of the DDA circuit, the mode register is set to two-color display, the source data register and the operation register are set according to the conditions of each plane, and the gate circuit is set to the linear pattern of the line style register. Input signal to the computing unit,
For example, by controlling an input signal from a source data register or an operation register, the output of drawing data to each plane is controlled, and lines and drawing data between lines are simultaneously set on each plane.
以下、図面を参照して本発明の実施例を詳細に説明す
る。Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
第1図は、本発明によるDDA回路の線種制御部の一実
施例を示す回路図である。同図における本実施例の線種
制御部32は、第5図に示す従来の構成要素であるsdr
(ソースデータレジスタ)321,lsr(ラインスタイルレ
ジスタ)322,ALU(演算器)323およびopr(オペレーシ
ョンレジスタ)324に、モードレジスタ(以下、mdrと呼
称する)325とゲート回路326を付加して構成される。FIG. 1 is a circuit diagram showing one embodiment of a line type control unit of a DDA circuit according to the present invention. The line type controller 32 of the present embodiment shown in FIG.
(Source data register) 321, lsr (line style register) 322, ALU (arithmetic unit) 323 and opr (operation register) 324, with a mode register (hereinafter referred to as mdr) 325 and a gate circuit 326 added. Is done.
mdr325は本発明による直線描画において1色描画を行
うか、2色同時描画を行うかを設定するレジスタであ
る。設定により1色描画であれば“0"を示す出力を、2
色描画であれば“1"を示す出力を発する。ゲート回路32
6は、mdr325の出力とlsr322の出力を入力とするANDゲー
トG1およびORゲートG2と、ANDゲートG1の出力とsdr321
の出力を入力とするEOR(Exclusive OR)ゲートG3とか
らなり、ORゲートG2の出力を従来のlsr322からの出力に
代えてALU323への入力とし、EORゲートG3の出力を同じ
く従来のsdr321からの出力に代えてALU323への入力とす
るように構成される。An mdr 325 is a register for setting whether to perform one-color drawing or two-color simultaneous drawing in the straight line drawing according to the present invention. If one color is drawn by setting, the output indicating “0” is set to 2
In the case of color drawing, an output indicating "1" is issued. Gate circuit 32
6 is an AND gate G1 and an OR gate G2 which receive the output of mdr325 and the output of lsr322, and the output of AND gate G1 and sdr321
An EOR (Exclusive OR) gate G3 that takes the output of the OR as an input. The output of the OR gate G2 is used as an input to the ALU323 instead of the output from the conventional lsr322, and the output of the EOR gate G3 is also used as the output from the conventional sdr321. It is configured to be input to ALU323 instead of output.
上記構成による動作を、表1に示す条件での破線描画
の例により説明する。破線は線の表示色と線間を現わす
背景色により表現されるものであり、表1に示す条件は
線の表示色と背景色が、4つのプレーンそれぞれでの表
示位置に対応するドットを表1に示す“0"または“1"の
データにすることにより表示されることを示すものであ
る。The operation of the above configuration will be described with reference to an example of drawing a broken line under the conditions shown in Table 1. The dashed line is represented by the display color of the line and the background color representing the space between the lines, and the conditions shown in Table 1 indicate that the display color of the line and the background color are the dots corresponding to the display positions in each of the four planes. This indicates that the data is displayed by setting the data to “0” or “1” shown in Table 1.
まず、2色同時描画の場合を説明すると、それぞれの
プレーンに対応するDDA回路の線種制御部32では、mdr32
5に出力が“1"となるように設定され、またそれぞれのl
sr322には破線のパターンデータが、例えば“111000"で
あるように“1"が線の表示,“0"が背景を示すデータと
して設定され、図示しない方向制御部の描画ドット指定
のタイミングと同期して、設定されたデータが1ビット
づつ順次出力される。 First, the case of two-color simultaneous drawing will be described. In the line type control unit 32 of the DDA circuit corresponding to each plane, mdr32
The output is set to “1” at 5 and each l
In sr322, the pattern data of a broken line is set as data indicating a line display such as "111000" and "0" as data indicating a background, and is synchronized with the timing of drawing dot designation by a direction control unit (not shown). Then, the set data is sequentially output one bit at a time.
表1の条件のプレーン0およびプレーン3では、線お
よび背景に必要なデータは同じであるので、この場合は
opr324の設定を、プレーン0の場合には「“0"→ddr」
とすることにより、ALU323からプレーン0における線の
表示位置全てに対して“0"のデータが出力される。同様
にプレーン3ではopr324への設定を「“1"→ddr」とす
ることによりALU323からプレーン3における線の表示位
置全てに“1"のデータが出力される。In plane 0 and plane 3 under the conditions in Table 1, the data required for the line and the background are the same.
Set opr324 to “0” → ddr for plane 0
As a result, data of “0” is output from the ALU 323 to all the display positions of the lines on the plane 0. Similarly, in the plane 3, by setting the setting of the opr 324 to “1” → ddr, “1” data is output from the ALU 323 to all the display positions of the lines in the plane 3.
プレーン1およびプレーン2では線および背景位置に
必要なデータは異なる。この場合は線のデータに着目し
それぞれのlsr322に同一のデータが設定される。また、
プレーン1に対応するsdr321には“1"が、プレーン2に
対応するsdr321には“0"が設定される。また、それぞれ
のopr324には「sdr→ddr」が設定される。尚、ORゲート
G2が接続されているALU入力は、ALU出力をddrに出力す
る際のイネーブル端子であり、oprの出力が接続されて
いるALU入力は、ALUの演算指定(例.出力=S eor D)
であり、sdrの出力がEORゲートG3を介して接続されてい
るALU入力は前記演算のSの入力端子であり、ddrの出力
が接続されているALU入力は前記演算のDの入力端子で
ある。The data required for the line and the background position differs between plane 1 and plane 2. In this case, paying attention to line data, the same data is set in each lsr322. Also,
“1” is set to the sdr 321 corresponding to the plane 1 and “0” is set to the sdr 321 corresponding to the plane 2. Also, “sdr → ddr” is set in each opr324. In addition, OR gate
The ALU input to which G2 is connected is an enable terminal for outputting an ALU output to ddr, and the ALU input to which the output of opr is connected is an ALU operation designation (eg, output = S eor D).
The ALU input to which the output of sdr is connected via the EOR gate G3 is the S input terminal of the operation, and the ALU input to which the output of ddr is connected is the D input terminal of the operation. .
即ちALUは、演算指定の入力端子に操作指令の制御コ
ードを入力して任意の演算を指定し、演算するドット位
置をイネーブル入力端子に設定して、そのドット位置に
おけるddrの出力にSの入力端子のデータを演算して出
力する様になっており、この制御コードは、例えば4本
の制御線における各信号の組合せにより各種演算の指定
が可能である。That is, the ALU inputs a control code of an operation command to an input terminal for operation designation, designates an arbitrary operation, sets a dot position to be operated to an enable input terminal, and inputs S to an output of ddr at the dot position. Terminal data is calculated and output, and this control code can specify various calculations by, for example, a combination of signals on four control lines.
表2に、プレーン1に対応する線種制御部32の上記設
定における各レジスタ,ゲートおよびALU323の出力を示
す。同じく表3にはプレーン2に対応する出力を示す。Table 2 shows each register, gate, and output of the ALU 323 in the above setting of the line type control unit 32 corresponding to the plane 1. Similarly, Table 3 shows the output corresponding to plane 2.
第1図の本実施例の線種制御部32では、mdr325の出力
が“1"に設定されると、ORゲートG2の出力は常に“1"と
なるとともに、lsr322の出力によりEORゲートG3の出力
が制御されるために、sdr321の設定によりALU323の出力
が変わる。 In the line type controller 32 of the present embodiment shown in FIG. 1, when the output of the mdr 325 is set to "1", the output of the OR gate G2 is always "1", and the output of the EOR gate G3 is output by the output of the lsr322. Since the output is controlled, the output of ALU323 changes depending on the setting of sdr321.
すなわち、表2で示すようにプレーン1に対しては、
sdr321に“1"を設定することにより、lsr322の出力にお
いて線表示を示す“1"の出力時はALU323の出力は“0"と
なり、背景を示す“0"の出力の時はALU323の出力は“1"
となる。一方、表3で示すようにプレーン2に対して
は、sdr321に“0"を設定することにより、lsr322の出力
において線表示を示す“1"の出力の時はALU323の出力は
“1"となり、背景を示す“0"の出力の時はALU323の出力
は“0"となる。そして前述のプレーン0とプレーン3と
により、破線の表示色および背景色が作られ表示され
る。That is, as shown in Table 2, for plane 1,
By setting “1” to sdr321, the output of ALU323 becomes “0” when “1” indicating line display is output in the output of lsr322, and the output of ALU323 becomes “0” when outputting “0” indicating background. “1”
Becomes On the other hand, as shown in Table 3, by setting "0" to sdr321 for plane 2, the output of ALU323 becomes "1" when the output of lsr322 is "1" indicating a line display. When the output is "0" indicating the background, the output of the ALU 323 is "0". A display color and a background color of a broken line are created and displayed by the planes 0 and 3 described above.
このように本実施例では、破線のような2色からなる
直線を描画する場合には、mdr325に“1"を設定するとと
もに、色を作成する各プレーンのデータの条件により、
各レジスタの設定を行うのみで、一度に2色からなる直
線の描画が可能となる。As described above, in the present embodiment, when a straight line composed of two colors such as a broken line is drawn, “1” is set in the mdr 325, and the condition of the data of each plane for creating a color is
By simply setting each register, it is possible to draw a straight line composed of two colors at a time.
また、従来と同じく1色で描画する場合は、mdr325に
“0"を設定すれば、ORゲートG2の出力はlsr322の出力と
同じになるとともに、ANDゲートG1の出力は常に“0"と
なるため、EORゲートG3の出力もsdr321の出力と同じに
なる。従って、従来と同じ動作となり1色のみの描画が
可能となる。Also, when drawing in one color as in the conventional case, if “0” is set to mdr325, the output of the OR gate G2 becomes the same as the output of the lsr322, and the output of the AND gate G1 is always “0”. Therefore, the output of the EOR gate G3 is the same as the output of the sdr321. Therefore, the operation is the same as the conventional one, and it is possible to draw only one color.
第2図は、本発明による第1図の線種制御部32におけ
るゲート回路326の別の実施例である。第2図における
ゲート回路326′は、mdr325およびlsr322の出力を入力
とするANDゲートG1′,ORゲートG2′と、該ORゲートG2′
の出力をALU323への入力とする構成は第1図と同じであ
るが、EORゲートG3′を、opr324からALU323へ制御コー
ドを伝送する4本の制御線の内の1本に配設し、前記AN
DゲートG1′の出力を一方の入力にして構成したもので
ある。EORゲートG3′が配設される制御線は、opr324に
「▲▼→ddr」の指令が設定されたときに、その
制御線の信号の反転で、ALU323への制御コードを「sdr
→ddr」に変える制御線である。FIG. 2 shows another embodiment of the gate circuit 326 in the line type control unit 32 of FIG. 1 according to the present invention. The gate circuit 326 'in FIG. 2 comprises an AND gate G1', an OR gate G2 'which receives the outputs of mdr325 and lsr322, and an OR gate G2'.
1 is the same as that of FIG. 1 except that an EOR gate G3 'is arranged on one of four control lines for transmitting a control code from the opr 324 to the ALU 323. The AN
In this configuration, the output of the D gate G1 'is used as one input. The control line on which the EOR gate G3 'is disposed, when the command "▲ ▼ → ddr" is set in the opr324, the control code to the ALU323 is changed to "sdr" by inverting the signal of the control line.
→ ddr ”.
上記構成による動作を第1図に示した実施例と同様
に、表1の条件におけるプレーン1およびプレーン2に
対して説明する。本実施例では、opr324には「▲
▼→ddr」の指令が設定され、またsdr321の設定は表1
で示す線の表示色に着目し、プレーン1に対するsdr321
には“0"を、プレーン2に対するsdr321には“1"を設定
する。The operation of the above configuration will be described for the plane 1 and the plane 2 under the conditions of Table 1, as in the embodiment shown in FIG. In the present embodiment, the opr324 has "▲
▼ → ddr ”command is set, and sdr321 setting is shown in Table 1.
Pay attention to the display color of the line indicated by sdr321 for plane 1
Is set to “0”, and “1” is set to sdr 321 for plane 2.
表4にプレーン1に対応する線種制御部32の上記設定
に対する各部の出力及びALUの動作を示す。また、表5
にはプレーン2に対応する出力および動作を示す。Table 4 shows the output of each unit and the operation of the ALU for the above setting of the line type control unit 32 corresponding to the plane 1. Table 5
Shows the output and operation corresponding to plane 2.
本実施例では、lsr322の出力によりopr324からALU33
への制御コードを変えて、ALU323の動作を制御し、ALU3
23の出力を変えるものである。すなわち、表4に示すよ
うにlsr322からの出力が、線表示を示す“1"である場合
はANDゲートG1′の出力が“1"となるため、EORゲートG
3′によりALU323への制御コードが変更され「sdr→dd
r」となり、sdr321の設定データである“0"がALU323よ
り出力される。一方、lsr322の出力が背景を示す“0"で
ある場合は、ANDゲートG1′の出力は“0"となるため、
制御コードは変わらず「▲▼→ddr」であり、sdr
321の設定の反転データである“1"が出力される。表5
の場合は、sdr321への設定が“1"であるため、ALU323の
出力は表4の場合とは逆になる。 In the present embodiment, ALU33 is output from opr324 by the output of lsr322.
Control the operation of ALU323 by changing the control code to ALU3
It changes the output of 23. That is, as shown in Table 4, when the output from the lsr322 is "1" indicating a line display, the output of the AND gate G1 'becomes "1".
3 ′ changes the control code to ALU323, and changes to “sdr → dd
r ”, and“ 0 ”which is the setting data of the sdr 321 is output from the ALU 323. On the other hand, when the output of lsr322 is “0” indicating the background, the output of the AND gate G1 ′ is “0”.
The control code remains "▲ ▼ → ddr" and the sdr
“1” which is the inverted data of the setting of 321 is output. Table 5
In the case of, since the setting to the sdr 321 is "1", the output of the ALU 323 is opposite to the case of Table 4.
このように、本実施例においても、第1図に示した実
施例と同じ結果を得ることができるため、同様にopr324
を1度だけ設定することにより2色からなる直線の描画
が可能となる。また、従来と同じく1色で描画する場合
も、mdr325に“0"を設定すれば、ORゲートG2′の出力は
lsr322の出力と同じになるとともに、ANDゲートG1′の
出力は常に“0"となり、ALU322への制御コードを変える
ことはないため、従来と同じ動作となる。As described above, in this embodiment, the same result as that of the embodiment shown in FIG. 1 can be obtained.
Is set only once, it is possible to draw a straight line composed of two colors. Also, in the case of drawing with one color as in the conventional case, if "0" is set to mdr325, the output of the OR gate G2 'becomes
The output becomes the same as the output of lsr322, and the output of the AND gate G1 'is always "0", and the control code to the ALU322 is not changed.
以上のように、本発明によれば、線の表示色および線
間の背景色からなる破線等の2色からなる直線の描画に
おいて、単一の操作指令による処理で2色を切替え操作
して描画することができるため、異なる操作指令による
2回の処理を必要とする従来に比べ、2倍に高速化され
るビットマップ型表示装置の直線描画回路を提供するこ
とができる。As described above, according to the present invention, in drawing a straight line composed of two colors, such as a broken line composed of a display color of a line and a background color between the lines, the two colors are switched by a single operation command. Since drawing can be performed, it is possible to provide a linear drawing circuit of a bitmap type display device which is twice as fast as the conventional one which requires two processes by different operation commands.
第1図は本発明の一実施例の回路図、 第2図は本発明の他の実施例の回路図、 第3図はビットマップ型表示装置の構成図、 第4図はDDA回路の説明図、 第5図は従来の線種制御部の回路図である。 3;DDA回路、4;フレームメモリ(FM)、31;方向制御部、
32;線種制御部、321;ソースデータレジスタ(sdr)、32
2;ラインスタイルレジスタ(lsr)、323;演算器(AL
U)、324;オペレーションレジスタ(opr)、325;モード
レジスタ(mdr)、326,326′;ゲート回路、G1,G1′;AN
Dゲート、G2,G2′;ORゲート、G3,G3′;EORゲート。FIG. 1 is a circuit diagram of one embodiment of the present invention, FIG. 2 is a circuit diagram of another embodiment of the present invention, FIG. 3 is a configuration diagram of a bitmap display device, and FIG. FIG. 5 is a circuit diagram of a conventional line type control unit. 3; DDA circuit, 4; frame memory (FM), 31; direction control unit,
32; line type control unit, 321; source data register (sdr), 32
2; line style register (lsr), 323; arithmetic unit (AL
U), 324; operation register (opr), 325; mode register (mdr), 326, 326 '; gate circuit, G1, G1'; AN
D gate, G2, G2 '; OR gate, G3, G3'; EOR gate.
Claims (1)
ータとからなる直線パターンデータを保持するラインス
タイルレジスタと、 前記第1のパターンデータの色を指定する色データを保
持するソースデータレジスタと、 第1のパターンデータの色および第2のパターンデータ
の色の中いずれか1つからなる1色描画と第1のパター
ンデータの色および第2のパターンデータの色の2色か
らなる2色描画とを指定するモードレジスタと、 前記モードレジスタに1色描画を指定した際には、前記
ラインスタイルレジスタからの入力された第1のパター
ンデータおよび第2のパターンデータの中いずれか一方
のパターンデータを有効とし、前記モードレジスタに2
色描画を指定した際には、前記ラインスタイルレジスタ
からの入力された第1のパターンデータおよび第2のパ
ターンデータを有効とする第1の手段と、 前記第1の手段により有効となった有効パターンデータ
に対し、当該有効パターンデータが前記第1のパターン
データの場合には、前記ソースデータレジスタに保持さ
れた第1のパターンデータの色を指定する色データをそ
のままフレームメモリーへ送出し、当該有効パターンデ
ータが前記第2のパターンデータの場合には、前記ソー
スデータレジスタに保持された色データに基づき当該有
効パターンデータの色を指定する色データを形成する演
算を行いフレームメモリーへ送出する第2の手段と、 第1のパターンデータの色を指定する色データおよび第
2のパターンデータの色を指定する色データに応じて前
記第2の手段の演算動作を設定し、送出するオペレーシ
ョンレジスタとを備える ことを特徴とするビットマップ型表示装置の直線描画回
路。A line style register for holding linear pattern data comprising first pattern data and second pattern data; a source data register for holding color data for specifying a color of the first pattern data; A two-color drawing consisting of one of the colors of the first pattern data and the second pattern data, and two colors of the first pattern data and the second pattern data A mode register for designating drawing, and, when one-color drawing is designated for the mode register, one of the first pattern data and the second pattern data input from the line style register. Validate the data and store 2 in the mode register.
A first means for validating the first pattern data and the second pattern data input from the line style register when the color drawing is designated; and a validity made effective by the first means. When the effective pattern data is the first pattern data with respect to the pattern data, the color data specifying the color of the first pattern data held in the source data register is sent to the frame memory as it is, and If the effective pattern data is the second pattern data, the second pattern data is calculated based on the color data held in the source data register, and the color data for specifying the color of the valid pattern data is formed and sent to the frame memory. 2 means, color data specifying the color of the first pattern data and color specifying the color of the second pattern data Line drawing circuit that sets the calculation operation of the second means in accordance with the color data, bit-mapped display device, characterized in that it comprises a operation register to be sent.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62314750A JP2626894B2 (en) | 1987-12-10 | 1987-12-10 | Straight line drawing circuit of bitmap type display device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62314750A JP2626894B2 (en) | 1987-12-10 | 1987-12-10 | Straight line drawing circuit of bitmap type display device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH01154291A JPH01154291A (en) | 1989-06-16 |
JP2626894B2 true JP2626894B2 (en) | 1997-07-02 |
Family
ID=18057133
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62314750A Expired - Lifetime JP2626894B2 (en) | 1987-12-10 | 1987-12-10 | Straight line drawing circuit of bitmap type display device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2626894B2 (en) |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS61283970A (en) * | 1985-06-10 | 1986-12-13 | Ascii Corp | Picture data processor |
-
1987
- 1987-12-10 JP JP62314750A patent/JP2626894B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JPH01154291A (en) | 1989-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4641282A (en) | Memory system | |
JPS61159686A (en) | Image display unit | |
US4747042A (en) | Display control system | |
JPH0545039B2 (en) | ||
JP3477666B2 (en) | Image display control device | |
JPH0640259B2 (en) | Data processing device | |
JP2626894B2 (en) | Straight line drawing circuit of bitmap type display device | |
JPS60144789A (en) | Character/graphic display controller | |
JPS6228474B2 (en) | ||
JP2853749B2 (en) | Television screen display device | |
JPH0379719B2 (en) | ||
JPS60247689A (en) | Display | |
JPH0445487A (en) | Method and device for composite display | |
JP2633517B2 (en) | Display information processing device | |
JPH04205678A (en) | Image information processor | |
JPH01302391A (en) | Image display | |
JPS62184577A (en) | Display control circuit | |
JPS62166475A (en) | Superimposing system for image plane | |
JPH06308926A (en) | Easy flickering system for display device displaying graphic data on screen | |
JPH05290176A (en) | Color image processing method | |
JPH01204094A (en) | Image memory device | |
JPS61116386A (en) | Character pattern writing control system | |
JPS6215674A (en) | Catalog editing system | |
JPH0695278B2 (en) | Display information processing device | |
JPS63136171A (en) | Image data processor |