JP3081037B2 - Memory device - Google Patents

Memory device

Info

Publication number
JP3081037B2
JP3081037B2 JP03302994A JP30299491A JP3081037B2 JP 3081037 B2 JP3081037 B2 JP 3081037B2 JP 03302994 A JP03302994 A JP 03302994A JP 30299491 A JP30299491 A JP 30299491A JP 3081037 B2 JP3081037 B2 JP 3081037B2
Authority
JP
Japan
Prior art keywords
data
bits
transfer
row
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 - Fee Related
Application number
JP03302994A
Other languages
Japanese (ja)
Other versions
JPH05144259A (en
Inventor
昭文 川原
俊樹 森
昭浩 松本
圭三 隅田
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 Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP03302994A priority Critical patent/JP3081037B2/en
Publication of JPH05144259A publication Critical patent/JPH05144259A/en
Application granted granted Critical
Publication of JP3081037B2 publication Critical patent/JP3081037B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Dram (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、グラフィックスに用い
られるコンピュータのメモリ装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer memory device used for graphics.

【0002】[0002]

【従来の技術】グラフィックスに用いられるコンピュー
タでは、描画速度の向上を図るため、ソフトウェアで行
っていた描画処理をハードウェアで行なうようになりつ
つある。図11に従来のメモリ装置の一例を示す。この
メモリ装置は、多数の行及び列を成すメモリを有するメ
モリアレイ1と、外部より入力されるローアドレスRo
wに基づいてメモリアレイ1内の行データを選択するロ
ーデコーダ4と、同じく外部より入力されるカラムアド
レスColに基づいて、ローデコーダ4により選択され
た行データを増幅するセンスアンプ2と、データを読み
出す場合にセンスアンプ2によって増幅された行データ
を最上位ビットから4ビットづつ内部データバス7に出
力するカラムデコーダ3と、データの書き込みの場合に
新たに書き込むべきデータ(ソースデータ)をマスクデ
ータに基づいてメモリアレイ1に書き込むライトマスク
ロジック5とを有している。
2. Description of the Related Art In a computer used for graphics, in order to improve a drawing speed, drawing processing which has been performed by software is now being performed by hardware. FIG. 11 shows an example of a conventional memory device. This memory device comprises a memory array 1 having a large number of rows and columns of memories, and a row address Ro input from the outside.
w, a row decoder 4 for selecting row data in the memory array 1 based on w, a sense amplifier 2 for amplifying row data selected by the row decoder 4 based on a column address Col also input from the outside, When reading data, the column decoder 3 outputs the row data amplified by the sense amplifier 2 to the internal data bus 7 four bits at a time from the most significant bit, and masks data (source data) to be newly written when writing data. A write mask logic 5 for writing data to the memory array 1 based on data.

【0003】このメモリ装置におけるスクロール転送の
動作を図12に基づいて説明する。この例では、図12
(1)に示すように、メモリアレイ1内の行データの所
定のメモリ領域(aa)に格納されている12ビットの
データが、図12(2)に示す他の位置の12ビットの
メモリ領域(bb)に転送される。なお、この従来例に
おいてはデータ幅を4ビットとして説明する。
The operation of scroll transfer in this memory device will be described with reference to FIG. In this example, FIG.
As shown in (1), the 12-bit data stored in the predetermined memory area (aa) of the row data in the memory array 1 is changed to the 12-bit memory area at another position shown in FIG. (Bb). In this conventional example, the data width will be described as 4 bits.

【0004】同図の図12(3)に示すように、まず、
メモリのリードサイクルにより図12(1)に示す転送
元のデータ群の最初の4ビット(a1)が読み出され、
メモリ装置の外部のレジスタに保持される。次に、4ビ
ットデータ(a1)は書き込みデータ(d1)としてメ
モリのライトサイクルにおいて転送先の(b1)に書き
込まれる。このとき、転送先の(b1)の転送データを
格納すべきビットが右端の3ビットなので、このライト
サイクルの際のマスクデータは(d2)に示すように設
定される。ここで、マスクデータ(d2)のうちの斜線
を施した部分に対応するビットにのみデータのアクセス
が行われることを示している。
[0006] As shown in FIG. 12 (3), first,
The first four bits (a1) of the transfer source data group shown in FIG.
It is held in a register external to the memory device. Next, the 4-bit data (a1) is written as write data (d1) to the transfer destination (b1) in a memory write cycle. At this time, since the bits to store the transfer data of the transfer destination (b1) are the rightmost three bits, the mask data in this write cycle is set as shown in (d2). Here, it is shown that data access is performed only to bits corresponding to the hatched portions of the mask data (d2).

【0005】以下の図12(4)、(5)、(6)に示
すサイクルにおいても同様な動作が行なわれ、図12
(1)の転送元の領域(aa)内の個々のデータが、図
12(2)の転送先の領域(bb)に転送される。この
ようにして、図12(7)に示す転送結果が得られ、ス
クロール転送が正しく行なわれる。
A similar operation is performed in the following cycles shown in FIGS. 12 (4), (5) and (6).
The individual data in the transfer source area (aa) in (1) is transferred to the transfer destination area (bb) in FIG. 12 (2). In this way, the transfer result shown in FIG. 12 (7) is obtained, and the scroll transfer is performed correctly.

【0006】次に、図11の従来のメモリ装置におい
て、所定の連続したメモリ領域に格納されているデータ
群を他のメモリ領域に転送する(以下、「BitBL
T」という)場合の動作を図13〜図19を用いて説明
する。この例では、図13に示すメモリアレイ1上の行
データの所定のメモリ領域(aa)に格納されている1
2ビットのデータを、図14に示す他の位置の12ビッ
トのメモリ領域(bb)に転送する場合である。
Next, in the conventional memory device shown in FIG. 11, a data group stored in a predetermined continuous memory area is transferred to another memory area (hereinafter referred to as "BitBL").
T)) will be described with reference to FIGS. In this example, row data 1 stored in a predetermined memory area (aa) of the memory array 1 shown in FIG.
This is a case where 2-bit data is transferred to a 12-bit memory area (bb) at another position shown in FIG.

【0007】まず、図15に示すように、メモリのリー
ドサイクルにより図13の転送データ(aa)を含む行
データの最上位4ビット(a1)が読み出され、メモリ
装置の外部のレジスタにデータ(d1)として保持され
る。このとき、格納されたデータ(d1)の上位に4ビ
ットの任意のデータ(d0)が連結される。そして、バ
レルシフトにより8ビットのデータ(d0)(d1)が
下位に2ビットシフトされ、その結果、データ(d2)
が得られる。このデータ(d2)の下位の4ビットが、
書き込みデータ(d3)としてメモリのライトサイクル
において図14の転送先のデータ(b1)が格納されて
いるメモリに書き込まれる。このとき、転送先の(b
1)の転送データを格納すべきビットが下位の1ビット
だけなので、このライトサイクルにおけるマスクデータ
も(d4)に示すように設定される。
First, as shown in FIG. 15, the most significant 4 bits (a1) of the row data including the transfer data (aa) of FIG. 13 are read out by a memory read cycle, and the data is stored in a register external to the memory device. (D1). At this time, arbitrary 4-bit data (d0) is connected to the upper part of the stored data (d1). Then, the 8-bit data (d0) and (d1) are shifted lower by 2 bits by the barrel shift, and as a result, the data (d2)
Is obtained. The lower 4 bits of this data (d2) are
The write data (d3) is written in the memory in which the data (b1) of the transfer destination in FIG. 14 is stored in the write cycle of the memory. At this time, the destination (b)
Since only the lower 1 bit stores the transfer data of 1), the mask data in this write cycle is also set as shown in (d4).

【0008】次に、図16に示すように、メモリのリー
ドサイクルにより図13の転送データを含む行データに
おける最上位4ビットの次の4ビット(a2)が読み出
され、メモリ装置の外部のレジスタにデータ(e1)と
して保持される。このとき、先に読み出され保持されて
いたデータ(a1)が、データ(e1)の上位にデータ
(e0)として連結される。次に、バレルシフトにより
8ビットのデータ(e0)(e1)が下位に2ビットシ
フトされ、その結果、データ(e2)が得られる。デー
タ(e2)の下位の4ビットが、書き込みデータ(e
3)としてメモリのライトサイクルにおいて図14の転
送先のデータ(b2)が格納されているメモリに書き込
まれる。このとき、図14の転送先の(b2)の全ビッ
トに転送データが格納されるので、ライトサイクルにお
けるマスクデータは(e4)に示すように設定される。
Next, as shown in FIG. 16, the next four bits (a2) of the four most significant bits in the row data including the transfer data of FIG. The data is held as data (e1) in the register. At this time, the data (a1) that has been read and held earlier is linked to the data (e1) as data (e0). Next, the 8-bit data (e0) (e1) is shifted downward by 2 bits by barrel shift, and as a result, data (e2) is obtained. The lower 4 bits of the data (e2) are the write data (e2).
As 3), in the write cycle of the memory, the data (b2) of the transfer destination in FIG. At this time, since the transfer data is stored in all the bits of the transfer destination (b2) in FIG. 14, the mask data in the write cycle is set as shown in (e4).

【0009】以下の図17及び図18に示すサイクルに
おいても同様な動作が行なわれ、図13のメモリ領域
(aa)に格納されている転送データを構成する個々の
データが、図14の転送先のメモリ領域(bb)に転送
される。このようにして、図19の転送結果が得られ、
BitBLTが正しく行なわれる。
Similar operations are performed in the following cycles shown in FIGS. 17 and 18. Individual data constituting transfer data stored in the memory area (aa) in FIG. 13 is transferred to the transfer destination in FIG. Is transferred to the memory area (bb). In this way, the transfer result of FIG. 19 is obtained,
BitBLT is performed correctly.

【0010】次に、図11の従来のメモリ装置における
ラスタ演算処理を伴うBitBLTの動作を図20〜図
26を用いて説明する。ラスタ演算とは、前述の図14
の転送先のメモリ領域(bb)に格納されているデステ
ィネーションデータと、転送元のメモリ領域(aa)に
格納されているパターンデータとの間で論理的な演算を
行うことであり、グラフィックス処理において頻繁に用
いられている処理の1つである。この例では、図20に
示すようなメモリアレイ1内のメモリ領域(aa)に格
納されている12ビットの転送データを、図21に示す
他の位置の12ビットの領域(bb)にラスタ演算処理
して転送する場合が示されている。
Next, the operation of BitBLT involving raster operation processing in the conventional memory device of FIG. 11 will be described with reference to FIGS. The raster operation corresponds to the above-described FIG.
Is to perform a logical operation between the destination data stored in the destination memory area (bb) and the pattern data stored in the source memory area (aa). This is one of the processes frequently used in the process. In this example, the 12-bit transfer data stored in the memory area (aa) in the memory array 1 as shown in FIG. 20 is rasterized into a 12-bit area (bb) at another position shown in FIG. The case of processing and transfer is shown.

【0011】まず、図22に示すように、メモリのリー
ドサイクルにより図20の転送データを含む行データの
最上位4ビット(a1)が読み出され、メモリ装置の外
部のレジスタにデータ(d1)として保持される。この
とき、保持されたデータ(d1)の上位に4ビットの任
意データ(d0)が連結される。次に、バレルシフトに
より8ビットのデータ(d0)(d1)が下位に2ビッ
トシフトされ、その結果、データ(d2)が得られる。
次に、メモリのリードサイクルにより図21の転送先の
行データの最上位4ビット(b1)が読み出され、メモ
リ装置の外部のレジスタにデスティネーションデータ
(d3)として保持される。次に、そのデスティネーシ
ョンデータ(d3)とバレルシフト後のデータ(d2)
の下位の4ビットとの間でラスタ演算が行なわれ、演算
結果(d4)が得られる。その演算結果(d4)は、ラ
イトサイクルにより図21の転送先のデータ(b1)が
格納されているメモリ領域に書き込まれる。このとき、
転送先のデータ(b1)が格納されているメモリ領域の
うち、転送データが格納されるのは下位の1ビットなの
で、ライトサイクルの際のマスクデータは(d5)に示
すように設定される。
First, as shown in FIG. 22, the most significant four bits (a1) of the row data including the transfer data shown in FIG. 20 are read out by a memory read cycle, and the data (d1) is stored in a register external to the memory device. Is held as At this time, 4-bit arbitrary data (d0) is connected to the upper part of the held data (d1). Next, the 8-bit data (d0) and (d1) are shifted lower by 2 bits by barrel shift, and as a result, data (d2) is obtained.
Next, the most significant four bits (b1) of the row data at the transfer destination in FIG. 21 are read out by the memory read cycle, and held as destination data (d3) in a register external to the memory device. Next, the destination data (d3) and the data after barrel shift (d2)
A raster operation is performed between the lower 4 bits of the operation and the operation result (d4) is obtained. The operation result (d4) is written to the memory area of FIG. 21 in which the data (b1) of the transfer destination is stored by a write cycle. At this time,
Since the transfer data is stored in the lower one bit in the memory area storing the transfer destination data (b1), the mask data in the write cycle is set as shown in (d5).

