JP2793474B2 - Partial write control circuit - Google Patents

Partial write control circuit

Info

Publication number
JP2793474B2
JP2793474B2 JP5193392A JP19339293A JP2793474B2 JP 2793474 B2 JP2793474 B2 JP 2793474B2 JP 5193392 A JP5193392 A JP 5193392A JP 19339293 A JP19339293 A JP 19339293A JP 2793474 B2 JP2793474 B2 JP 2793474B2
Authority
JP
Japan
Prior art keywords
data
write
address
buffer
control circuit
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
JP5193392A
Other languages
Japanese (ja)
Other versions
JPH0750091A (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.)
NEC Corp
NEC Computertechno Ltd
Original Assignee
NEC Computertechno Ltd
Nippon Electric 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 NEC Computertechno Ltd, Nippon Electric Co Ltd filed Critical NEC Computertechno Ltd
Priority to JP5193392A priority Critical patent/JP2793474B2/en
Publication of JPH0750091A publication Critical patent/JPH0750091A/en
Application granted granted Critical
Publication of JP2793474B2 publication Critical patent/JP2793474B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • 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 partial write control circuit in a storage device.

【0002】[0002]

【従来の技術】この種の部分書込み制御回路の一例を示
す図2を参照すると、本回路は、まず、入力端子10
1,102,103,104からそれぞれライトデー
タ,ライトマスク,アドレス,コマンドをプロセッサか
ら受け取り、ぞれぞれライトデータレジスタ1,ライト
マスクレジスタ2,アドレスレジスタ3,コマンドレジ
スタ4に入力する。コマンドレジスタ4からはコマンド
が制御回路11′に送られるが、コマンドが部分書込み
の場合には、制御回路11′は記憶部13にリードコマ
ンドを送るとともにライトデータ制御部7に制御信号を
送り、ライトデータ制御部7はライトマスクレジスタ2
からライトマスクを受けとりセットする。また制御回路
11′はアドレス制御部22にも制御信号を送り、アド
レスレジスタ3からアドレスを受け取り記憶部13に転
送する。
2. Description of the Related Art Referring to FIG. 2 showing an example of a partial write control circuit of this type, the circuit first comprises an input terminal
Write data, a write mask, an address, and a command are received from the processor from the processors 1, 102, 103, and 104, respectively, and input to the write data register 1, the write mask register 2, the address register 3, and the command register 4, respectively. A command is sent from the command register 4 to the control circuit 11 '. When the command is a partial write, the control circuit 11' sends a read command to the storage unit 13 and sends a control signal to the write data control unit 7, The write data control unit 7 includes the write mask register 2
Receive light mask from and set. The control circuit 11 ′ also sends a control signal to the address control unit 22 to receive an address from the address register 3 and transfer it to the storage unit 13.

【0003】記憶部13は、送られてきたリードコマン
ドとアドレスに基づいてデータを読み出し、エラー検出
/訂正回路16を経てリードデータレジスタ18にセッ
トされる。リードデータレジスタ18にセットされたリ
ードデータはライトデータセレクタ6に送られ、ライト
データセレクタ6はライトデータレジスタ1にセットさ
れているライトデータとライトデータ制御部7に送られ
ているライトマスクを受け取り、部分書込みを行なう。
ライトデータセレクタ6で生成された部分書込みデータ
は、チェックビット生成回路12を経て記憶部13に書
込まれる。
The storage section 13 reads data based on the read command and address sent thereto, and is set in a read data register 18 via an error detection / correction circuit 16. The read data set in the read data register 18 is sent to the write data selector 6, and the write data selector 6 receives the write data set in the write data register 1 and the write mask sent to the write data control unit 7. , Partial writing is performed.
The partial write data generated by the write data selector 6 is written to the storage unit 13 via the check bit generation circuit 12.

【0004】[0004]

