JPH01189745A - Memory write system - Google Patents

Memory write system

Info

Publication number
JPH01189745A
JPH01189745A JP63015106A JP1510688A JPH01189745A JP H01189745 A JPH01189745 A JP H01189745A JP 63015106 A JP63015106 A JP 63015106A JP 1510688 A JP1510688 A JP 1510688A JP H01189745 A JPH01189745 A JP H01189745A
Authority
JP
Japan
Prior art keywords
memory
write
data
signal
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63015106A
Other languages
Japanese (ja)
Inventor
Koichi Matsumoto
浩一 松本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP63015106A priority Critical patent/JPH01189745A/en
Publication of JPH01189745A publication Critical patent/JPH01189745A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To evade the destruction of data by returning the data to the one before write is performed even when an error is detected after the write of the data is completed in a memory erroneous write recovery system. CONSTITUTION:To perform memory write, a signal is added on each of a command signal line 101, an address signal line 102, and a data signal line 103, respectively, and is sent to a memory access circuit 2, and a received address is sent from the means 2 to an address signal line 202, and a write effective signal 201 is turned OFF, and address data is sent from a memory 1 to a data output line 303. At this timing, a retreat signal 301 is outputted from the circuit 2, and is added on a retreat register 3, and also, the signal of the output line 303 is retreated, then, the effective signal 201 is turned ON. By turning ON the signal 201, the memory 1 writes the data from a write data line on the address designated by the signal line 202, and the circuit 2 completes the write by turning OFF the effective signal 201 again. At this time, when the error is generated, an error signal 504 is added on the circuit 2 as a write back signal 401 via a recovery control circuit 4, then, the error is corrected.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はメモリ誤書込みをした時のメモリ修復方式に関
し、特にメモリ書込みに対するチエツクの結果がメモリ
書込みの終了より後に出る場合のメモリ誤書込み修復方
式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a memory recovery method when a memory write error occurs, and in particular, a memory error recovery method when a check result for a memory write is obtained after the end of the memory write. Regarding the method.

〔従来の技術〕[Conventional technology]

従来、メモリ誤書込みを防ぐ方式としてメモリアクセス
するためにメモリに送られてきたコマンドやアドレス、
データのパリティ・チエツクやコマンド正当性チエツク
を行い、もしエラーが存在したらメモリ書込みを抑止し
てメモリの内容が破壊されないようにしていヘ −2−、ン また、メモリ誤書込みを検出する方式としてメモリアク
セスしようとする手段を二重化してその手段が要求した
メモリ書込みに誤りがなかったかを比較チエツクしてい
た。
Conventionally, commands and addresses sent to memory to access memory were used as a method to prevent memory write errors.
Data parity checks and command validity checks are performed, and if an error exists, memory writing is inhibited to prevent memory contents from being destroyed. The means for accessing was duplicated and a comparison was made to check whether there were any errors in the memory write requested by the means.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のメモリ誤書込みに対する方式では、パリ
ティ・チエツク方式の場合はメモリに書込みをしようと
する手段が誤ったコマンド、アドレス、データを送って
きても定義されているコマンドであったり正しいパリテ
ィであった場合はパリティ・チエツクの時にエラーを検
出できずメモリ誤書込みを許してしまい、その後でメモ
リ書込みに誤りがあったことを検出しても書込む前のメ
モリデータは失われてしまっていた。
In the conventional method for dealing with erroneous memory writes described above, in the case of the parity check method, even if the means attempting to write to memory sends an incorrect command, address, or data, it is not possible to check whether the command is a defined command or has correct parity. If there was, the error could not be detected during the parity check, allowing an erroneous memory write, and even if it was later detected that there was an error in the memory write, the memory data before the write was lost. .

また、メモリアクセスしようとする手段を二重化してメ
モリ誤書込みを検出する方式でもメモリにエラー信号が
届くのがメモリ書込みを終了した後では書込む前のデー
タを修復することはできなかった。
Furthermore, even in a method of detecting erroneous memory writing by duplicating the means for accessing the memory, if an error signal arrives at the memory after the memory writing is completed, it is not possible to restore the data before writing.

