JPH0226252B2 - - Google Patents

Info

Publication number
JPH0226252B2
JPH0226252B2 JP56180653A JP18065381A JPH0226252B2 JP H0226252 B2 JPH0226252 B2 JP H0226252B2 JP 56180653 A JP56180653 A JP 56180653A JP 18065381 A JP18065381 A JP 18065381A JP H0226252 B2 JPH0226252 B2 JP H0226252B2
Authority
JP
Japan
Prior art keywords
check
memory
rom
microprocessor
contents
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
Application number
JP56180653A
Other languages
Japanese (ja)
Other versions
JPS5883397A (en
Inventor
Naomichi Mizushima
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.)
PFU Ltd
Original Assignee
PFU Ltd
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 PFU Ltd filed Critical PFU Ltd
Priority to JP56180653A priority Critical patent/JPS5883397A/en
Publication of JPS5883397A publication Critical patent/JPS5883397A/en
Publication of JPH0226252B2 publication Critical patent/JPH0226252B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0763Error or fault detection not based on redundancy by bit configuration check, e.g. of formats or tags

Description

【発明の詳細な説明】 本発明はメモリ内容チエツク制御方式、特にメ
モリICを2個以上有する回路において、そのメ
モリ内容のチエツクを正確にかつ低価格にて実現
できるようにしたメモリ内容チエツク制御方式に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a memory content check control method, particularly a memory content check control method that enables checking of memory contents accurately and at low cost in a circuit having two or more memory ICs. It is related to.

従来のメモリ内容をチエツクする方式として
は、例えばパリテイビツト用のメモリを持ち、メ
モリの各アドレスごとにパリテイチエツクを行う
方式がある。
As a conventional method for checking the contents of a memory, for example, there is a method that includes a memory for parity bits and performs a parity check for each address of the memory.

第1図は従来方式の例を示す。図中、1はマイ
クロプロセツサ、2は第1のリード・オンリ・メ
モリ(ROM)、3は第2のROM、4は第3の
ROM、5は第nのROM、6はアドレス・バス、
7はデータ・バス、8はパリテイROM、9はパ
リテイチエツカー、10はフリツプ・フロツプを
表わす。第1のROM2、第2のROM3、…、
第nのROM5は、例えばそれぞれ1バイト8ビ
ツトで2Kバイトの容量をもつメモリICで構成さ
れ、マイクロプロセツサ1の制御プログラム等が
格納される。これらのROM2〜5の各バイト毎
にパリテイ・ビツトを附加する余裕がないことか
ら、当該バイト毎にパリテイROM8の1ビツト
が対応づけられ、ROM2〜5の各バイト毎の内
容に従い、偶数パリテイまたは奇数パリテイとな
るようROM2〜5の内容が決定した段階で予め
パリテイROMの各ビツト値が設定される。メモ
リ内容のチエツクは、各アドレス毎にROM2〜
5の1バイトの内容とそれに対応するパリテイ
ROM8の1ビツトの値とがパリテイチエツカー
9に取り込まれて、パリテイチエツカー9によつ
て行われる。パリテイ・エラーが検出された場合
には、フリツプ・フロツプ10をセツトし、パリ
テイチエツク信号がオンとなるようにする。
FIG. 1 shows an example of a conventional method. In the figure, 1 is a microprocessor, 2 is a first read-only memory (ROM), 3 is a second ROM, and 4 is a third ROM.
ROM, 5 is the nth ROM, 6 is the address bus,
7 represents a data bus, 8 a parity ROM, 9 a parity checker, and 10 a flip-flop. First ROM2, second ROM3,...
The n-th ROM 5 is composed of memory ICs each having a capacity of 2 Kbytes with 8 bits per byte, for example, and stores control programs for the microprocessor 1 and the like. Since there is no room to add a parity bit to each byte of these ROMs 2 to 5, one bit of parity ROM 8 is associated with each byte, and according to the contents of each byte of ROMs 2 to 5, even parity or parity is added. Each bit value of the parity ROM is set in advance at the stage when the contents of the ROMs 2 to 5 are determined to have odd parity. Check the memory contents from ROM2 to each address.
Contents of 1 byte of 5 and its corresponding parity
The 1-bit value of the ROM 8 is taken into the parity checker 9 and executed by the parity checker 9. If a parity error is detected, flip-flop 10 is set so that the parity check signal is turned on.