【0012】次に、図23に示すように、メモリのリー
ドサイクルにより図20の転送データを含む行データの
最上位4ビットの次の4ビット(a2)が読み出され、
メモリ装置の外部でレジスタにデータ(e1)として保
持される。そのとき、先に読み出され保持されていたデ
ータ(a1)が、データ(e1)の上位にデータ(e
0)として連結される。次に、バレルシフトにより8ビ
ットのデータ(e0)(e1)が下位に2ビットシフト
され、その結果、データ(e2)が得られる。次に、メ
モリのリードサイクルにより図21の転送先の行データ
の最上位4ビットの次の4ビット(b2)が読み出さ
れ、メモリ装置の外部のレジスタにデスティネーション
データ(e3)として保持される。次に、そのデスティ
ネーションデータ(e3)とバレルシフト後のデータ
(e2)の下位の4ビットとの間でラスタ演算が行なわ
れ、演算結果(e4)が得られる。演算結果(e4)
は、ライトサイクルにより図21の転送先の(b2)に
書き込まれる。このとき、転送先のデータ(b2)が格
納されているメモリ領域の全ビットに転送データが格納
されるので、このライトサイクルにおけるマスクデータ
は(e5)に示すように設定される。
Next, as shown in FIG. 23, the next four bits (a2) of the four most significant bits of the row data including the transfer data of FIG.
The data is stored in a register outside the memory device as data (e1). At that time, the data (a1) that has been read and held earlier is placed above the data (e1) by the data (e1).
0). Next, the 8-bit data (e0) (e1) is shifted downward by 2 bits by barrel shift, and as a result, data (e2) is obtained. Next, the next four bits (b2) of the four most significant bits of the transfer destination row data in FIG. 21 are read out by the memory read cycle, and held as destination data (e3) in a register external to the memory device. You. Next, a raster operation is performed between the destination data (e3) and the lower four bits of the data (e2) after barrel shift, and an operation result (e4) is obtained. Calculation result (e4)
Is written to the transfer destination (b2) in FIG. 21 by a write cycle. At this time, since the transfer data is stored in all bits of the memory area where the data (b2) of the transfer destination is stored, the mask data in this write cycle is set as shown in (e5).

【0013】以下の図24及び図25に示すサイクルに
おいても同様な動作が行なわれ、図20の転送元の領域
(aa)内の個々のデータが、図21の転送先の領域
(bb)にラスタ演算処理されて転送される。このよう
にして、図26に示す転送結果が得られ、ラスタ演算処
理を伴うBitBLTが正しく行なわれる。
Similar operations are performed in the following cycles shown in FIGS. 24 and 25. Individual data in the transfer source area (aa) in FIG. 20 is stored in the transfer destination area (bb) in FIG. Raster operation processing is performed and transferred. In this way, the transfer result shown in FIG. 26 is obtained, and BitBLT involving raster operation processing is correctly performed.

【0014】[0014]

【発明が解決しようとする課題】このような構成を有す
る従来のメモリ装置は、以下に示す問題点を有してい
る。第1に、スクロール転送やBitBLTを行う際
に、転送元のデータを保持しておく手段をメモリ装置の
外部に設ける必要があるため、メモリ装置と外部との間
のデータアクセスに伴う遅延時間が大きくなり、高速化
に適さない。第2に、BitBLTを行なうに際して、
転送元のデータの保持、バレルシフト等をメモリ装置の
外部で行なわなければならないため、特にグラフィック
ス処理におけるCPUの負荷が大きくなり、処理速度を
大きくすることができない。第3に、ラスタ演算をメモ
リ装置外部のCPUで行わなければならないため、CP
Uの負荷が大きくなり、処理の高速化に適さない。
The conventional memory device having such a configuration has the following problems. First, when performing scroll transfer or BitBLT, it is necessary to provide a means for holding the data of the transfer source outside the memory device. Therefore, the delay time associated with data access between the memory device and the outside is required. It becomes large and is not suitable for speeding up. Second, when performing BitBLT,
Since the holding of the data at the transfer source, the barrel shift, and the like must be performed outside the memory device, the load on the CPU particularly in graphics processing increases, and the processing speed cannot be increased. Third, since the raster operation must be performed by the CPU outside the memory device, the
The load on U increases, which is not suitable for high-speed processing.

【0015】本発明はかかる問題点を解決するものであ
り、本発明の目的は、スクロール転送、BitBLT、
ラスタ演算処理を伴うBitBLT等を行なうに際し
て、メモリをアクセスするための余分なサイクルを省
き、データ保持、バレルシフト処理及びラスタ演算処理
に要する時間を短縮することができ、しかも簡単な構成
を有する高速処理可能なメモリ装置を提供することであ
る。
The present invention solves such a problem, and an object of the present invention is to provide scroll transfer, BitBLT,
When performing BitBLT or the like that involves raster operation processing, an extra cycle for accessing the memory can be omitted, and the time required for data retention, barrel shift processing, and raster operation processing can be shortened. The object is to provide a memory device that can be processed.

【0016】[0016]

【課題を解決するための手段】上記目的を達成するため
に、請求項の発明は、ラスタ演算処理を行い更にBi
tBLTを行うべき転送データを含む行データを一時的
に記憶し最上位ビットから所定ビット数づつ出力するす
るデータ記憶手段と、このデータ記憶手段から出力され
る所定ビット数のデータをシフトさせるバレルシフタ
と、ラスタ演算処理後の演算結果が格納されるべきメモ
リを含む行に格納されている転送先の行データを最上位
ビットから所定ビット数づつ順次格納し出力するデータ
保持手段と、ラスタ演算回路とを設け、転送データを含
む行データのうち所定ビット数のデータを最下位側のビ
ットとして含むデータをデータ記憶手段からバレルシフ
タに順次出力しシフトさせ、シフト後のデータとデータ
保持手段から出力されるデータとに基づいてラスタ演算
回路においてラスタ演算処理を行い、得られた演算結果
のうち転送データに対応する部分のみをメモリアレイの
転送先のメモリに書き込むものである。
[MEANS FOR SOLVING THE PROBLEMS] To achieve the above object
To, the invention of claim 1, further Bi performs raster operation processing
data storage means for temporarily storing row data including transfer data to be subjected to tBLT and outputting a predetermined number of bits from the most significant bit, and a barrel shifter for shifting data of a predetermined number of bits output from the data storage means; Data holding means for sequentially storing and outputting row data of a transfer destination stored in a row including a memory in which a calculation result after the raster calculation processing is to be stored in a predetermined number of bits starting from the most significant bit, and a raster calculation circuit; The data including a predetermined number of bits of data in the row data including the transfer data as the least significant bit is sequentially output from the data storage means to the barrel shifter and shifted, and the shifted data and the data output from the data holding means are provided. Raster operation processing is performed in the raster operation circuit based on the data and It is intended to write only a portion respond to the transfer destination memory of the memory array.

【0017】具体的に請求項の発明が講じた解決手段
は、転送データをラスタ演算処理することにより得られ
た演算結果を転送先のメモリに出力するメモリ装置を前
提とし、多数の行及び列を成すメモリを有するメモリア
レイと、該メモリアレイ中の前記転送データを含む行デ
ータを選択するローデコーダと、該ローデコーダによっ
て選択された行データを増幅するセンスアンプと、該セ
ンスアンプにより増幅された行データを最上位ビットか
ら所定ビット数づつ順次出力するカラムデコーダと、該
カラムデコーダから出力された前記所定ビット数のデー
タが順次入力され該所定ビット数のデータのそれぞれを
最下位側のビットとして含む前記所定ビット数よりビッ
ト数が大きい出力データを順次出力するデータ記憶手段
と、該データ記憶手段からの出力データを所定ビット数
だけシフトさせて出力するバレルシフタと、ラスタ演算
処理による演算結果が格納されるべきメモリを含む行に
格納されている転送先の行データを最上位ビットから前
記所定ビット数づつ順次保持し出力するデータ保持手段
と、少なくとも前記バレルシフタからの出力と前記デー
タ保持手段からの出力とが入力され少なくとも前記バレ
ルシフタからの出力に基づいてラスタ演算を行うラスタ
演算回路と、該ラスタ演算回路での演算結果のうち前記
転送データに対応する部分のみを前記メモリアレイの転
送先のメモリに書き込む書き込み手段とを備えた構成と
するものである。
Specifically, the solution means taken by the invention of claim 1 is based on the premise that a memory device that outputs a calculation result obtained by performing a raster calculation process on transfer data to a transfer destination memory is provided. A memory array having memories forming columns, a row decoder for selecting row data including the transfer data in the memory array, a sense amplifier for amplifying the row data selected by the row decoder, and amplification by the sense amplifier A column decoder for sequentially outputting the selected row data by a predetermined number of bits from the most significant bit, and the predetermined number of bits of data output from the column decoder are sequentially input, and each of the predetermined number of bits of data is converted to the least significant bit. Data storage means for sequentially outputting output data having a larger number of bits than the predetermined number of bits included as bits; A barrel shifter for shifting output data from the stage by a predetermined number of bits and outputting the data, and a transfer destination row data stored in a row including a memory in which a calculation result of the raster calculation processing is to be stored, is stored in the predetermined order from the most significant bit. A data holding means for sequentially holding and outputting bit by bit, a raster operation circuit to which at least an output from the barrel shifter and an output from the data holding means are input and perform a raster operation based on at least an output from the barrel shifter; Writing means for writing only a portion corresponding to the transfer data in a calculation result of the raster calculation circuit to a transfer destination memory of the memory array is provided.

【0018】また、請求項の発明は、ラスタ処理の後
BitBLTを行うべき転送データを最上位ビットから
所定ビット数づつ順次出力するカラムデコーダと、この
カラムデコーダから出力された所定ビット数のデータを
先入れ先出しによって出力するデータ記憶手段と、ラス
タ演算処理後の演算結果が格納されるべきメモリに格納
されている転送先データを最上位ビットから所定ビット
数づつ順次保持し出力するデータ保持手段と、ラスタ演
算回路とを設け、データ記憶手段からの出力データとデ
ータ保持手段からの出力データとに基づいてラスタ演算
回路においてラスタ演算処理を行い、得られた演算結果
をメモリアレイの転送先のメモリに書き込むものであ
る。
According to a second aspect of the present invention, there is provided a column decoder for sequentially outputting transfer data to be subjected to BitBLT after raster processing by a predetermined number of bits from the most significant bit, and data of a predetermined number of bits output from the column decoder. Data storage means for outputting first-in first-out data, and data holding means for sequentially holding and outputting the transfer destination data stored in the memory in which the operation result after the raster operation processing is to be stored by a predetermined number of bits from the most significant bit, A raster operation circuit, and performs a raster operation process in the raster operation circuit based on the output data from the data storage means and the output data from the data holding means, and stores the obtained operation result in the transfer destination memory of the memory array. What to write.

