JPH0256655A - Detecting system for error of memory - Google Patents

Detecting system for error of memory

Info

Publication number
JPH0256655A
JPH0256655A JP63209051A JP20905188A JPH0256655A JP H0256655 A JPH0256655 A JP H0256655A JP 63209051 A JP63209051 A JP 63209051A JP 20905188 A JP20905188 A JP 20905188A JP H0256655 A JPH0256655 A JP H0256655A
Authority
JP
Japan
Prior art keywords
error detection
cpu
memory
detection processing
rom
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
JP63209051A
Other languages
Japanese (ja)
Inventor
Fuji Kanemasa
金政 ふじ
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 JP63209051A priority Critical patent/JPH0256655A/en
Publication of JPH0256655A publication Critical patent/JPH0256655A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To constitute the title system so that a scale of a hardware is not increased by executing a memory error detection processing in the idle time of a CPU and reading out data written in a ROM by the CPU, executing the error detection processing, and informing its result to the outside of a microprocessor system through an I/O port. CONSTITUTION:The title system is provided with a CPU 1 and an I/O port 4. In a ROM 2, data for controlling an error and a program are stored, and the CPU 1 reads out the contents of the ROM 2 and executes an error detection processing, and the I/P port 4 informs the result of the error detection processing to the outside. The CPU 1 derives a parity of every byte in a program area, collates it with a parity bit in a an error control use data store area and detects abnormality of memory. In such a way, by executing a memory error detection processing in an idle time of the CPU 1, an error can be detected surely by the hardware of a small scale.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はマイクロプロセサシステムに関シ、特にそのメ
モリ誤り検出方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a microprocessor system, and particularly to a memory error detection method thereof.

(従来の技術) 従来、マイクロプロセサシステムにおけるメモリの誤り
検出方式は、第5図に示すようなフローに従って実行さ
れていた。ここで、メモリマツプは第6図に示すように
構成されていた。
(Prior Art) Conventionally, a memory error detection method in a microprocessor system has been executed according to a flow as shown in FIG. Here, the memory map was constructed as shown in FIG.

第5図および第6図において、メモリ誤り検出を行なう
場合には初期処理の一機能としてROMの垂直パリティ
チエツクまたはCRCチエツクを実現し、リアルタイム
でのROMの水平パリティチエツクはハードウェアによ
って実現していた。
In Figures 5 and 6, when performing memory error detection, a ROM vertical parity check or CRC check is implemented as a function of initial processing, and a ROM horizontal parity check in real time is implemented by hardware. Ta.

ココで、ROMのCRCチエツクまたは垂直パリティを
検出しているシステムにおいては、最上位アドレスにC
RCまたは垂直パリティが書込まれていた。また、メモ
リマツプ上にもシステムで使用されていない領域が存在
する。
In a system that detects the CRC check or vertical parity of the ROM here, the C
RC or vertical parity was written. Furthermore, there are areas on the memory map that are not used by the system.

(発明が解決しようとする課題) 上述した従来のメモリの誤り検出方式は、初期処理のみ
でメモリの誤り検出処理を実行しているので、運用中に
メモリが破壊した場合には誤りを検出できないという欠
点がある。
(Problem to be Solved by the Invention) The conventional memory error detection method described above executes memory error detection processing only during initial processing, so it cannot detect errors if the memory is destroyed during operation. There is a drawback.

また、メモリの誤り検出をハードウェアで実現する場合
には特別の検出回路が必要となっているので、ハードウ
ェア規模が大きいという欠点がある。
Furthermore, when memory error detection is implemented using hardware, a special detection circuit is required, so there is a drawback that the hardware scale is large.

本発明の目的は、CPUの空き時間にメモリ誤り検出処
理を実行することによ妙上記欠点を除去し、小規模のハ
ードウェアで確実に誤りを検出できるように構成したメ
モリ誤り検出方式を提供するととくある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a memory error detection method that eliminates the above drawbacks by executing memory error detection processing during CPU idle time, and is configured to reliably detect errors with small-scale hardware. Then there is a certain thing.

(探題を解決するための手段) 本発明によるメモリの誤り検出方式は、ROMと、CP
Uと、I10ポートとを具備して構成したものである。
(Means for solving the problem) The memory error detection method according to the present invention is applicable to ROM and CP.
This configuration includes a port U and an I10 port.

ROMは、誤9制御用データおよびプログラムを格納す
るためのものである。
The ROM is for storing error 9 control data and programs.

CPUは、ROMの内容を読出して誤り検出処理を実行
する丸めのものである。
The CPU is a round CPU that reads the contents of the ROM and performs error detection processing.

I/Oポートは、誤り検出処理の結果を外部へ通知する
ためのものである。
The I/O port is for notifying the result of error detection processing to the outside.