上記従来の方式によれば、パリテイビツト用の
パリテイROMやその周辺回路が必要となり、コ
ストアツプを余儀なくさせられ、またパリテイ
ROMに書き込むための手間がかかることとな
る。
According to the conventional method described above, a parity ROM for parity bits and its peripheral circuits are required, which inevitably increases costs and also increases the cost of parity bits.
It takes time and effort to write to ROM.

他の従来の方式として、メモリの内容を順に例
えば加算していき、予め設定してあつた値と加算
結果とを比較する方式がある。すなわち、メモリ
の一部に予めチエツクプログラムとチエツクデー
タとを記憶させ、そのチエツクプログラムにより
メモリ内のデータを順次読み出して演算し、その
結果を前記チエツクデータと比較することによつ
てメモリ内容をチエツクする方式である。
Another conventional method is to add up the contents of the memory in order, for example, and compare the addition result with a preset value. That is, a check program and check data are stored in advance in a part of the memory, and the data in the memory is sequentially read and operated by the check program, and the results are compared with the check data to check the contents of the memory. This is a method to do so.

しかし、この方式については、チエツクプログ
ラムの内容が壊れている場合に正しくチエツクす
ることができず、正確さに欠くという欠点があ
る。
However, this method has the disadvantage that it cannot be correctly checked if the contents of the check program are corrupted, and it lacks accuracy.

本発明は上記欠点の解決を図り、正確にかつロ
ーコストにてメモリ内容のチエツクを行う方式を
提供することを目的としている。そのため本発明
のメモリ内容チエツク制御方式は、マイクロプロ
セツサと、該マイクロプロセツサがフエツチして
実行する命令が格納される複数個のメモリとを有
する回路において、上記マイクロプロセツサによ
つて実行されることによりメモリ内容の正常性チ
エツクを行うチエツクプログラムを2個以上の上
記メモリに格納して設け、上記各チエツクプログ
ラムをそれぞれ実行させて、1つのメモリから読
出されたチエツクプログラムによつて他メモリを
チエツクしかつ他のメモリから読出されたチエツ
クプログラムによつて上記1つのメモリをチエツ
クするようにして互いに他の上記メモリのチエツ
クを行うようにしたことを特徴としている。以下
図面を参照しつつ説明する。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned drawbacks and to provide a method for checking memory contents accurately and at low cost. Therefore, the memory content check control method of the present invention is implemented by the microprocessor in a circuit including a microprocessor and a plurality of memories in which instructions fetched and executed by the microprocessor are stored. A check program for checking the normality of the memory contents is provided by storing it in two or more of the above-mentioned memories, and each of the above-mentioned check programs is executed respectively, and the check program read from one memory is used to check the normality of the memory contents. The present invention is characterized in that one memory is checked by a check program read from another memory, and the other memories are mutually checked. This will be explained below with reference to the drawings.

第2図は本発明の一実施例構成、第3図は第2
図図示実施例の動作を説明するためのタイムチヤ
ートを示す。
Figure 2 shows the configuration of one embodiment of the present invention, and Figure 3 shows the configuration of the second embodiment.
A time chart for explaining the operation of the illustrated embodiment is shown.

図中、符号1ないし7は第1図に対応し、11
および12はメモリ内容のチエツクを行うチエツ
クプログラム、13はアドレス・デコーダ、14
はフリツプ・フロツプ、15はセレクタ、16は
MPUリセツト信号線を表わす。
In the figure, numerals 1 to 7 correspond to those in FIG.
12 is a check program for checking the memory contents; 13 is an address decoder; 14 is an address decoder;
is a flip-flop, 15 is a selector, 16 is a
Represents the MPU reset signal line.