【0019】具体的に請求項の発明が講じた解決手段
は、転送データをラスタ演算処理することにより得られ
た演算結果を転送先のメモリに出力するメモリ装置を前
提とし、多数の行及び列を成すメモリを有するメモリア
レイと、該メモリアレイ中の転送データを含む行データ
を選択するローデコーダと、該ローデコーダによって選
択された行データを増幅するセンスアンプと、該センス
アンプにより増幅された行データのうちの前記転送デー
タを最上位ビットから所定ビット数づつ順次出力するカ
ラムデコーダと、該カラムデコーダから出力された前記
所定ビット数のデータが順次入力され該所定ビット数の
データを先入れ先出しによって出力するデータ記憶手段
と、ラスタ演算処理による演算結果が格納されるべきメ
モリに格納されている転送先データを最上位ビットから
前記所定ビット数づつ順次保持し出力するデータ保持手
段と、少なくとも前記データ記憶手段からの出力と前記
データ保持手段からの出力とが入力され少なくとも前記
データ記憶手段からの出力に基づいてラスタ演算を行う
ラスタ演算回路と、該ラスタ演算回路での演算結果を前
記メモリアレイの転送先のメモリに書き込む書き込み手
段とを備えた構成とするものである。
Specifically, the solution means taken by the invention of claim 2 is based on the premise that a memory device that outputs a calculation result obtained by performing a raster calculation process on transfer data to a transfer destination memory is provided. A memory array having a memory in a column; a row decoder for selecting row data including transfer data in the memory array; a sense amplifier for amplifying the row data selected by the row decoder; A column decoder for sequentially outputting the transfer data of the row data from the most significant bit by a predetermined number of bits starting from the most significant bit; and the data of the predetermined number of bits output from the column decoder being sequentially input and first-in first-out. Is stored in a data storage means for outputting the data and a memory for storing the calculation result by the raster calculation processing. Data holding means for sequentially holding and outputting the transfer destination data from the most significant bit by the predetermined number of bits at a time, and at least an output from the data storage means and an output from the data holding means are inputted and at least from the data storage means And a writing means for writing the result of the operation by the raster operation circuit to the destination memory of the memory array.

【0020】[0020]

【作用】請求項の発明の構成により、転送データを含
む行データはローデコーダによって選択されセンスアン
プによって増幅された後、その最上位ビットから所定ビ
ットづつカラムデコーダを介してデータ記憶手段に格納
される。データ記憶手段からは、行データを構成する所
定ビット数の各データを最下位側のビットとして含みこ
の所定ビット数よりビット数が大きい出力データが順次
バレルシフタに出力される。バレルシフタに出力された
出力データは予め決められたビット数だけシフトされて
ラスタ演算回路に入力される。一方、ラスタ演算処理に
よる演算結果が格納されるべきメモリを含む行に格納さ
れている転送先の行データが最上位ビットから所定ビッ
ト数づつデータ保持手段に順次格納されラスタ演算回路
に出力される。ラスタ演算回路では少なくともバレルシ
フタからの出力に基づいてラスタ演算が行われる。ラス
タ演算処理後の演算結果は書き込み手段に出力され、転
送データに対応する部分のみがメモリアレイの転送先に
書き込まれる。このように、請求項の発明に係るメモ
リ装置では、転送元のデータを保持しておく手段をメモ
リ装置の外部に設ける必要がなく、また、ラスタ演算を
メモリ装置外部のCPUで行う必要がないので、CPU
の負荷を増大させることなくラスタ演算処理を伴ったB
itBLTを行うことができる。
According to the structure of the first aspect of the present invention, row data including transfer data is selected by the row decoder and amplified by the sense amplifier, and then stored in the data storage means from the most significant bit by a predetermined bit through the column decoder. Is done. From the data storage means, output data including a predetermined number of bits constituting the row data as the least significant bit and having a larger number of bits than the predetermined number of bits is sequentially output to the barrel shifter. The output data output to the barrel shifter is shifted by a predetermined number of bits and input to the raster operation circuit. On the other hand, the row data of the transfer destination stored in the row including the memory in which the calculation result by the raster calculation processing is to be stored is sequentially stored in the data holding means by a predetermined number of bits from the most significant bit and output to the raster calculation circuit. . The raster operation circuit performs a raster operation based at least on the output from the barrel shifter. The calculation result after the raster calculation processing is output to the writing means, and only the portion corresponding to the transfer data is written to the transfer destination of the memory array. As described above, in the memory device according to the first aspect of the present invention, it is not necessary to provide a means for holding the transfer source data outside the memory device, and it is necessary to perform the raster operation by the CPU outside the memory device. There is no CPU
B with raster operation processing without increasing the load on
itBLT can be performed.

【0021】請求項の発明の構成により、転送データ
を含む行データはローデコーダによって選択されセンス
アンプによって増幅された後、その最上位ビットから所
定ビットづつカラムデコーダを介してデータ記憶手段に
格納される。データ記憶手段からは、転送データが最上
位ビットから所定ビット数づつ順次ラスタ演算回路に入
力される。一方、ラスタ演算処理による演算結果が格納
されるべきメモリを含む行に格納されている転送先のデ
ータは最上位ビットから所定ビット数づつデータ保持手
段に格納され、この所定ビット数のデータが順次ラスタ
演算回路に出力される。ラスタ演算回路では少なくとも
データ記憶手段からの出力に基づいてラスタ演算が行わ
れる。ラスタ演算処理後の演算結果は書き込み手段に出
力され、メモリアレイの転送先のメモリに書き込まれ
る。このように、請求項の発明に係るメモリ装置で
は、転送元のデータを保持しておく手段をメモリ装置の
外部に設ける必要がなく、また、ラスタ演算をメモリ装
置外部のCPUで行う必要がないので、CPUの負荷を
増大させることなくラスタ演算処理を伴ったBitBL
Tを行うことができる。
According to the configuration of the second aspect of the present invention, the row data including the transfer data is selected by the row decoder and amplified by the sense amplifier, and then stored in the data storage means from the most significant bit via the column decoder by predetermined bits. Is done. From the data storage means, the transfer data is sequentially input to the raster operation circuit by a predetermined number of bits from the most significant bit. On the other hand, the data of the transfer destination stored in the row including the memory in which the calculation result by the raster calculation process is to be stored is stored in the data holding means by a predetermined number of bits from the most significant bit, and the data of the predetermined number of bits is sequentially stored. Output to the raster operation circuit. The raster operation circuit performs a raster operation based at least on the output from the data storage means. The operation result after the raster operation processing is output to the writing means, and is written to the transfer destination memory of the memory array. As described above, in the memory device according to the second aspect of the present invention, it is not necessary to provide a means for holding the transfer source data outside the memory device, and it is necessary to perform the raster operation by the CPU outside the memory device. BitBL with raster processing without increasing CPU load
T can be performed.

【0022】[0022]

【実施例】本発明の実施例及び参考例について図面を参
照しながら説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments and reference examples of the present invention will be described with reference to the drawings.

【0023】図1に本発明の第1の参考例に係るメモリ
装置の構成を示す。本参考例のメモリ装置は転送データ
のスクロール転送を行うものである。本参考例のメモリ
装置は、多数の行及び列を成すメモリを有するメモリア
レイ1と、メモリアレイ1中の転送データを含む行デー
タを選択するローデコーダ4と、ローデコーダによって
選択された行データを増幅するセンスアンプ2と、セン
スアンプ2により増幅された行データを最上位ビットか
ら4ビットづつ順次出力するカラムデコーダ3とを有し
ている。更に、本参考例のメモリ装置は、カラムデコー
ダ3から出力される4ビットのデータを順次入力しこの
4ビットのデータを先入れ先出しによって出力するデー
タ記憶手段としてのFIFO8と、FIFO8から出力
される4ビットのデータ及びソースデータの何れかを選
択するデータ選択ゲート10と、マスクデータに基づい
て、データ選択ゲート10からのデータのうち転送デー
タの部分のみを書き込むライトマスクロジック5とを備
えている。データ選択ゲート10とライトマスクロジッ
ク5とによって書き込み手段が構成されている。
[0023] showing a configuration of a memory device according to a first exemplary embodiment of the present invention in FIG. Memory device of the present embodiment is intended to perform a scrolling transfer of the transfer data. Memory device of the present embodiment includes a memory array 1 having a memory that forms a large number of rows and columns, a row decoder 4 for selecting the rows of data including the transfer data in the memory array 1, row data selected by the row decoder , And a column decoder 3 that sequentially outputs the row data amplified by the sense amplifier 2 four bits at a time from the most significant bit. Furthermore, the memory device of the present embodiment includes a FIFO8 as a data storage means for outputting the sequentially input data of 4 bits 4 bits data output from the column decoder 3 by first-in-first-out, four-bit output from FIFO8 And a write mask logic 5 for writing only the transfer data portion of the data from the data selection gate 10 based on the mask data. Write means is constituted by the data selection gate 10 and the write mask logic 5.

【0024】本参考例のメモリ装置の動作について説明
する。まず、外部よりローアドレスRow及びカラムア
ドレスColがローデコーダ4及びカラムデコーダ3に
それぞれ入力される。これにより、ローデコーダ4によ
ってメモリアレイ1内の行データが選択され、センスア
ンプ2により増幅される。センスアンプ2により増幅さ
れた行データは、4ビットづつカラムデコーダ3によっ
て内部データバス7に順次読み出され、内部データバス
7に読み出された4ビットのデータはFIFO8に順次
保持される。FIFO8に保持された各4ビットのデー
タは、先入れ先だしによってデータ選択ゲート10に出
力される。次に、データ選択ゲート10により、ソース
データまたはFIFO8の出力のうちどちらかがライト
マスクロジック5に出力される。ライトマスクロジック
5ではデータ選択ゲート10の出力によってメモリアレ
イ1内のデータを更新するかどうかが決定され、更新す
る場合にはライトマスクロジック5からの出力がマスク
データに基づいてメモリアレイ1に書き込まれる。
[0024] a description will be given of the operation of the memory device of the present reference example. First, a row address Row and a column address Col are externally input to the row decoder 4 and the column decoder 3, respectively. Thereby, row data in the memory array 1 is selected by the row decoder 4 and amplified by the sense amplifier 2. The row data amplified by the sense amplifier 2 is sequentially read out to the internal data bus 7 by the column decoder 3 every 4 bits, and the 4-bit data read out to the internal data bus 7 is sequentially held in the FIFO 8. The 4-bit data held in the FIFO 8 is output to the data selection gate 10 on a first-in first-out basis. Next, either the source data or the output of the FIFO 8 is output to the write mask logic 5 by the data selection gate 10. In the write mask logic 5, it is determined whether or not the data in the memory array 1 is to be updated based on the output of the data selection gate 10. In the case of updating, the output from the write mask logic 5 is written to the memory array 1 based on the mask data. It is.

【0025】次に、本参考例のメモリ装置におけるスク
ロール転送の動作について図2を参照しながら説明す
る。図2に示す例では、同図(1)に示すように、メモ
リアレイ1内の行データの所定のメモリ領域(aa)に
格納されている12ビットの転送データが、同図(2)
に示す他の12ビットのメモリ領域(bb)に転送され
る。なお、本参考例においてはデータ幅を4ビットとし
て説明する。
Next, it will be described with reference to FIG. 2, the operation of the scroll transfers in the memory device of the present embodiment. In the example shown in FIG. 2, as shown in FIG. 1A, the 12-bit transfer data stored in the predetermined memory area (aa) of the row data in the memory array 1 is
Is transferred to another 12-bit memory area (bb). In the present reference example for explaining the data width as 4 bits.

【0026】まず、メモリのページサイクルにより、図
2(3)に示すように、図2(1)の転送元の行データ
の全て、即ち、(a1)(a2)(a3)(a4)が図
1の内部データバス7に読み出され、同図のFIFO8
に(c1)(c2)(c3)(c4)として順次保持さ
れる。次に、図2(4)に示すように、メモリのライト
サイクルにより、図1のFIFO8内の最初の4ビット
のデータ(c1)がデータ(d1)として図1のデータ
選択ゲート10に入力され、ライトマスクロジック5に
出力される。このとき、図2(2)の転送先の(b1)
が格納されているメモリ領域のうち転送データが格納さ
れるのは下位の3ビットなので、ライトサイクルにおけ
るマスクデータは(d2)に示すように設定される。
First, due to the page cycle of the memory, as shown in FIG. 2 (3), all of the row data of the transfer source in FIG. 2 (1), that is, (a1) (a2) (a3) (a4) The data is read out to the internal data bus 7 in FIG.
(C1), (c2), (c3), and (c4). Next, as shown in FIG. 2D, the first 4-bit data (c1) in the FIFO 8 of FIG. 1 is input to the data selection gate 10 of FIG. 1 as data (d1) by a write cycle of the memory. Are output to the write mask logic 5. At this time, the transfer destination (b1) in FIG.
Since the transfer data is stored in the lower three bits in the memory area where is stored, the mask data in the write cycle is set as shown in (d2).

