JPH01311382A - Graphic processor - Google Patents
Graphic processorInfo
- Publication number
- JPH01311382A JPH01311382A JP14333788A JP14333788A JPH01311382A JP H01311382 A JPH01311382 A JP H01311382A JP 14333788 A JP14333788 A JP 14333788A JP 14333788 A JP14333788 A JP 14333788A JP H01311382 A JPH01311382 A JP H01311382A
- Authority
- JP
- Japan
- Prior art keywords
- line pattern
- register
- transparency
- enable signal
- write enable
- 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
Links
- 238000010586 diagram Methods 0.000 description 3
- 238000000034 method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Landscapes
- Image Generation (AREA)
Abstract
Description
【発明の詳細な説明】
〈産業上の利用分野〉
本発明は、グラフィック処理分野において、ライン描画
の際のライン・パターン発生に改善を施した図形処理装
置に関するものである。DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to a graphic processing device in the field of graphic processing that has improved line pattern generation during line drawing.
〈従来の技術〉
従来、直線、点線、円等の線図形(ライン)を画像メモ
リに描画する場合、ソフトウェアによって実現している
。<Conventional Technology> Conventionally, drawing linear figures (lines) such as straight lines, dotted lines, circles, etc. in an image memory has been achieved using software.
即ち、ラインの繰り返しパターンをライン・パターンと
してライン・パターン・シフト・レジスタに格納し、こ
のパターンを順次シフトしてそのビット・データ(描画
データ)が“0”の時は画像メモリに0“を描画し、“
1”の時は1′。In other words, a repeating pattern of lines is stored as a line pattern in a line pattern shift register, and this pattern is sequentially shifted so that when the bit data (drawing data) is "0", "0" is written to the image memory. Draw “
When it is 1”, it is 1′.
を描画する。Draw.
このような処理実行の際、次に記すようなトランスペア
レンシー操作か加わると処理か更に複雑となる。When performing such a process, the process becomes even more complicated if a transparency operation as described below is added.
トランスペアレンシーがオンであると、現在の表示画面
の背景表示を消去することがないように直線、点線、円
等(特に点線、−点鎖線等)を描画する必要かあり、描
画データ“1”の場合は画像メモリにこの描画データを
書き込み、描画データ“0′°の場合は“0”描画を行
わないように装置を構成しなければならない。一方、ト
ランスベアレンジ−かオフの場合は、描画データ“1′
°。When transparency is on, it is necessary to draw straight lines, dotted lines, circles, etc. (especially dotted lines, -dotted chain lines, etc.) so as not to erase the background display of the current display screen, and the drawing data is "1". In this case, this drawing data must be written in the image memory, and the device must be configured so that if the drawing data is "0'°,""0" is not drawn.On the other hand, in the case of transbare range - or off, Drawing data “1′”
°.
“′0°′をそのまま画像メモリに描画する。“Draw '0°' as is in the image memory.
このように、描画動作の際、背景画面表示を消去しない
ように新たな図形を効率良く描画するためには、従来の
図形処理装置にトランスペアレンシー処理を行うソフト
ウェアを付加しなければならない。In this manner, in order to efficiently draw a new figure without erasing the background screen display during a drawing operation, it is necessary to add software that performs transparency processing to the conventional figure processing device.
〈発明か解決しようとする課題〉
描画処理のソフトウェアにトランスペアレンシー処理の
ソフトウェアを付加すると、ソフトウェア構成全体か複
雑となり、その負担も大きくなるという問題があった。<Problems to be Solved by the Invention> When transparency processing software is added to drawing processing software, there is a problem in that the entire software configuration becomes complicated and its burden increases.
本発明が解決しようとする課題は、トランスペアレンシ
ー処理をソフトウェアでなくハードウェア的に行おうと
することであり、′ライン描画を高速にかつ効率良く実
行できる図形処理装置を得ることを目的とする。The problem to be solved by the present invention is to perform transparency processing using hardware instead of software, and aims to provide a graphic processing device that can perform line drawing at high speed and efficiently.
〈課題を解決するための手段〉
上記の問題を解決するなめ、本発明は、トランスペアレ
ンシーのオンオフを保持するレジスタを設け、このレジ
スタの値に応じて画像メモリに対する書き込みイネーブ
ル信号を制御するようにしたものであり、その構成は次
の通りである。<Means for Solving the Problems> In order to solve the above problems, the present invention provides a register that holds transparency on/off, and controls a write enable signal to the image memory according to the value of this register. The structure is as follows.
即ち、画像メモリに描画するライン・パターンを記憶す
るライン・パターン・シフト・レジスタと、前記ライン
・パターンの拡大像数分のクロック・パルスを計数して
前記ライン・パターン・シフト・レジスタへシフト・タ
ロツクを与えるリピート・カウンタと、このリピート・
カウンタへ前記クロック・パルスを与えるとともに前記
ライン・パターンの書き込みイネーブル信号を出力する
メモリ制御部とを有する図形処理装置において、トラン
スペアレンシーのオンオフを保持するトランスペアレン
シー・レジスタと、トランスベアレジシーかオンの時、
前記ライン・パターンの描画データか“1′′の場合は
前記書き込みイネーブル信号を出力し、前記ライン・パ
ターンの描画データか“O”の場合は前記書き込みイネ
ーブル信号を禁止するトランスペアレンシー制御部とを
設けたことを特徴とする図形処理装置である。That is, a line pattern shift register stores a line pattern to be drawn in an image memory, and a clock pulse corresponding to the number of enlarged images of the line pattern is counted and shifted to the line pattern shift register. A repeat counter that gives tarotsuku and this repeat counter.
In a graphic processing device having a memory control unit that provides the clock pulse to a counter and outputs a write enable signal for the line pattern, a transparency register that holds transparency on/off, and a transparency register that holds transparency on/off; time,
a transparency control unit that outputs the write enable signal when the drawing data of the line pattern is "1", and inhibits the write enable signal when the drawing data of the line pattern is "O"; This is a graphic processing device characterized by the following.
く作用〉
本発明の図形処理装置におけるトランスペアレンシー制
御部は、トランスペアレンシーかオフの場合、ライン・
パターン・シフト・レジスタから発生した描画データ“
0″、“1”に従って描画動作を行い、トランスペアレ
ンシーがオンの場合、ライン・パターン・シフト・レジ
スタから発生した描画データが“1”の時はそのまま描
画を行い、描画データが“0”の時は画1象メモリに対
する書き込みイネーブル信号を禁止する。Function> The transparency control section in the graphic processing device of the present invention controls the line and
Drawing data generated from the pattern shift register
0", "1", and when transparency is on, when the drawing data generated from the line pattern shift register is "1", drawing is performed as is, and when the drawing data is "0", At this time, the write enable signal to the image memory is prohibited.
〈実施例〉
第1図に本発明を実施した図形処理装置の構成ブロック
図を表わす。<Embodiment> FIG. 1 shows a block diagram of the configuration of a graphic processing device embodying the present invention.
1はライン描画の際のライン・パターンが設定される1
6ヒン)・・シフト・レジスタであり、後述するリピー
ト・カウンタ2から与えられるシフト・タロツク(B
o r r o w )により1ビツトだけシフト・ア
ップされ、シフト・アウトされたデータは最下位ビット
の位置に付加される。ライン・パターンの参照は最上位
ビン1〜より行われる62はライン・パターン・シフト
・レジスタ1の1ビット描画データの出力期間を決定す
るリピート・カウンタであり、4ビツト・ダウン・カウ
ンタで構成される。カウント値が“0”になった時点で
ライン・パターン・シフl〜・レジスタ1にシフト・タ
ロツク(Borrow)を送出する。1 sets the line pattern when drawing lines 1
6 Hint)...A shift register, which stores the shift tally (B
or rrow ), the data is shifted up by one bit, and the shifted out data is added to the least significant bit position. The line pattern is referenced from the topmost bin 1 onwards. 62 is a repeat counter that determines the output period of 1-bit drawing data of line pattern shift register 1, and is composed of a 4-bit down counter. Ru. When the count value reaches "0", a shift tally (Borrow) is sent to the line pattern shift register 1.
3はライン・パターン・シフト・レジスタ1に設定され
るライン・パターンの拡大係数かデータ・バスDBより
与えられるズーム・レジスタである。この拡大係数はロ
ード・クロックLOADCKによりリピート・カウンタ
2へ送出される。3 is a zoom register which is given by the line pattern enlargement coefficient set in line pattern shift register 1 or data bus DB. This expansion factor is sent to repeat counter 2 by load clock LOADCK.
4は画像メモリ(図示せず)に対して書き込みイネーブ
ル信号WEを出力し、データ書き込み(読み出し)のタ
イミングを制御するメモリ制御部であり、リピート・カ
ウンタ2ヘカウント・クロックRCCKを出力する。A memory control unit 4 outputs a write enable signal WE to an image memory (not shown) to control data write (read) timing, and outputs a count clock RCCK to a repeat counter 2.
5はトランスベアレンジ−のオンオフが設定されるトラ
ンスベアレンジ−・レジスタである。5 is a transbearing range register in which on/off of the transbearing range is set.
6はトランスベアレンジ−制御部であり、ゲート61、
セレクタ62から構成される。ゲート61は、ライン・
パターン・シフト・レジスタ1からの描画データ(“O
”、”l”)とメモリ制御部4からの書き込みイネーブ
ル信号WEを入力する。セレクタ62は、ゲート61出
力をA端子に、メモリ制御部4の書き込みイネーブル信
号WEをB@子に入力し、トランスベアレンジ−・レジ
スタ5がオンの時はA入力を選択し、オフの時はB入力
を選択する。6 is a transbearing range control section, gate 61;
It is composed of a selector 62. Gate 61 is line
Drawing data from pattern shift register 1 (“O
", "l") and the write enable signal WE from the memory control unit 4. The selector 62 inputs the output of the gate 61 to the A terminal, the write enable signal WE of the memory control unit 4 to the B@ child, When the transveer range register 5 is on, the A input is selected, and when it is off, the B input is selected.
さて、このように構成された本発明の図形処理装置の動
作を第1図の構成ブロック図及び第2図のタイムチャー
トを用いて説明する。Now, the operation of the graphic processing apparatus of the present invention configured as described above will be explained using the block diagram of FIG. 1 and the time chart of FIG. 2.
はじめに、ライン・パターン・シフト・レジスタ1にラ
イン・パターンが、ズーム・レジスタ3に拡大係数(“
2”)がデータ・バスDBより設定される。このとき拡
大係数(“2”)はロード・クロックLOADCKによ
りリピート・カウンタ2にも設定される。First, the line pattern is stored in line pattern shift register 1, and the enlargement factor (“
2") is set by the data bus DB. At this time, the enlargement coefficient ("2") is also set in the repeat counter 2 by the load clock LOADCK.
リピート・カウンタ2は、画像メモリに対する書き込み
が実行される毎にメモリ制御部4から出力される信号(
クロック)RCCKによってカウント・ダウンし、カウ
ント値が“0パになった時点でライン・パターン・シフ
ト・レジスタ1にシフト・クロック(Borrow)を
出力する6その結果、ライン・パターン・シフト・レジ
スタ1は1ビツトだけシフト・アップし、シフト・アウ
トされたデータはライン・パターン・シフト・レジスタ
1の最下位ビット位置に付加される。The repeat counter 2 receives a signal ((
Clock) RCCK, and when the count value reaches "0," output the shift clock (Borrow) to line pattern shift register 1.6 As a result, line pattern shift register 1 is shifted up by one bit and the shifted out data is added to the least significant bit position of line pattern shift register 1.
同時に、シフト・アウトされた1ビット描画データDは
画像メモリ側へ与えられる。At the same time, the shifted out 1-bit drawing data D is given to the image memory side.
この例では、ズーム・レジスタ3には値“2”が設定さ
れ、リピート・カウンタ2が値“2”からクロックRC
CKにより“1”、“0”とダウン・カウントする間、
3クロツクRCCKの器間、描画データD(Valid
DataH“1″または“0”)が画像メモリに与
えられる。In this example, the zoom register 3 is set to the value "2", and the repeat counter 2 is set to the clock RC from the value "2".
While counting down to “1” and “0” by CK,
Between 3 clocks RCCK, drawing data D (Valid
DataH (“1” or “0”) is given to the image memory.
一方、トランスベアレンジ−制御部6は、トランスベア
レンジ−・レジスタ5に設定されたトランスベアレンジ
−のオンオフによって書き込みイネーブル信号W E−
を出力する。On the other hand, the transbearing range control section 6 outputs a write enable signal W E- by turning on/off the transbearing range set in the transbearing range register 5.
Output.
トランスベアレンジ−・レジスタ5がオンの時は次の動
作を行う。When the transbearing range register 5 is on, the following operation is performed.
トランスベアレンジ−制御部6内のセレクタ62はA入
力を選択して出力する。A selector 62 in the transveer range control section 6 selects the A input and outputs it.
ライン・パターン・シフト・レジスタ1からの描画デー
タか“1゛″の場合、メモリ制御部4の書き込みイネー
ブル信号WE″L″ (ロウ・アクティブ)の際に、ゲ
ート61の出力もアクティブ(“L、”)となり、セレ
クタ62出力である書き込みイネーブル信号WE−はア
クティブとなる。When the drawing data from the line pattern shift register 1 is "1", the output of the gate 61 is also active ("L") when the write enable signal WE"L" (Low active) of the memory control unit 4 is set. , ”), and the write enable signal WE-, which is the output of the selector 62, becomes active.
従って、ライン・パターン・シフト・レジスタ1の描画
データD(“1°°)は画像メモリに描画される。Therefore, the drawing data D (“1°°)” of the line pattern shift register 1 is drawn in the image memory.
ライン・パターン・シフト・レジスタ1からの描画デー
タか“0”の場合は、メモリ制御部4の書き込みイネー
ブル信号WE ’L” (ロウ・アクティブ)の際に、
ゲート62はインアクティブとなり、セレクタ62は“
H”レベルを出力し、書き込みイネーブル信号WE−を
禁止する。従って、画像メモリに対して新たな描画デー
タD(“0′°)が書き込まれることなく、画像メモリ
には以前のデータがそのまま残る。If the drawing data from the line pattern shift register 1 is "0", when the write enable signal WE 'L' (low active) of the memory control unit 4 is
The gate 62 becomes inactive and the selector 62 becomes “
H" level is output and the write enable signal WE- is inhibited. Therefore, new drawing data D ("0'°) is not written to the image memory, and the previous data remains in the image memory as it is. .
一方、トランスベアレンジ−・レジスタ5がオフの場合
は、トランスベアレンジ−制御部6のセレクタ62で常
にメモリ制御部4からの書き込みイネーブル信号WEが
そのまま選択されるなめ、ライン・パターン・シフト・
レジスタ】の描画データ”0”、“1”が画像メモリに
書き込まれる。On the other hand, when the transbearing range register 5 is off, the selector 62 of the transbearing range control part 6 always selects the write enable signal WE from the memory control part 4, so the line pattern shift
The drawing data "0" and "1" in the register are written to the image memory.
尚、上記例では、ライン・パターン・シフト・レジスタ
1からの描画データについて、1ビット単位で説明した
が、通常はこのビット・データをラッチして1ワード(
16ビツト)単位に処理を行う。In the above example, the drawing data from line pattern shift register 1 was explained in units of 1 bit, but normally this bit data is latched and stored in 1 word (
Processing is performed in units of 16 bits.
このようにして、トランスベアレンジ−かオンの場合に
、画像メモリに以前書き込まれたデータを消去すること
なく、新たな描画データを書き込むことかできる。In this way, new drawing data can be written to the image memory without erasing data previously written to the image memory when the transber range is on.
〈発明の効果〉
以上述べたように、本発明の図形処理装置はトランスベ
アレンジ−処理をハードウェア的に解決したため、ソフ
トウェアはライン・パターン、拡大係数を設定する以外
は従来のライン描画の場合と同様の処理ご行えは良く、
描画処理の高速化が図れる。<Effects of the Invention> As described above, since the graphic processing device of the present invention solves the transbearing range processing using hardware, the software performs the same steps as in conventional line drawing except for setting the line pattern and enlargement factor. It is good that you can perform the same processing as
The speed of drawing processing can be increased.
第1図は本発明の図形処理装置の構成を表わす図、第2
図は本発明装置の動作を表わすフローチャー1・である
。
1・・・ライン・パターン・シフト・レジスタ、2・・
・リピート・カウンタ、3・・・ズーム・レジスタ、4
・・・メモリ制御部、FIG. 1 is a diagram showing the configuration of the graphic processing device of the present invention, and FIG.
The figure is a flowchart 1 representing the operation of the apparatus of the present invention. 1...Line pattern shift register, 2...
・Repeat counter, 3...Zoom register, 4
...Memory control unit,
Claims (1)
るライン・パターン・シフト・レジスタと、前記ライン
・パターンの拡大係数分のクロック・パルスを計数して
前記ライン・パターン・シフト・レジスタへシフト・ク
ロックを与えるリピート・カウンタと、このリピート・
カウンタへ前記クロック・パルスを与えるとともに前記
ライン・パターンの書き込みイネーブル信号を出力する
メモリ制御部とを有する図形処理装置において、トラン
スペアレンシーのオンオフを保持するトランスペアレン
シー・レジスタと、トランスペアレンシーがオンの時、
前記ライン・パターンの描画データが“1”の場合は前
記書き込みイネーブル信号を出力し、前記ライン・パタ
ーンの描画データが“0”の場合は前記書き込みイネー
ブル信号を禁止するトランスペアレンシー制御部とを設
けたことを特徴とする図形処理装置。(1) A line pattern shift register that stores a line pattern to be drawn in an image memory, and a clock pulse corresponding to the enlargement factor of the line pattern that is counted and shifted to the line pattern shift register. A repeat counter that provides a clock and a repeat counter that provides a clock.
In a graphic processing device having a memory control unit that applies the clock pulse to a counter and outputs a write enable signal for the line pattern, a transparency register that holds transparency on/off and when transparency is on are provided. ,
and a transparency control unit that outputs the write enable signal when the line pattern drawing data is "1" and inhibits the write enable signal when the line pattern drawing data is "0". A graphic processing device characterized by:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63143337A JP2621361B2 (en) | 1988-06-10 | 1988-06-10 | Graphic processing unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63143337A JP2621361B2 (en) | 1988-06-10 | 1988-06-10 | Graphic processing unit |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH01311382A true JPH01311382A (en) | 1989-12-15 |
JP2621361B2 JP2621361B2 (en) | 1997-06-18 |
Family
ID=15336437
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63143337A Expired - Lifetime JP2621361B2 (en) | 1988-06-10 | 1988-06-10 | Graphic processing unit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2621361B2 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS4918534A (en) * | 1972-06-14 | 1974-02-19 | ||
JPS57104983A (en) * | 1980-12-22 | 1982-06-30 | Tokyo Shibaura Electric Co | Line pattern generator |
JPS60245035A (en) * | 1984-05-18 | 1985-12-04 | Ascii Corp | Display controller |
JPS61196292A (en) * | 1985-02-26 | 1986-08-30 | 横河電機株式会社 | Graphics display unit |
-
1988
- 1988-06-10 JP JP63143337A patent/JP2621361B2/en not_active Expired - Lifetime
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS4918534A (en) * | 1972-06-14 | 1974-02-19 | ||
JPS57104983A (en) * | 1980-12-22 | 1982-06-30 | Tokyo Shibaura Electric Co | Line pattern generator |
JPS60245035A (en) * | 1984-05-18 | 1985-12-04 | Ascii Corp | Display controller |
JPS61196292A (en) * | 1985-02-26 | 1986-08-30 | 横河電機株式会社 | Graphics display unit |
Also Published As
Publication number | Publication date |
---|---|
JP2621361B2 (en) | 1997-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH10505935A (en) | Improved memory architecture and devices, systems and methods utilizing the same | |
JPH0136146B2 (en) | ||
JPH01311382A (en) | Graphic processor | |
JPH0325684A (en) | Picture drawing controller | |
JPS6067990A (en) | Picture information processor having density converting function | |
JPH0798644A (en) | Character display data write device | |
JP2661326B2 (en) | Elastic store circuit | |
JPS63131176A (en) | Image display device | |
JP2806849B2 (en) | Memory address controller | |
JPS5835592A (en) | Display picture divider | |
JPH1055157A (en) | Horizontal scroll system for display data | |
JPS63256991A (en) | Editing memory | |
KR920005294B1 (en) | Chip enable signal control circuit of dual port memory device | |
JPS62113193A (en) | Memory circuit | |
JPH03105384A (en) | Display control system | |
JPS607478A (en) | Image display | |
KR940001833B1 (en) | Digital video apparatus | |
JPH0610392Y2 (en) | Display control circuit | |
JPS6198385A (en) | Display controller | |
JP2000214815A (en) | Display controller and program recording medium thereof | |
JPH04259984A (en) | Memory access method | |
JPS6032091A (en) | Hidden surface processing system | |
JPH01112449A (en) | Speed converting memory device | |
JPS5891491A (en) | Picture information input circuit for picture memory | |
JPS61239775A (en) | Image enlarging device |