第2図において、第1のROM2、第2の
ROM3、…、第nのROM5には、マイクロプ
ロセツサ1の制御プログラム等が格納され、マイ
クロプロセツサ1はこれらをフエツチして実行
し、その内容に従つた制御を行う。特に、第1の
ROM2には、例えば第2のROM3ないし第n
のROM5についてのメモリ内容をチエツクする
ためのチエツクプログラム11が格納され、第2
のROM3には、第1のROM2のメモリ内容を
チエツクするためのチエツクプログラム12が格
納される。チエツクプログラム11およびチエツ
クプログラム12は、共に先に説明した従来例の
チエツクプログラムと同様の内容をもち、例えば
それぞれ数十ステツプ程度の命令からなるもので
ある。従つて、メモリICが例えば2Kバイトの容
量をもつとすると、その中でチエツクプログラム
が占める割合は小さいものである。また、第1の
ROM2および第2のROM3には、チエツクプ
ログラム11またはチエツクプログラム12と共
に、それぞれ他のメモリについてのチエツクデー
タ(図示省略)が格納される。
In Figure 2, the first ROM2, the second
The ROM 3, . . . , the n-th ROM 5 store control programs for the microprocessor 1, and the microprocessor 1 fetches and executes them and performs control according to their contents. In particular, the first
ROM2 includes, for example, second ROM3 to nth ROM3.
A check program 11 for checking the memory contents of the ROM 5 is stored.
A check program 12 for checking the memory contents of the first ROM 2 is stored in the ROM 3 . Both the check program 11 and the check program 12 have the same content as the conventional check program described above, and each consists of instructions of about several tens of steps, for example. Therefore, if a memory IC has a capacity of, for example, 2K bytes, the check program occupies a small proportion of it. Also, the first
The ROM 2 and the second ROM 3 store the check program 11 or the check program 12 as well as check data (not shown) for other memories, respectively.

第2図図示の回路に電源が投入されると、マイ
クロプロセツサ1はリセツト状態(第3図図示T
1の状態)となり、次にリセツトが終了して第3
図図示T2の状態となると、マイクロプロセツサ
1は或る特定アドレス(ベクターアドレス)を指
定して、そのベクターアドレスで指定された番地
のプログラムを実行する。このベクターアドレス
は、例えば最初フリツプ・フロツプ14が“0”
のときに、セレクタ15によつて第1のROM2
のチエツクプログラム11をポイントするように
され、最初に第1のROM2のチエツクプログラ
ム11が動作するようにされる。
When power is applied to the circuit shown in Figure 2, the microprocessor 1 enters the reset state (T shown in Figure 3).
1), then the reset is completed and the 3rd state is reached.
When the state T2 shown in the figure is reached, the microprocessor 1 specifies a certain specific address (vector address) and executes the program at the address specified by the vector address. This vector address is, for example, initially set to "0" by the flip-flop 14.
When , the first ROM2 is selected by the selector 15.
The check program 11 of the first ROM 2 is pointed to, and the check program 11 of the first ROM 2 is operated first.

マイクロプロセツサ1はチエツクプログラム1
1を実行することによつて、第2のROM3ない
し第nのROM5のデータを順次演算していき、
その演算結果と予め演算されて第1のROM2に
格納されている正しい結果を示すチエツクデータ
とを比較する。比較した結果、一致していれば第
2のROM3ないし第nのROM5のメモリ内容
は正しいことになる。もし、値が一致しない場合
には、第2のROM3ないし第nのROM5内に
エラーがあると判断され、エラーを検出すること
となる。
Microprocessor 1 is check program 1
1, the data in the second ROM 3 to the n-th ROM 5 are sequentially calculated,
The calculation result is compared with check data that has been calculated in advance and is stored in the first ROM 2 and indicates a correct result. As a result of the comparison, if they match, it means that the memory contents of the second ROM 3 to n-th ROM 5 are correct. If the values do not match, it is determined that there is an error in the second ROM 3 to n-th ROM 5, and the error is detected.