【0027】以下、図2の(5)、(6)及び(7)示
すサイクルにおいても同様な動作が行なわれ、図2
(1)の転送元メモリの領域(aa)に格納されている
転送データを構成する個々の4ビットのデータ(a
2)、(a3)及び(a4)が、図2(2)の転送先の
メモリ領域(bb)に転送される。このようにして図2
(8)に示す転送結果が(h1)(h2)(h3)(h
4)として得られる。以上のようにしてスクロール転送
が正しく行なわれる。
Hereinafter, the same operation is performed in the cycles (5), (6) and (7) of FIG.
Individual 4-bit data (a) constituting the transfer data stored in the area (aa) of the transfer source memory (1)
2), (a3) and (a4) are transferred to the transfer destination memory area (bb) in FIG. 2 (2). Thus, FIG.
The transfer result shown in (8) is (h1) (h2) (h3) (h
4) is obtained. Scroll transfer is performed correctly as described above.

【0028】以上のように、本発明の第1の参考例によ
れば、転送データを含む行データはローデコーダによっ
て選択されセンスアンプによって増幅された後、その最
上位ビットから所定ビットづつカラムデコーダを介して
データ記憶手段に格納される。データ記憶手段に格納さ
れた行データは、所定ビット数づつ先入れ先だしによっ
て順次書き込み手段に出力され、書き込み手段ではデー
タ記憶手段から出力された所定ビット数のデータのうち
転送データの部分のみがメモリアレイの転送先に書き込
まれる。このように、本参考例に係るメモリ装置では、
転送元のデータを保持しておく手段をメモリ装置の外部
に設ける必要がなく、メモリ装置と外部とのデータアク
セスによる遅延時間を低減することができる。また、C
PUの負荷を増大させることなく、ページモードを用い
て高速かつ簡単にスクロール転送を行なうことができ
る。
As described above, according to the first embodiment of the present invention,
If the row data including the transfer data is
Selected and amplified by the sense amplifier,
From the high-order bits through the column decoder at predetermined bits
It is stored in data storage means. Stored in data storage means
The row data is stored on a first-in first-out basis with a predetermined number of bits.
Are sequentially output to the writing means.
Data of a predetermined number of bits output from the data storage means.
Only the transfer data is written to the transfer destination of the memory array
I will. Thus, in the memory device according to the present reference example,
A means for holding the transfer source data is provided outside the memory device.
Data access between the memory device and the external
The delay time due to access can be reduced. Also, C
Use page mode without increasing PU load
Fast and easy scroll transfer
You.

【0029】図3に本発明の第2の参考例に係るメモリ
装置の構成を示す。本参考例のメモリ装置は転送データ
のBitBLTを行うものである。本参考例のメモリ装
置は、前述の図1に示す第1の参考例の構成に加えて、
FIFO8とデータ選択ゲート10との間に、入力され
たデータを2ビットだけ下位にシフトさせるバレルシフ
タ9が設けられている。それ以外の構成は図1と同様で
あり、対応する部分には同じ符号が付してある。
[0029] showing a configuration of a memory device according to a second exemplary embodiment of the present invention in FIG. Memory device of the present embodiment is intended to perform BitBLT transfer data. Memory device of the present embodiment, in addition to the configuration of the first reference example shown in FIG. 1 described above,
Between the FIFO 8 and the data selection gate 10, there is provided a barrel shifter 9 for shifting the input data to lower by 2 bits. The other configuration is the same as that of FIG. 1, and the corresponding portions are denoted by the same reference numerals.

【0030】本参考例のメモリ装置の動作について説明
する。まず、外部よりローアドレスRow及びカラムア
ドレスColがローデコーダ4とカラムデコーダ3にそ
れぞれ入力される。これにより、ローデコーダ4によっ
てメモリアレイ1内の行データが選択され、センスアン
プ2により増幅される。センスアンプ2により増幅され
た行データが、4ビットづつカラムデコーダ3によって
内部データバス7に順次読み出され、内部データバス7
に読み出された4ビットのデータはFIFO8に順次保
持される。次に、FIFO8に保持されている各4ビッ
トのデータとその4ビットのデータの上位に位置する3
ビットとが、バレルシフタ9に入力される。即ち、FI
FO8上で連続する7ビットがバレルシフタ9に入力さ
れることになる。また、最上位の4ビットが出力される
場合には、任意の3ビットのデータがその上位側に付加
されてバレルシフタ9に入力される。バレルシフタ9で
は入力された7ビットのデータが下位へ2ビットだけシ
フトされ、シフト後の下位4ビットがデータ選択ゲート
10に出力される。
[0030] a description will be given of the operation of the memory device of the present reference example. First, a row address Row and a column address Col are externally input to the row decoder 4 and the column decoder 3, respectively. Thereby, row data in the memory array 1 is selected by the row decoder 4 and amplified by the sense amplifier 2. The row data amplified by the sense amplifier 2 is sequentially read out to the internal data bus 7 by the column decoder 3 on a 4-bit basis, and
Are sequentially stored in the FIFO 8. Next, each 4-bit data held in the FIFO 8 and the upper 3 bits of the 4-bit data are stored.
Are input to the barrel shifter 9. That is, FI
Seven consecutive bits on the FO 8 are input to the barrel shifter 9. When the uppermost 4 bits are output, arbitrary 3-bit data is added to the upper side and input to the barrel shifter 9. In the barrel shifter 9, the input 7-bit data is shifted downward by 2 bits, and the shifted lower 4 bits are output to the data selection gate 10.

【0031】次に、データ選択ゲート10により、ソー
スデータまたはバレルシフタ9の出力のうちどちらかが
ライトマスクロジック5に出力される。ライトマスクロ
ジック5ではデータ選択ゲート10の出力によってメモ
リアレイ1内のデータを更新するかどうかが決定され、
更新する場合にはライトマスクロジック5からの出力が
マスクデータに基づいてメモリアレイ1に書き込まれ
る。
Next, either the source data or the output of the barrel shifter 9 is output to the write mask logic 5 by the data selection gate 10. In the write mask logic 5, whether or not to update the data in the memory array 1 is determined by the output of the data selection gate 10,
When updating, the output from the write mask logic 5 is written to the memory array 1 based on the mask data.

【0032】次に、本参考例のメモリ装置におけるBi
tBLTの動作について図4を参照しながら説明する。
図4に示す例では、同図(1)に示すように、メモリア
レイ1内の行データの所定のメモリ領域(aa)に格納
されている12ビットの転送データが、同図(2)に示
す他の位置の12ビットの領域(bb)に転送される。
なお、本参考例においてもデータ幅を4ビットとして説
明する。
[0032] Next, Bi in the memory device of the present reference example
The operation of tBLT will be described with reference to FIG.
In the example shown in FIG. 4, as shown in FIG. 1A, the 12-bit transfer data stored in the predetermined memory area (aa) of the row data in the memory array 1 The data is transferred to the 12-bit area (bb) at the other position shown.
Note that, also in this reference example, the data width is described as 4 bits.

【0033】まず、メモリのページサイクルにより、図
4(3)に示すように、同図(1)の転送元の行データ
の全て、即ち、(a1)(a2)(a3)(a4)が図
3の内部データバス7に読み出され、同図のFIFO8
に(c1)(c2)(c3)(c4)として順次保持さ
れる。次に、図4(4)に示すように、図3のFIFO
8に保持されている最上位4ビットのデータ(c1)の
上位に、任意の4ビットのデータが連結される。更に、
このように連結された8ビットデータのうちの下位7ビ
ット(d1)が図3のバレルシフタ9に入力される。バ
レルシフタ9では7ビットのデータ(d1)が下位に2
ビットシフトされる。次に、シフトされたデータの下位
の4ビットのデータ(d2)がバレルシフタ9から出力
される。バレルシフタ9から出力された4ビットのデー
タ(d2)はデータ選択ゲート10を経由してライトマ
スクロジック5に出力される。このとき、図4(2)に
示す転送先の(b1)が格納されているメモリ領域のう
ち転送データが格納されるのは下位の1ビットだけなの
で、ライトサイクルにおけるマスクデータは(d3)に
示すように設定される。
First, due to the page cycle of the memory, as shown in FIG. 4 (3), all the row data of the transfer source in FIG. 1 (1), that is, (a1) (a2) (a3) (a4) The data is read out to the internal data bus 7 in FIG.
(C1), (c2), (c3), and (c4). Next, as shown in FIG. 4 (4), the FIFO of FIG.
An arbitrary 4-bit data is linked to the upper part of the most significant 4-bit data (c1) held in 8. Furthermore,
The lower 7 bits (d1) of the concatenated 8-bit data are input to the barrel shifter 9 of FIG. In the barrel shifter 9, the 7-bit data (d1) is
Bit shifted. Next, the lower 4-bit data (d2) of the shifted data is output from the barrel shifter 9. The 4-bit data (d2) output from the barrel shifter 9 is output to the write mask logic 5 via the data selection gate 10. At this time, the transfer data is stored only in the lower one bit in the memory area storing the transfer destination (b1) shown in FIG. 4B, so that the mask data in the write cycle is (d3). It is set as shown.

【0034】次に、図4(5)に示すように、図3のF
IFO8に保持されている4ビットのデータ(c2)の
上位に、同じくFIFO8に保持されている(c2)よ
り上位側の4ビットのデータ(c1)が連結される。更
に、このように連結された8ビットデータのうちの下位
7ビット(e1)が図3のバレルシフタ9に入力され
る。バレルシフタ9では7ビットのデータ(e1)が下
位に2ビットだけシフトされる。次に、シフトされたデ
ータの下位の4ビットのデータ(e2)がバレルシフタ
9から出力される。バレルシフタ9から出力された4ビ
ットのデータ(e2)はデータ選択ゲート10を経由し
ライトマスクロジック5に出力される。このとき、図4
(2)に示す転送先の(b2)が格納されているメモリ
領域の全ビットに転送データが格納されるので、ライト
サイクルにおけるマスクデータは(e3)に示すように
設定される。
Next, as shown in FIG.
To the upper part of the 4-bit data (c2) held in the FIFO 8, 4-bit data (c1) higher than (c2) also held in the FIFO 8 is connected. Further, the lower 7 bits (e1) of the thus concatenated 8-bit data are input to the barrel shifter 9 of FIG. In the barrel shifter 9, the 7-bit data (e1) is shifted downward by 2 bits. Next, the lower 4-bit data (e2) of the shifted data is output from the barrel shifter 9. The 4-bit data (e2) output from the barrel shifter 9 is output to the write mask logic 5 via the data selection gate 10. At this time, FIG.
Since the transfer data is stored in all the bits of the memory area storing the transfer destination (b2) shown in (2), the mask data in the write cycle is set as shown in (e3).

【0035】以下、図4の(6)及び(7)に示すサイ
クルにおいても同様な動作が行なわれ、図4(1)の転
送元のメモリ領域(aa)に格納されている転送データ
を構成する個々の4ビットのデータ(a2)、(a3)
及び(a4)が、図4(2)の転送先のメモリ領域(b
b)に転送される。このようにして図4(8)に示す
うに転送結果が(h1)(h2)(h3)(h4)とし
て得られる。以上のようにしてBitBLTが正しく行
なわれる。
Hereinafter, similar operations are performed in the cycles shown in (6) and (7) of FIG. 4, and the transfer data stored in the memory area (aa) of the transfer source shown in FIG. 4-bit data (a2), (a3)
And (a4) correspond to the transfer destination memory area (b) in FIG.
b). Thus, as shown in FIG .
Thus, the transfer result is obtained as (h1) (h2) (h3) (h4). BitBLT is correctly performed as described above.

