JPH0332822B2 - - Google Patents
Info
- Publication number
- JPH0332822B2 JPH0332822B2 JP58190368A JP19036883A JPH0332822B2 JP H0332822 B2 JPH0332822 B2 JP H0332822B2 JP 58190368 A JP58190368 A JP 58190368A JP 19036883 A JP19036883 A JP 19036883A JP H0332822 B2 JPH0332822 B2 JP H0332822B2
- Authority
- JP
- Japan
- Prior art keywords
- protect
- circuit
- memory
- error
- 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.)
- Expired - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/14—Protection against unauthorised use of memory or access to memory
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、マイクロコンピユータシステムに関
し、更に詳しくはその故障検知技術に係るもので
ある。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a microcomputer system, and more particularly to a failure detection technique thereof.
従来技術とその問題点
マイクロコンピユータシステムでは、ランダ
ム・アクセス・メモリ(以下「RAM」と称す
る)に記憶された情報の内、重要な情報は書換え
られないように、メモリ・プロテクト回路を設け
ることがある。Prior art and its problems In microcomputer systems, a memory protection circuit is often provided to prevent important information stored in random access memory (hereinafter referred to as "RAM") from being rewritten. be.
しかしながら、メモリ・プロテクト回路を設け
ただけでは、このメモリ・プロテクト回路が故障
した場合、システムはそれを検出することができ
ない。従つて、メモリ・プロテクト回路が故障し
た後にプロテクトエラーが発生した場合には、そ
の異常を検出することができず、システムはメモ
リ・プロテクト回路が正常であると誤認して動作
し、二重故障へと遷移してしまうと言う問題があ
つた。 However, simply by providing a memory protect circuit, if the memory protect circuit fails, the system cannot detect it. Therefore, if a protect error occurs after the memory protect circuit has failed, the abnormality cannot be detected, and the system mistakenly assumes that the memory protect circuit is normal and operates, resulting in a double failure. There was a problem with the transition to .
本発明の目的
本発明は上述する従来からの問題点を解決し、
メモリ・プロテクト回路の機能を定期的に検査し
て、プロテクトエラーの見逃しによる誤動作を防
止し、二重故障への遷移を阻止し得るようにした
マイクロコンピユータシステムを提供することを
目的とする。Purpose of the present invention The present invention solves the above-mentioned conventional problems,
It is an object of the present invention to provide a microcomputer system in which the function of a memory protection circuit is periodically inspected to prevent malfunction due to overlooked protection errors and to prevent transition to a double failure.
本発明の構成
上記目的を達成するため、本発明は、メモリの
記憶情報の書換えを阻止するメモリ・プロテクト
回路を有するマイクロコンピユータシステムにお
いて、予め、プロテクトエラーとなるデータを設
定しておき、定期的にプロテクトエラーを書込
み、このプロテクトエラーが検出されることを確
認することにより、前記メモリ・プロテクト回路
の正常、異常を監視することを特徴とする。Structure of the Present Invention In order to achieve the above object, the present invention provides a microcomputer system having a memory protect circuit that prevents rewriting of information stored in memory, in which data that will cause a protect error is set in advance, and data that causes a protect error is periodically set. The memory protection circuit is characterized in that the normality or abnormality of the memory protection circuit is monitored by writing a protection error to the memory protection circuit and confirming that the protection error is detected.
実施例
第1図は本発明に係るマイクロコンピユータシ
ステムのブロツク図である。図において、1はマ
イクロコンピユータ(以下「CPU」と称する)、
2はRAM、3はリード・オンリー・メモリ(以
下「ROM」と称する)である。前記RAM2は
アドレスを分割していくつかのエリアに分け、各
エリア単位毎にプロテクトの設定/解除を可能に
してある。Embodiment FIG. 1 is a block diagram of a microcomputer system according to the present invention. In the figure, 1 is a microcomputer (hereinafter referred to as "CPU");
2 is a RAM, and 3 is a read-only memory (hereinafter referred to as "ROM"). The RAM 2 is divided into several areas by dividing addresses, and protection can be set/cancelled for each area.
4はRAM2のプロテクト・エリアに記憶され
ている情報の書換えを阻止するメモリ・プロテク
ト回路である。該メモリ・プロテクト回路4はプ
ロテクト指示用ラツチ回路40、プロテクトエリ
ア選択回路41、アンドゲート42及び43、イ
ンバータ44等を備えて構成されている。前記プ
ロテクト指示用ラツチ回路40はRAM2の各エ
リア単位のプロテクトの設定/解除を記憶してお
く回路であり、CPU1からのデータを受けるこ
とによりその内容を換えることができる。また前
記プロテクトエリア選択回路41はプロテクト指
示用ラツチ回路40より与えられるプロテクト指
示信号と、CPU1から与えられるアドレス信号
とより、プロテクトエリアを選択し、そのエリア
が書込み可能であれば論理「1」を出力する。 Reference numeral 4 denotes a memory protect circuit that prevents the information stored in the protected area of the RAM 2 from being rewritten. The memory protect circuit 4 includes a protect instruction latch circuit 40, a protect area selection circuit 41, AND gates 42 and 43, an inverter 44, and the like. The protection instruction latch circuit 40 is a circuit that stores protection setting/cancellation for each area of the RAM 2, and its contents can be changed by receiving data from the CPU 1. Further, the protect area selection circuit 41 selects a protect area based on the protect instruction signal given from the protect instruction latch circuit 40 and the address signal given from the CPU 1, and if the area is writable, a logic "1" is set. Output.
5はトランス結合型交流増幅回路、6は整流回
路、7は継電器、71はその接点、8は電源であ
る。9はアドレスバス、10はデータバス、11
は割込み信号線である。 5 is a transformer-coupled AC amplifier circuit, 6 is a rectifier circuit, 7 is a relay, 71 is a contact thereof, and 8 is a power source. 9 is an address bus, 10 is a data bus, 11
is an interrupt signal line.
次に第2図a及びbのフローチヤートを参照し
て動作を説明する。まず、ソフトウエアに従つ
て、通常のプロセス処理とメモリ・プロテクト回
路4の故障チエツクとが一定の時間間隔で定期的
に交互に行なわれる。そして、通常のプロセス処
理が終了すると、第3図aに示す如く、ソフトウ
エアがメモリ、プロテクト回路4のチエツク中と
なる。CPU1には、予め、プロテクトエラーと
なるデータが設定されており、ソフトウエアがメ
モリ・プロテクト回路4のチエツク中になると、
このデータは、データバス10を通して、定期的
にプロテクト指示用ラツチ回路40に書込まれ
る。プロテクトエリア選択回路41ではCPU1
からアドレスバス9を通して与えられるアドレス
信号と、プロテクト指示用ラツチ回路40より与
えられたプロテクト指示信号とより、RAM2の
プロテクトエリアを選択する。そして、選択され
たエリアが書込み可能であれば、信号線12に論
理「1」が出力され、アンドゲート42及びイン
バータ44を通してアンドゲート43に入力され
る。 Next, the operation will be explained with reference to the flowcharts of FIGS. 2a and 2b. First, according to the software, normal process processing and failure checking of the memory protect circuit 4 are periodically and alternately performed at fixed time intervals. When the normal processing is completed, the software is checking the memory and protection circuit 4, as shown in FIG. 3a. Data that will cause a protect error is set in advance in the CPU 1, and when the software is checking the memory protect circuit 4,
This data is periodically written to the protect instruction latch circuit 40 through the data bus 10. In the protect area selection circuit 41, CPU1
A protect area of the RAM 2 is selected based on an address signal applied from the RAM 2 through the address bus 9 and a protect instruction signal applied from the protect instruction latch circuit 40. If the selected area is writable, a logic "1" is output to the signal line 12 and input to the AND gate 43 through the AND gate 42 and the inverter 44.
一方、RAM2に対するデータの書込みに当つ
て、CPU1から信号線13を通してアンドゲー
ト42に論理「1」のメモリ/書込信号(以下
「M/W信号」と称する)が入力され、前記プロ
テクトエリア選択回路41のチエツクが行なわれ
る。ここで、プロテクトエリア選択回路42で選
択されたエリアが書込み可能であれば、前述した
如く、プロテクトエリア選択回路42から信号線
12に論理「1」の信号が出力されるから、アン
ドゲート42の入力条件が調い、アンドゲート4
2から信号線14を通してRAM2に書込可能を
意味するWE信号が入力される。なお、論理
「1」のM/W信号はアンドゲート43にも入力
されるが、アンドゲート43の前にインバータ4
4が接続されているので、アンドゲート43の出
力は論理「0」である。 On the other hand, when writing data to the RAM 2, a memory/write signal of logic "1" (hereinafter referred to as "M/W signal") is input from the CPU 1 to the AND gate 42 through the signal line 13, and the protected area is selected. A check of circuit 41 is performed. Here, if the area selected by the protect area selection circuit 42 is writable, the logic "1" signal is output from the protect area selection circuit 42 to the signal line 12 as described above, so that the AND gate 42 Input conditions are correct, AND gate 4
A WE signal indicating that data can be written to the RAM 2 is inputted from the RAM 2 through the signal line 14. Note that the M/W signal of logic "1" is also input to the AND gate 43, but before the AND gate 43, the inverter 4
4 is connected, the output of AND gate 43 is logic "0".
ところが書込不可能であると、CPU1から信
号線13を通してアンドゲート42に与えられる
M/W信号が論理「0」となり、アンドゲート4
2側では入力条件が調わないのでWE信号は発生
しないが、アンドゲート43では入力条件が調
い、アンドゲート43の出力側に割込み信号が発
生し、プロテクトエラーが検出される。この割込
み信号は信号線11を通してCPU1に入力され、
第3図bのフローチヤートに示すように、メモ
リ・プロテクト回路チエツク中か否かが判定され
る。メモリ・プロテクト回路チエツク中であるか
否かはソフトウエアによつて判定できる。その結
果が「YES」であるときは、メモリ・プロテク
ト回路チエツク処理を解除し、次のプロセス処理
用ソフトウエアへと移行する。 However, if writing is disabled, the M/W signal applied from the CPU 1 to the AND gate 42 through the signal line 13 becomes logic "0", and the AND gate 4
Since the input condition is not satisfied on the 2 side, the WE signal is not generated, but the input condition is satisfied on the AND gate 43, an interrupt signal is generated on the output side of the AND gate 43, and a protect error is detected. This interrupt signal is input to CPU1 through signal line 11,
As shown in the flowchart of FIG. 3b, it is determined whether or not the memory protect circuit is being checked. Software can determine whether or not the memory protect circuit is being checked. If the result is ``YES'', the memory protect circuit check process is canceled and the process moves to the next process processing software.
一方、前記判定の結果が「NO」であるとき
は、メモリ・プロテクト回路チエツク中でないに
も拘わらず、割込み信号が発生したのであるか
ら、メモリ・プロテクト回路4の異常と判定し、
停止命令を実行させる。 On the other hand, if the result of the above determination is "NO", it is determined that the memory protect circuit 4 is abnormal because the interrupt signal was generated even though the memory protect circuit was not being checked.
Execute the stop command.
上述の如く、メモリ・プロテクト回路4が正常
であれば、通常のプロセス処理とメモリ・プロテ
クト回路チエツク処理とが一定の時間間隔で定期
的に行なわれ、メモリ・プロテクト回路チエツク
処理の度毎に割込み信号が発生する。従つて、メ
モリ・プロテクト回路4の出力はパルス列とな
り、トランス結合型交流増幅回路5で増幅された
交流信号が整流回路6に入力され、整流回路6か
ら整流出力が得られるから、継電器7が扛上し、
電源8に直列に挿入接続した接点71が閉じ、
CPU1には接続して電力が供給される。 As mentioned above, if the memory protection circuit 4 is normal, normal process processing and memory protection circuit check processing are performed periodically at fixed time intervals, and an interrupt is generated each time memory protection circuit check processing is performed. A signal is generated. Therefore, the output of the memory protect circuit 4 becomes a pulse train, and the AC signal amplified by the transformer-coupled AC amplifier circuit 5 is input to the rectifier circuit 6, and since a rectified output is obtained from the rectifier circuit 6, the relay 7 is tripped. Up,
The contact 71 inserted and connected in series to the power supply 8 closes,
It is connected to CPU1 and power is supplied to it.
一方、メモリ・プロテクト回路4が故障したた
め、プロテクトエラーが検出できなかつた場合
は、割込み信号が発生せず、メモリ・プロテクト
回路4の出力はパルス列とはならないから、トラ
ンス結合型増幅器5の出力は一定の直流的なレベ
ルになるかまたは出力なしとなる。また、ソフト
ウエアに従つて停止命令が実行された場合もメモ
リ・プロテクト回路4の出力はパルス列とはなら
ない。従つて、これらの場合には、整流回路6か
らは整流出力が得られず、継電器7が落下するか
ら、その接点71が開き、CPU1に対する電源
供給が遮断され、CPU1は異常動作を行なわず
に停止する。 On the other hand, if a protect error cannot be detected because the memory protect circuit 4 has failed, no interrupt signal is generated and the output of the memory protect circuit 4 does not become a pulse train, so the output of the transformer-coupled amplifier 5 is A constant DC level or no output. Further, even when a stop command is executed according to the software, the output of the memory protect circuit 4 does not become a pulse train. Therefore, in these cases, no rectified output is obtained from the rectifier circuit 6 and the relay 7 falls, so its contact 71 opens and the power supply to the CPU 1 is cut off, causing the CPU 1 to continue operating without abnormal operation. Stop.
本発明の効果
以上述べたように、本発明は、メモリの記憶情
報の書換えを阻止するメモリ・プロテクト回路を
有するマイクロコンピユータシステムにおいて、
予め、プロテクトエラーとなるデータを設定して
おき、定期的にプロテクトエラーを書込み、この
プロテクトエラーが検出されることを確認するこ
とにより、前記メモリ・プロテクト回路の正常、
異常を監視することを特徴とするから、メモリ・
プロテクト回路の機能を定期的に検査して、プロ
テクトエラーの見逃しによる誤動作を防止し、二
重故障への遷移を阻止し得るようにしたマイクロ
コンピユータシステムを提供することができる。Effects of the Invention As described above, the present invention provides a microcomputer system having a memory protection circuit that prevents rewriting of information stored in a memory.
By setting data that will cause a protect error in advance, writing a protect error periodically, and confirming that this protect error is detected, the normality of the memory protect circuit can be confirmed.
Since it is characterized by monitoring abnormalities, memory
It is possible to provide a microcomputer system in which the function of the protect circuit is periodically inspected to prevent malfunctions due to missed protection errors and to prevent transition to double failure.
第1図は本発明に係るマイクロコンピユータシ
ステムのブロツク図、第2図a及びbは本発明に
係るマイクロコンピユータシステムのフローチヤ
ートである。
1……マイクロコンピユータ(CPU)、2……
ランダム・アクセス・メモリ(RAM)、4……
メモリ・プロテクト回路、40……プロテクト指
示用ラツチ回路、41……プロテクトエリア選択
回路。
FIG. 1 is a block diagram of a microcomputer system according to the present invention, and FIGS. 2a and 2b are flowcharts of the microcomputer system according to the present invention. 1... Microcomputer (CPU), 2...
Random access memory (RAM), 4...
Memory protect circuit, 40...protect instruction latch circuit, 41...protect area selection circuit.
Claims (1)
リ・プロテクト回路を有するマイクロコンピユー
タシステムにおいて、予め、プロテクトエラーと
なるデータを設定しておき、定期的にプロテクト
エラーを発生させ、このプロテクトエラーが検出
されることを確認することにより、前記メモリ・
プロテクト回路の正常、異常を監視することを特
徴とするマイクロコンピユータシステム。1. In a microcomputer system that has a memory protect circuit that prevents the rewriting of information stored in memory, data that will cause a protect error is set in advance, a protect error is generated periodically, and this protect error is detected. By making sure that the memory
A microcomputer system characterized by monitoring whether a protection circuit is normal or abnormal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58190368A JPS6081664A (en) | 1983-10-12 | 1983-10-12 | Microcomputer system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58190368A JPS6081664A (en) | 1983-10-12 | 1983-10-12 | Microcomputer system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6081664A JPS6081664A (en) | 1985-05-09 |
| JPH0332822B2 true JPH0332822B2 (en) | 1991-05-14 |
Family
ID=16257015
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58190368A Granted JPS6081664A (en) | 1983-10-12 | 1983-10-12 | Microcomputer system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6081664A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| SE528197C2 (en) * | 2005-02-17 | 2006-09-26 | Scania Cv Ab | Intercooler |
-
1983
- 1983-10-12 JP JP58190368A patent/JPS6081664A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6081664A (en) | 1985-05-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6280733A (en) | Information processor | |
| JPH0332822B2 (en) | ||
| JPS6289153A (en) | Storage device | |
| JP3659014B2 (en) | Memory fault diagnosis device | |
| US20030056065A1 (en) | Method and device for memory monitoring, in particular for RAM monitoring | |
| JP3211285B2 (en) | Production equipment | |
| JPS621037A (en) | Access detecting system for memory undefined area | |
| JPS6232544A (en) | Abnormally detecting circuit for information processor | |
| JPS6288047A (en) | Interface controller | |
| JPH0644145A (en) | Memory error saving system | |
| JPS60233743A (en) | Fault detecting circuit of computer system | |
| WO2024247551A1 (en) | Encoder, motor system, recording method, and program | |
| CN105446842B (en) | A kind of ADI DSP code in-service monitoring method | |
| JPH0797327B2 (en) | Failure detection method | |
| JPS5868299A (en) | Detecting circuit for address fault | |
| JPH0230060B2 (en) | ||
| JPS6070600A (en) | Microcomputer system | |
| JPH02105228A (en) | Microprocessor operation confirming system | |
| JPS61141043A (en) | Abnormality detection system in system for making redundant | |
| JPS62256149A (en) | Interface circuit | |
| JPS5839321A (en) | Storage device | |
| JPH03273347A (en) | Microprocessor monitor circuit | |
| JPS61121140A (en) | Detecting system for computer runaway | |
| JPH05297901A (en) | Process control equipment | |
| JPS60238956A (en) | Supervisory device of main storage device |