JPH02183874A - Depicting circuit - Google Patents

Depicting circuit

Info

Publication number
JPH02183874A
JPH02183874A JP433489A JP433489A JPH02183874A JP H02183874 A JPH02183874 A JP H02183874A JP 433489 A JP433489 A JP 433489A JP 433489 A JP433489 A JP 433489A JP H02183874 A JPH02183874 A JP H02183874A
Authority
JP
Japan
Prior art keywords
data
frame buffer
writing
circuit
write
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP433489A
Other languages
Japanese (ja)
Inventor
Haruki Nagao
永尾 春樹
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP433489A priority Critical patent/JPH02183874A/en
Publication of JPH02183874A publication Critical patent/JPH02183874A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)

Abstract

PURPOSE:To attain high speed depicting with simple hardware by outputting a read signal to a frame buffer and controlling the switching of a latch circuit and first and second gates when data are all bits writing designated from a register. CONSTITUTION:A control circuit 8 judges it according to a signal from an OR circuit 10 whether the data are the all bits writing or not. Then, a ready signal line 3 to a CPU is made inactive and simultaneously, the read signal is outputted to a frame buffer 9. Gates 21-29 and 31-39 are controlled according to the contents of a register 5. On a data line to the frame buffer 9, writing data are sent from the CPU to the bit in a writing area X and data are sent from a latch 6 to the bit excepting for the writing area X. At such a time, the control circuit 8 outputs a write signal to the frame buffer 9 and writes the depicted data. Simultaneously, the ready signal line 3 to the CPU is made active. Thus, the processing of read-modify-write can be executed at high speed by the simple hardware.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は描画用フレームバッファにデータを書込むこと
で描画を行う描画回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a drawing circuit that performs drawing by writing data to a drawing frame buffer.

〔従来の技術〕[Conventional technology]

従来、この種の描画回路としては、描画用フレーム・バ
ッファを単に半導体メモリを用いて構成しているなめ、
半導体メモリのあるアドレス番地の一部にデータを書込
む場合、ソフトウェアで書込むべきアドレス番地のデー
タを読み出し変更し書込むといった作業を行っていた。
Conventionally, this type of drawing circuit consists of a drawing frame buffer simply using a semiconductor memory.
When writing data to a part of a certain address in a semiconductor memory, software must be used to read, change, and write the data at the address to be written.

又ハードウェアで行う場合には、専用のブラフィクスコ
ントローラ等を使用していた。
In addition, when performing this with hardware, a dedicated brafix controller or the like is used.

第2図(a)〜(c)は描画時のデータ配列図を示し、
第3図はデータの書込みをソフトウェアで行った場合の
描画処理を示すフロー図である。
Figures 2 (a) to (c) show data array diagrams at the time of drawing,
FIG. 3 is a flow diagram showing the drawing process when data is written using software.

先ず、ステップ101で描画用フレームバッファのアド
レスのどのビットにデータを書込むのが計算する。次の
ステップ102では書込みのデ−夕を計算し求める。こ
こで得られたデータは、第2図(b)に示されるものと
し、その書込みエリアXはステップ101の処理で求め
られたものとする。ソフトウェアでは、ステップ103
で第2図(b)に示す書込みエリアXが全ビットに対し
てであるか否かを判定し、全ビットに対するものであれ
ば、ステップ106で単にデータを書込めば良い。もし
全ビットでなければ、ステップ104で書込むべきアド
レスのデータを一度読み出し、ステップ105で変更し
て、ステップ106で書込みを行う。第2図(a)は書
込むべきアドレスより読み出されたデータを示し、第2
図(C)は変更後のデータを示す。このフローのステッ
プ104〜106のサイクルをリード・モディファイ・
ライトという。
First, in step 101, it is calculated in which bit of the address of the drawing frame buffer data should be written. In the next step 102, write data is calculated and obtained. It is assumed that the data obtained here is shown in FIG. 2(b), and that the writing area X is obtained in the process of step 101. In the software, step 103
Then, it is determined whether the write area X shown in FIG. 2(b) is for all bits or not. If it is for all bits, data may simply be written in step 106. If not all bits are present, the data at the address to be written is read once in step 104, changed in step 105, and written in step 106. Figure 2(a) shows the data read from the address to be written, and the second
Figure (C) shows the data after the change. Read/modify the cycle of steps 104 to 106 of this flow.
It's called light.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の描画回路は、描画データの書込み時ソフ
トウェアで書込まれる側のデータをチエツクしていたた
め、高速化できないという欠点があり、またハードウェ
アで行うのも専用のLSIを使っていたなめ高価になる
という欠点があった。
The above-mentioned conventional drawing circuit has the disadvantage that it cannot be made faster because the data to be written is checked by software when writing drawing data, and it is not possible to increase the speed when writing drawing data. The drawback was that it was expensive.