【0036】以上のように、本発明の第2の参考例によ
れば、転送データを含む行データは ローデコーダによっ
て選択されセンスアンプによって増幅された後、その最
上位ビットから所定ビットづつカラムデコーダを介して
データ記憶手段に格納される。データ記憶手段からは、
行データを構成する所定ビット数の各データを最下位側
のビットとして含みこの所定ビット数よりビット数が大
きい出力データが順次バレルシフタに出力される。バレ
ルシフタに出力された出力データは予め決められたビッ
ト数だけシフトされて書き込み手段に出力される。書き
込み手段ではデータ記憶手段から出力された所定ビット
数のデータのうち転送データに相当する部分のみがメモ
リアレイの転送先に書き込まれる。このように、本参考
例に係るメモリ装置では、転送元のデータを保持する手
段をメモリ装置の外部に設ける必要がなく、また、Bi
tBLTに際してデータのバレルシフトをCPUで行な
う必要がないため、CPUの負荷が低減され、しかもペ
ージモードを用いてアクセスすることができるので高速
処理を実現できる。
As described above, according to the second embodiment of the present invention,
Lever, the line data containing the transmitted data by a row decoder
Selected and amplified by the sense amplifier,
From the high-order bits through the column decoder at predetermined bits
It is stored in data storage means. From the data storage means,
Each data of a predetermined number of bits constituting the row data is placed at the lowest
The number of bits is larger than the specified number of bits.
The threshold output data is sequentially output to the barrel shifter. Barre
The output data output to the shifter is
And the output is shifted to the writing means. Writing
The predetermined bit output from the data storage means.
Note that only the portion of the
Written to the destination of the rearray. Thus, this reference
In the memory device according to the example, the method of holding the data of the transfer source is
It is not necessary to provide the step outside the memory device, and
CPU performs barrel shift of data during tBLT.
Since there is no need to reduce the load on the CPU,
High speed because it can be accessed using storage mode
Processing can be realized.

【0037】図5に本発明の第の実施例に係るメモリ
装置の構成を示す。本実施例のメモリ装置は、転送デー
タのラスタ演算処理を行った後、BitBLTを行うも
のである。本実施例の演算処理装置は、前述の図3に示
すメモリアレイ1、ローデコーダ4、センスアンプ2及
びカラムデコーダ3、FIFO8及びバレルシフタ9
書き込み手段としてのライトマスクロジック5に加え
て、ラスタ演算処理後の演算結果が格納されるメモリを
含む転送先の行データを格納するデータ保持手段として
のデスティネーションデータラッチ6と、バレルシフタ
9の出力、デスティネーションデータラッチ6の出力及
びソースデータが入力されるラスタ演算回路11とを備
えている。ラスタ演算回路11はバレルシフタ9の出
力、デスティネーションデータラッチ6の出力及びソー
スデータの少なくとも1つに基づいてラスタ演算処理を
行う。また、本実施例のメモリ装置のライトマスクロジ
ック5には、ラスタ演算回路11の出力と、デスティネ
ーションデータラッチ6の出力と、マスクデータとが入
力されている。
FIG. 5 shows the configuration of the memory device according to the first embodiment of the present invention. The memory device of the present embodiment performs BitBLT after performing a raster operation process on transfer data. Arithmetic processing apparatus of the present embodiment, the memory array 1 shown in FIG. 3 described above, the row decoder 4, a sense amplifier 2 and the column decoder 3, FIFO 8 and the barrel shifter 9,
In addition to a write mask logic 5 as a writing means, a destination data latch 6 as a data holding means for storing row data of a transfer destination including a memory in which an operation result after the raster operation processing is stored, and an output of a barrel shifter 9 , A raster operation circuit 11 to which the output of the destination data latch 6 and the source data are input. The raster operation circuit 11 performs a raster operation process based on at least one of the output of the barrel shifter 9, the output of the destination data latch 6, and the source data. The output of the raster operation circuit 11, the output of the destination data latch 6, and the mask data are input to the write mask logic 5 of the memory device of the present embodiment.

【0038】本実施例のメモリ装置の動作について説明
する。まず、外部よりローアドレスRow及びカラムア
ドレスColがローデコーダ4とカラムデコーダ3にそ
れぞれ入力される。これにより、ローデコーダ4によっ
てメモリアレイ1内の行データが選択され、センスアン
プ2により増幅される。センスアンプ2により増幅され
た行データは、4ビットづつカラムデコーダ3によって
内部データバス7に順次読み出され、内部データバス7
に読み出された4ビットのデータはFIFO8に順次保
持される。次に、FIFO8に保持されている各4ビッ
トのデータとその4ビットのデータの上位に位置する3
ビットとが、バレルシフタ9に入力される。即ち、FI
FO8上で連続する7ビットがバレルシフタ9に入力さ
れることになる。また、最上位の4ビットが出力される
場合には、任意の3ビットのデータがその上位側に付加
されてバレルシフタ9に入力される。バレルシフタ9で
は入力された7ビットのデータが下位へ2ビットだけシ
フトされ、シフト後の下位4ビットがラスタ演算処理回
路11に入力される。
The operation of the memory device of this embodiment will be described. First, a row address Row and a column address Col are externally input to the row decoder 4 and the column decoder 3, respectively. Thereby, row data in the memory array 1 is selected by the row decoder 4 and amplified by the sense amplifier 2. The row data amplified by the sense amplifier 2 is sequentially read out to the internal data bus 7 by the column decoder 3 on a 4-bit basis, and
Are sequentially stored in the FIFO 8. Next, each 4-bit data held in the FIFO 8 and the upper 3 bits of the 4-bit data are stored.
Are input to the barrel shifter 9. That is, FI
Seven consecutive bits on the FO 8 are input to the barrel shifter 9. When the uppermost 4 bits are output, arbitrary 3-bit data is added to the upper side and input to the barrel shifter 9. In the barrel shifter 9, the input 7-bit data is shifted downward by 2 bits, and the shifted lower 4 bits are input to the raster operation processing circuit 11.

【0039】一方、ラスタ演算処理後の演算結果が書き
込まれるメモリを含む行に格納されている転送先の行デ
ータは、最上位から4ビットづつ内部データバス7を介
してデスティネーションデータラッチ6に保持される。
デスティネーションデータラッチ6に保持されている4
ビットのデータは、同じく前記ラスタ演算回路11に入
力される。次に、ラスタ演算回路11により、ソースデ
ータバレルシフタ9の出力とデスティネーションデー
タラッチ6の出力とに基づいてラスタ演算が行なわれ、
その演算結果がライトマスクロジック5に出力される。
ライトマスクロジック5においてラスタ演算回路11で
の演算結果によりメモリアレイ1内のデータを更新する
かどうかが決定され、更新する場合には演算結果がマス
クデータに基づいてメモリアレイ1に書き込まれる。
On the other hand, the row data of the transfer destination stored in the row including the memory into which the calculation result after the raster calculation processing is written is stored in the destination data latch 6 via the internal data bus 7 by four bits from the most significant bit. Will be retained.
4 held in the destination data latch 6
The bit data is also input to the raster operation circuit 11. Next, a raster operation is performed by the raster operation circuit 11 based on the source data , the output of the barrel shifter 9 and the output of the destination data latch 6,
The operation result is output to the write mask logic 5.
In the write mask logic 5, it is determined whether or not the data in the memory array 1 is to be updated based on the operation result in the raster operation circuit 11, and in the case of updating, the operation result is written in the memory array 1 based on the mask data.

【0040】次に、本実施例のメモリ装置におけるラス
タ演算処理を伴うBitBLTの動作を図6を参照しな
がら説明する。図6に示す例では、同図(1)に示すよ
うに、メモリアレイ1上の行データの所定領域(aa)
に格納されている12ビットの転送データがラスタ演算
処理された後、同図(2)に示す他の位置の12ビット
の領域(bb)に転送される。なお、本実施例において
もデータ幅を4ビットとして説明する。
Next, the operation of BitBLT involving raster operation processing in the memory device of this embodiment will be described with reference to FIG. In the example shown in FIG. 6, as shown in FIG. 6A, the predetermined area (aa) of the row data on the memory array 1 is
After the 12-bit transfer data stored in the data is raster-processed, it is transferred to a 12-bit area (bb) at another position shown in FIG. Even explaining data width as 4 bits in the real施例.

【0041】まず、メモリのページサイクルにより、図
6(3)に示すように、同図(1)の転送元の行データ
の全て、即ち、(a1)(a2)(a3)(a4)が図
5の内部データバス7に読み出され、同図のFIFO8
に(c1)(c2)(c3)(c4)として保持され
る。次に、図6(4)に示すように、図5のFIFO8
に保持されている最上位4ビットのデータ(c1)の上
位に、任意の4ビットのデータが連結される。更に、こ
のように連結された8ビットデータのうちの下位7ビッ
ト(d1)が図5のバレルシフタ9に入力される。バレ
ルシフタ9では7ビットのデータ(d1)が下位に2ビ
ットだけシフトされる。次に、シフトされたデータの下
位の4ビットのデータ(d2)がバレルシフタ9から出
力される。バレルシフタ9から出力された4ビットのデ
ータ(d2)は図5のラスタ演算回路11に入力され
る。
First, due to the page cycle of the memory, as shown in FIG. 6 (3), all of the row data of the transfer source in FIG. 6 (1), that is, (a1) (a2) (a3) (a4) The data is read out to the internal data bus 7 in FIG.
(C1), (c2), (c3), and (c4). Next, as shown in FIG. 6 (4), the FIFO 8 of FIG.
An arbitrary 4-bit data is linked to the upper part of the most significant 4-bit data (c1) held in the. Further, the lower 7 bits (d1) of the 8-bit data concatenated in this way are input to the barrel shifter 9 of FIG. In the barrel shifter 9, the 7-bit data (d1) is shifted downward by 2 bits. Next, the lower 4-bit data (d2) of the shifted data is output from the barrel shifter 9. The 4-bit data (d2) output from the barrel shifter 9 is input to the raster operation circuit 11 in FIG.

【0042】一方、ラスタ演算処理後の演算結果が格納
される図6(2)の転送先のメモリ領域に格納されてい
る行データに含まれるデスティネーションデータのうち
のデータ(b1)は、メモリアレイ1から内部データバ
ス7を介してデスティネーションデータラッチ6に(d
3)として格納され、同じくラスタ演算回路11に入力
される。次に、ラスタ演算回路11において、ソースデ
ータとバレルシフタ9の出力(d2)とデスティネーシ
ョンデータラッチ6の出力(d3)との間でラスタ演算
が行なわれ、その演算結果(d4)がライトマスクロジ
ック5に出力される。このとき、図6(2)の転送先の
(b1)が格納されているメモリ領域のうちラスタ演算
処理の演算結果が格納されるのは下位の1ビットだけな
ので、ライトサイクルにおけるマスクデータは(d5)
に示すように設定される。
On the other hand, the data (b1) of the destination data included in the row data stored in the transfer destination memory area of FIG. From the array 1 to the destination data latch 6 via the internal data bus 7 (d
3), and is also input to the raster operation circuit 11. Next, in the raster operation circuit 11, a raster operation is performed between the source data and the output (d2) of the barrel shifter 9 and the output (d3) of the destination data latch 6, and the operation result (d4) is written in the write mask logic. 5 is output. At this time, since only the lower 1 bit stores the operation result of the raster operation processing in the memory area where (b1) of the transfer destination in FIG. 6B is stored, the mask data in the write cycle is ( d5)
Are set as shown in FIG.

【0043】次に、図6(5)に示すように、図5のF
IFO8に保持されている4ビットのデータ(c2)の
上位に、同じくFIFO8に保持されている(c2)よ
り上位に位置する4ビットのデータ(c1)が連結され
る。更に、このように連結された8ビットデータのうち
の下位7ビット(e1)が図5のバレルシフタ9に入力
される。バレルシフタ9では7ビットのデータ(e1)
が下位に2ビットだけシフトされる。次に、シフトされ
たデータの下位の4ビットのデータ(e2)がバレルシ
フタ9から出力される。バレルシフタ9から出力された
4ビットのデータ(e2)は図5のラスタ演算回路11
に入力される。
Next, as shown in FIG.
The 4-bit data (c1) located higher than (c2), which is also held in the FIFO 8, is connected to the upper part of the 4-bit data (c2) held in the FIFO 8. Further, the lower 7 bits (e1) of the thus concatenated 8-bit data are input to the barrel shifter 9 of FIG. 7-bit data (e1) in barrel shifter 9
Are shifted down by two bits. Next, the lower 4-bit data (e2) of the shifted data is output from the barrel shifter 9. The 4-bit data (e2) output from the barrel shifter 9 is output to the raster operation circuit 11 shown in FIG.
Is input to