【発明が解決しようとする課題】上述した従来の部分書
込み制御回路では、部分書込みを行なう場合には、一旦
当該アドレスのデータを読み出し、ライトデータとマー
ジ後にチェックビットを生成し直してから書込みを行な
っているため、全書込みの場合に比べ読出しの分だけ実
行時間が長くかかっているという欠点がある。
In the above-described conventional partial write control circuit, when performing partial write, the data at the address is read once, the check bits are generated again after merging with the write data, and then the write is performed. Because of this, there is a drawback that the execution time is longer by the read time than in the case of full write.

【0005】本発明の目的は、部分書込みの実行時間を
全書込みと同じにすることにより、記憶装置の性能を向
上させる部分書込み制御回路を提供することにある。
An object of the present invention is to provide a partial write control circuit that improves the performance of a storage device by making the execution time of partial write the same as that of full write.

【0006】[0006]

【課題を解決するための手段】本発明の部分書込み制御
回路は、部分書込み指令時に予め定めた一定数に達する
までライトデータ,ライトマスク,およびアドレスをそ
れぞれバッファにセットして記憶部への部分書込みは行
わない制御回路と、読み出し指令時に、そのアドレスと
同一のものが前記バッファにセットされているかどうか
を比較するアドレス比較回路と、該、比較結果に一致す
るアドレスがあった場合は、対応するライトデータを前
記バッファより読み出し、一致するアドレスがない場合
には前記記憶部からデータを読み出すリードデータ制御
部と、前記バッファ内のデータが前記一定数に達したと
き、所定の時刻に前記バッファ内のデータを減らして前
記記憶部に部分書込みを行うよう制御するリフレッシュ
/パトロール制御部と、前記方法でデータを減らしても
前記バッファが一杯になった場合は前記バッファ内の前
データをクリアし、すべてを前記記憶部に部分書込みす
るバッファ管理部とを有することを特徴とする。
A partial write control circuit according to the present invention sets a write data, a write mask, and an address in a buffer until a predetermined number is reached when a partial write command is issued, and stores the write data, write mask, and address in a buffer. A control circuit that does not perform writing, an address comparison circuit that compares whether or not the same address is set in the buffer when a read command is issued, and an address that matches the comparison result, A read data control unit that reads write data to be read from the buffer and reads data from the storage unit when there is no matching address; and when the data in the buffer reaches the fixed number, the read data control unit Refresh / patrol control for controlling data to be written in the storage unit by reducing data in the storage unit If, when the buffer even by reducing the data in the process is full clears the previous data in the buffer, and having a buffer management unit for partial write in the storage unit all.

【0007】[0007]

【実施例】本発明の一実施例を示す図1を参照すると、
本実施例は、図2に示した従来例に対して、リフレッシ
ュ/パトロール制御回路5,ライトデータバッファ8,
ライトマスクバッファ9,アドレステーブル10,アド
レスセレクタ14,タイミング制御回路15,アドレス
比較回路17,バッファ管理部19,リードデータ制御
部20およびリードデータセレクタ21が付加される一
方、図2におけるアドレス制御回路22が除去され、ま
た制御回路11′の代りに制御回路11が設けられてい
る。なお、図2と図1とで共通な構成要素には同一の参
照番号を付した。
FIG. 1 shows an embodiment of the present invention.
This embodiment is different from the conventional example shown in FIG. 2 in that the refresh / patrol control circuit 5, the write data buffer 8,
While a write mask buffer 9, an address table 10, an address selector 14, a timing control circuit 15, an address comparison circuit 17, a buffer management unit 19, a read data control unit 20, and a read data selector 21 are added, the address control circuit in FIG. 22 is removed, and the control circuit 11 is provided instead of the control circuit 11 '. 2 and 1 are denoted by the same reference numerals.

【0008】図1において、入力端子101,102,
103,104からそれぞれライトデータ,ライトマス
ク,アドレス,コマンドをプロセッサから受取り、それ
ぞれライトデータレジスタ1,ライトマスクレジスタ
2,アドレスレジスタ3,コマンドレジスタ4に入力す
る。コマンドが部分書込みの場合、制御回路11は、こ
れらのレジスタからアドレス,ライトデータ,ライトマ
スクをアドレステーブル10,ライトデータバッファ
8,ライトマスクバッファ9にセットし、記憶部13に
対しての書込みは行なわない。
In FIG. 1, input terminals 101, 102,
Write data, a write mask, an address, and a command are received from the processors 103 and 104, respectively, and input to the write data register 1, the write mask register 2, the address register 3, and the command register 4, respectively. When the command is a partial write, the control circuit 11 sets an address, write data, and a write mask from these registers in the address table 10, the write data buffer 8, and the write mask buffer 9, and writes to the storage unit 13 Do not do.