本発明の目的は、これらの欠点を除き、非常に簡単なハ
ードウェアを追加することで高速な描画を可能にした描
画回路を提供することにある。
An object of the present invention is to provide a drawing circuit that eliminates these drawbacks and enables high-speed drawing by adding very simple hardware.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の構成は、半導体メモリからなる描画用フレーム
バッファにデータを書込むことにより描画を行う描画回
路において、書込まれる側の前記半導体メモリの指定さ
れたアドレスのデータを保持するラッチ回路と、描画デ
ータの書込まれる側の書込みエリアを指定するためのデ
ータを保持するレジスタと、このレジスタの出力および
反転出力によって前記描画データおよび前記ラッチ回路
の出力データをそれぞれ制御する第1および第2のゲー
トと、前記レジスタからの指定データが全ビット書込み
である時、前記フレームバッファにリード信号を出力す
ると共に前記ラッチ回路および前記第1.第2のゲート
を切換え制御するコントロール回路とを含むことを特徴
とする。
The present invention provides a drawing circuit that performs drawing by writing data to a drawing frame buffer made of a semiconductor memory, including: a latch circuit that holds data at a specified address of the semiconductor memory to be written; a register that holds data for specifying a write area on the side where the drawing data is written, and first and second registers that control the drawing data and the output data of the latch circuit, respectively, by the output and inverted output of this register. When the specified data from the gate and the register is all-bit writing, a read signal is output to the frame buffer, and the latch circuit and the first . and a control circuit that switches and controls the second gate.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のブロック図である。本実施
例は、半導体メモリからなるフレームバッファ9と、書
込みエリアXに書込むべきデータを格納するレジスタら
と、書込みエリアX以外のデータをフレームバッファ9
から読出して格納するラッチ6と、コントロール回路8
と、OR回路10.インバータ11,12.ゲート21
〜29.31〜39とから構成される。
FIG. 1 is a block diagram of one embodiment of the present invention. This embodiment includes a frame buffer 9 made of a semiconductor memory, registers for storing data to be written in write area X, and frame buffer 9 for storing data other than write area X.
A latch 6 for reading data from and storing it, and a control circuit 8
and OR circuit 10. Inverters 11, 12. gate 21
~29. Consisting of 31~39.

CPUがフレームバッファ9に描画のため、データの書
込みの必要が生じた時、ソフトウェアで書込みビットと
書込みデータの計算を行う(第3図のステップ101,
102の処理)。cpuは書込みビットを指定するデー
タをデータ線4A、書込みデータをデータ線4Bに送出
する。書込みビットの指定データは、書込みエリアXを
「0」、それ以外を「1」とする、cpuは同時に書込
み先のフレームバッファ9のアドレスをアドレス線1へ
、書込み指定をリードライト制御線2へ送出する。レジ
スタ5は書込みピッI・指定データを格納する。
When the CPU needs to write data to the frame buffer 9 for drawing, the software calculates the write bits and write data (step 101 in FIG. 3).
102 processing). The CPU sends data specifying write bits to the data line 4A and write data to the data line 4B. The write bit designation data sets the write area Send. Register 5 stores write pin I/designated data.

コントロール回路8は、CPUからフレームバッファ9
への書込み信号がきたらオア回路10からの信号により
全ビット書込みかを判断し、CPUへのレディ信号線3
をインアクティブにすると同時に、フレームバッファ9
にリード信号をリードライト制御線7から出力する。フ
レームバッファ9から書き込まれる側のデータが読み出
されるので、ゲート31及びラッチ6を制御し、フレー
ムバッファ9からの読み出された信号をラッチ回路6に
格納させる。ゲート21〜29.31〜39はレジスタ
5の内容により制御されるので、フレームバッファ9へ
のデータ線上には書込みエリアXのビットにはCPUか
らの書込みデータ、書込みエリアX以外のビットにはラ
ッチ6からのデータが送出される。この時、コントロー
ル回路8はフレームバッファ9に対し書込み信号を出し
、描画データを書込むと同時に、CPUのしデイ信号3
をアクティブにし、書込みサイクルを終了させる。
The control circuit 8 is connected to the frame buffer 9 from the CPU.
When a write signal is received, it is determined whether all bits have been written based on the signal from the OR circuit 10, and the ready signal line 3 is sent to the CPU.
At the same time as inactivating frame buffer 9
A read signal is output from the read/write control line 7. Since the data to be written is read from the frame buffer 9, the gate 31 and the latch 6 are controlled, and the signal read from the frame buffer 9 is stored in the latch circuit 6. Gates 21 to 29 and 31 to 39 are controlled by the contents of register 5, so on the data line to frame buffer 9, bits in write area X receive write data from the CPU, and bits other than write area X receive latched data. Data from 6 is sent out. At this time, the control circuit 8 outputs a write signal to the frame buffer 9, and at the same time writes the drawing data, the CPU sends a write signal 3.
Activate and end the write cycle.