上記チエツクプログラム11の実行が終了した
ならば、図示省略したリセツト回路が働き、マイ
クロプロセツサ1にリセツト信号線16を介して
リセツト信号が供給され、第3図図示T3の状態
になるようにする。また、このリセツト信号を契
機にフリツプ・フロツプ14の出力が、第3図図
示の如く“0”から“1”になるようにする。リ
セツト終了時に、マイクロプロセツサ1はベクタ
ーアドレスを指し、第3図図示T4の状態となる
が、ベクターアドレスは、フリツプ・フロツプ1
4が“1”となつていることにより、セレクタ1
5によつて、今度は第2のROM3内のチエツク
プログラム12をポイントするようにされ、チエ
ツクプログラム12が起動される。
When the execution of the check program 11 is completed, a reset circuit (not shown) operates, and a reset signal is supplied to the microprocessor 1 via the reset signal line 16, so that the microprocessor 1 enters the state shown in T3 in FIG. . Further, in response to this reset signal, the output of the flip-flop 14 is changed from "0" to "1" as shown in FIG. At the end of the reset, the microprocessor 1 points to the vector address and enters the state T4 shown in FIG.
Since 4 is "1", selector 1
5, the check program 12 in the second ROM 3 is pointed to, and the check program 12 is activated.

チエツクプログラム12が実行されることによ
り、チエツクプログラム11の実行の場合と同
様、第1のROM2のデータが順次演算されて、
演算結果と第2のROM3内のチエツクデータと
が比較され、第1のROM2のメモリ内容の正常
性がチエツクされる。
By executing the check program 12, the data in the first ROM 2 is sequentially calculated as in the case of executing the check program 11.
The calculation result and the check data in the second ROM 3 are compared, and the normality of the memory contents of the first ROM 2 is checked.

以上のように、第1のROM2および第2の
ROM3に格納されたチエツクプログラム自体も
それぞれ他のチエツクプログラムによつてチエツ
クされることとなり、より正確なメモリ内容のチ
エツクが可能となる。
As mentioned above, the first ROM2 and the second ROM2
The check programs stored in the ROM 3 are themselves checked by other check programs, making it possible to check the memory contents more accurately.

なお、本発明の上記実施例においては、リセツ
ト信号によつて実行されるべきチエツクプログラ
ムが切り替わるようにされたが、2以上のチエツ
クプログラムが交互に実行されればよいわけであ
るから、上記の場合に限らず、例えば次のように
してもよい。2度目のリセツトの代わりにマイク
ロプロセツサのインターラプト端子などに信号を
入力し、そのブランチ先のアドレスを他のメモリ
ICにしておく。こうして、そのメモリIC内のチ
エツクプログラムを起動し、もとのベクターアド
レスを持つメモリICの内容をチエツクする。こ
のようにすれば、第2図図示のフリツプ・フロツ
プ14およびセレクタ15を必要としないため、
さらに簡単なハードウエアでメモリ内容のチエツ
クを行うことが可能となる。
In the above embodiment of the present invention, the check program to be executed is switched by the reset signal, but since it is sufficient that two or more check programs are executed alternately, the above-mentioned For example, the following may be used. Instead of a second reset, input a signal to the microprocessor's interrupt pin, etc., and transfer the branch destination address to other memory.
Leave it as IC. In this way, the check program in the memory IC is activated and the contents of the memory IC having the original vector address are checked. In this way, the flip-flop 14 and selector 15 shown in FIG. 2 are not required, so
Furthermore, it becomes possible to check the memory contents with simpler hardware.

以上説明した如く本発明によれば、パリテイビ
ツト用のメモリやその周辺回路を必要とすること
なく、低価格にてメモリ内容チエツク回路を実現
でき、また、たとえ一方のメモリICのチエツク
プログラムが壊われているために正しくチエツク
できなかつたとしても、他のメモリICのチエツ
クプログラムによつて、その壊れたメモリICの
チエツクを行えるので、全メモリの内容チエツク
を正しく行うことが可能となる。
As explained above, according to the present invention, a memory content check circuit can be realized at low cost without requiring memory for parity bits or its peripheral circuits, and even if the check program of one memory IC is corrupted. Even if the damaged memory IC cannot be checked correctly because of the broken memory IC, the damaged memory IC can be checked using the check program for other memory ICs, so it is possible to correctly check the contents of all memories.

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

