JPS6316381A - Memory device - Google Patents

Memory device

Info

Publication number
JPS6316381A
JPS6316381A JP16001586A JP16001586A JPS6316381A JP S6316381 A JPS6316381 A JP S6316381A JP 16001586 A JP16001586 A JP 16001586A JP 16001586 A JP16001586 A JP 16001586A JP S6316381 A JPS6316381 A JP S6316381A
Authority
JP
Japan
Prior art keywords
register
color code
signal
data
memory cell
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
JP16001586A
Other languages
Japanese (ja)
Inventor
Yukiya Azuma
東 幸哉
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP16001586A priority Critical patent/JPS6316381A/en
Publication of JPS6316381A publication Critical patent/JPS6316381A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)

Abstract

PURPOSE:To execute at a high speed a color code processing such as a painting- out processing in a closed area, by taking the color code processing into the inside of a memory. CONSTITUTION:In case of painting-out in a closed area, a color code of a boundary point, and a color code used for painting-out are set to a register 106 and a register 105, respectively. A read-out data from a memory cell array 101 selected by an ADR signal is inputted to a comparator 107, and compared with a boundary color code. When said data has allowed to coincide with the boundary color code, the comparator 107 outputs an EQ signal to a processor. The processor simultaneously the EQ signals from memory devices of the number of pieces of word width, handles the color code as a binary signal, and decides a part of logic '1' to be a picture element of the boundary color code in a word. The processor starts painting-out by a designated color between the boundaries, outputs a WE signal, and executes an arithmetic operation between the array 101 and the register 105.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ビットマツプ・ディスプレイ装置のフレーム
・バッファとして使用するメモリ装置に関するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a memory device for use as a frame buffer in a bitmap display device.

従来の技術 従来のメモリ装置としては、例えば第3図ンこ示すもの
が毛る。図において、1はメモリセルの集まりであるメ
モリセルアレイで、メモリセルはアドレス信号人DBに
よって選択される(1ワードnピツト)、2は書込みサ
イクルで工10ポートからの書込みデータとメモリセル
内データとの論理演算を行なう演算器、3は書込みをビ
ット単位で制御するマスクレジスタ、4はメモリセル内
の1行分のデータを格納しIlo ボートとは独立して
・S I10ポートで読出し/書込みができるデータレ
ジスタである。
2. Description of the Related Art A conventional memory device is, for example, the one shown in FIG. In the figure, 1 is a memory cell array which is a collection of memory cells, the memory cells are selected by the address signal DB (1 word n pit), 2 is a write cycle, and 10 is the write data from the port and the data in the memory cell. 3 is a mask register that controls writing on a bit-by-bit basis; 4 is a mask register that stores one row of data in the memory cell, and is read/written independently of the Ilo port using the S I10 port. This is a data register that can perform

以上のように構成されたft来のメモリ装置10におい
ては、第4図(b)に示すよう(て描画・表示を制御す
るプロセッサ11のデータバスと工10  ポートで接
続されメモリセル内のデータが更新される(描画)。ま
たS I10ポートよシ]RT12ンこ対しビデオ信号
が出力される(表示)。
In the conventional memory device 10 configured as described above, as shown in FIG. is updated (drawing). Also, a video signal is output from the SI10 port to the RT12 port (display).

発明が解決しようとする問題点 しかしながら上記のような構成では、第4図(&)に示
すように1画素を多値(色コードや階調コード、以下色
コードと呼ぶ)で表現したとき(第4図aではR,G、
B、Iの4ビット/画素の場合を示す)、プロセッサ1
1は色コードによって各画素を認識しなければならない
ことと、データバス幅はプロセッサ11によって固定(
例えば16ピノト)であるため2値画像に比べて色コー
ドで各画素を表現するとプロセッサ11は、一度に処理
できる画素数が減り処理速度が低下するという問題点を
有していた(データバス幅が16ビツトで4ビット/画
素の場合、プロセッサ11が同時にあつかえるのは4画
素であシ2値画像に比べて4倍の処理時間を要す)。
Problems to be Solved by the Invention However, in the above configuration, when one pixel is expressed with multiple values (color code or gradation code, hereinafter referred to as color code) as shown in FIG. In Figure 4a, R, G,
B, I shows the case of 4 bits/pixel), processor 1
1, each pixel must be recognized by a color code, and the data bus width is fixed by the processor 11 (
For example, 16 pinots), when each pixel is represented by a color code compared to a binary image, the processor 11 has the problem that the number of pixels that can be processed at once decreases, reducing the processing speed (data bus width If the image size is 16 bits and 4 bits/pixel, the processor 11 can handle only 4 pixels at the same time, which requires 4 times the processing time compared to a binary image).

本発明はかかる点に鑑み、高速に色コード処理、特に閉
領域での塗シつぶし処理が行なえるメモリ装置を提供す
ることを目的とする。
SUMMARY OF THE INVENTION In view of the above, an object of the present invention is to provide a memory device that can perform color code processing at high speed, particularly fill-in processing in a closed area.

