JPS5920199B2 - Memory check method - Google Patents

Memory check method

Info

Publication number
JPS5920199B2
JPS5920199B2 JP54029604A JP2960479A JPS5920199B2 JP S5920199 B2 JPS5920199 B2 JP S5920199B2 JP 54029604 A JP54029604 A JP 54029604A JP 2960479 A JP2960479 A JP 2960479A JP S5920199 B2 JPS5920199 B2 JP S5920199B2
Authority
JP
Japan
Prior art keywords
check
data
check code
memory
counter
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
Application number
JP54029604A
Other languages
Japanese (ja)
Other versions
JPS55122300A (en
Inventor
順治 河原
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP54029604A priority Critical patent/JPS5920199B2/en
Publication of JPS55122300A publication Critical patent/JPS55122300A/en
Publication of JPS5920199B2 publication Critical patent/JPS5920199B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は、メモリ・チェックに要するハードウェア量を
減少できると共に、メモリの内容を常に保障できるよう
にしたメモリ・チェック方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a memory check method that can reduce the amount of hardware required for memory check and can always guarantee the contents of memory.

第1図は従来のメモリ・チェック方式を示すものであつ
て、1はプ0グラムROM、2はパリテイROM、3は
パリテイ・チェック回路をそれぞれ示している。
FIG. 1 shows a conventional memory check system, in which 1 indicates a program ROM, 2 a parity ROM, and 3 a parity check circuit.

パリテイR0M2は、それぞれがプログラムROMIの
各バイト又は各ワードに対応する複数のパリテイ・ビッ
トが格納されている。プOグラムROMに対してアドレ
スが供給され、プログラムROMIからデータが読出さ
れる時、これと同時に読出しデータに対応しパリテイ・
ビットも読出される。読出されたデータとパリテイ・ビ
ットはパリテイ・チェック回路3に入力され、読出しデ
ータによつて生成されるパリテイ・ビットと、パリテイ
R0M2から読出されたパリテイ・ビットとが比較され
る。もし両者が一致しない場合には、メモリ・エラーの
発生がプロセッサに通知される。第1図に示した如き従
来のメモリ・チェック方式の欠点は、各バイト又は各ワ
ードに対して1個のパリテイ・ビットを設けるため、比
較的大きなパリテイROM2を必要とすることであJ
る。したがつて、第1図のようなメモリ・チェック方式
を採用すると、製品コストが上昇する。第2図は第1図
のメモリ・チェック方式の欠点を除去した従来のメモリ
・チェック方式を示すものであり、4はROMを示して
いる。ROM4にク は、プログラムとチェック・コー
ドが書込まれている。チェック・コードは、例えばプロ
グラムに対する垂直パリテイ・ビットである。即ち、チ
工ツク・コードの第1番目のビツトは、プログラム領域
の各番地の第1番目のビツトのEORをとつたものであ
る。第2図口はメモリ・チエツク処理を示すものである
。ROM4には、運用プログラムとメモリ・チエツク用
プログラムとから構成されたプログラムが書込まれてい
る。メモリ・チエツクは次のようにして行われる。即ち
、電源投入が行われると、プログラム領域の全てのデー
タが読出され、垂直パリテイ・ビツトが生成される。そ
して、この生成された垂直パリテイ・ビツトと予め書込
まれているチエツク・コードが比較され、比較結果が0
Kであれば、運用プログラムが実行される。NGであれ
ば、メモリ・エラーの発生がプロセツサに通知される。
第2図に示された従来のメモリ・チエツク方式の欠点は
、電源投入時にのみメモリ・チエツクが行われるので、
その後に生じたメモリ・エラーを検出できないことであ
る。本発明は、上記の欠点を除去するものであつて、ハ
ードウエア量を減少できること及びメモリの内容を常に
保障できること等の特徴を有するメモリ・チエツク方式
を提供することを目的としている。そしてそのため、本
発明のメモリ・チエツク方式は、運用プログラムを含む
データ域と該データ域のデータ全体に対して予め生成さ
れたチエツク・コードが格納されたチエツク・コード格
納域とを Z有するメモリ、チエツク用データ指定カウ
ンタおよび生成チエツク・コード保存手段を具備するシ
ステムにおいて、上記運用プログラムがn回(ただしn
は自然数)実行される度に上記チエツク用データ指定カ
ウンタで指定されるデータを上記メ .”モリのデータ
域から読出し、当該読出データと上記生成チエツク・コ
ード保存手段のチエツク・コードとを演算して新たなチ
エツク・コードを生成し、当該新たに生成されたチエツ
ク・コードを上記生成チエツク・コード保存手段に再び
格納する jと共に上記チエツク用データ指定カウンタ
の計数値を単位量だけ増加し、上記チエツク用データ指
定カウンタの計数値が所定値になつた時に上記チエツク
・コード格納域のチエツク・コードと上記生成チエツク
・コード保存手段のチエツク・コ一 4ドとを比較し、
両者が一致する場合、上記生成チエツク・コード保存手
段をクリアし、且つチエツク用データ指定カウンタを初
期値に復帰させて運用プログラムを実行させ、両者が不
一致の場合、メモリ・エラー処理を行うことを特徴とす
るものである。以下、本発明を図面を参照しつつ説明す
る。第3図は本発明のメモリ・チエツクの1実施例を示
す図、第4図は計算機システムの1例を示す図である。
Parity R0M2 stores a plurality of parity bits each corresponding to each byte or word of program ROMI. When an address is supplied to the program ROM and data is read from the program ROMI, a parity register corresponding to the read data is simultaneously supplied.
Bits are also read. The read data and parity bits are input to the parity check circuit 3, and the parity bits generated by the read data are compared with the parity bits read from the parity R0M2. If they do not match, the processor is notified that a memory error has occurred. A disadvantage of the conventional memory checking scheme as shown in FIG. 1 is that it requires a relatively large parity ROM 2, with one parity bit for each byte or word.
Ru. Therefore, if the memory check method as shown in FIG. 1 is adopted, the product cost will increase. FIG. 2 shows a conventional memory check method that eliminates the drawbacks of the memory check method shown in FIG. 1, and 4 indicates a ROM. The program and check code are written in ROM4. The check code is, for example, a vertical parity bit for the program. That is, the first bit of the check code is the EOR of the first bit of each address in the program area. The opening in FIG. 2 shows memory check processing. A program consisting of an operation program and a memory check program is written in the ROM 4. A memory check is performed as follows. That is, when power is turned on, all data in the program area is read and vertical parity bits are generated. Then, this generated vertical parity bit is compared with the check code written in advance, and the comparison result is 0.
If it is K, the operation program is executed. If NG, the processor is notified of the occurrence of a memory error.
The disadvantage of the conventional memory check method shown in FIG. 2 is that the memory check is performed only when the power is turned on.
The problem is that subsequent memory errors cannot be detected. SUMMARY OF THE INVENTION An object of the present invention is to provide a memory check method which eliminates the above-mentioned drawbacks and has features such as being able to reduce the amount of hardware and always guaranteeing the contents of the memory. Therefore, the memory check method of the present invention includes a memory Z having a data area including an operating program and a check code storage area in which a check code generated in advance for the entire data of the data area is stored; In a system equipped with a check data designation counter and a generated check code storage means, the above operation program is executed n times (however, n
is a natural number) Each time the check is executed, the data specified by the check data specification counter is sent to the above method. "Read from the data area of the memory, calculate the read data and the check code of the generated check code storage means to generate a new check code, and store the newly generated check code in the generated check code."・Store again in the code storage means. Together with j, the count value of the check data designation counter is increased by a unit amount, and when the count value of the check data designation counter reaches a predetermined value, the check code storage area is checked.・Compare the code with the check code of the generated check code storage means,
If the two match, the generated check code storage means is cleared, and the check data designation counter is reset to its initial value, and the operation program is executed. If the two do not match, memory error processing is performed. This is a characteristic feature. Hereinafter, the present invention will be explained with reference to the drawings. FIG. 3 is a diagram showing an embodiment of the memory check of the present invention, and FIG. 4 is a diagram showing an example of a computer system.

第4図において、5はROMl6はCPUl7は制御回
路、8は演算回路、9はプログラム・カウンタ、10は
作業用RAMlllはカウンタをそれぞれ示している。
In FIG. 4, numeral 5 represents a ROM 16, a CPU 17 represents a control circuit, 8 represents an arithmetic circuit, 9 represents a program counter, and 10 represents a working RAM 11 a counter.

第4図の計算機システムは、例えば端末装置に組込まれ
ているものである。ROM5には、運用プログラム、メ
モリ・チエツク用プログラム及びチエツク・コードが書
込まれている。チエツク・コードの第1ビツトは、例え
ば第0番地ないし第n番地までのデータの第1ビツトの
EORをとつたものである。勿論、他のチエツク・コー
ド、例えばCRCl群計数などを採用することも出来る
。メモリ・チエツク用プログラムは、運用プログラムが
如何なる状況の基においても通るパス内に設けられてい
る。図示の例では、運用プログラムの終りにメモリ・チ
エツク用プログラムが設けられている。次に、第3図お
よび第4図を参照して本発明のメモリ・チエツク方式に
ついて説明する。
The computer system shown in FIG. 4 is built into, for example, a terminal device. An operating program, a memory check program, and a check code are written in the ROM 5. The first bit of the check code is, for example, the result of EORing the first bits of the data from address 0 to address n. Of course, other check codes, such as CRCl group counting, can also be used. The memory check program is provided in the path that the operational program passes under any circumstances. In the illustrated example, a memory check program is provided at the end of the operational program. Next, the memory check method of the present invention will be explained with reference to FIGS. 3 and 4.

運用プログラムの実行が終了すると、第0番地のデータ
が読出され、このデータが作業用RAMlOに格Hll
納され、カウンタ11の内容は+1されて 1となる。
When the execution of the operational program is completed, the data at address 0 is read and stored in the working RAMIO.
The contents of the counter 11 are incremented by 1 and become 1.

第1回目の運用プログラムの実行が終了すると、カウン
タ11の内容によつて第1番地のデータが読出され、作
業用RAMlOに格納されている第0番地のデータと演
算回路8にての}CORがとられてチエツク・コードが
生成され、生成されたチエツク・コードが再び作業用R
AMlOに格納される。上記のチエツク・コードの格納
が終了した後、カウンタ11の内容は+1されて312
1となる。第2回目の運用プログラムの実行が終了する
と、カウンタ11の内容にもとづいて第2番地のデータ
が読出され、第2番地のデータと作業用RAMlO内の
チエツク・コードとのEORがとられ、その結果が再び
作業用RAMに格納さへしかる後にカウンタ11の内容
は+1されて1f3ewとなる。以上の動作が繰返され
、カウンタ11のNH内容が n+1 となると、作業
用RAMlO内のチエツク・コードと第n+1番地に予
め書込まれているチエツク・コードとが、EORがとら
れ、更に定数「111・・・・・・11」と論理積がと
られることにより比較され、両者が一致する場合つまり
I:論理積後の出力にレベル 1 のビツトがない場
合には、作業用RAMlO内のチエツク・コードがクリ
アされると共にカウンタ11もクリアされ、再び上記の
動作が繰返される。
When the execution of the first operation program is completed, the data at the first address is read out according to the contents of the counter 11, and the data at the zero address stored in the working RAMIO and }COR in the arithmetic circuit 8 are read out. is removed and a check code is generated, and the generated check code is again used as a working R.
Stored in AMIO. After the above check code has been stored, the contents of counter 11 are incremented by 1 and become 312.
It becomes 1. When the execution of the second operation program is completed, the data at the second address is read based on the contents of the counter 11, the EOR is performed between the data at the second address and the check code in the working RAMIO, and the data is read out based on the contents of the counter 11. After the result is stored in the working RAM again, the contents of the counter 11 are incremented by 1 and become 1f3ew. The above operation is repeated and when the NH content of the counter 11 reaches n+1, the check code in the working RAMIO and the check code written in advance at the n+1 address are EOR'd, and then the constant "111...11'', and if they match, I: If there is no level 1 bit in the output after the logical product, the check in the working RAMIO is - When the code is cleared, the counter 11 is also cleared, and the above operation is repeated again.

両者が不一致の場合にはメモリ・エラー処理例えばアラ
ーム出力が行われる。なお、以上の説明では、カウンタ
11の内容は+1されるものとしたが、加算量として任
意の値をとることが出来る。例えば+2とした場合、連
続する2個の番地のデータが読出され、これと作業用R
AMlOに格納されているチエツク.コードのEORが
とられることは、言うまでもない。なお、処理要求が存
在しない場合においても、処理要求を検出するため、運
用プログラムのアイドル・ループ・ルーチンが実行され
ているものである。以上の説明から明らかなように、本
発明によれば、常にメモリ・チエツクを行い、エラーが
検出されればこれを報告するので、メモリの内容を常に
保障することが出来る。
If the two do not match, memory error processing such as alarm output is performed. In the above explanation, it is assumed that the contents of the counter 11 are incremented by 1, but the addition amount can take any value. For example, if +2 is specified, data at two consecutive addresses will be read, and this and the working R
Check stored in AMIO. Needless to say, the EOR of the code is taken. Note that even when there is no processing request, the idle loop routine of the operational program is executed to detect a processing request. As is clear from the above description, according to the present invention, a memory check is always performed and if an error is detected, it is reported, so that the contents of the memory can always be guaranteed.

また、本発明によれば、データが格納されているROM
もしくはRAM内に垂直パリテイやCRC、群計数など
の1個のチエツク・コードを設ければ良いので、メモリ
・チエツクに要するハードウエア量を減少することが出
来る。
Further, according to the present invention, the ROM in which data is stored
Alternatively, since it is sufficient to provide one check code for vertical parity, CRC, group counting, etc. in the RAM, the amount of hardware required for memory checks can be reduced.

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

第1図および第2図は従来のメモリ・チエツク方式を示
す図、第3図は本発明のメモリ・チエツクの1実施例を
示す図、第4図は計算機システムの1例を示す図である
。 5・・・・・・ROM、6・・・・・・CPU、7・・
・・・・制御回路、8・・・・・・演算回路、9・・・
・・・プログラム・カウンタ、10・・・・・・作業用
RAM、11・・・・・・カウンタ。
1 and 2 are diagrams showing a conventional memory check method, FIG. 3 is a diagram showing an embodiment of the memory check of the present invention, and FIG. 4 is a diagram showing an example of a computer system. . 5...ROM, 6...CPU, 7...
...Control circuit, 8...Arithmetic circuit, 9...
...Program counter, 10...Work RAM, 11...Counter.

Claims (1)

【特許請求の範囲】[Claims] 1 運用プログラムを含むデータ域と該データ域のデー
タ全体に対して予め生成されたチェック・コードが格納
されたチェック・コード格納域とを有するメモリ、チェ
ック用データ指定カウンタおよび生成チェック・コード
保存手段を具備するシステムにおいて、上記運用プログ
ラムがn回(ただしnは自然数)実行される度に上記チ
ェック用データ指定カウンタで指定されるデータを上記
メモリのデータ域から読出し、当該読出データと上記生
成チェック・コード保存手段のチェック・コードとを演
算して新たなチェック・コードを生成し、当該新たに生
成されたチェック・コードを上記生成チェック・コード
保存手段に再び格納すると共に上記チェック用データ指
定カウンタの計数値を単位量だけ増加し、上記チェック
用データ指定カウンタの計数値が所定値になつた時に上
記チェック・コード格納域のチェック・コードと上記生
成チェック・コード保存手段のチェック・コードとを比
較し、両者が一致する場合、上記生成チェック・コード
保存手段をクリアし、且つチェック用データ指定カウン
タを初期値に復帰させて運用プログラムを実行させ、両
者が不一致の場合、メモリ・エラー処理を行うことを特
徴とするメモリ・チェック方式。
1. A memory having a data area including an operational program and a check code storage area in which check codes generated in advance for all data in the data area are stored, a check data designation counter, and generated check code storage means. In the system, the data specified by the check data specification counter is read from the data area of the memory every time the operation program is executed n times (n is a natural number), and the read data and the generation check are・Generate a new check code by calculating the check code in the code storage means, store the newly generated check code in the generated check code storage means again, and store the check data designation counter When the count value of the check data designation counter reaches a predetermined value, the check code in the check code storage area and the check code in the generated check code storage means are incremented by a unit amount. Compare the two, and if they match, clear the generation check code storage means and return the check data specification counter to its initial value and run the operation program; if they do not match, perform memory error handling. A memory check method that is characterized by:
JP54029604A 1979-03-14 1979-03-14 Memory check method Expired JPS5920199B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP54029604A JPS5920199B2 (en) 1979-03-14 1979-03-14 Memory check method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP54029604A JPS5920199B2 (en) 1979-03-14 1979-03-14 Memory check method

Publications (2)

Publication Number Publication Date
JPS55122300A JPS55122300A (en) 1980-09-19
JPS5920199B2 true JPS5920199B2 (en) 1984-05-11

Family

ID=12280661

Family Applications (1)

Application Number Title Priority Date Filing Date
JP54029604A Expired JPS5920199B2 (en) 1979-03-14 1979-03-14 Memory check method

Country Status (1)

Country Link
JP (1) JPS5920199B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019225057A1 (en) 2018-05-23 2019-11-28 住友金属鉱山株式会社 Gas discharge roll, manufacturing method for same, and processing device using gas discharge roll

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015138372A (en) * 2014-01-22 2015-07-30 富士通株式会社 Write inspection program, information processing apparatus, and method for write inspection

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019225057A1 (en) 2018-05-23 2019-11-28 住友金属鉱山株式会社 Gas discharge roll, manufacturing method for same, and processing device using gas discharge roll
KR20210011908A (en) 2018-05-23 2021-02-02 스미토모 긴조쿠 고잔 가부시키가이샤 Gas releasing roll and its manufacturing method, and treatment apparatus using gas releasing roll

Also Published As

Publication number Publication date
JPS55122300A (en) 1980-09-19

Similar Documents

Publication Publication Date Title
US4903194A (en) Storage addressing error detection circuitry
JPS6394353A (en) Error correction method and apparatus
US4368532A (en) Memory checking method
JPS5920199B2 (en) Memory check method
EP0070184B1 (en) A method of testing memory
JPH0821009B2 (en) CHANNEL CONTROLLER INITIALIZATION METHOD AND SYSTEM FOR THE INITIALIZATION
JP2870202B2 (en) Method and apparatus for mutual monitoring between processors
JP3154853B2 (en) Illegal memory access detection method
JPH0756640B2 (en) Storage device
JPH02207355A (en) Memory readout system
KR100216045B1 (en) Bit arithmetic processing method and apparatus of programmable controller
JPS5839326A (en) Program loading system
JP2768371B2 (en) Inspection method of random access memory
JPS6020779B2 (en) Composite computer system
JPS5845735B2 (en) Error checking method for information processing equipment
SU951406A1 (en) Memory device with self-check capability
JP3098414B2 (en) Load module storage method
JPS5888899A (en) Ram controlling circuit
JPS5748131A (en) Data input device
JPH036760A (en) Ram fault processing system
JPS5845049B2 (en) Data transfer reading method
JPH08166891A (en) Fault tolerant computer system
JPS5868299A (en) Detecting circuit for address fault
JPS62166449A (en) History storage device for logical unit
JPH01194035A (en) Address parity checking system for information processor