第1図は従来方式の例、第2図は本発明の一実
施例構成、第3図は第2図図示実施例の動作を説
明するためのタイムチヤートを示す。 1はマイクロプロセツサ、2ないし5は
ROM、6はアドレス・バス、7はデータバス、
8はパリテイROM、9はパリテイチエツカー、
10はフリツプ・フロツプ、11および12はチ
エツクプログラム、13はアドレス・デコーダ、
14はフリツプ・フロツプ、15はセレクタ、1
6はリセツト信号線を表わす。
FIG. 1 shows an example of a conventional system, FIG. 2 shows the configuration of an embodiment of the present invention, and FIG. 3 shows a time chart for explaining the operation of the embodiment shown in FIG. 1 is a microprocessor, 2 to 5 are
ROM, 6 is address bus, 7 is data bus,
8 is parity ROM, 9 is parity checker,
10 is a flip-flop, 11 and 12 are check programs, 13 is an address decoder,
14 is a flip-flop, 15 is a selector, 1
6 represents a reset signal line.

Claims (1)

【特許請求の範囲】[Claims] 1 マイクロプロセツサと、該マイクロプロセツ
サがフエツチして実行する命令が格納される複数
個のメモリとを有する回路において、上記マイク
ロプロセツサによつて実行されることによりメモ
リ内容の正常性チエツクを行うチエツクプログラ
ムを2個以上の上記メモリに格納して設け、上記
各チエツクプログラムをそれぞれ実行させて、1
つのメモリから読出されたチエツクプログラムに
よつて他メモリをチエツクしかつ他のメモリから
読出されたチエツクプログラムによつて上記1つ
のメモリをチエツクするようにして互いに他の上
記メモリのチエツクを行うようにしたことを特徴
とするメモリ内容チエツク制御方式。
1. In a circuit having a microprocessor and a plurality of memories in which instructions fetched and executed by the microprocessor are stored, the normality check of the memory contents is executed by the microprocessor. The check programs to be performed are stored in two or more of the above-mentioned memories, and each of the above-mentioned check programs is executed respectively.
A check program read from one memory checks another memory, and a check program read from another memory checks the one memory, so that they mutually check the other memories. A memory content check control method characterized by:
JP56180653A 1981-11-11 1981-11-11 Control system for check on memory contents Granted JPS5883397A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56180653A JPS5883397A (en) 1981-11-11 1981-11-11 Control system for check on memory contents

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56180653A JPS5883397A (en) 1981-11-11 1981-11-11 Control system for check on memory contents

Publications (2)

Publication Number Publication Date
JPS5883397A JPS5883397A (en) 1983-05-19
JPH0226252B2 true JPH0226252B2 (en) 1990-06-08

Family

ID=16086957

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56180653A Granted JPS5883397A (en) 1981-11-11 1981-11-11 Control system for check on memory contents

Country Status (1)

Country Link
JP (1) JPS5883397A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2685435B2 (en) * 1986-05-09 1997-12-03 株式会社日立製作所 Method of relieving defects in semiconductor memory device
JPH01134549A (en) * 1987-11-19 1989-05-26 Fujitsu Ltd Diagnosing system for memory data

Also Published As

Publication number Publication date
JPS5883397A (en) 1983-05-19

Similar Documents

Publication Publication Date Title
US4839797A (en) Microprocessor compatible with any software represented by different types of instruction formats
US4672534A (en) Integrated circuit device incorporating a data processing unit and a ROM storing applications program therein
US4446517A (en) Microprogram memory with page addressing and address decode in memory
JPH0248931B2 (en)
JP2866896B2 (en) Test method for read-only storage device and device for executing the method
JPH0122649B2 (en)
JPH0226252B2 (en)
US5210758A (en) Means and method for detecting and correcting microinstruction errors
JPS6410854B2 (en)
JP3190945B2 (en) Micro program control circuit
JPS6148174B2 (en)
JP2581214B2 (en) Logic simulator
JPH0398119A (en) Storage device
JPH0233173B2 (en)
JP2690910B2 (en) Control storage device
JP2906680B2 (en) Microcomputer
JPH0545978B2 (en)
JPH038029A (en) Microprogram controller
JPS6238746B2 (en)
JPS63301338A (en) Memory with control memory
JPS6146857B2 (en)
JPS6346858B2 (en)
JPS6113612B2 (en)
JPS59123054A (en) Initial detecting system
JPH06100965B2 (en) Micro program controller