JPH0340036A - Memory protecting circuit - Google Patents
Memory protecting circuitInfo
- Publication number
- JPH0340036A JPH0340036A JP1174555A JP17455589A JPH0340036A JP H0340036 A JPH0340036 A JP H0340036A JP 1174555 A JP1174555 A JP 1174555A JP 17455589 A JP17455589 A JP 17455589A JP H0340036 A JPH0340036 A JP H0340036A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- cpu
- circuit
- data
- signal
- 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
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Hardware Redundancy (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、CPUの動作に一時的なエラーが発生した
場合においても、誤ったデータをメモリに書き込むこと
を防止するメモリ保護回路に関するものである。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a memory protection circuit that prevents erroneous data from being written to memory even when a temporary error occurs in the operation of a CPU. be.
第3図は、従来のメモリ保護回路を示す図であり、
(1a)は主系のc P U 、 (1b)は従系の
CPU 。FIG. 3 is a diagram showing a conventional memory protection circuit,
(1a) is the CPU of the main system, and (1b) is the CPU of the slave system.
(2)は、CPU(1a)とCP U (1b)をクロ
ック同期で動作させる同期制御回路、 (3a)(3
b)はCPU(1a)(1b)から出力されるアドレス
、 (4a)(4b)はCP U (1a)(1b
)から出力されるデータ、(5)はcpU (1a)か
ら出力されるメモリへのライト信号、(6)は書き込み
可能なメモリ、(7)はアドレス(3a)と(3b)及
びデータ(4a)と(4b)の値をライト信号(5)の
タイミングで比較する比較回路、(8)は比較回路(7
)の結果を示すエラー信号、(9)はエラー信号(8)
を検出する故障検出回路、aIはCPU停止信号、aD
はアドレスデコーダ、α2はメモリ(6)の何れかを選
択するチップセレクト信号である。(2) is a synchronous control circuit that operates CPU (1a) and CPU (1b) in clock synchronization; (3a) (3
b) is the address output from CPU (1a) (1b), (4a) (4b) is the address output from CPU (1a) (1b)
), (5) is a write signal to the memory output from cpu (1a), (6) is a writable memory, (7) is the address (3a) and (3b) and data (4a). ) and (4b) at the timing of the write signal (5), (8) is the comparison circuit (7).
), (9) is the error signal (8)
A failure detection circuit that detects , aI is a CPU stop signal, aD
is an address decoder, and α2 is a chip select signal for selecting one of the memories (6).
第4図は、第3図の主要信号の動作タイミングを委す図
である。FIG. 4 is a diagram showing the operation timing of the main signals in FIG. 3.
次に動作について説明する。Next, the operation will be explained.
CP U (Ia)とCP U (1b)は同期制御回
路(2)から出力されるクロック等の制御信号に同期し
た形で並列処理を行っている。The CPU (Ia) and the CPU (1b) perform parallel processing in synchronization with control signals such as clocks output from the synchronous control circuit (2).
メモリ(6)へのデータ書き込み処理が発生すると。When data writing processing to memory (6) occurs.
CP U (1a)(1b)は、それぞれ第4図に示す
タイミングでアドレス (3a)(3b) 、データ(
4g)(4b) 、 ライト信号(5)及びチップセレ
クト信号αaを出力する。The CPUs (1a) and (1b) respectively access addresses (3a) and (3b) and data (
4g) (4b) Outputs the write signal (5) and chip select signal αa.
アドレス(3a)と(3b)、データ(4a)と(4b
)は。Addresses (3a) and (3b), data (4a) and (4b)
)teeth.
T1 の時間幅で比較回路(7)によって同一値か否か
を比較され、その結果はto及びtlのタイミングでエ
ラー信号(8)として出力される。第4図のエラー信号
(8)は、 10 の時、エラーの発生がなく。A comparator circuit (7) compares the values to see if they are the same in a time width of T1, and the result is output as an error signal (8) at timings to and tl. When the error signal (8) in Fig. 4 is 10, no error occurs.
tl の時エラーを発生した状況を示している。This shows a situation where an error occurred when tl.
エラー信号(8)がエラーなし、すなわちto の時は
、メモリ(6)にデータ(4a)がライト信号(5)に
よって書き込まれ処理は続行される。エラー信号(8)
がエラーあう、すなわちtl の時は、メモリ(6)に
データ(4a)がライト信号(5)によって書き込まれ
ると同時に故障検出回路(9)は、CPU停止信号01
を発生する。同期制御回路(2)はCP U (1a)
(1b)を直ちに停止させるように動作する。When the error signal (8) indicates no error, that is, to, the data (4a) is written to the memory (6) by the write signal (5) and processing continues. Error signal (8)
When there is an error, that is, when tl, the data (4a) is written to the memory (6) by the write signal (5), and at the same time the failure detection circuit (9) outputs the CPU stop signal 01.
occurs. Synchronous control circuit (2) is CPU (1a)
(1b) immediately stops.
従来のメモリ保護回路は以上のように構成されていたの
で、CPU(18)が処理を誤ったためにエラー信号(
8)がエラーを発生した場合、CPU停止信号αIKよ
ってCP U (ia)(1b)の処理は停止されるも
のの、既にメモリ(6)には誤ったデータ(4a)が書
き込まれてし1っているという課題があった。Since the conventional memory protection circuit was configured as described above, the error signal (
8), when an error occurs, the CPU (ia) (1b) processing is stopped by the CPU stop signal αIK, but the incorrect data (4a) has already been written to the memory (6). There was the issue of
この発明は、上記のような課題を解消するためになされ
たもので、主系のCP U (1a)にエラーが発生し
た場合でも、メモリ(6)に誤ったデータ(4a)を書
き込まずにCP U (Ia)(1b)の処理を停止で
きることを目的とする。This invention was made in order to solve the above-mentioned problem, and even if an error occurs in the main CPU (1a), it can be done without writing incorrect data (4a) to the memory (6). The purpose is to be able to stop the processing of CPU (Ia) (1b).
この発明に係るメモリ保護回路は、主系のcpU (1
a)と従系のCP U (1b)を並列処理させ、メモ
リ(6)へデータ書き込み時に両系からのアドレス(3
a)と(3b)及びデータ(4a)と(4b)の各位を
比較する比較回路(7)とアドレス(3&)に基づいて
何れのメモリ(6)をアクセスするかを決定するアドレ
スデータ及びメモリへのライト信号(5)の発生を制御
するゲート回路を構成し、もし比較回路でCPU(1a
)とCP U (1b)の出力情報に不一致を検出した
場合は、ゲート回路によってメモリへのライト信号(5
)の出力を禁止するようにしたものである。The memory protection circuit according to the present invention has a main system cpU (1
a) and the slave CPU (1b) are processed in parallel, and when writing data to the memory (6), the address (3) from both systems is processed in parallel.
A comparison circuit (7) that compares each part of a) and (3b) and data (4a) and (4b), and address data and memory that determines which memory (6) to access based on the address (3&). A gate circuit is configured to control the generation of the write signal (5) to the CPU (1a) in the comparison circuit.
) and CPU (1b), the gate circuit sends a write signal (5) to the memory.
) is prohibited from being output.
この発明におけるメモリ保護回路はCP U (1a)
から出力されるメモリへのライト信号(5)の出力を開
閉するゲート回路を構成したことによってエラーが発生
した場合でも、誤ったデータ(4a)をメモリ(6)に
書き込むことを防止できる。The memory protection circuit in this invention is CPU (1a)
Even if an error occurs by configuring a gate circuit that opens and closes the output of the write signal (5) to the memory, it is possible to prevent erroneous data (4a) from being written to the memory (6).
以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.
第1図にkいて、(13Ifi比較回路(7)からエラ
ー信号(8)が出力された場合、ライト信号(5)のメ
モリ(6)への供給を停止するゲート回路、 (141
はゲート回路も3の制御後のライト信号である。ライト
信号+141が最終的にメモリ(6)に供給され、この
時点でデータ(4a)がチップセレクト信号0zによっ
てアクセスされたメモリ(6)に書き込まれる。In FIG. 1, (13) a gate circuit that stops supplying the write signal (5) to the memory (6) when the error signal (8) is output from the Ifi comparison circuit (7), (141
is the write signal after the control of gate circuit 3. Write signal +141 is finally supplied to memory (6), at which point data (4a) is written to memory (6) accessed by chip select signal 0z.
第2図は、主要な信号のタイミングチャートを示す。FIG. 2 shows a timing chart of the main signals.
次に動作についで説明する。Next, the operation will be explained.
CP U (1a)及びCP U (1b)から出力さ
れるアドレス(50と(sb) 、 データ(4&)
と(4b)及びライト信号(5)の動作は従来例と同様
である。Addresses (50 and (sb), data (4&) output from CPU (1a) and CPU (1b)
The operations of (4b) and write signal (5) are the same as in the conventional example.
この発明では、比較回路(7)は、同期制御回路(2)
によって同期がとられ第2図に示す1(、とtl の
タイミングでアドレス(60と(sb)、データ(4a
)と(4b)の比較を行う。In this invention, the comparison circuit (7) is connected to the synchronous control circuit (2).
The address (60 and (sb)) and the data (4a
) and (4b).
第2図でto時点は、比較によるエラーが生じなかった
例であり、エラー信号(8)は発生せずにライト信号(
5)は、そのitゲート回路a31を通してライト信号
α瘤としてメモリ(6)に供給される。tl 時点は、
比較によるエラーが生じた例であり、エラ一信号(8)
が発生してゲート回路α3が閉じられ、ライト信号α4
が禁止されたことを示す。In FIG. 2, the time "to" is an example in which no error occurs due to comparison, and the error signal (8) is not generated and the write signal (
5) is supplied to the memory (6) as a write signal α through its IT gate circuit a31. tl time is
This is an example where an error occurs due to comparison, and the error signal (8)
occurs, gate circuit α3 is closed, and write signal α4
is prohibited.
上記の方法によって、CPU(1a)が誤った処理を実
行した場合でもメモリ(6)への誤ったデータ(4a)
を書き込むことを防止できる。By using the above method, even if the CPU (1a) executes an incorrect process, incorrect data (4a) is stored in the memory (6).
can be prevented from being written.
なお、エラー信号(8)の発生と同時に故障検出回路(
9)が動作し、同期制御回路(2)の指示によってCP
U (1a)及び(1b)の処理は停止する。Note that the failure detection circuit (
9) operates, and the CP
The processing of U (1a) and (1b) is stopped.
なお、上記実施例では、CPU(1a) からメモリ(
6)にデータ(42L) t−書き込む時の例について
示したが、メモリ(6)への書き込みでなく、外部の出
力回路等に応用しても同様の効果を奏する。Note that in the above embodiment, the CPU (1a) is connected to the memory (
6) shows an example of writing data (42L) t-, but the same effect can be achieved even when applied to an external output circuit, etc., instead of writing to the memory (6).
以上のように、この発明によれば、メモリ(6)へのラ
イト信号(5)発生の前段階でCP U (1a)とC
PU(1b)からの出力情報を比較し、もしエラーが発
生した場合は、メモリ(6)へのライト信号0を無効と
してしまうゲート回路0金構成したことによりCPU
(1a)にエラーが発生した場合においても、メモリ(
6)へ誤ったデータ(4a)を書き込むことを防止でき
る。As described above, according to the present invention, the CPU (1a) and C
The output information from the PU (1b) is compared, and if an error occurs, the gate circuit that disables the write signal 0 to the memory (6) is configured.
Even if an error occurs in (1a), the memory (
Writing of incorrect data (4a) to 6) can be prevented.
第1図及び第2図は、この発明の一実施例を示す図、第
3図及び第4図は従来の例を示す図である。
(1a)(ib)はCPU、+21は同期制御回路、
(3a)(3b)はアドレX、 (4a)(4b)
はデータ、 (51(141はライト信号、(6)はメ
モリ、(7)は比較回路、(8)はエラー信号、(9)
は故障検出回路、α1)Vi、CPU停止信号。
卸はアドレスデコーダ、a3はチップセレクト信号。
a3はゲート回路。
なお1図中同一符号は同一、又は相当部分を示す。1 and 2 are diagrams showing an embodiment of the present invention, and FIGS. 3 and 4 are diagrams showing a conventional example. (1a) (ib) is the CPU, +21 is the synchronous control circuit,
(3a) (3b) is address X, (4a) (4b)
is data, (51 (141 is a write signal, (6) is a memory, (7) is a comparison circuit, (8) is an error signal, (9)
is a failure detection circuit, α1)Vi is a CPU stop signal. The wholesaler is the address decoder, and the a3 is the chip select signal. a3 is a gate circuit. Note that the same reference numerals in Figure 1 indicate the same or equivalent parts.
Claims (1)
U動作を同期化する同期制御回路、上記主系及び従系C
PUから各々出力されるアドレス及びデータ値を比較す
る比較回路、上記主系CPUのアドレスに基づいてアク
セスするメモリのチップセレクト信号を発生するアドレ
スデコーダ、上記比較回路の出力がエラーを発生した時
にメモリへのライト信号を禁止するゲート回路、上記比
較回路のエラー信号を検出する故障検出回路より構成さ
れ、上記主系及び従系のCPUが同一のアドレス及びデ
ータ値を出力した場合は、この値をメモリに書き込み、
もし同一値でなかつた場合は上記比較回路のエラー信号
によつてメモリへのライト信号を禁止し、メモリへ誤つ
たデータの書き込みを防止できることを特徴とするメモ
リ保護回路。Main system CPU, slave system CPU, above-mentioned main system and slave system CP
A synchronous control circuit that synchronizes U operations, the above-mentioned main system and slave system C
A comparison circuit that compares addresses and data values respectively output from the PU, an address decoder that generates a chip select signal for the memory to be accessed based on the address of the main CPU, and a memory It consists of a gate circuit that prohibits write signals to the memory, and a failure detection circuit that detects error signals from the comparison circuit.If the main and slave CPUs output the same address and data value, this value is write to memory,
A memory protection circuit characterized in that if the values are not the same, a write signal to the memory is inhibited by an error signal of the comparison circuit, thereby preventing writing of erroneous data to the memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1174555A JPH0340036A (en) | 1989-07-06 | 1989-07-06 | Memory protecting circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1174555A JPH0340036A (en) | 1989-07-06 | 1989-07-06 | Memory protecting circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0340036A true JPH0340036A (en) | 1991-02-20 |
Family
ID=15980607
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1174555A Pending JPH0340036A (en) | 1989-07-06 | 1989-07-06 | Memory protecting circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0340036A (en) |
-
1989
- 1989-07-06 JP JP1174555A patent/JPH0340036A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5021950A (en) | Multiprocessor system with standby function | |
| EP1040404B1 (en) | Method and apparatus for coupling signals between two circuits operating in different clock domains | |
| US4694426A (en) | Asynchronous FIFO status circuit | |
| EP0217937B1 (en) | Memory control circuit permitting microcomputer system to utilize static and dynamic rams | |
| JPH08124380A (en) | Semiconductor memory and semiconductor memory access method | |
| JPH0340036A (en) | Memory protecting circuit | |
| US20040264291A1 (en) | Data pass control device for masking write ringing in DDR SDRAM and method thereof | |
| US20060168385A1 (en) | Interrupt controller for a microprocessor | |
| GR3018644T3 (en) | Fault prevention method in memory systems of data-processing installations, in particular telephone exchanges | |
| JPH02252041A (en) | Memory protection circuit | |
| US5233557A (en) | Memory control device | |
| JPH0324654A (en) | Memory protection circuit | |
| JP2959446B2 (en) | Memory monitoring circuit | |
| JPS5925317B2 (en) | Automatic error correction method | |
| JPH0140432B2 (en) | ||
| JPS5823680B2 (en) | Storage device control method | |
| JPS59229662A (en) | Common memory control circuit | |
| JP2979918B2 (en) | Interrupt detection circuit | |
| JP2809752B2 (en) | Memory access circuit | |
| JPS60690A (en) | Write signal generation circuit | |
| SU1513525A1 (en) | Device for monitoring storage | |
| JPS63208958A (en) | Memory write/read protecting device | |
| JPS62184554A (en) | Memory protection circuit | |
| JPH0254582B2 (en) | ||
| JPH01258515A (en) | frame synchronization circuit |