【0044】一方、ラスタ演算処理後の演算結果が格納
される図6(2)の転送先のメモリ領域に格納されてい
る行データのうちのデータ(b2)は、メモリアレイ1
から内部データバス7を介してデスティネーションデー
タラッチ6に(e3)として格納され、同じくラスタ演
算回路11に入力される。次に、ラスタ演算回路11に
おいて、ソースデータとバレルシフタ9の出力(e2)
とデスティネーションデータラッチ6の出力(e3)と
の間でラスタ演算が行なわれ、その演算結果(e4)が
ライトマスクロジック5に出力される。このとき、図6
(2)の転送先の(b2)が格納されているメモリ領域
の全てにラスタ演算処理の演算結果が格納されるので、
ライトサイクルにおけるマスクデータは(e5)に示す
ように設定される。
On the other hand, the data (b2) of the row data stored in the transfer destination memory area in FIG.
Are stored in the destination data latch 6 via the internal data bus 7 as (e3), and are similarly input to the raster operation circuit 11. Next, in the raster operation circuit 11, the source data and the output of the barrel shifter 9 (e2)
A raster operation is performed between the data and the output (e3) of the destination data latch 6, and the operation result (e4) is output to the write mask logic 5. At this time, FIG.
Since the operation result of the raster operation processing is stored in all the memory areas where (b2) of the transfer destination of (2) is stored,
The mask data in the write cycle is set as shown in (e5).

【0045】以下、図6の(6)及び(7)に示すサイ
クルにおいても同様な動作が行なわれ、図6(1)の転
送元のメモリ領域(aa)に格納されている転送データ
を構成する個々の4ビットのデータ(a2)、(a3)
及び(a4)が、図6(2)の転送先のメモリ領域(b
b)に転送される。このようにして図6(8)に示す
うに転送結果が(h1)(h2)(h3)(h4)とし
て得られる。以上のようにしてラスタ演算処理が行われ
た後、BitBLTが正しく行なわれる。
The same operation is performed in the cycles shown in (6) and (7) of FIG. 6 to form the transfer data stored in the transfer source memory area (aa) of FIG. 6 (1). 4-bit data (a2), (a3)
And (a4) correspond to the transfer destination memory area (b) in FIG.
b). Thus, as shown in FIG .
Thus, the transfer result is obtained as (h1) (h2) (h3) (h4). After the raster operation processing is performed as described above, BitBLT is correctly performed.

【0046】図7に本発明の第3の参考例に係るメモリ
装置の構成を示す。本参考例のメモリ装置は転送データ
のBitBLTを行うものである。本参考例のメモリ装
置は、カラムコーダに代えてピクセルアライン機能
を有するカラムコーダ12が設けられている点を除い
て、前述の図1に示す第1の参考例と同様である。即
ち、前述の図1のメモリ装置に設けられているカラム
コーダ2はローコーダ4によって選択された行データ
の最上位ビットから所定数のビットデータづつを選択し
て出力し得るのみであったが、本参考例におけるカラム
デコーダ12はローコーダ4によって選択された行デ
ータのうち、任意のビット位置からのビットデータを選
択する機能(以下、「ピクセルアライン機能」という)
を有している。
[0046] showing a configuration of a memory device according to a third exemplary embodiment of the present invention in FIG. Memory device of the present embodiment is intended to perform BitBLT transfer data. Memory device of this reference example, except that the column decoders 12 having pixels aligned function in place of the column the decoder 3 is provided, the same as in the first reference example shown in FIG. 1 described above. That is, the column de <br/> coder 2 provided in the memory device of FIG. 1 described above is output from the most significant bit of the row data selected by the row decoders 4-bit data is selected by one of a predetermined number Although obtaining was only, the column decoder 12 in the present embodiment, among the rows of data selected by row decoders 4, function to select bit data from any bit position (hereinafter, referred to as "pixel alignment function")
have.

【0047】本参考例のメモリ装置の動作について説明
する。まず、外部よりローアドレスRow及びカラムア
ドレスColがローデコーダ4及びカラムデコーダ12
にそれぞれ入力される。これにより、ローデコーダ4に
よってメモリアレイ1内の行データが選択され、センス
アンプ2により増幅される。センスアンプ2により増幅
された行データのうち、転送データの最上位ビットから
4ビットづつカラムデコーダ12によって内部データバ
ス7に順次読み出され、内部データバス7に読み出され
た4ビットのデータはFIFO8に順次保持される。F
IFO8に保持された各4ビットのデータは、先入れ先
だしによってデータ選択ゲート10に順次入力される。
次に、データ選択ゲート10により、ソースデータまた
はFIFO8の出力のうちどちらかがライトマスクロジ
ック5に出力される。ライトマスクロジック5ではデー
タ選択ゲート10の出力によってメモリアレイ1内のデ
ータを更新するかどうかが決定され、更新する場合には
ライトマスクロジック5からの出力がマスクデータに基
づいてメモリアレイ1に書き込まれる。
[0047] a description will be given of the operation of the memory device of the present reference example. First, the row address Row and the column address Col are externally supplied to the row decoder 4 and the column decoder 12.
Respectively. Thereby, row data in the memory array 1 is selected by the row decoder 4 and amplified by the sense amplifier 2. Of the row data amplified by the sense amplifier 2, four bits are sequentially read from the most significant bit of the transfer data to the internal data bus 7 by the column decoder 12 , and the 4-bit data read to the internal data bus 7 is The data is sequentially stored in the FIFO 8. F
The 4-bit data held in the IFO 8 is sequentially input to the data selection gate 10 on a first-in first-out basis.
Next, either the source data or the output of the FIFO 8 is output to the write mask logic 5 by the data selection gate 10. In the write mask logic 5, it is determined whether or not the data in the memory array 1 is to be updated based on the output of the data selection gate 10. In the case of updating, the output from the write mask logic 5 is written to the memory array 1 based on the mask data. It is.

【0048】次に、本参考例のメモリ装置を用いたBi
tBLTの動作について図8を参照しながら説明する。
図8に示す例では、同図(1)に示すように、メモリア
レイ1上の行データの所定領域(aa)に格納されてい
る12ビットの転送データが、同図(2)に示す他の位
置の12ビットのメモリ領域(bb)に転送される。な
お、本参考例においてもデータ幅を4ビットとして説明
する。
Next, Bi using the memory device of the present reference example
The operation of tBLT will be described with reference to FIG.
In the example shown in FIG. 8, as shown in FIG. 1A, the 12-bit transfer data stored in the predetermined area (aa) of the row data on the memory array 1 is different from that shown in FIG. Is transferred to the 12-bit memory area (bb) at the position of. Note that, also in this reference example, the data width is described as 4 bits.

【0049】まず、メモリのページサイクルにより、図
8(3)に示すように、図8(1)の転送データ、即
ち、(a1)(a2)(a3)(a4)のうちの領域
(aa)に格納されているデータのみが最上位ビットか
ら4ビットづつ図7のピクセルアライン機能を有するカ
ラムデコーダ12によって内部データバス7に読み出さ
れ、同図のFIFO8に(c1)(c2)(c3)(c
4)として保持される。このようなカラムデコーダ12
のピクセルアラインの機能により、転送元の各4ビット
のデータ(a1)、(a2)、(a3)、(a4)は転
送後の各4ビットのデータ(c1)、(c2)、(c
3)、(c4)と同じにはならない。
First, as shown in FIG. 8 (3), the transfer data of FIG. 8 (1), that is, the area (aa) in (a1) (a2) (a3) (a4) is caused by the page cycle of the memory. ) Is read out to the internal data bus 7 by the column decoder 12 having the pixel alignment function shown in FIG. 7 by four bits from the most significant bit, and is stored in the FIFO 8 shown in FIG. 7 by (c1) (c2) (c3). ) (C
4). Such a column decoder 12
The four-bit data (a1), (a2), (a3), and (a4) of the transfer source are converted to the four-bit data (c1), (c2), and (c) of the transfer source, respectively.
3), not the same as (c4).

【0050】次に、図8(4)に示すように、メモリの
ライトサイクルにより、図7のFIFO8内の最上位4
ビットのデータ(c1)がデータ(d1)として図7の
データ選択ゲート10に入力され、ライトマスクロジッ
ク5に出力される。このとき、ライトマスクロジック5
から出力される転送データの全てが図8(2)の転送先
のメモリ領域(bb)の最上位4ビットに格納されるの
で、ライトサイクルにおけるマスクデータは(d2)に
示すように設定される。
Next, as shown in FIG. 8D, the uppermost four bits in the FIFO 8 of FIG.
The bit data (c1) is input as data (d1) to the data selection gate 10 in FIG. At this time, the write mask logic 5
All of the transfer data output from the memory cell is stored in the uppermost 4 bits of the transfer destination memory area (bb) in FIG. 8B, so that the mask data in the write cycle is set as shown in (d2). .

【0051】以下、図8の(5)及び(6)に示すサイ
クルにおいても同様な動作が行なわれ、図8(1)の転
送元の領域に格納されている転送データ(aa)を構成
する個々の4ビットのデータ(a2)、(a3)及び
(a4)が、図8(2)の転送先の領域(bb)に転送
される。このようにして図8(7)に示す転送結果が
(h1)(h2)(h3)(h4)として得られる。以
上のようにしてBitBLTが正しく行なわれる。
Hereinafter, the same operation is performed in the cycles shown in (5) and (6) of FIG. 8, and the transfer data (aa) stored in the transfer source area of FIG. 8 (1) is formed. The individual 4-bit data (a2), (a3) and (a4) are transferred to the destination area (bb) in FIG. 8B. In this way, the transfer result shown in FIG. 8 (7) is obtained as (h1) (h2) (h3) (h4). BitBLT is correctly performed as described above.

【0052】以上のように、本発明の第3の参考例によ
れば、転送データを含む行データはローデコーダによっ
て選択されセンスアンプによって増幅された後、その最
上位ビットから所定ビットづつカラムデコーダを介して
データ記憶手段に格納される。データ記憶手段からは転
送データが最上位ビットから所定ビット数づつ順次書き
込み手段に出力される。書き込み手段はデータ記憶手段
から出力された所定ビット数のデータをメモリアレイの
転送先に書き込む。このように、本参考例に係るメモリ
装置では、転送元のデータを保持する手段をメモリ装置
の外部に設ける必要がなく、また、BitBLTに際し
てデータのバレルシフトを行なう必要がないため、CP
Uの負荷が低減され、しかもページモードを用いてアク
セスすることができるので高速処理を実現できる。更
に、バレルシフタが設けられていないため、本発明の第
2の参考例のメモリ装置に比較して回路が簡単になり、
処理 速度を更に向上させることができる。
As described above, according to the third embodiment of the present invention.
If the row data including the transfer data is
Selected and amplified by the sense amplifier,
From the high-order bits through the column decoder at predetermined bits
It is stored in data storage means. Transfer from data storage means
The transmission data is written sequentially by the specified number of bits from the most significant bit.
Output to the embedding means. Writing means is data storage means
A predetermined number of bits of data output from
Write to the destination. Thus, the memory according to the present reference example
In the device, the means for holding the transfer source data is a memory device.
It is not necessary to provide outside the
Since there is no need to perform barrel shift of data
U's load is reduced, and
High-speed processing can be realized. Change
Since no barrel shifter is provided,
The circuit becomes simpler than the memory device of the reference example 2;
The processing speed can be further improved.

【0053】図9に本発明の第の実施例に係るメモリ
装置の構成を示す。本実施例のメモリ装置は、転送デー
タのラスタ演算処理を行った後、BitBLTを行うも
のである。本実施例のメモリ装置は、前述の図5に示す
の実施例と同様であるが、以下の点で異なってい
る。即ち、カラムコーダに代えてピクセルアライン
機能を有するカラムコーダ12が設けられている点
と、バレルシフタ9が設けられていない点で異なってい
る。従って、本実施例では、前述の第参考例と同様
に、カラムデコーダ12はローコーダ4によって選択
された行データのうち、任意のビット位置からのビット
データを選択する機能を有している。
FIG. 9 shows a configuration of a memory device according to the second embodiment of the present invention. The memory device of the present embodiment performs BitBLT after performing a raster operation process on transfer data. The memory device of this embodiment is the same as that of the first embodiment shown in FIG. 5, but differs in the following points. That is, different from the point where the column decoders 12 having pixels aligned function in place of the column the decoder 3 is provided, in that the barrel shifter 9 is not provided. Thus, in this embodiment, as in the third reference example described above, the column decoder 12 of the line data selected by the row decoders 4 has a function of selecting bit data from any bit position ing.

