JPH0324654A - Memory protection circuit - Google Patents

Memory protection circuit

Info

Publication number
JPH0324654A
JPH0324654A JP15886489A JP15886489A JPH0324654A JP H0324654 A JPH0324654 A JP H0324654A JP 15886489 A JP15886489 A JP 15886489A JP 15886489 A JP15886489 A JP 15886489A JP H0324654 A JPH0324654 A JP H0324654A
Authority
JP
Japan
Prior art keywords
memory
signal
circuit
error
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.)
Pending
Application number
JP15886489A
Other languages
Japanese (ja)
Inventor
Nobuo Nakagawa
中川 信雄
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP15886489A priority Critical patent/JPH0324654A/en
Publication of JPH0324654A publication Critical patent/JPH0324654A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the writing of error data into a memory by providing the memory protection circuit with a gate circuit for invalidating a chip select signal in the memory at the time of generating an error. CONSTITUTION:Addresses 3a, 3b, data 4a, 4b and a write signal 5 are respectively outputted from CPUs 1a, 1b. A comparator 7 is synchronized by a synchronism control circuit 2 to respectively compare the addresses 3a, 3b and the data 4a, 4b at a prescribed timing. When an error is generated as the result of comparison, an error signal 8 is generated, the gate circuit 13 is closed and a chip selection signal 12 is interrupted prior to the output of the write signal 5 to the memory 6 and outputted to the memory 6 as a chip selection signal 14.

Description