問題点を解決するための手段 本発明は、書込みパターンを保持する第1のレジスタと
、比較パターンを保持する第2のレジスタと読出しデー
タを比較する比較器を備えたメモリ装置である。
Means for Solving the Problems The present invention is a memory device that includes a first register that holds a write pattern, a second register that holds a comparison pattern, and a comparator that compares read data.

作用 本発明は前記した構成によシ、書込み時には書込み信号
(VX )に同期して第1のレジスタの内容をメモリセ
ルに格納し、読出し時は、メモリセルからの読出しデー
タと第2のレジスタの比較ノ2ターンと比較し一致/不
一致信号を外部に出力することで、プロセッサは色コー
ド処理をする必要がなくなり、色コードが何ピット構成
のものであっても画素を2値として処理することができ
高速処理となる。
According to the above-described configuration, the present invention stores the contents of the first register in the memory cell in synchronization with the write signal (VX) when writing, and stores the contents of the first register in the memory cell in synchronization with the write signal (VX) when writing, and stores the contents of the first register in synchronization with the data read from the memory cell and the second register when reading. By comparing two turns of comparison and outputting a match/mismatch signal to the outside, the processor does not need to process the color code, and processes pixels as binary values no matter how many pits the color code has. This allows for faster processing.

実施例 第1図は本発明の一実施例におけるメモリ装置のブロッ
ク図を示すものである。第1図101〜104は第3図
1〜4に各々対応する。第1図105は書込みパターン
を保持する書込みデータレジスタ(第1のレジスタ)、
106はメモリセルアレイ101からの読出しデータと
比較する比較パターンを保持する比較データレジスタ(
第2のレジスタ)、107はレジスタ106とメモリセ
ルアレイ101からの読出しデータを比較し結果に従っ
て一致したとき“°1″の一致信号KQ信号を発生する
比較器である。
Embodiment FIG. 1 shows a block diagram of a memory device in an embodiment of the present invention. 101-104 correspond to FIG. 3 1-4, respectively. 105 in FIG. 1 is a write data register (first register) that holds a write pattern;
Reference numeral 106 denotes a comparison data register (
A second register 107 is a comparator that compares the read data from the register 106 and the memory cell array 101 and generates a match signal KQ of "°1" when they match according to the result.

以上のように構成された本実施例のメモリ装置110に
ついて、以下その動作を説明する。
The operation of the memory device 110 of this embodiment configured as described above will be described below.

表示帰線区間で5I10ポートを使用して書込みデータ
レジスタ1o5.読出しデータレジスタ106にパター
ンを設定する。例えば閉領域の塗りつぶしの場合、境界
点の色コードをレジスタ106に、塗りつぶしに使用す
る色コードをレジスタ105に各々設定する。ADH信
号によって選択されるメモリセルアレイ101からの読
出しデータは、比較器107に入力され境界色コードと
比較される。境界色コードと一致した場合比較器107
は第2図(b)に示すようにプロセッサ11KEQ信号
を出力する。ここでプロセッサ11はワード幅の個数の
メモリ装置からのEQ倍信号一度に読込む(例えばワー
ド幅16ビツトであれば゛16画素分ンことで色コード
が何ビット(nビット)で表現されているかによらず2
値信号としてあつかうことができ、ワード内で論理゛1
″の所が境界色コードの画素であることがわかる。プロ
セッサ11V′i境界を判別すると、境界間の指定色に
よる塗りつぶしにかがシ、WX信号を発生す6゜メモリ
装置はWX信号が入力するとADH信号により選択され
るメモリセルアレイ101内に既に格納されているデー
タとレジスタ105との間で所定の演算を行った結果を
格納する。
The write data register 1o5. is written using the 5I10 port in the display blanking interval. A pattern is set in the read data register 106. For example, in the case of filling in a closed area, the color code of the boundary point is set in the register 106, and the color code used for filling is set in the register 105. Read data from the memory cell array 101 selected by the ADH signal is input to the comparator 107 and compared with the boundary color code. Comparator 107 if it matches the border color code
The processor 11 outputs the KEQ signal as shown in FIG. 2(b). Here, the processor 11 reads the EQ multiplied signals from the word-width number of memory devices at once (for example, if the word width is 16 bits, how many bits (n bits) does the color code represent? Regardless of the presence 2
Can be treated as a value signal, with logic 1 in a word
'' is the pixel of the boundary color code.When the processor 11V'i determines the boundary, it fills in with the specified color between the boundaries, and the 6° memory device that generates the WX signal receives the WX signal. Then, the result of a predetermined operation performed between the data already stored in the memory cell array 101 selected by the ADH signal and the register 105 is stored.

以上のように、本実施例によれば書込み色コード及び読
出し色コードを保持するレジスタをメモリ装置に内蔵す
ることで、プロセッサはnビットの色コードの画素を第
2図(a)に示すように2値画像としてあつかえる。
As described above, according to this embodiment, by incorporating the registers that hold the write color code and the read color code in the memory device, the processor can read pixels of n-bit color codes as shown in FIG. 2(a). can be treated as a binary image.

なお、本実施例において、レジスタ105.レジスタ1
06及びマスクレジスタ103ばS 工10ポートより
設定する様にしたが、専用のポートを設けてもよい。
Note that in this embodiment, register 105. register 1
06 and the mask register 103 are set using 10 ports, but a dedicated port may be provided.

また、EQ倍信号WE倍信号1つの入出力端子にマルチ
プレクスしてもよい。
Further, the EQ multiplied signal and the WE multiplied signal may be multiplexed to one input/output terminal.

発明の詳細 な説明したように、本発明によれば、メモリ内部に色コ
ード処理を取込むことで、閉領域での塗シつぶし処理の
ような色コード処理が高速にでき、その実用的効果は大
きい。
As described in detail, according to the present invention, by incorporating color code processing into the memory, color code processing such as filling in a closed area can be performed at high speed, and its practical effects can be achieved. is big.

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

第1図は本発明における一実施例のメモリ装置のブロッ
ク図、第2図は同実施例のメモリ装置を使用したグラフ
ィックシステム図、第3図は従来のメモリ装置のブロッ
ク図、第4図は従来のメモリ装置を使用したグラフィッ
クシステム図である。 101・・・・・・メモリセルアレイ、102・・・・
・・演算器、1o3・・・・・・マスクレジスタ、10
4・・・・・・データレジスタ、1o5・−・・・・書
込みデータレジスタ、106−・・・・・比較データレ
ジスタ、107・−・・・・比較器。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図 し−−一一一一一一一−−−−」 第2図 (■ <b) 第3図
FIG. 1 is a block diagram of a memory device according to an embodiment of the present invention, FIG. 2 is a diagram of a graphic system using the memory device of the same embodiment, FIG. 3 is a block diagram of a conventional memory device, and FIG. 4 is a block diagram of a conventional memory device. 1 is a diagram of a graphics system using a conventional memory device; FIG. 101...Memory cell array, 102...
...Arithmetic unit, 1o3...Mask register, 10
4... Data register, 1o5... Write data register, 106... Comparison data register, 107... Comparator. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
Figure 2 (■ <b) Figure 3

Claims (1)

【特許請求の範囲】[Claims] アドレス信号によって選択されるメモリセルの集まりで
あるメモリセルアレイと、前記メモリセルアレイの1行
分のデータを格納し、順次出力するデータレジスタと、
第1のパターンを保持する第1のレジスタと、前記メモ
リセルに既に格納されているデータと前記第1のレジス
タが保持する第1のパターン間で論理演算を施し結果を
前記メモリセルに出力する演算器と、前記演算器の出力
をメモリセルに格納する場合ビット単位で制御を指定す
るマスクレジスタと、第2のパターンを保持する第2の
レジスタと、前記メモリセルからの読出しデータと前記
第2のレジスタが保持する第2のパターンとの比較を行
う比較器を備えたことを特徴とするメモリ装置。
a memory cell array that is a collection of memory cells selected by an address signal; a data register that stores data for one row of the memory cell array and sequentially outputs the data;
A first register that holds a first pattern performs a logical operation between the data already stored in the memory cell and the first pattern held in the first register, and outputs the result to the memory cell. an arithmetic unit; a mask register that specifies control on a bit-by-bit basis when storing the output of the arithmetic unit in a memory cell; a second register that holds a second pattern; 1. A memory device comprising a comparator that performs a comparison with a second pattern held by a second register.
JP16001586A 1986-07-08 1986-07-08 Memory device Pending JPS6316381A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16001586A JPS6316381A (en) 1986-07-08 1986-07-08 Memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16001586A JPS6316381A (en) 1986-07-08 1986-07-08 Memory device

Publications (1)

Publication Number Publication Date
JPS6316381A true JPS6316381A (en) 1988-01-23

Family

ID=15706133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16001586A Pending JPS6316381A (en) 1986-07-08 1986-07-08 Memory device

Country Status (1)

Country Link
JP (1) JPS6316381A (en)

Similar Documents

Publication Publication Date Title
US5056041A (en) Data processing apparatus with improved bit masking capability
KR950704744A (en) METHOD AND APPARATUS FOR PROVIDING FAST MULTI-COLOR STORAGE IN A FRAME BUFFER
EP0267967B1 (en) Image processing apparatus
JPH06101039B2 (en) Window image data read processing method
JPS6316381A (en) Memory device
US6598146B1 (en) Data-processing arrangement comprising a plurality of processing and memory circuits
JPH0795269B2 (en) Instruction code decoding device
JPS6362083A (en) Projection data generation system
JPS6346581A (en) Semiconductor storage device
JP2512994B2 (en) Vector register
JP2652973B2 (en) Image processing device
JPH064331A (en) Decimal check circuit
JPS62196746A (en) Memory integrated circuit
JPS62162151A (en) Data processor
JPH0117190B2 (en)
JPH01284926A (en) Instruction reading system for arithmetic unit
JPS6364141A (en) Storage device
JPS61139888A (en) Image arithmetic device
JPH11144035A (en) Semiconductor memory device
JPS60100249A (en) Memory control circuit
JPS5932813B2 (en) Data transfer method
JPH02105264A (en) Memory device for processing graphic data
JPH03263275A (en) Mask processor
JPS63123171A (en) Data transfer device
JPH05189581A (en) Graphic data write device