【0009】コマンドが読出しの場合、制御回路11か
ら制御信号をアドレス比較回路17へ出力する。アドレ
ス比較回路17はアドレスレジスタ3にセットされたリ
ードアドレスが以前に部分書込みを行ったアドレスかど
うかを調べるためにアドレステーブル10を参照する。
一致するアドレスが存在すれば、その旨をリードデータ
制御部20に通知し、リードデータ制御部20はライト
マスクバッファ9から、対応する部分書込み時のライト
マスクを入力してリードデータセレクタ21へ出力す
る。
When the command is read, a control signal is output from the control circuit 11 to the address comparison circuit 17. The address comparison circuit 17 refers to the address table 10 to check whether the read address set in the address register 3 is an address for which partial writing has been performed previously.
If there is a matching address, this is notified to the read data control unit 20, and the read data control unit 20 inputs the corresponding write mask for partial writing from the write mask buffer 9 and outputs it to the read data selector 21. I do.

【0010】制御回路11は、またアドレスレジスタ3
の出力をアドレスセレクタ14経由で記憶部13へ出力
させる選択信号及び記憶部13へリード動作を実行する
ためのタイミング信号をタイミング制御回路15から出
力させるための制御信号を出力する。この結果により、
記憶部13から読出されたリードデータはエラー検出/
訂正回路16を経てリードデータレジスタ18へ入力す
る。リードデータセレクタ21は、リードデータ制御部
20からのマスクデータにより、リードデータレジスタ
18の出力とライトデータバッファ8の出力から部分書
込みされたデータを生成し、出力端子201を介してプ
ロセッサへ送出する。
The control circuit 11 also includes an address register 3
Is output to the storage unit 13 via the address selector 14 and a control signal for causing the timing control circuit 15 to output a timing signal for performing a read operation to the storage unit 13. With this result,
The read data read from the storage unit 13 is used for error detection /
The data is input to the read data register 18 via the correction circuit 16. The read data selector 21 generates partially written data from the output of the read data register 18 and the output of the write data buffer 8 based on the mask data from the read data control unit 20, and sends the data to the processor via the output terminal 201. .

【0011】しかしながら、部分書込みの実行が増えて
くるとアドレステーブル10,ライトマスクバッファ9
およびライトデータバッファ8が一杯になり、これらの
各バッファにアドレス,ライトマスクおよびライトデー
タのセットができなくなってしまう。これを防ぐため、
アドレステーブル10にセットされているアドレスが予
め定めた一定数に達した場合(制御回路11が検出す
る)リフレッシュ/パトロール制御部5は、制御回路1
1を介してタイミング制御回路15,アドレスセレクタ
14,リードデータ制御部20,リードデータセレクタ
21,マスク制御部7,ライトデータセレクタ6をそれ
ぞれ直接・間接に制御し、リフレッシュ又はパトロール
時に各アドレス/バッファ8,9,10のデータと記憶
部13から部分書込み用データを生成し、記憶部13へ
書込み各バッファにセットされたデータ数を減らしてい
く。
However, when the number of partial write operations increases, the address table 10, write mask buffer 9
In addition, the write data buffer 8 becomes full, and it becomes impossible to set the address, the write mask, and the write data in these buffers. To prevent this,
When the number of addresses set in the address table 10 reaches a predetermined fixed number (detected by the control circuit 11), the refresh / patrol control unit 5
1 to directly and indirectly control the timing control circuit 15, the address selector 14, the read data control unit 20, the read data selector 21, the mask control unit 7, and the write data selector 6, respectively. The data for partial writing is generated from the data of 8, 9, and 10 and the storage unit 13, and is written to the storage unit 13 to reduce the number of data set in each buffer.