【0054】本実施例のメモリ装置の動作について説明
する。まず、外部よりローアドレスRow及びカラムア
ドレスColがローデコーダ4及びカラムデコーダ12
にそれぞれ入力される。これにより、ローデコーダ4に
よってメモリアレイ1内の行データが選択され、センス
アンプ2により増幅される。センスアンプ2により増幅
された行データのうち、転送データの最上位ビットから
4ビットづつカラムデコーダ12によって内部データバ
ス7に順次読み出され、内部データバス7に読み出され
た4ビットのデータはFIFO8に順次保持される。F
IFO8に保持された各4ビットのデータは、先入れ先
だしによってラスタ演算処理回路11に順次入力され
る。
The operation of the memory device of this embodiment will be described. First, the row address Row and the column address Col are externally supplied to the row decoder 4 and the column decoder 12.
Respectively. Thereby, row data in the memory array 1 is selected by the row decoder 4 and amplified by the sense amplifier 2. Of the row data amplified by the sense amplifier 2, four bits are sequentially read from the most significant bit of the transfer data to the internal data bus 7 by the column decoder 12 , and the 4-bit data read to the internal data bus 7 is The data is sequentially stored in the FIFO 8. F
The 4-bit data held in the IFO 8 is sequentially input to the raster operation processing circuit 11 on a first-in first-out basis.

【0055】一方、ラスタ演算処理後の演算結果が書き
込まれるメモリ領域(bb)に格納されている転送先の
データは、ピクセルアライン機能を有するカラムデコー
ダ12によって最上位から4ビットづつ内部データバス
7を介してデスティネーションデータラッチ6に格納さ
れる。デスティネーションデータラッチ6に保持されて
いる転送先の4ビットのデータは、同じく前記ラスタ演
算回路11に入力される。次に、ラスタ演算回路11に
より、ソースデータバレルシフタ9の出力とデスティ
ネーションデータラッチ6の出力とに基づいてラスタ演
算処理が行なわれ、その演算結果がライトマスクロジッ
ク5に出力される。ライトマスクロジック5においてラ
スタ演算回路11での演算結果によってメモリアレイ1
内のデータを更新するかどうかが決定され、更新する場
合には演算結果がマスクデータに基づいてメモリアレイ
1に書き込まれる。
On the other hand, the transfer destination data stored in the memory area (bb) in which the operation result after the raster operation processing is written is stored in the internal data bus 7 by four bits from the highest order by the column decoder 12 having the pixel alignment function. Is stored in the destination data latch 6 via The 4-bit data of the transfer destination held in the destination data latch 6 is similarly input to the raster operation circuit 11. Next, the raster operation circuit 11 performs a raster operation based on the source data , the output of the barrel shifter 9 and the output of the destination data latch 6, and outputs the operation result to the write mask logic 5. In the write mask logic 5, the memory array 1 is operated according to the operation result of the raster operation circuit 11.
It is determined whether or not to update the data in. If it is to be updated, the operation result is written to the memory array 1 based on the mask data.

【0056】次に、本実施例のメモリ装置におけるラス
タ演算処理を伴うBitBLTの動作を図10を参照し
ながら説明する。図10に示す例では、同図(1)に示
すように、メモリアレイ1上の行データの所定領域(a
a)に格納されている12ビットの転送データがラスタ
演算処理された後、同図(2)に示す他の12ビットの
メモリ領域(bb)に転送される。なお、本実施例にお
いてもデータ幅を4ビットとして説明する。
Next, the operation of BitBLT involving raster operation processing in the memory device of this embodiment will be described with reference to FIG. In the example shown in FIG. 10, as shown in FIG. 1A, a predetermined area (a
After the 12-bit transfer data stored in a) is subjected to the raster operation processing, it is transferred to another 12-bit memory area (bb) shown in FIG. Even explaining data width as 4 bits in the real施例.

【0057】まず、メモリのページサイクルにより、図
10(3)に示すように、同図(1)の転送元の転送デ
ータ、即ち、(a1)(a2)(a3)(a4)のうち
の領域(aa)に格納されている部分のみが4ビットづ
つ図のピクセルアライン機能を有するカラムデコーダ
12によって内部データバス7に読み出され、同図のF
IFO8に(c1)(c2)(c3)(c4)として保
持される。このようなカラムデコーダ12のピクセルア
ラインの機能により、転送元の4ビットの各データ(a
1)、(a2)、(a3)、(a4)は転送後の各4ビ
ットのデータ(c1)、(c2)、(c3)、(c4)
と同じにはならない。次に、図10(4)に示すよう
に、メモリのライトサイクルにより、図9のFIFO8
内の最上位4ビットのデータ(c1)がデータ(d1)
として図9のラスタ演算回路11に入力される。
First, as shown in FIG. 10 (3), the transfer data of the transfer source of FIG. 10 (1), ie, (a 1) (a 2) (a 3) (a 4) by the page cycle of the memory, only parts that are stored in the region (aa) is read to the internal data bus 7 by a column decoder 12 which have pixel alignment function of 4 bits each Figure 9, the figure F
The data is stored as (c1) (c2) (c3) (c4) in the IFO8. By such a pixel alignment function of the column decoder 12, the transfer source 4-bit data (a
1), (a2), (a3), and (a4) are 4-bit data (c1), (c2), (c3), and (c4) after transfer.
Is not the same as Next, as shown in FIG. 10 (4), a FIFO write of FIG.
The data (c1) of the most significant 4 bits is data (d1)
Is input to the raster operation circuit 11 of FIG.

【0058】一方、ラスタ演算処理後の演算結果が格納
される図10(2)の転送先のメモリ領域(bb)に格
納されているデスティネーションデータのうち最上位ビ
ットから4ビットのデータは、メモリアレイ1から内部
データバス7を介してデスティネーションデータラッチ
6に(d2)として格納され、同じくラスタ演算回路1
1に入力される。次に、ラスタ演算回路11において、
ソースデータとFIFO8の出力(d1)とデスティネ
ーションデータラッチ6の出力(d2)との間でラスタ
演算が行なわれ、その演算結果(d)がライトマスク
ロジック5に出力される。このとき、ラスタ演算処理の
演算結果の全てが図10(2)の転送先のメモリ領域
(bb)の最上位4ビットに格納されるので、ライトサ
イクルにおけるマスクデータは(d4)に示すように設
定される。
On the other hand, among the destination data stored in the transfer destination memory area (bb) of FIG. 10B where the calculation result after the raster calculation processing is stored, the data of 4 bits from the most significant bit are: The data is stored as (d2) in the destination data latch 6 from the memory array 1 via the internal data bus 7, and
1 is input. Next, in the raster operation circuit 11,
A raster operation is performed between the source data and the output (d1) of the FIFO 8 and the output (d2) of the destination data latch 6, and the operation result (d 3 ) is output to the write mask logic 5. At this time, since all the operation results of the raster operation processing are stored in the uppermost 4 bits of the transfer destination memory area (bb) in FIG. 10B, the mask data in the write cycle is as shown in (d4). Is set.

【0059】以下、図10の(5)及び(6)に示すサ
イクルにおいても同様な動作が行なわれ、図10(1)
の転送元の領域に格納されている転送データ(aa)を
構成する個々の4ビットのデータ(a2)、(a3)及
び(a4)が、図10(2)の転送先の領域(bb)に
転送される。このようにして図10(7)に示す転送結
果が(h1)(h2)(h3)(h4)として得られ
る。以上のようにしてBitBLTが正しく行なわれ
る。
Hereinafter, similar operations are performed in the cycles shown in FIGS. 10 (5) and (6).
Each of the 4-bit data (a2), (a3), and (a4) that constitute the transfer data (aa) stored in the transfer source area of the transfer destination area (bb) of FIG. Is forwarded to In this way, the transfer results shown in FIG. 10 (7) are obtained as (h1) (h2) (h3) (h4). BitBLT is correctly performed as described above.

【0060】[0060]

【発明の効果】請求項の発明に係るメモリ装置は、転
送データを含む行データを構成する所定ビット数のデー
タを最下位側のビットとして含み、この所定ビット数よ
りビット数が大きいデータを出力するデータ記憶手段
と、データ記憶手段からの出力データを予め決められた
ビット数だけシフトさせて出力するバレルシフタと、ラ
スタ演算処理の演算結果が格納されるべきメモリを含む
行に格納されている転送先の行データを最上位ビットか
ら所定ビット数づつ格納しラスタ演算回路に出力するデ
ータ保持手段とを備えているので、ラスタ演算処理を伴
うBitBLTに際してデータのバレルシフトをCPU
で行なう必要がなくなり、CPUの負荷が低減され、し
かもページモードを用いてアクセスすることができるの
で、高速処理を実現できる。
The memory device according to the first aspect of the present invention includes, as the least significant bit, data of a predetermined number of bits constituting row data including transfer data, and stores data having a bit number larger than the predetermined number of bits. A data storage means for outputting, a barrel shifter for shifting output data from the data storage means by a predetermined number of bits and outputting the data, and a row including a memory in which a calculation result of the raster calculation processing is to be stored. A data holding means for storing row data of a transfer destination by a predetermined number of bits starting from the most significant bit and outputting the data to a raster operation circuit.
, The load on the CPU is reduced, and access can be made using the page mode, so that high-speed processing can be realized.

【0061】請求項の発明に係るメモリ装置は、転送
データの最上位ビットから所定ビットづつデータ記憶手
段に格納するカラムデコーダと、ラスタ演算処理の演算
結果が格納されるべきメモリに格納されている転送先デ
ータを最上位ビットから所定ビット数づつ格納しラスタ
演算回路に出力するデータ保持手段と、データ記憶手段
から出力される転送データの所定ビット数のデータとデ
ータ保持手段から出力される転送先データの所定ビット
数のデータとを用いてラスタ演算処理を行うラスタ演算
回路とを備えているので、ラスタ演算処理を伴うBit
BLTに際してデータのバレルシフトを行なう必要がな
くなり、CPUの負荷が低減され、しかもページモード
を用いてアクセスすることができるので高速処理を実現
できる。更に、バレルシフタが設けられていないため、
請求項のメモリ装置に比較して回路が簡単になり、処
理速度を更に向上させることができる。
According to a second aspect of the present invention, there is provided a memory device in which a column decoder for storing predetermined bits from a most significant bit of transfer data in a data storage means and a memory for storing an operation result of raster operation processing. Data holding means for storing the transfer destination data in a predetermined number of bits from the most significant bit and outputting the data to the raster operation circuit, and transfer of the predetermined number of bits of the transfer data output from the data storage means and the transfer output from the data holding means A raster operation circuit for performing a raster operation process by using data of a predetermined number of bits of the preceding data, so that a Bit operation involving the raster operation process is performed.
It is not necessary to perform barrel shift of data at the time of BLT, the load on the CPU is reduced, and access can be made using the page mode, so that high-speed processing can be realized. Furthermore, since no barrel shifter is provided,
As compared with the memory device of the first aspect , the circuit is simplified, and the processing speed can be further improved.

【0062】このように、本発明のメモリ装置は従来の
構成のメモリ装置に比べてスクロール転送、BitBL
T及びラスタ演算処理を伴うBitBLTを高速で行う
ことができ、更にパターンフィル動作を高速かつ簡単に
行なうことができる。
As described above, the memory device of the present invention has a scroll transfer, a BitBL
BitBLT involving T and raster operation processing can be performed at high speed, and the pattern fill operation can be performed at high speed and easily.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の参考例に係るメモリ装置の構成
図である。
FIG. 1 is a configuration diagram of a memory device according to a first reference example of the present invention.

【図2】本発明の第1の参考例におけるスクロール転送
の動作を示す図である。
FIG. 2 is a diagram showing an operation of scroll transfer according to a first reference example of the present invention.

【図3】本発明の第2の参考例に係るメモリ装置の構成
図である。
FIG. 3 is a configuration diagram of a memory device according to a second reference example of the present invention.

【図4】本発明の第2の参考例におけるBitBLTの
動作を示す図である。
FIG. 4 is a diagram illustrating an operation of BitBLT according to a second reference example of the present invention.

【図5】本発明の第の実施例に係るメモリ装置の構成
図である。
FIG. 5 is a configuration diagram of a memory device according to a first embodiment of the present invention.

【図6】本発明の第の実施例におけるラスタ転送を伴
うBitBLTの動作を示す図である。
FIG. 6 is a diagram illustrating the operation of BitBLT involving raster transfer in the first embodiment of the present invention.