(実施例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.

第1図は、本発明によるメモリの誤り検出方式の一実施
例を示すブロック図である。第1図におhて、1はCP
U、2はROM、3はRAM、 4はI10ポートであ
る。
FIG. 1 is a block diagram showing an embodiment of a memory error detection method according to the present invention. In Figure 1 h, 1 is CP
U, 2 is ROM, 3 is RAM, and 4 is I10 port.

ROM2のメモリマツプは、第2図に示すように構成さ
れている。
The memory map of ROM2 is structured as shown in FIG.

CPUIは、第8図のフローチャートに従ってマイクロ
フードにより処理を実行する。
The CPUI executes processing using the micro hood according to the flowchart shown in FIG.

@2図の誤り制御用データ格納領域には、プログラムエ
リアの水平パリティピットが1ビツトずつ記憶されてい
る。
In the error control data storage area shown in Figure 2, the horizontal parity pits of the program area are stored one bit at a time.

第8図のメモリ誤り検出処理において、CPU1はプロ
グラムエリアへ各バイトごとのパリティを求め、誤り制
御用データ格納領域におけるパリティピットと照合して
メモリの異常を検出する。
In the memory error detection process shown in FIG. 8, the CPU 1 obtains the parity for each byte in the program area, and compares it with the parity pit in the error control data storage area to detect an abnormality in the memory.

第4図は、メモリ誤り検出処理の詳細を示すフローチャ
ートである。メモリの誤り検出は、第4図のフローチャ
ートに従って実行される。
FIG. 4 is a flowchart showing details of memory error detection processing. Memory error detection is performed according to the flowchart in FIG.

(発明の効果) 以上説明したように本発明は、CPUの空き時間にメそ
り誤り検出処理を実行することにより、CPUによりR
OMに書込まれているデータを読出し、誤り検出処理を
実行し、誤り検出処理の結果をI/Oポートを介してマ
イクロプロセサシステムの外部へ通知することかできる
ので、ハードウェア規模を増大することがないという効
果がある。
(Effects of the Invention) As explained above, the present invention enables the CPU to execute error detection processing during idle time of the CPU.
It is possible to read the data written in the OM, execute error detection processing, and notify the result of the error detection processing to the outside of the microprocessor system via the I/O port, increasing the hardware scale. It has the effect of never happening.

また、リアルタイムでメモリの誤りを検出することが可
能となるため、システムの信幀性、を向上させゐことが
できるという効果があふ。
Furthermore, since errors in memory can be detected in real time, the reliability of the system can be improved.

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

第1図は、本発明によるメモリの誤り検出方式の一実施
例を示すブロック図である。 ta2図は、第1図のROMのメモリマツプ図である。 第8図は、第1図のCPUの処理を示すフローチャート
である。 第4図は、第1図のメモリ誤り検出処理の詳細を示すフ
ローチャートである。 第5図は、従来技術によるメモリ誤り検出処理の一例を
示すフローチャートである。 w46図は、従来のシステムにおけ為ROMのメモリマ
ツプ図である。 1・・・CPU 2・・・ROM 3 ・ ・ ・ RAM 4・・・I10ポート
FIG. 1 is a block diagram showing an embodiment of a memory error detection method according to the present invention. Figure ta2 is a memory map diagram of the ROM in Figure 1. FIG. 8 is a flowchart showing the processing of the CPU in FIG. FIG. 4 is a flowchart showing details of the memory error detection process of FIG. 1. FIG. 5 is a flowchart showing an example of memory error detection processing according to the prior art. Figure w46 is a memory map diagram of the ROM in the conventional system. 1...CPU 2...ROM 3...RAM 4...I10 port

Claims (1)

【特許請求の範囲】[Claims] 誤り制御用データおよびプログラムを格納するためのR
OMと、前記ROMの内容を読出して誤り検出処理を実
行するためのCPUと、前記誤り検出処理の結果を外部
へ通知するためのI/Oポートとを具備して構成したこ
とを特徴とするメモリの誤り検出方式。
R for storing error control data and programs
The device is characterized by being configured to include an OM, a CPU for reading the contents of the ROM and executing error detection processing, and an I/O port for notifying the result of the error detection processing to the outside. Memory error detection method.
JP63209051A 1988-08-23 1988-08-23 Detecting system for error of memory Pending JPH0256655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63209051A JPH0256655A (en) 1988-08-23 1988-08-23 Detecting system for error of memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63209051A JPH0256655A (en) 1988-08-23 1988-08-23 Detecting system for error of memory

Publications (1)

Publication Number Publication Date
JPH0256655A true JPH0256655A (en) 1990-02-26

Family

ID=16566440

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63209051A Pending JPH0256655A (en) 1988-08-23 1988-08-23 Detecting system for error of memory

Country Status (1)

Country Link
JP (1) JPH0256655A (en)

Similar Documents

Publication Publication Date Title
JPH02156357A (en) Program destruction preventing method
JPH04241642A (en) Runaway detecting system for microcomputer
JPS609301B2 (en) Memory content destruction inspection method during power outage
JPS59148954A (en) Patrolling system of control storage
JP2978658B2 (en) Program development support device
JP2870202B2 (en) Method and apparatus for mutual monitoring between processors
JP3211285B2 (en) Production equipment
JP2635777B2 (en) Programmable controller
JPH02171939A (en) Program error detection method
JPH03119441A (en) Detection system for abnormality of account timer
JP2002215336A5 (en)
JP3019346B2 (en) Data processing device
JPH0343836A (en) Vectored interruption control system
JPH05274223A (en) Cache memory
JPS63285656A (en) Method for detecting memory abnormality
JPH0665941U (en) Program operating device
JPS63228232A (en) Abnormality of program detection system
JPS63178357A (en) System starting-up method for computer system
JPH10207781A (en) Data writing / reading method for nonvolatile memory and memory control device
JPH0480860A (en) Program loading system
JPS61112251A (en) Runaway detecting system
JPS61208136A (en) Retrial processing system
JPH01147728A (en) Parity rom preparation supporting system
JPH04124735A (en) System starting system
JPH0635757A (en) CPU abnormality detection device