【0012】上記の方法でデータを減らしても各バッフ
ァが一杯になった場合、バッファ管理部19でこれを検
出し、出力端子202からプロセッサに対して割り込み
信号を出し、メモリアクセスを一定時間抑止する。また
バッファ管理部19からの出力により制御回路11経由
でタイミング制御回路15,アドレスセレクタ14,リ
ードデータ制御部20,リードデータセレクタ21,マ
スク制御部7およびライトデータセレクタ6を制御して
各バッファのデータをすべて記憶部13に移し、各バッ
ファにセットされたデータ数を零にする。
When each buffer becomes full even if the data is reduced by the above method, the buffer management unit 19 detects this and issues an interrupt signal to the processor from the output terminal 202 to suppress the memory access for a certain period of time. I do. The timing control circuit 15, the address selector 14, the read data control unit 20, the read data selector 21, the mask control unit 7, and the write data selector 6 are controlled by the output from the buffer management unit 19 via the control circuit 11 to control each buffer. All data is transferred to the storage unit 13, and the number of data set in each buffer is set to zero.

【0013】[0013]

【発明の効果】以上に説明したように本発明は、部分書
込みの実行時間の高速化を比較的小規模のハードウェア
量の増加で実現できるので、情報処理装置の性能を大き
く向上させる効果がある。
As described above, according to the present invention, the execution time of the partial writing can be shortened with a relatively small increase in the amount of hardware, so that the effect of greatly improving the performance of the information processing apparatus can be obtained. is there.

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

【図1】本発明の部分書込み制御回路の一実施例を示す
ブロック図である。
FIG. 1 is a block diagram showing one embodiment of a partial write control circuit of the present invention.

【図2】従来の部分書込み制御回路の一例を示す。FIG. 2 shows an example of a conventional partial write control circuit.

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

1 ライトデータレジスタ 2 ライトマスクレジスタ 3 アドレスレジスタ 4 コマンドレジスタ 5 リフレッシュ/パトロール制御部 6 ライトデータセレクタ 7 ライトデータ制御部 8 ライトデータバッファ 9 ライトマスクバッファ 10 アドレステーブル 11(11′) 制御回路 12 チェックビット生成回路 13 記憶部 14 アドレスセレクタ 15 タイミング制御回路 16 エラー検出/訂正回路 17 アドレス比較回路 18 リードデータレジスタ 19 バッファ管理部 20 リードデータ制御部 21 リードデータセレクタ 22 アドレス制御部 101〜104 入力端子 201〜202 出力端子 1 Write Data Register 2 Write Mask Register 3 Address Register 4 Command Register 5 Refresh / Patrol Control Unit 6 Write Data Selector 7 Write Data Control Unit 8 Write Data Buffer 9 Write Mask Buffer 10 Address Table 11 (11 ′) Control Circuit 12 Check Bit Generation circuit 13 Storage unit 14 Address selector 15 Timing control circuit 16 Error detection / correction circuit 17 Address comparison circuit 18 Read data register 19 Buffer management unit 20 Read data control unit 21 Read data selector 22 Address control unit 101 to 104 Input terminal 201 202 output terminal