【図7】本発明の第参考例に係るメモリ装置の構成
図である。
FIG. 7 is a configuration diagram of a memory device according to a third reference example of the present invention.

【図8】本発明の第参考例におけるBitBLTの
動作を示す図である。
FIG. 8 is a diagram illustrating an operation of BitBLT according to a third reference example of the present invention.

【図9】本発明の第の実施例に係るメモリ装置の構成
図である。
FIG. 9 is a configuration diagram of a memory device according to a second embodiment of the present invention.

【図10】本発明の第の実施例におけるラスタ転送を
伴うBitBLTの動作を示す図である。
FIG. 10 is a diagram illustrating an operation of BitBLT involving raster transfer according to the second embodiment of the present invention.

【図11】従来のメモリ装置の構成図である。FIG. 11 is a configuration diagram of a conventional memory device.

【図12】従来のメモリ装置におけるスクロール転送の
動作を示す図である。
FIG. 12 is a diagram showing a scroll transfer operation in a conventional memory device.

【図13】従来のメモリ装置のBitBLTの動作にお
ける転送データを含む行データを示す図である。
FIG. 13 is a diagram showing row data including transfer data in a BitBLT operation of a conventional memory device.

【図14】従来のメモリ装置のBitBLTの動作にお
ける転送先のメモリを含む行データを示す図である。
FIG. 14 is a diagram showing row data including a transfer destination memory in a BitBLT operation of a conventional memory device.

【図15】従来のメモリ装置におけるBitBLTの動
作を示す図である。
FIG. 15 is a diagram showing the operation of BitBLT in a conventional memory device.

【図16】従来のメモリ装置におけるBitBLTの動
作を示す図である。
FIG. 16 is a diagram showing the operation of BitBLT in a conventional memory device.

【図17】従来のメモリ装置におけるBitBLTの動
作を示す図である。
FIG. 17 is a diagram illustrating the operation of BitBLT in a conventional memory device.

【図18】従来のメモリ装置におけるBitBLTの動
作を示す図である。
FIG. 18 is a diagram illustrating the operation of BitBLT in a conventional memory device.

【図19】従来のメモリ装置のBitBLTの後におけ
る転送先の行データを示す図である。
FIG. 19 is a diagram showing row data of a transfer destination after BitBLT of a conventional memory device.

【図20】従来のメモリ装置のラスタ演算処理を伴うB
itBLTの動作における転送データを含む行データを
示す図である。
FIG. 20B illustrates a conventional memory device with raster operation processing.
FIG. 10 is a diagram showing row data including transfer data in the operation of itBLT.

【図21】従来のメモリ装置のラスタ演算処理を伴うB
itBLTの動作における転送先のメモリを含む行デー
タを示す図である。
FIG. 21B illustrates a conventional memory device with raster operation processing.
FIG. 14 is a diagram illustrating row data including a transfer destination memory in the operation of itBLT.

【図22】従来のメモリ装置におけるラスタ演算処理を
伴うBitBLTの動作を示す図である。
FIG. 22 is a diagram illustrating an operation of BitBLT involving raster operation processing in a conventional memory device.

【図23】従来のメモリ装置におけるラスタ演算処理を
伴うBitBLTの動作を示す図である。
FIG. 23 is a diagram showing the operation of BitBLT involving raster operation processing in a conventional memory device.

【図24】従来のメモリ装置におけるラスタ演算処理を
伴うBitBLTの動作を示す図である。
FIG. 24 is a diagram showing the operation of BitBLT involving raster operation processing in a conventional memory device.

【図25】従来のメモリ装置におけるラスタ演算処理を
伴うBitBLTの動作を示す図である。
FIG. 25 is a diagram illustrating an operation of BitBLT involving raster operation processing in a conventional memory device.

【図26】従来のメモリ装置のラスタ演算処理を伴うB
itBLTの後における転送先の行データを示す図であ
る。
FIG. 26 is a diagram B showing raster operation processing of a conventional memory device.
It is a figure which shows the row data of the transfer destination after itBLT.

【符号の説明】[Explanation of symbols]

1 メモリアレイ 2 センスアンプ 3 カラムデコーダ 4 ローデコーダ 5 ライトマスクロジック(書き込み手段) 6 デスティネーションデータラッチ(データ保持手
段) 7 内部データバス 8 FIFO(データ記憶手段) 9 バレルシフタ 10 データ選択ゲート 11 ラスタ演算回路 12 カラムデコーダ
Reference Signs List 1 memory array 2 sense amplifier 3 column decoder 4 row decoder 5 write mask logic (writing means) 6 destination data latch (data holding means) 7 internal data bus 8 FIFO ( data storage means) 9 barrel shifter 10 data selection gate 11 raster operation Circuit 12 column decoder

フロントページの続き (72)発明者 隅田 圭三 大阪府門真市大字門真1006番地 松下電 器産業株式会社内 (56)参考文献 特開 平1−163882(JP,A) (58)調査した分野(Int.Cl.7,DB名) G11C 11/40 - 11/409 G06F 15/66 Continued on the front page (72) Inventor Keizo Sumida 1006 Kazuma Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Industrial Co., Ltd. (56) References JP-A-1-163882 (JP, A) (58) .Cl. 7 , DB name) G11C 11/40-11/409 G06F 15/66

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 転送データをラスタ演算処理することに
より得られた演算結果を転送先のメモリに出力するメモ
リ装置であって、 多数の行及び列を成すメモリを有するメモリアレイと、 該メモリアレイ中の前記転送データを含む行データを選
択するローデコーダと、 該ローデコーダによって選択された行データを増幅する
センスアンプと、 該センスアンプにより増幅された行データを最上位ビッ
トから所定ビット数づつ順次出力するカラムデコーダ
と、 該カラムデコーダから出力された前記所定ビット数のデ
ータが順次入力され該所定ビット数のデータのそれぞれ
を最下位側のビットとして含む前記所定ビット数よりビ
ット数が大きい出力データを順次出力するデータ記憶手
段と、 該データ記憶手段からの出力データを所定ビット数だけ
シフトさせて出力するバレルシフタと、 ラスタ演算処理による演算結果が格納されるべきメモリ
を含む行に格納されている転送先の行データを最上位ビ
ットから前記所定ビット数づつ順次保持し出力するデー
タ保持手段と、 少なくとも前記バレルシフタからの出力と前記データ保
持手段からの出力とが入力され少なくとも前記バレルシ
フタからの出力に基づいてラスタ演算を行うラスタ演算
回路と、 該ラスタ演算回路での演算結果のうち前記転送データに
対応する部分のみを前記メモリアレイの転送先のメモリ
に書き込む書き込み手段とを備えたことを特徴とするメ
モリ装置。
1. A memory device for outputting an operation result obtained by performing a raster operation process on transfer data to a transfer destination memory, comprising: a memory array having a plurality of rows and columns of memories; A row decoder that selects the row data including the transfer data therein; a sense amplifier that amplifies the row data selected by the row decoder; and a predetermined number of bits starting from the most significant bit, the row data being amplified by the sense amplifier. A column decoder for sequentially outputting, the output having the predetermined number of bits output from the column decoder being sequentially input, and having a bit number larger than the predetermined number of bits including each of the predetermined number of bits of data as the least significant bit A data storage means for sequentially outputting data; and a data storage means for sequentially outputting data from the data storage means by a predetermined number of bits. A barrel shifter that shifts and outputs the data, and a data hold that sequentially stores and outputs the row data of the transfer destination stored in the row including the memory in which the calculation result by the raster calculation processing is to be stored in the predetermined number of bits from the most significant bit. Means, a raster operation circuit to which at least an output from the barrel shifter and an output from the data holding means are input and perform a raster operation based on at least an output from the barrel shifter; Writing means for writing only a portion corresponding to transfer data into a transfer destination memory of the memory array.
【請求項2】 転送データをラスタ演算処理することに
より得られた演算結果を転送先のメモリに出力するメモ
リ装置であって、 多数の行及び列を成すメモリを有するメモリアレイと、 該メモリアレイ中の前記転送データを含む行データを選
択するローデコーダと、 該ローデコーダによって選択された行データを増幅する
センスアンプと、 該センスアンプにより増幅された行データのうちの前記
転送データを最上位ビットから所定ビット数づつ順次出
力するカラムデコーダと、 該カラムデコーダから出力された前記所定ビット数のデ
ータが順次入力され該所定ビット数のデータを先入れ先
出しによって出力するデータ記憶手段と、 ラスタ演算処理による演算結果が格納されるべきメモリ
に格納されている転送先データを最上位ビットから前記
所定ビット数づつ順次保持し出力するデータ保持手段
と、 少なくとも前記データ記憶手段からの出力と前記データ
保持手段からの出力とが入力され少なくとも前記データ
記憶手段からの出力に基づいてラスタ演算を行うラスタ
演算回路と、 該ラスタ演算回路での演算結果を前記メモリアレイの転
送先のメモリに書き込む書き込み手段とを備えたことを
特徴とするメモリ装置。
2. A memory device for outputting an operation result obtained by subjecting transfer data to a raster operation process to a transfer destination memory, comprising: a memory array having a large number of rows and columns of memories; wherein a row decoder for selecting rows of data including the transfer data, the sense amplifier and the top-level of the transfer data of the rows data amplified by the sense amplifier for amplifying the row data selected by the row decoder in A column decoder for sequentially outputting a predetermined number of bits at a time from a bit; data storage means for sequentially inputting the predetermined number of bits of data output from the column decoder and outputting the predetermined number of bits of data on a first-in first-out basis; The transfer destination data stored in the memory where the operation result should be stored, A data holding means for sequentially holding and outputting a predetermined number of bits each, and at least an output from the data storage means and an output from the data holding means are inputted and a raster operation is performed based on at least an output from the data storage means A memory device, comprising: a raster operation circuit; and a writing unit that writes an operation result of the raster operation circuit to a transfer destination memory of the memory array.
JP03302994A 1991-11-19 1991-11-19 Memory device Expired - Fee Related JP3081037B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03302994A JP3081037B2 (en) 1991-11-19 1991-11-19 Memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03302994A JP3081037B2 (en) 1991-11-19 1991-11-19 Memory device

Publications (2)

Publication Number Publication Date
JPH05144259A JPH05144259A (en) 1993-06-11
JP3081037B2 true JP3081037B2 (en) 2000-08-28

Family

ID=17915656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03302994A Expired - Fee Related JP3081037B2 (en) 1991-11-19 1991-11-19 Memory device

Country Status (1)

Country Link
JP (1) JP3081037B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU7049694A (en) * 1993-06-14 1995-01-03 Rambus Inc. Method and apparatus for writing to memory components
JP5201485B2 (en) * 1994-01-21 2013-06-05 ルネサスエレクトロニクス株式会社 Semiconductor integrated circuit device

Also Published As

Publication number Publication date
JPH05144259A (en) 1993-06-11

Similar Documents

Publication Publication Date Title
KR970005410B1 (en) Read/write memory having an on-chip input data register
JPH10505935A (en) Improved memory architecture and devices, systems and methods utilizing the same
US20230267571A1 (en) Data loading method and apparatus for convolution operation
JPH08505255A (en) Frame buffer system for window operation
US5257237A (en) SAM data selection on dual-ported DRAM devices
JP3081037B2 (en) Memory device
JP2940457B2 (en) Semiconductor memory
US5486844A (en) Method and apparatus for superimposing displayed images
JPH0740242B2 (en) Data transfer method
JP3288327B2 (en) Video memory circuit
US6195463B1 (en) Multiresolution image processing and storage on a single chip
JPH0259943A (en) Memory device with operational function
JPH1092172A (en) Semiconductor memory device having data reading/ writing function
KR950009076B1 (en) Dual port memory and control method
JPH05108467A (en) Semiconductor storage device
JP2633251B2 (en) Image memory device
JPH05242257A (en) Bit map memory for high speed curve plotting
JP2771350B2 (en) Image processing device
JPH1027130A (en) Picture processor and its processing method
JPS63304293A (en) Display memory control circuit
JPS63106989A (en) Semiconductor memory device
JP4821410B2 (en) MEMORY CONTROL METHOD, MEMORY CONTROL DEVICE, IMAGE PROCESSING DEVICE, AND PROGRAM
JPS63292376A (en) Image memory device
JPH03183097A (en) Semiconductor memory device
JPH01321573A (en) Picture data converting circuit

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000606

LAPS Cancellation because of no payment of annual fees