JPS5883397A - Control system for check on memory contents - Google Patents
Control system for check on memory contentsInfo
- Publication number
- JPS5883397A JPS5883397A JP56180653A JP18065381A JPS5883397A JP S5883397 A JPS5883397 A JP S5883397A JP 56180653 A JP56180653 A JP 56180653A JP 18065381 A JP18065381 A JP 18065381A JP S5883397 A JPS5883397 A JP S5883397A
- Authority
- JP
- Japan
- Prior art keywords
- check
- memory
- program
- rom
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0751—Error or fault detection not based on redundancy
- G06F11/0763—Error or fault detection not based on redundancy by bit configuration check, e.g. of formats or tags
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
【発明の詳細な説明】
本発明はメモリ内容チェック制御方式、特にメモリIC
を2個以上有する回路において、そのメモリ内容のチェ
ックを正確にかつ低価格にて実現で會るようにしたメモ
リ内容チェック制御方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention provides a memory content check control system, particularly a memory IC.
The present invention relates to a memory content check control method that enables accurate and low-cost checking of memory contents in a circuit having two or more.
従来のメそり内容をチェックする方式としては、例えば
パリティピット用のメモリを持ち、メモリの各アト°レ
スごとにパリティチェックを行う方式第1図は従来方式
の例を示す。図中、1はマイクロプロセッサ、2は第1
のリード・オンリ・メモリ(ROM)、3は第2の1’
LOM、4は第3のROM、5は第nのROM、6はア
ドレス・ノクス、7はデータ・バス、8はバリテ4RO
M、9はパリティチェッカー、10はフリップ・フロッ
プを表わす。第1のROM2、第2のROM3、・・・
、第nのROM5は、例えばそれぞれ1バイト8ビツト
で2にバイトの容量をもつメモリICで構成され、マイ
クロプロセッサ1の制御プログラム等が格納される。こ
れらのROM2〜5の各バイト毎にパリティ・ピットを
附加する余裕がないことから、当誼バイト毎にパリティ
ROM8の1ビ;トが対応づけられ、ROM2〜5の各
バイト毎の内容に従い、偶数パリティまたは奇数パリテ
ィとなるよ5ROM2〜5の内容が決定した段階で予め
ハリティROMの各ビット値が設定される。メモリ内容
のチェックは、各アドレス毎にROM2〜5の1バイト
の内容とそれに対応するパリティROM8の1ビツトの
値とがパリティチェッカー9に取り込まれて、パリティ
チェッカー9によりて行われる。パリティ・エラーが検
出された場合には、7リツプ・フロップ10をセットし
、パリティチェック信号がオンとなるよ5にする。A conventional method for checking the contents of a memory is, for example, a method in which a memory for parity pits is provided and a parity check is performed for each address of the memory. FIG. 1 shows an example of the conventional method. In the figure, 1 is a microprocessor, 2 is a first
read-only memory (ROM), 3 is the second 1'
LOM, 4 is the third ROM, 5 is the nth ROM, 6 is the address node, 7 is the data bus, 8 is the valid 4RO
M, 9 represents a parity checker, and 10 represents a flip-flop. First ROM2, second ROM3,...
, n-th ROM 5 is each composed of a memory IC having a capacity of 2 bytes with 1 byte being 8 bits, and stores control programs for the microprocessor 1 and the like. Since there is no room to add a parity pit 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, Each bit value of the harness ROM is set in advance at the stage when the contents of the 5ROMs 2 to 5 are determined to have even parity or odd parity. The memory contents are checked by the parity checker 9, which takes in the 1-byte contents of the ROMs 2-5 and the corresponding 1-bit value of the parity ROM 8 for each address. If a parity error is detected, the 7 flip-flop 10 is set to 5 so that the parity check signal is turned on.
上記従来の方式によれば、パリティピット用のパリティ
ROMやその周辺回路が必要となり、コストアップが余
儀なくさせられ、またパリティROMに書き込むための
手間がかかることとなる。According to the above-described conventional method, a parity ROM for parity pits and its peripheral circuits are required, which inevitably increases costs and requires time and effort to write into the parity ROM.
他の従来の方式として、メモリの内容を順に例えば加算
していき、予め設定してありた値と加算結果とを比較す
る方式がある。すなわち、メモリの一部に予めチェック
プログラムとチェックデータとを記憶させ、そのチェッ
クプログラムによりメモリ内のデータを順次読み出して
演算し、その結果を前記チェックデータと比較すること
によりてメモリ内容をチェックする方式である。As another conventional method, there is a method in which, for example, the contents of the memory are sequentially added, and the addition result is compared with a preset value. That is, a check program and check data are stored in advance in a part of the memory, and the check program sequentially reads and calculates data in the memory, and the results are compared with the check data to check the memory contents. It is a method.
しかし、この方式については、チェックプログツムの内
容が壊れている場合に正しくチェックすることができず
、正確さに欠くという欠点がある。However, this method has the disadvantage that it cannot correctly check if the contents of the check program are corrupted, and thus lacks accuracy.
本発明は上記欠点の解決を図り、正確にかつローコスト
にてメモリ内容のチェックを行う方式を提供することを
目的としている。そのため本発明のメモリ内容チェック
制御方式は、マイクロプロセッサと、該マイクロプロセ
ッサが7エツチして実行する命、令が格納される複数個
のメモリとを有する回路におい【、上記マイクロプロセ
ッサによって実行されることによりメモリ内容の正常性
チェックを行うチェックプログツムを2個以上の上記メ
モリに格納して設け、上記各チェックプログツムをそれ
ぞれ実行させて、1つのメモリから読出されたチェック
プログラムによりて他メモリをチェックしかつ他のメモ
リから読出されたチェックプログラムによりて上記1つ
のメモリをチーツクするようにして互いに他の上記メモ
リのチェックを行うようにしたことを特徴としている。It is an object of the present invention 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 in a circuit including a microprocessor, instructions to be executed by the microprocessor, and a plurality of memories in which instructions are stored. A check program for checking the normality of the memory contents is stored 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 the above-mentioned one memory is checked by a check program read from another memory, and the other above-mentioned memories are mutually checked.
以下図面を参照しつつ説明する。This will be explained below with reference to the drawings.
第2図は本発明の一実施例構成、第3図は第2図図示実
施例の動作を説明するためのタイムチャートを示す。FIG. 2 shows the configuration of one embodiment of the present invention, and FIG. 3 shows a time chart for explaining the operation of the embodiment shown in FIG.
図中、符号工ないし7は第1図に対、応し、11および
12はメ゛モリ内容のチェックを行うチェックプログラ
ム、13はアドレス・デコーダ、14はフリップ・フロ
ップ、15はセレクタ、16はMP09セット信号線を
表わす。In the figure, numerals 7 correspond to those in FIG. 1, 11 and 12 a check program for checking the memory contents, 13 an address decoder, 14 a flip-flop, 15 a selector, and 16 a check program. Represents the MP09 set signal line.
第2図において、第1のROMね第2のROM3、・・
・、第nのROM5 Kは、マイクロプロセッサ1の制
御プログラム等が格納され、マイクロプロセッサ1はこ
れらをフェッチして実行し、その内容に従りた制御を行
う。特に、第1のROMzには、例えば第2のROM5
ないし第nのROM5についてのメモリ内容をチェック
するためのチェックプログラム11が格納され、第2の
ROM3には、第1のROM2のメモリ内容をチェック
するためのチェックプログラム12が格納される。In FIG. 2, a first ROM, a second ROM3,...
The n-th ROM 5 K stores control programs for the microprocessor 1, and the microprocessor 1 fetches and executes these programs and performs control according to their contents. In particular, the first ROMz includes, for example, the second ROM5.
A check program 11 for checking the memory contents of the first to n-th ROMs 5 is stored, and a check program 12 for checking the memory contents of the first ROM 2 is stored in the second ROM 3.
チェックプ冨グツム11およびチェックプログラム12
は、共に先に説明した従来例のチェックプログツムと同
様の内容をもち、例えばそれぞれ数十ステップ1度の命
令からなるものである。従って、メモリICが例えば2
にバイトの容量をもつとすると、その中でチェックプロ
ーグラムが占める割合は小さいものである。また、第1
のROM 2および第2のROM3には、チェックプロ
グラム11またはチェックプログツム12と共に、それ
ぞれ他のメモリについてのチェックデータ(図示省略)
が格納される。Check program 11 and check program 12
Both have the same content as the conventional check program described above, and each consists of, for example, instructions for several tens of steps at a time. Therefore, if the memory IC is, for example, 2
Assuming that the program has a byte capacity, the check program occupies a small proportion of that capacity. Also, the first
The ROM 2 and the second ROM 3 each contain check data (not shown) for other memories together with the check program 11 or the check program 12.
is stored.
第2図図示の回路に電源が投入されると、マイクロプロ
セッサ1はリセット状態(第3図図示T1の状態)とな
り、次にリセットが終了して第3図図示T2の状態とな
ると、マイクロプロセッサ1は成る特定アドレス(ベク
ターアドレス)を指定して、そのベクターアドレスで指
定された番地のプログラムを実行する。このベクターア
ドレスは、例えば最初フリップ・7四ツブ14がaO′
めときに、セレクタ15によって第1のROM2のチェ
ックプログラム11をポイントするようにされ、最初に
第1のROM2のチェックプログラム11が動作するよ
うにされる@
マイクロプロセッサ1はチェックプログラム11を実行
することによりて、第2のROMBないし第nのROM
5のデータを順次演算していき、その演算結果と予め演
算されて第1のROM2 に格納されている正しい結果
を示すチェックデータとを比較する。比較した結果、一
致していれば第2のROM3ないし第nのROM5のメ
モリ内容は正しいことKなる。もし、値が一致しない場
合には、第2の几OM3ないし第nのROM5内にエラ
ーがあると判断され、エラーを検出することとなる。When the power is turned on to the circuit shown in FIG. 2, the microprocessor 1 enters a reset state (state T1 shown in FIG. 3), and then when the reset is completed and the state T2 shown in FIG. 1 specifies a specific address (vector address) and executes the program at the address specified by the vector address. This vector address is, for example, first flip 74 is aO'
At the same time, the selector 15 points to the check program 11 in the first ROM 2, and the check program 11 in the first ROM 2 is operated first.@The microprocessor 1 executes the check program 11. Possibly, the second ROMB to the nth ROM
The data of No. 5 is sequentially calculated, and the result of the calculation is compared with check data indicating a correct result calculated in advance and stored in the first ROM 2. As a result of the comparison, if they match, it means that the memory contents of the second ROM 3 to the 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 the n-th ROM 5, and the error is detected.
上記チェックプログラム11の実行が終了したならば、
図示省略したリセット回路が働き、マイリセット信号が
供給され、第2図図示実施の状態になるようにする。ま
た、このリセット信号を契機にクリップ・70ツブ14
の出力が、第3図図示の如く“O″から“1”になるよ
うkする。リセッF終了時に、マイクロプロセッサ1は
ベクターアドレスを指し、第2図図示実施の状態となる
が、ベクターアドレスは、フリップ・フロップ1′4が
“1”となりていることにより、セレクタ15によりて
、今度は@2のROM5内のチェックプログラム12を
ポイントするようにされ、チェックプログラム12が起
動される。Once the execution of the above check program 11 is completed,
A reset circuit (not shown) operates to supply the MY-RESET signal, so that the state shown in FIG. 2 is established. Also, with this reset signal as a trigger, the clip 70 tube 14
The output is changed from "O" to "1" as shown in FIG. At the end of the reset F, the microprocessor 1 points to the vector address and enters the state shown in FIG. This time, the check program 12 in the ROM 5 of @2 is pointed to, and the check program 12 is activated.
チェックプログラム12が【−行されることKより、チ
ェックプログラム11の実行の場合と同様、第1のRO
M2のデータが順次演算されて、演算結果と第2のRO
MB内のチェックデータとが比較され、第1のROM2
のメモリ内容の正常性がチェックされる・
以上のように、第1のROM2および第2のROM3
K格納されたチェックプログラム自体もそれぞれ他のチ
ェックプログラムによってチェックされることとなり、
より正確なメモリ内容のチーツクが可能となる。Since the check program 12 is executed in the [- line, the first RO
The data of M2 is calculated sequentially, and the calculation result and the second RO
The check data in the MB is compared with the check data in the first ROM2.
The normality of the memory contents of the first ROM2 and the second ROM3 is checked.
The stored check programs themselves are also checked by other check programs.
It becomes possible to check the memory contents more accurately.
なお、本発明の上記実施例においては、リセット信号に
よって実行されるべきチェックプログラムが切り替わる
ようKされたが、2以上のチェックプログラムが交互に
実行されればよいわけであるから、上記の場合に限らず
、例えば次のようにしてもよい。2度目のリセットの代
わりにマイクロプロセッサのインターラット端子などに
信号を入力し、そのブランチ先のアドレスを他のメモリ
ICにしておく。こうして、そのメモリIC内のチェッ
クプログラムを起動し、もとのベクターアドレスを持つ
メモリICの内容をチェックする。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, in the above case, For example, the following may be used. Instead of the second reset, a signal is input to the interlat terminal of the microprocessor, and the branch destination address is set to another memory 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.
このようにすれば、第2図図示のフリップ・フaツブ1
4およびセレクタ15を必要としないため、さらに簡単
なハードウェアでメモリ内容のチェックを行うことが可
能となる。In this way, the flip fabric 1 shown in FIG.
4 and selector 15 are not required, it becomes possible to check the memory contents with even simpler hardware.
以上説明した如く本発明によれば、パリティピット用の
メモリやその周辺回路を必要とするととなく、低価格に
てメモリ内容チェック回路を実現でき、また、たとえ一
方のメモリICのチェックプログラムが壊われているた
めに正しくチェックできなか9たとしても、他のメモリ
ICのチェックプログラムにようて、その壊れたメモリ
ICのチェックを行えるので、全メモリの内容チェック
を正しく行うことが可能となる。As explained above, according to the present invention, a memory content check circuit can be realized at low cost without requiring a parity pit memory or its peripheral circuit, and even if the check program of one memory IC is corrupted. Even if the damaged memory IC cannot be checked correctly because it is corrupted, the broken memory IC can be checked by using a check program for other memory ICs, making it possible to correctly check the contents of all memories.
第1図は従来方式の例、第2図は本発明の一実施例構成
、第3図は第2図図示実施例の動作を説明するためのタ
イムチャートを示す。
1はマイクロプロセッサ、2ないし5はROM。
6はアドレス・バス、7はデータ・パス、8はパリティ
ROM、9はパリティチェッカー、10はフリップ−フ
ロップ、11および12はチェックプログラム、13は
アト°レス拳デコーダ、14はフリップ・フロップ、1
5はセレクタ、16はリセット信号線を表わす。FIG. 1 shows an example of a conventional system, FIG. 2 shows a 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, and 2 to 5 are ROMs. 6 is an address bus, 7 is a data path, 8 is a parity ROM, 9 is a parity checker, 10 is a flip-flop, 11 and 12 are check programs, 13 is an address fist decoder, 14 is a flip-flop, 1
5 represents a selector, and 16 represents a reset signal line.
Claims (1)
チし”て実行する命令が格納される複数個のメモリとを
有する回路において、上記マイクロプロセッサによりて
実行されることによりメモリ内容の正常性チェックを行
うチェックプログラムを2個以上の上記メモリに格納し
て設け、上記各チェックプログラムをそれぞれ実行させ
て、1つのメモリから読出されたチェックプログラムに
ようて他メモリをチェックしかつ他のメそりから読出さ
れたチェックプログラムによりて上記1つのメモリをチ
ェックするようにして互いに他の上記メモリのチェック
を行うようにしたことを特徴とするメモリ内容チェック
制御方式。In a circuit having a microprocessor and a plurality of memories in which instructions fetched and executed by the microprocessor are stored, a check program that is executed by the microprocessor to check the normality of memory contents is provided. A check program that is stored and provided in two or more of the above-mentioned memories, executes each of the above-mentioned check programs, checks other memories according to the check program read from one memory, and is read from another memory. A memory content check control method characterized in that, while checking the one memory, the other memories are checked mutually.
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 true JPS5883397A (en) | 1983-05-19 |
| JPH0226252B2 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) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62262162A (en) * | 1986-05-09 | 1987-11-14 | Hitachi Ltd | Defect relief method for semiconductor memory devices |
| JPH01134549A (en) * | 1987-11-19 | 1989-05-26 | Fujitsu Ltd | Diagnosing system for memory data |
-
1981
- 1981-11-11 JP JP56180653A patent/JPS5883397A/en active Granted
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62262162A (en) * | 1986-05-09 | 1987-11-14 | Hitachi Ltd | Defect relief method for semiconductor memory devices |
| JPH01134549A (en) * | 1987-11-19 | 1989-05-26 | Fujitsu Ltd | Diagnosing system for memory data |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0226252B2 (en) | 1990-06-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5212693A (en) | Small programmable array to the on-chip control store for microcode correction | |
| US4672534A (en) | Integrated circuit device incorporating a data processing unit and a ROM storing applications program therein | |
| US4488224A (en) | System for controlling data flow | |
| EP0270081A2 (en) | Microprogram controller receiving interrupt request during instruction execution | |
| US5142630A (en) | System for calculating branch destination address based upon address mode bit in operand before executing an instruction which changes the address mode and branching | |
| JPH10105426A (en) | Semiconductor integrated circuit | |
| US4975835A (en) | Variable length data processing apparatus for consecutively processing variable-length data responsive to one instruction | |
| JPS5883397A (en) | Control system for check on memory contents | |
| US6407960B1 (en) | Arrangement for programming selected device registers during initialization from an external memory | |
| US4679194A (en) | Load double test instruction | |
| JPS5938677B2 (en) | Control word transfer control device | |
| JP2001256044A (en) | Data processing device | |
| JPH02127731A (en) | Bypass check system for arithmetic register | |
| JP2818659B2 (en) | Error correction method | |
| JP2668382B2 (en) | Pseudo fault generation method for testing microprograms | |
| JP3190945B2 (en) | Micro program control circuit | |
| JPS58215799A (en) | System for verifying control storage | |
| KR940002321B1 (en) | Test method of microcoded data processor | |
| JPS59110098A (en) | Error correcting device of data storage device | |
| JPH0398119A (en) | Storage device | |
| JPS5943444A (en) | Method and device for microprogram control | |
| JPS6122820B2 (en) | ||
| JPS59121440A (en) | Integration circuit | |
| JPH06314212A (en) | Information processing equipment | |
| JPS6319897B2 (en) |