【発明の詳細な説明】 〔産東上の利用分野〕 この発明は,(IPσの動作に一時的なエラー水発生し
た場合にかいても,誤ったデータをメモリに書き込むこ
とを防止するメモリ保護回路に関するものである。
[Detailed Description of the Invention] [Field of Application of Santo] This invention provides a memory protection circuit that prevents erroneous data from being written to memory even when a temporary error occurs in the operation of IPσ. It is related to.

〔従来の技術〕[Conventional technology]

第3図は従来のメモリ保護回路を示す図であう(1a)
は主系のCP−U,  (lb)Fi従系のCP[T,
《2}はO P U (1a)とCPU(1b)をクロ
ツク同期で動作させる同期制御回路.  (3a) (
5b)はCPU(1a) (1tl)から出力されるア
ドレス,  (4a) (4b)はOPσ(1 a) 
(1 b)から出力されるデータ.(5)はCPσ(1
a)から出力されるメモリへのライト信号,(6)は書
き込み可能なメモリ.C71はアドレス(3a)と(3
b)及びデータ(4a)と(4b)の値をライト信号《
5》のタイミングで比較する比較回路,(8》は比較回
路(71の結果を示すエラー信号.(9)はエラー信号
(8)を検出する故障検出回路.α●はOFσ停止信号
, amはアドレスデコーダ.a3はメモリ(t1)の
何れかを選択するチップセレクト信号である。
Figure 3 is a diagram showing a conventional memory protection circuit (1a).
is the main system CP-U, (lb)Fi is the slave system CP [T,
<<2} is a synchronous control circuit that operates the OPU (1a) and CPU (1b) in clock synchronization. (3a) (
5b) is the address output from CPU (1a) (1tl), (4a) (4b) is OPσ (1 a)
Data output from (1 b). (5) is CPσ(1
A write signal to the memory is output from a), and (6) is a writable memory. C71 has addresses (3a) and (3
b) and the values of data (4a) and (4b) as the write signal 《
5) is a comparison circuit that compares at the timing of 71. (8) is a comparison circuit (an error signal indicating the result of 71. (9) is a failure detection circuit that detects the error signal (8). α● is an OFσ stop signal, am is Address decoder.a3 is a chip select signal for selecting one of the memories (t1).

第4図は,第3図の主要信号の動作タイミングを示す図
である。
FIG. 4 is a diagram showing the operation timing of the main signals in FIG. 3.

次に動作について説明する。Next, the operation will be explained.

o P [T (1a)とc P U (1b)は同期
制御回路《2+から出力されるクロツク等の制御信号に
同期した形で並列処理を行っている。
o P [T (1a) and c P U (1b) perform parallel processing in synchronization with a control signal such as a clock output from the synchronous control circuit <<2+.

メモリ(6)へのデータ書き込み処理が発生するとO 
P U (1a) (1b)は.それぞれ第4図に示す
タイミングでアドレス(3a)(3b),データ(4a
)(4b),ライト信号(5)及びチップセレクト信号
0を出力する。
O when data write processing to memory (6) occurs.
P U (1a) (1b) is. Address (3a) (3b) and data (4a) are sent at the timing shown in Figure 4, respectively.
) (4b), a write signal (5) and a chip select signal 0 are output.

アドレス(3a)と(lb)#データ(4a)と(4b
)はT1の時間幅で比較回路(71によって同一値か否
かを比較され,その結果はto及びt1のタイミングで
エラー信号(8)として出力される。第4図のエラー信
号(8)はtoの時,エラーの発生かなく,t1の時エ
ラーを発生した状況を示している0エラー信号(8)が
エラーなし,すなわちtOの時はメモリ(6)にデータ
(4a)がライト信号(5)によって書き込!れ処理は
続行される。エラー信号(8)がエラーあシ,すなわち
t1の時はメモリ(6)にデータ(4a)がライト信号
(5》によって書き込まれると同時に故障検出回路(9
)は.OPU停止信号舖を発生する。同期制御回路《2
》はOPσ(Ia) (1b)を直ちに停止させるより
に動作する。
Address (3a) and (lb) #Data (4a) and (4b
) are compared by the comparison circuit (71) in the time width T1 to see if they are the same value, and the result is output as an error signal (8) at the timings to and t1.The error signal (8) in Fig. 4 is When to, no error occurs, and when t1, the 0 error signal (8) indicating that an error occurs, indicates that there is no error, that is, when tO, data (4a) is stored in the memory (6) as a write signal ( 5), and the processing continues. When the error signal (8) indicates an error, that is, t1, the data (4a) is written to the memory (6) by the write signal (5), and the failure is detected at the same time. Circuit (9
)teeth. Generates an OPU stop signal. Synchronous control circuit《2
>> works better than immediately stopping OPσ(Ia) (1b).

〔発明が解決しよりとする課題〕[Problems that the invention helps solve]

従来のメモリ保護回路は以上のよりに構成されていたの
で,CPU(1a)が処理を誤ったためにエラー信号(
8)カエラーを発生した場合,CPU停止信号a一によ
ってO P U (1a) (1b)の処理は停止され
るものの,既にメモリ(6)には誤ったデータ(4a)
が書き込まれてし1つているという課題があった。
Since the conventional memory protection circuit was configured as described above, the error signal (
8) When an error occurs, the processing of OPU (1a) (1b) is stopped by the CPU stop signal a, but the wrong data (4a) is already stored in the memory (6).
There was an issue where only one was written.

この発明は,上記のよりな課題を解消するためになされ
たもので.主系のO P U (Ia)にエラーが発生
した場合でも,メモリ(6)に誤ったデータ(4a)を
書き込オずにcpσ(ja) (1b)の処理を停止で
きることを目的とする。
This invention was made to solve the above problems. The purpose is to be able to stop the processing of cpσ(ja) (1b) without writing incorrect data (4a) to memory (6) even if an error occurs in the main OPU (Ia). .

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

この発明に係るメモリ保護回路は,主系のcp?(1a
)と従系の■ P U (11))を並列処理させ,メ
モリ(6)へのデータ書き込み時に両系からのアドレス
(3a)と(3b)及びデータ(4a)と(4b)の各
値を比較する比較回路+71と.アドレス(5a)に基
づbて何れのメモリ《6》をアクセスするかを決定する
アドレスデコーダ及びアドレスデコーダからの出力であ
るチップセレクト信号の発生を禁止するゲート回路を構
成し.もし比較回路でcpσ(1a)とcpσ(1b)
の出力情報に不一致を検出した場合は,ゲート回路によ
ってチップセレクト信号の出力を禁止するよりにしたも
のである。
The memory protection circuit according to the present invention is a main system cp? (1a
) and the slave system ■ P U (11)) are processed in parallel, and when data is written to the memory (6), the values of addresses (3a) and (3b) and data (4a) and (4b) from both systems are processed in parallel. A comparison circuit that compares +71 and . An address decoder determines which memory <<6>> is to be accessed based on address (5a), and a gate circuit inhibits generation of a chip select signal output from the address decoder. If in the comparison circuit cpσ(1a) and cpσ(1b)
If a mismatch is detected in the output information, the gate circuit prohibits the output of the chip select signal.

〔作用〕[Effect]

この発明にかけるメモリ保護回路はc P [T (I
a)から出力されるアドレス(3a)に基づいて発生さ
れるメモリ《6》へのチップセレクト信号を開閉するゲ
ート回路を構成したことによってエラーが発生した場合
でも,誤ったデータ(4a)をメモリ(6)に書き込む
ことを防止できる。
The memory protection circuit according to the present invention is c P [T (I
Even if an error occurs due to the configuration of a gate circuit that opens and closes the chip select signal to memory <<6>> generated based on the address (3a) output from a), the incorrect data (4a) will not be stored in the memory. (6) can be prevented from being written to.

〔実施例〕〔Example〕

以下,この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図にレいてa3は比較回路(71からエラー信号{
8}が出力された場合,チップセレクト信号azのメモ
リ(6)への供給を停止するゲート回路,a4はゲート
回路0の制御後のチップセレクト信号である。
In Fig. 1, a3 is a comparison circuit (71 to error signal {
8} is output, the gate circuit stops supplying the chip select signal az to the memory (6), and a4 is the chip select signal after being controlled by the gate circuit 0.

チップセレクト信号α●が最終的に該当するメモリ(6
》に供給される。
The memory to which the chip select signal α● finally corresponds (6

第2図は主要な信号のタイミングチャートを示す。FIG. 2 shows a timing chart of the main signals.

次に動作について説明する。Next, the operation will be explained.

a P U (11!L)及びO P U (1b)か
ら出力されるアドレス(5a)と(3b)tデーp (
4a) ト(4b) 及びライト信号(5)の動作は従
来例と同様である。
Addresses (5a) and (3b) output from aPU (11!L) and OPU (1b)
4a) The operations of (4b) and write signal (5) are the same as in the conventional example.

この発明では,比較回路(71は,同期制御回路(2)
によって同期がとられ,第2図に示すtoとt1のタイ
ミングでアドレス(3a)と(3b) ,データ(4a
)と(4b)の比較を行う。
In this invention, the comparison circuit (71 is the synchronous control circuit (2)
The addresses (3a) and (3b) and the data (4a
) and (4b).

第2図でto時点は,比較によるエラーが生じ碌かった
例であb.エラー信号(8)は発生せずにチップセレク
ト信号0は,その11ゲート回路αjを通してチップセ
レクト信号α◆としてメモリ《6)に供給される。t1
時点は比較によるエラーが生じた例であb,エラー信号
(8)が発生してゲート回路a3−if閉じられ.チッ
プセレクト信号a3はライト信号(5)がメモリ(6)
に出力される前に中断され,チップセレクト信号a4l
としてメモリ(6)に出力される。
In Fig. 2, the time to is an example where an error occurred due to the comparison and the results were successful.b. No error signal (8) is generated, and the chip select signal 0 is supplied to the memory <<6) as the chip select signal α♦ through the 11 gate circuit αj. t1
At point b, an error signal (8) is generated and the gate circuit a3-if is closed. Chip select signal a3 is write signal (5) and memory (6)
It is interrupted before being output to the chip select signal a4l.
It is output to the memory (6) as .

上記の方法によってopσ(1a)が誤った処理を実行
した場合でもメモリ(6)への誤ったデータ(4a)を
書き込むことを防止できる。
By the above method, even if opσ(1a) executes an incorrect process, writing of incorrect data (4a) to memory (6) can be prevented.

なか,エラー信号(8)の発生と同時に故障検出回路《
91が動作し,同期制御回路《2)の指示によってCP
 U (1a)及び(1b)の処理は停止する。
At the same time as the error signal (8) is generated, the failure detection circuit
91 operates, and the CP
The processing of U (1a) and (1b) is stopped.

なレ,上記実施例では○Pσ(1a)からメモリ(6)
にデータ(4a)を書き込む時の例について示したが,
メモリ《6》への書き込みでなく,外部の出力回路等に
応用しても同様の効果を奏する〇〔発明の効果〕 以上のよりに.この発明によれば.メモリ(6)へのラ
イト信号《粉発生の前段階で,(3P[I(1a)とO
Fσ(1b)からの出力情報を比較し,もしエラーが発
生した場合は,メモリ(6)のチップセレクト信号(1
3を無効としてし1うゲート回路aSを構成したことに
よシopσ(1a)にエラーが発生した場合にjp(n
ても,メモリ{6}へ誤ったデータ(4a)を書き込む
ことを防止できる。
In the above example, from ○Pσ (1a) to memory (6)
We have shown an example of writing data (4a) to
The same effect can be achieved even when applied to an external output circuit, etc., instead of writing to memory 《6》〇 [Effect of the invention] Based on the above. According to this invention. Write signal to memory (6)《At the stage before powder generation, (3P [I (1a) and O
The output information from Fσ (1b) is compared, and if an error occurs, the chip select signal (1
If an error occurs in opσ(1a) by configuring the gate circuit aS with
However, writing of incorrect data (4a) to memory {6} can be prevented.

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

第1図及び第2図は,この発明の一実施例を示す図, 
f$3図及び第4図は従来の例を示す図である。 (1a) (1b)はOPσ,(2)は同期制御回路,
 (3a)(5b)はアドレス,  (4a) (4b
)はデータ,(5)はライト信号,(6)はメモIJ,
i71は比較回路, +81Fiエラー信号,(9)は
故障検出回路,α●はCPU停止信号,αDはアドレス
デコーダ, a’aaaはチップセレクト信号, aS
はゲート回路。 なか,図中同一符号は同一,又は和当部分を示すO
FIGS. 1 and 2 are diagrams showing an embodiment of the present invention,
Figures f$3 and 4 are diagrams showing conventional examples. (1a) (1b) is OPσ, (2) is synchronous control circuit,
(3a) (5b) are addresses, (4a) (4b
) is data, (5) is write signal, (6) is memo IJ,
i71 is a comparison circuit, +81Fi error signal, (9) is a failure detection circuit, α● is a CPU stop signal, αD is an address decoder, a'aaa is a chip select signal, aS
is a gate circuit. In the figures, the same reference numerals are the same or indicate the sum part.

Claims (1)

【特許請求の範囲】[Claims] 主系のCPU、従系のCPU、主系及び従系のCPU動
作を同期化する同期制御回路、主系及び従系CPUから
各々出力されるアドレス及びデータ値を比較する比較回
路、主系CPUのアドレスに基づいてアクセスするメモ
リのチップセレクト信号を発生するアドレスデコーダ、
比較回路の出力がエラーを発生した時にアドレスデコー
ダの出力を禁止するゲート回路、比較回路のエラー信号
を検出する故障検出回路より構成され、主系及び従系の
CPUが同一のアドレス及びデータ値を出力した場合は
、この値をメモリに書き込み、もし同一値でなかつた場
合は、比較回路のエラー信号によつてメモリへのチップ
セレクト信号を禁止し、メモリへの誤つたデータの書き
込みを防止できることを特徴とするメモリ保護回路。
Main CPU, slave CPU, synchronization control circuit that synchronizes the operation of the master and slave CPUs, comparison circuit that compares the addresses and data values output from the master and slave CPUs, the master CPU an address decoder that generates a chip select signal for the memory to be accessed based on the address of the address decoder;
It consists of a gate circuit that inhibits the output of the address decoder when an error occurs in the output of the comparison circuit, and a failure detection circuit that detects the error signal of the comparison circuit. If the value is output, this value is written to the memory, and if the value is not the same, the chip select signal to the memory is prohibited by the error signal of the comparison circuit, and writing of incorrect data to the memory can be prevented. A memory protection circuit featuring:
JP15886489A 1989-06-21 1989-06-21 Memory protection circuit Pending JPH0324654A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15886489A JPH0324654A (en) 1989-06-21 1989-06-21 Memory protection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15886489A JPH0324654A (en) 1989-06-21 1989-06-21 Memory protection circuit

Publications (1)

Publication Number Publication Date
JPH0324654A true JPH0324654A (en) 1991-02-01

Family

ID=15681069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15886489A Pending JPH0324654A (en) 1989-06-21 1989-06-21 Memory protection circuit

Country Status (1)

Country Link
JP (1) JPH0324654A (en)

Similar Documents

Publication Publication Date Title
EP1040404B1 (en) Method and apparatus for coupling signals between two circuits operating in different clock domains
US7159092B2 (en) Method and system for adjusting the timing offset between a clock signal and respective digital signals transmitted along with that clock signal, and memory device and computer system using same
US6912680B1 (en) Memory system with dynamic timing correction
US10482921B2 (en) Error detection code hold pattern synchronization
US20070047374A1 (en) Memory controller and memory system
US20020146025A1 (en) Arbiter device for multi-port memory and semiconductor device
US7418626B2 (en) Information processing apparatus
JPH0324654A (en) Memory protection circuit
US5204964A (en) Method and apparatus for resetting a memory upon power recovery
GR3018644T3 (en) Fault prevention method in memory systems of data-processing installations, in particular telephone exchanges
JPH02252041A (en) Memory protection circuit
US7463538B2 (en) Semiconductor memory device having a precharge control circuit for reducing current during continuous write operation
US5233557A (en) Memory control device
JPS5925317B2 (en) Automatic error correction method
JPH0140432B2 (en)
JPS60690A (en) Write signal generating circuit
JP3696689B2 (en) Memory copy device for information processing system
JP2590239B2 (en) Lock circuit lock acquisition method
JPH05108493A (en) Memory control system
KR20040017733A (en) Synchronous dynamic random access memory controller setting optimum latch timing
JPH01270157A (en) Multiplex memory device
JP2959446B2 (en) Memory monitoring circuit
JPS6175445A (en) Storage control system
JP2978834B2 (en) Storage device
JP2979918B2 (en) Interrupt detection circuit