また、全ビット書込みの場合、コントロール信号8は通
常のメモリ・ライトサイクルを実行するよう各制御線を
制御する。
Furthermore, in the case of all-bit writing, the control signal 8 controls each control line to execute a normal memory write cycle.

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

以上説明したように本発明は、フレームバッファ書込み
時従来ソフトウェアや専用LSIで行っていたリード・
モディファイ・ライトの処理を簡単なハードウェアの追
加で高速処理できるという効果がある。また、フレーム
バッファ書込み時にリード・モディファイ・ライトを単
にライトのみですますことが出来るため、ソフトウェア
で処理する場合には、そのソフトウェアが簡単になると
いう効果もある。
As explained above, the present invention improves read and write operations that were previously performed using software or dedicated LSI when writing to a frame buffer.
This has the effect of increasing the speed of modify write processing by simply adding hardware. Further, since read/modify/write can be performed by simply writing when writing to the frame buffer, there is an effect that the software becomes simpler when processing is performed by software.

一図である。This is a diagram.

1・・・アドレス線、2,7・・・リード・ライト制御
線、3・・・レディ信号、4A、4B・・・データ線、
5・・・レジスタ、6・・・ラッチ回路、8・・・コン
トロール回路、9・・・フレームバッファ、10・・・
オア回路、11.12・・・インバータ、21〜29.
31〜39・・・ゲート回路。
1... Address line, 2, 7... Read/write control line, 3... Ready signal, 4A, 4B... Data line,
5...Register, 6...Latch circuit, 8...Control circuit, 9...Frame buffer, 10...
OR circuit, 11.12...inverter, 21-29.
31-39...Gate circuit.

Claims (1)

【特許請求の範囲】[Claims] 半導体メモリからなる描画用フレームバッファにデータ
を書込むことにより描画を行う描画回路において、書込
まれる側の前記半導体メモリの指定されたアドレスのデ
ータを保持するラッチ回路と、描画データの書込まれる
側の書込みエリアを指定するためのデータを保持するレ
ジスタと、このレジスタの出力および反転出力によつて
前記描画データおよび前記ラッチ回路の出力データをそ
れぞれ制御する第1および第2のゲートと、前記レジス
タからの指定データが全ビット書込みである時、前記フ
レームバッファにリード信号を出力すると共に前記ラッ
チ回路および前記第1、第2のゲートを切換え制御する
コントロール回路とを含むことを特徴とする描画回路。
A drawing circuit that performs drawing by writing data to a drawing frame buffer consisting of a semiconductor memory includes a latch circuit that holds data at a specified address of the semiconductor memory on the writing side, and a latch circuit to which the drawing data is written. a register that holds data for specifying a writing area on the side; first and second gates that respectively control the drawing data and the output data of the latch circuit by the output and inverted output of this register; A drawing characterized in that it includes a control circuit that outputs a read signal to the frame buffer and switches and controls the latch circuit and the first and second gates when the specified data from the register is all-bit writing. circuit.
JP433489A 1989-01-10 1989-01-10 Depicting circuit Pending JPH02183874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP433489A JPH02183874A (en) 1989-01-10 1989-01-10 Depicting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP433489A JPH02183874A (en) 1989-01-10 1989-01-10 Depicting circuit

Publications (1)

Publication Number Publication Date
JPH02183874A true JPH02183874A (en) 1990-07-18

Family

ID=11581552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP433489A Pending JPH02183874A (en) 1989-01-10 1989-01-10 Depicting circuit

Country Status (1)

Country Link
JP (1) JPH02183874A (en)

Similar Documents

Publication Publication Date Title
JPH0612863A (en) Dual port dram
JPS5995660A (en) Data processor
JPH02183874A (en) Depicting circuit
JPH01273132A (en) Microprocessor
JP2577071B2 (en) Digital signal processor
KR100336743B1 (en) Processing circuit for data
JPH02310888A (en) Static random access memory
JPH0315948A (en) Address bus test system
JP3255429B2 (en) Memory interface circuit
JPH05334234A (en) High speed dma transferring device
JPH03141425A (en) Logic arithmetic system
JPS63234497A (en) Storage device
JPH04263191A (en) Semiconductor memory device
JPS63142589A (en) Semiconductor memory
JPH02309436A (en) Memory control system
JPH0314145A (en) Memory access circuit
JPH04181592A (en) Dynamic type semiconductor memory device
JPH04227551A (en) Access control circuit
JPH09325935A (en) Bus switching circuit
JPH02245947A (en) Memory interface circuit
JPH04209046A (en) Memory access circuit
JPH047762A (en) Memory access method
JPH0315918A (en) Computer device
JP2002024164A (en) Access controller
JPS62217483A (en) Memory device