みを行い、その後回等かのエラーを発生して命令再試行
しようとしてもメモリの内容を書き換えてしまっている
ため再試行不可能になるという場合が多かった。
In many cases, when an error occurs and an attempt is made to retry the instruction, the contents of the memory have been rewritten, making it impossible to retry the instruction.

〔問題点を解決するための手段〕[Means for solving problems]

メモリを持ちメモリに対してデータ書込みを行う装置に
おいて、メモリと、メモリのデータ書込み時にメモリ書
込みが行われるアドレスとそのアドレスにメモリ書込み
が行われる前に保持されていたデータを格納する退避レ
ジスタと、メモリ書込みをしようとする手段からメモリ
書込み要求を受付は要求されたメモリ書込みを実行し、
また書き戻し信号が入力されると退避レジスタに格納さ
れている退避アドレスと退避データを取込み退避アドレ
スで示されるメモリのアドレスに退避データを書込むメ
モリアクセス制御回路と、メモリアクセス制御回路に要
求したメモリ書込みに誤りが存在したことが発見された
時にその誤りを発見した手段からくるエラー信号を入力
してメモリアクセス制御回路に書き戻し信号を送出する
修復制御・P(′−・ −4,、i  + 回路とを有している。
In a device that has a memory and writes data to the memory, there is a memory, an address to which the memory is written when data is written to the memory, and a save register that stores the data that was held at that address before the memory was written. , accepts a memory write request from a means attempting to write to memory, executes the requested memory write,
In addition, when a write-back signal is input, a memory access control circuit that takes the save address and save data stored in the save register and writes the save data to the memory address indicated by the save address, and a request is made to the memory access control circuit. When it is discovered that there is an error in memory writing, the error signal from the means that discovered the error is input and a write-back signal is sent to the memory access control circuit.Repair control P('-・-4, . i + circuit.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例の7772図である。FIG. 1 is a 7772 diagram of an embodiment of the present invention.

第1図に示したメモリ誤書込み修復方式は、メモリ1と
、メモリアクセス制御回路2と、退避レジスタ3と、修
復制御回路4とを有して構成されている。
The memory erroneous write repair method shown in FIG. 1 includes a memory 1, a memory access control circuit 2, a save register 3, and a repair control circuit 4.

次に、本発明の一実施例の動作について説明する。メモ
リ読出しの場合は本発明と直接関係しな 、いので、こ
こではメモリ書込みの場合について説明する。図示され
ていないメモリ書込みをしようとする手段は、メモリ書
込みを行うためにコマンド信号線101にメモリ書込み
を表すコマンドを、アドレス信号線102にメモリアド
レスを、データ信号線103に書込みデータを出力して
メモリアクセス制御回路2に送出する。これらの信号を
受取ったメモリアクセス制御回路2は、まずアドレス信
号線102から送られてきさアドレスをメモリアドレス
信号線202に出力し、書込み有効信号201にオフに
する。すると、メモリ1はメモリアドレス信号線202
で示されるアドレスのデータを読出しデータ信号線30
3に出力する。
Next, the operation of one embodiment of the present invention will be explained. Since the case of memory read is not directly related to the present invention, the case of memory write will be explained here. A means (not shown) for performing memory writing outputs a command representing memory writing to the command signal line 101, a memory address to the address signal line 102, and write data to the data signal line 103. and sends it to the memory access control circuit 2. Upon receiving these signals, the memory access control circuit 2 first outputs the address sent from the address signal line 102 to the memory address signal line 202, and turns off the write enable signal 201. Then, memory 1 receives the memory address signal line 202.
Read the data at the address indicated by the data signal line 30.
Output to 3.

このタイミングでメモリアクセス制御回路1は退避信号
301を出力し、これを受けた退避レジスタ3はメモリ
アドレス信号線202に出力されているアドレスと読出
しデータ信号線303に出力されているデータを退避ア
ドレス、退避データとして格納する。その後、メモリア
クセス制御回路2はデータ信号線103から送られてき
た書込みデータを書込みデータ信号線203に出力し、
書込み有効信号201をオンにする。書込み有効信号2
01がオンになることで、メモリlはメモリアドレス信
号線202で示されるアドレスに書込みデータ信号線2
03から送られてきたデータを書込む。その後メモリア
クセス制御回路2は書込み有効信号201をオフにし、
メモリ書込みに誤りが検出されなければ書込み動作は以
上で終了する。
At this timing, the memory access control circuit 1 outputs the save signal 301, and the save register 3 receives this and converts the address output to the memory address signal line 202 and the data output to the read data signal line 303 to the save address. , and store it as saved data. After that, the memory access control circuit 2 outputs the write data sent from the data signal line 103 to the write data signal line 203,
Turn on the write enable signal 201. Write valid signal 2
01 is turned on, the memory l writes the write data signal line 2 to the address indicated by the memory address signal line 202.
Write the data sent from 03. After that, the memory access control circuit 2 turns off the write enable signal 201,
If no error is detected in memory writing, the writing operation ends.

もし、メモリ書込み動作が終了した後でメモリ書込み動
作に何等かの誤りが検出されれば、例えばメモリ書込み
をしようとする手段が二重化されていてメモリ1がデー
タ書込みをおこなっている時に2つの手段の間の動作比
較を行って要求したメモリ書込みにエラーがあったこと
を検出した場合、または、メモリ書込みをしようとする
手段がソフトウーア命令実行中にメモリ書込みを行った
後回等かのエラーを検出して命令再試行しようとした場
合、エラーを検出した手段はエラー信号504を出力す
る。これを受けた修正制御回路4はメモリアクセス制御
回路2に書き戻し信号401を出力する。書き戻し信号
401を受取ったメモリアクセス制御回路2は、退避レ
ジスタ3が格納している退避アドレスを退避アドレス信
号線402から、退避データを退避データ信号線403
から取込み、それぞれメモリアドレス線202.書込み
データ信号線203に出力する。そして、書込み有効信
号201をオンにして、退避アドレスで示されるメモリ
1のアドレスに退避データを書込む。
If some kind of error is detected in the memory write operation after the memory write operation is completed, for example, if the means for writing to memory are duplicated and memory 1 is writing data, two means If an error is detected in the requested memory write by comparing the operations between When an attempt is made to retry the instruction after detecting an error, the means that detected the error outputs an error signal 504. Upon receiving this, the modification control circuit 4 outputs a write-back signal 401 to the memory access control circuit 2. Upon receiving the write-back signal 401, the memory access control circuit 2 transfers the save address stored in the save register 3 from the save address signal line 402 and the save data from the save data signal line 403.
from memory address lines 202., respectively. It is output to the write data signal line 203. Then, the write enable signal 201 is turned on and the save data is written to the address of the memory 1 indicated by the save address.

これでメモリ書込みを行う前のデータが修復され、メモ
リ誤書込みによるメモリデータの破壊を防ぐことができ
る。
This restores the data before memory writing, and prevents memory data from being destroyed due to erroneous memory writing.

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

以上説明したように本発明のメモリ誤書込み修復方式は
、メモリ書込が終了した後にそのメモリ書込みに誤りが
あったことが検出されても書込みが行われる前のデータ
を戻すことができるので、メモリ誤書込みによるデータ
の破壊を防ぐことができ、そのためメモリ書込みを伴う
ソフトウェアの命令実行中にエラーが発生した時でも命
令の再試行を行える確率が高くなるといった効果がある
As explained above, the memory write error recovery method of the present invention can restore the data before the write even if it is detected that there was an error in the memory write after the memory write is completed. It is possible to prevent data from being destroyed due to erroneous memory writing, which has the effect of increasing the probability that the instruction can be retried even if an error occurs during execution of a software instruction that involves memory writing.

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

第1図は本発明の一実施例のブロック図である。 1・・・・・・メモリ、2・・・・・・メモリアクセス
制御回路、3・・・・・・退避レジスタ、4・・・・・
・修復制御回路。 代理人 弁理士  内 原   音
FIG. 1 is a block diagram of one embodiment of the present invention. 1... Memory, 2... Memory access control circuit, 3... Save register, 4...
・Repair control circuit. Agent Patent Attorney Oto Uchihara

Claims (1)

【特許請求の範囲】 メモリを持ちメモリに対してデータ書込みを行う装置に
おいて、 メモリと、 前記メモリのデータ書込み時にメモリ書込みが行われる
アドレスと該アドレスにメモリ書込みが行われる前に保
持されていたデータを格納する退避レジスタと、 メモリ書込みをしようとする手段からメモリ書込み要求
を受付け要求されたメモリ書込みを実行し、また書き戻
し信号が入力されると前記退避レジスタに格納されてい
る退避アドレスと退避データを取込み退避アドレスで示
されるメモリのアドレスに退避データを書込むメモリア
クセス制御回路と、 前記メモリアクセス制御回路に要求したメモリ書込み誤
りが存在したことが発見された時にその誤りを発見した
手段からくるエラー信号を入力して前記メモリアクセス
制御回路に書き戻し信号を送出する修復制御回路とを有
することを特徴とするメモリ誤書込み修復方式。
[Claims] A device having a memory and writing data to the memory, comprising: a memory, an address to which the memory is written when data is written to the memory, and an address held before the memory is written to the address. A save register for storing data, a memory write request from a means attempting to write to the memory, executes the requested memory write, and when a write-back signal is input, the save address stored in the save register is a memory access control circuit that takes in saved data and writes the saved data to a memory address indicated by the saved address; and means for discovering a memory write error requested to the memory access control circuit when it is discovered that the error exists. and a repair control circuit that inputs an error signal coming from the memory access control circuit and sends a write-back signal to the memory access control circuit.
JP63015106A 1988-01-25 1988-01-25 Memory write system Pending JPH01189745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63015106A JPH01189745A (en) 1988-01-25 1988-01-25 Memory write system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63015106A JPH01189745A (en) 1988-01-25 1988-01-25 Memory write system

Publications (1)

Publication Number Publication Date
JPH01189745A true JPH01189745A (en) 1989-07-28

Family

ID=11879583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63015106A Pending JPH01189745A (en) 1988-01-25 1988-01-25 Memory write system

Country Status (1)

Country Link
JP (1) JPH01189745A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998037510A1 (en) * 1997-02-21 1998-08-27 Rohm Co., Ltd. Ic card

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998037510A1 (en) * 1997-02-21 1998-08-27 Rohm Co., Ltd. Ic card
US6454172B1 (en) 1997-02-21 2002-09-24 Rohm Co., Ltd. IC card having a display for displaying a response state

Similar Documents

Publication Publication Date Title
US20020124129A1 (en) Method for using RAM buffers with multiple accesses in flash-based storage systems
JPH01189745A (en) Memory write system
JPH0316655B2 (en)
JPH0652065A (en) Memory control circuit
JP3450132B2 (en) Cache control circuit
JPH04125753A (en) On-lined diagnostic system for memory
JP2998282B2 (en) Memory device
JPH10247157A (en) Transaction processing system and its recovering method
JPH05108493A (en) Memory control system
JPS603769A (en) Error recovery
JPH0223442A (en) Memory control device
JPS6043541B2 (en) data processing equipment
JPS617947A (en) Control storage device
JPS6227424B2 (en)
JPH03157744A (en) Error correction rewrite system
JPH0520215A (en) Information processor
JPH04153754A (en) Storage control system
JPH05324487A (en) Memory control system
JPS59217298A (en) Memory error relieve system
JPH039433A (en) Information processor
JPS61173360A (en) Protective system for data of non-volatile memory
JPS6156537B2 (en)
JPH03290745A (en) Memory error detecting/correcting method
JPH01270157A (en) Multiplex memory device
JPH04343154A (en) Memory device