───────────────────────────────────────────────────── フロントページの続き (72)発明者 山内 真 東京都港区芝五丁目7番1号 日本電気 株式会社内 (72)発明者 菊地 宏 山梨県甲府市大津町1088−3 甲府日本 電気株式会社内 (56)参考文献 特開 昭53−145428(JP,A) (58)調査した分野(Int.Cl.6,DB名) G11C 11/40 - 11/409 G06F 12/04 520────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Shin Yamauchi 5-7-1 Shiba, Minato-ku, Tokyo NEC Corporation (72) Inventor Hiroshi Kikuchi 1088-3 Otsucho, Kofu City, Yamanashi Prefecture Kofu Nippon Electric Co., Ltd. In-house (56) References JP-A-53-145428 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) G11C 11/40-11/409 G06F 12/04 520

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 部分書込み指令時に予め定めた一定数に
達するまでライトデータ,ライトマスク,およびアドレ
スをそれぞれバッファにセットして記憶部への部分書込
みは行わない制御回路と、 読み出し指令時に、そのアドレスと同一のものが前記バ
ッファにセットされているかどうかを比較するアドレス
比較回路と、 該、比較結果に一致するアドレスがあった場合は、対応
するライトデータを前記バッファより読み出し、一致す
るアドレスがない場合には前記記憶部からデータを読み
出すリードデータ制御部と、 前記バッファ内のデータが前記一定数に達したとき、所
定の時刻に前記バッファ内のデータを減らして前記記憶
部に部分書込みを行うよう制御するリフレッシュ/パト
ロール制御部と、 前記方法でデータを減らしても前記バッファが一杯にな
った場合は前記バッファ内の前データをクリアし、すべ
てを前記記憶部に部分書込みするバッファ管理部とを有
することを特徴とした記憶装置における部分書込み制御
回路。
A control circuit that sets write data, a write mask, and an address in a buffer and does not perform a partial write to a storage unit until a predetermined number is reached when a partial write command is issued; An address comparison circuit for comparing whether or not the same address is set in the buffer; and if there is an address that matches the comparison result, the corresponding write data is read from the buffer and the matching address is determined. A read data control unit that reads data from the storage unit when there is no data, and when the data in the buffer reaches the fixed number, reduces the data in the buffer at a predetermined time and performs a partial write to the storage unit. A refresh / patrol control unit for controlling the operation to be performed; If § is full clears the previous data in the buffer, partial write control circuit in the storage device characterized by having a buffer management unit for partial write in the storage unit all.
【請求項2】前記所定の時刻をリフレッシュ直後または
記憶装置が非動作時としたことを特徴とする請求項1記
載の部分書込み制御回路。
2. The partial write control circuit according to claim 1, wherein the predetermined time is set immediately after refreshing or when the storage device is not operating.
JP5193392A 1993-08-04 1993-08-04 Partial write control circuit Expired - Fee Related JP2793474B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5193392A JP2793474B2 (en) 1993-08-04 1993-08-04 Partial write control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5193392A JP2793474B2 (en) 1993-08-04 1993-08-04 Partial write control circuit

Publications (2)

Publication Number Publication Date
JPH0750091A JPH0750091A (en) 1995-02-21
JP2793474B2 true JP2793474B2 (en) 1998-09-03

Family

ID=16307183

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5193392A Expired - Fee Related JP2793474B2 (en) 1993-08-04 1993-08-04 Partial write control circuit

Country Status (1)

Country Link
JP (1) JP2793474B2 (en)

Also Published As

Publication number Publication date
JPH0750091A (en) 1995-02-21

Similar Documents

Publication Publication Date Title
US8365031B2 (en) Soft error correction method, memory control apparatus and memory system
US7246257B2 (en) Computer system and memory control method thereof
JP2793474B2 (en) Partial write control circuit
JP2913873B2 (en) Data processing system
JPH0316655B2 (en)
CN113836050A (en) Memory access control method, device, equipment and readable storage medium
JPH06282449A (en) Memory controller
JP3136681B2 (en) Data processing device
JP2659276B2 (en) Semiconductor storage device
JPH05101650A (en) Refreshing method for dynamic memory
JPH04245346A (en) Microcomputer system
JP2642087B2 (en) Data transfer processing mechanism between main storage devices
JPH0778747B2 (en) Data processing device
JP3299147B2 (en) Cache control circuit
JPH0588993A (en) Memory control system
JPS63126047A (en) Memory control system
JPS619684A (en) Default screen display system
JPH1091571A (en) Method for detecting chain removal for dma controller and dma controller
JPH04372032A (en) Cache memory system
JPH04310136A (en) Control storage correcting circuit
JPH0855058A (en) Expanding method for memory area
JPH0391198A (en) Memory rewrite system
JPH03283189A (en) Semiconductor memory device
JPH05165720A (en) Data invalidating system for cache memory
JPH027140A (en) Memory access system

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: 19980526

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080619

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090619

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees