JPS60181947A - Memory diagnosing system - Google Patents

Memory diagnosing system

Info

Publication number
JPS60181947A
JPS60181947A JP59037813A JP3781384A JPS60181947A JP S60181947 A JPS60181947 A JP S60181947A JP 59037813 A JP59037813 A JP 59037813A JP 3781384 A JP3781384 A JP 3781384A JP S60181947 A JPS60181947 A JP S60181947A
Authority
JP
Japan
Prior art keywords
data
memory
check
register
address
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
JP59037813A
Other languages
Japanese (ja)
Inventor
Koji Shiyudo
孝司 首藤
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 JP59037813A priority Critical patent/JPS60181947A/en
Publication of JPS60181947A publication Critical patent/JPS60181947A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/52Protection of memory contents; Detection of errors in memory contents

Landscapes

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

Abstract

PURPOSE:To execute exactly a diagnosis of a memory without breaking down the contents of a memory to be diagnosed, by providing an area for shunting a data stored in a storage area of a memory for executing a check, on a diagnostic device itself. CONSTITUTION:A CPU1 reads a data stored in a storage area of a RAM13 corresponding to a memory address of a test object. The read data is shunted to a data register 1 (11). When a diagnosis which has used a check data of four patterns A-D to the same address is ended (normal end), the CPU1 writes a memory data shunted to the register 11 to the address concerned, and returns it to its original state. After a check data has been written, its write data is read out and compared with the original check data, and if dissidence of both the data is detected, a displsy part 5 outputs a message of abnormality of a memory to a printer 7.

Description

【発明の詳細な説明】 (al 発明の技術分野 本発明は処理装置(以下cpuと称す)等が行うメモリ
の診断時に1.このメモリの内容を破壊することなくメ
モリの動作チェックを可能とするメモリ診断方式に関す
る。
DETAILED DESCRIPTION OF THE INVENTION (al) Technical Field of the Invention The present invention provides the following features when diagnosing a memory performed by a processing device (hereinafter referred to as CPU), etc.: 1. It is possible to check the operation of the memory without destroying the contents of the memory. Concerning memory diagnostic methods.

(bl 従来技術と問題点 従来、CPUとメモリとが接続されるデータ処理装置に
おいては、エラー発生時或いは電源投入時にメモリの動
作チェックが行われる。即ち予め定めたパターンのチェ
ックデータを用いてメモリへのり一ド/ライトチェック
を行う。従って、メモリの診断を行った後は、その前に
保存されていたメモリ上のデータが破壊される。この為
、オペレータかメモリ診断を行うに際し、メモの内容が
破壊されても良いか否かを確める必要があった。
(bl) Prior Art and Problems Conventionally, in a data processing device in which a CPU and a memory are connected, a memory operation check is performed when an error occurs or when the power is turned on.In other words, a predetermined pattern of check data is used to A read/write check is performed on the memory. Therefore, after performing a memory diagnosis, the previously saved data in the memory will be destroyed. Therefore, when an operator performs a memory diagnosis, the memo It was necessary to confirm whether or not the contents could be destroyed.

また、エラー発生時のエラー情報のロギングが行われる
装置においては、ロギングされた情報を外部メモリ等に
一旦セーブした後でないと、メモリ診断を行うことがで
きず、エラー処理の作業を煩雑化させる原因の1つでも
あった。
In addition, in devices that log error information when an error occurs, memory diagnosis cannot be performed until the logged information is temporarily saved in external memory, etc., which complicates error handling work. It was also one of the causes.

(C) 発明の目的 本発明の目的は上述した従来の欠点を取除くべく、診断
を行うメモリの内容を破壊することなく、且つメモリの
診断を正確に行いうるメモリ診断方式を提供するにある
(C) Purpose of the Invention The purpose of the present invention is to provide a memory diagnosis method that can accurately diagnose a memory without destroying the contents of the memory to be diagnosed, in order to eliminate the above-mentioned conventional drawbacks. .

fd+ 発明の構成 上記目的を達成するため本発明においては、診断装置自
身に、チェックを行うメモリの記憶エリアに格納される
データを退避する領域、及びメモリ診断後に退避したデ
ータを元に戻す機能を付加したものである。以下実施例
を用いて本発明を詳述する。
fd+ Structure of the Invention In order to achieve the above object, the present invention provides the diagnostic device itself with an area for saving data stored in the storage area of the memory to be checked, and a function for restoring the saved data after memory diagnosis. It was added. The present invention will be explained in detail below using Examples.

(el 発明の実施例 第1図は本発明の一実施例を示す図、第2図はその動作
フローヂャートである。第1図に示す装置は、携帯可能
なハンドベルトターミナルであり、在庫管理等のための
データが処理されるものである。図において、■はCP
’Uであり、内部レジスタとしてインデックスレジスタ
10.データレジスタ11.12等を有する。CPtJ
lは発振器13から与えられるクロック信号に従って、
プログラムを実行するものである。2はROM (不揮
発性メモ1月であり、CPUIの実行ずべき制御プログ
ラム(図示せず)を始め、後述する各種チェックプログ
ラムが格納されている。3ばRAM (リード/ライト
可能な揮発性メモリ)であり、CPUIのワークエリア
、データエリアとして利用される。4は時計であり、R
AM3とともに副電池16によってバッテリサポートさ
れている。5は表示部であり、CPUIによる処理結果
、入力データモニタ等の為に用いられるもの、6はブザ
ーでありエラー報知等に用いられるもの、7はプリンタ
、8はデータ入力用キーボード、9は外部装置(例えば
このターミナルを接続できるホスト処理装置)とのイン
タフェース部、15は主電池であり、商用電源に接続さ
れることによって、充電器14によって充電可能なもの
である。
(El Embodiment of the Invention Figure 1 shows an embodiment of the present invention, and Figure 2 is a flowchart of its operation.The device shown in Figure 1 is a portable hand belt terminal, and is used for inventory management, etc. The data for is processed. In the figure, ■ is CP
'U, and index register 10. as an internal register. It has data registers 11, 12, etc. CPtJ
l according to the clock signal given from the oscillator 13,
It executes the program. 2 is a ROM (a non-volatile memory), which stores the control program (not shown) that should be executed by the CPU, as well as various check programs to be described later; 3 is a RAM (a readable/writable volatile memory); ), and is used as the work area and data area of the CPUI. 4 is a clock, and R
Battery support is provided by an auxiliary battery 16 along with AM3. 5 is a display unit used for processing results by the CPUI, input data monitor, etc. 6 is a buzzer used for error notification etc. 7 is a printer, 8 is a keyboard for data input, 9 is an external unit An interface section 15 with a device (for example, a host processing device to which this terminal can be connected) is a main battery, which can be charged by a charger 14 by being connected to a commercial power source.

以下、第2図をもとに、実施例装置におけるメモリ診断
動作を説明する。
Hereinafter, the memory diagnostic operation in the embodiment device will be explained based on FIG.

まずCPUIに対するメモリ診断の起動は、キーボード
8上の所定のキーを押下しながら主電池15をオンする
ことにより達成される。メモリ診11iの起動によりC
PUIは、ROM Z上(7)RAMチェックプログラ
ムを実行する。即ちCPUIは、このRAMチェックプ
ログラムによって指定される、テスト対象のメモリアド
レスをインデックスレジスタ10にセントする。次に、
レジスタ10にセットされたアドレスによってRAM3
をアクセスする。つまり、そのアドレスに対応したRA
M3の記憶領域に格納されているデータをリードする。
First, activation of memory diagnosis for the CPU is achieved by turning on the main battery 15 while pressing a predetermined key on the keyboard 8. C by starting the memory diagnosis 11i.
PUI executes (7) RAM check program on ROM Z. That is, the CPUI stores the memory address to be tested specified by this RAM check program in the index register 10. next,
RAM3 according to the address set in register 10.
access. In other words, the RA corresponding to that address
Read the data stored in the storage area of M3.

リードしたデータはデータレジスタ1(11)に退避す
る。このリードデータは、例えば1ハイド(8ビット)
データである。次にCPUIは、RAMチェックプログ
ラムによって指定されるパターンデータ(以下チェック
データと称す)をデータレジスタ2(12)にセットす
る。このチェックデータは、プログラムによって例えば
、4つのパターンA−Dが予め用意されている。このパ
ターンA−Dは、8ビツト毎のチェックを行うものとす
れば、それぞれ2進ri i i i 1111j、r
ololololJ、rlolololo」、及びro
 0000000Jが定義されている。
The read data is saved in data register 1 (11). This read data is, for example, 1 hide (8 bits)
It is data. Next, the CPUI sets pattern data (hereinafter referred to as check data) specified by the RAM check program in the data register 2 (12). For this check data, for example, four patterns A to D are prepared in advance by a program. If this pattern A-D is to be checked every 8 bits, then the binary ri i i i 1111j, r
ololololJ, rlolololo”, and ro
0000000J is defined.

しかしてCPU 1は、まずパターンAのチェックデー
タをレジスタ12にセントする。そしてインデックスレ
ジスタ10にセントされているメモリアドレスに対し、
このチェックデータを書込む。
Therefore, the CPU 1 first stores check data of pattern A into the register 12. Then, for the memory address stored in index register 10,
Write this check data.

チェックデータの書込みが終われば、CPUIは当該ア
ドレスに対してメモリ内容の読出しを行い、読出したデ
ータとレジスタ12にセントされているチェックデータ
とを比較する。具体的には、レジスタ12のデータと読
出したデータとの減算を行い、その結果をレジスタ12
にセントする。上述の動作から明らかな通り、診断を行
っているメモリの動作が正常であれば、チェックデータ
と読出したデータとは一致する。従ってレジスタ12の
値が「0」になれば正品ということになる。
After writing the check data, the CPU reads the memory contents from the address and compares the read data with the check data stored in the register 12. Specifically, the data in register 12 and the read data are subtracted, and the result is stored in register 12.
to cents. As is clear from the above operation, if the memory being diagnosed is operating normally, the check data and the read data match. Therefore, if the value of the register 12 becomes "0", it means that the product is genuine.

この比較結果が正常であれば、そのアドレスに対して次
のパターンBのチェックデータを用いて、同様のライト
/リード及び比較動作が行われる。
If the comparison result is normal, similar write/read and comparison operations are performed for that address using the next pattern B check data.

以下同様にパターンC,Dのチェックデータにっいても
同一アドレスへの診断のために用いられる。
Similarly, the check data of patterns C and D are also used for diagnosing the same address.

そして、このアドレスに対して4つのパターンA〜Dの
チェックデータを用いた診断が終了(正常終了)すれば
、CPUIは、レジスタ11に退避していたメモリデー
タを当該アドレスに1込んで、元に戻す。この退避デー
タの復元が終了すると、CPUIはインデックスレジス
タ10のアドレス値を+1して次のメモリアドレスに対
する診断を行うことになる。一方、チェックデータのラ
イトの後群びその書込みデータを読出して元のチェック
データと比較する段階で、両データの不一致が検出され
たとする。この場合CPtJ 1は、インデックスレジ
スタ10に格納されたアドレス値とともに、メモリ異常
のメソセーブを表示部5或いはプリンタフに出力するこ
とになる。
Then, when the diagnosis using the check data of the four patterns A to D for this address is completed (normally completed), the CPUI stores the memory data saved in the register 11 by 1 into the address and restores the original data. Return to When the restoration of this saved data is completed, the CPUI increases the address value of the index register 10 by 1 and performs diagnosis on the next memory address. On the other hand, assume that a mismatch between the two pieces of data is detected at the stage of reading out the written data and comparing it with the original check data after writing the check data. In this case, the CPtJ 1 outputs the meso-save of the memory abnormality to the display unit 5 or printer together with the address value stored in the index register 10.

尚、ROM2には上述したRAMチェックプログラムの
他に、ブザー6、プリンタ7等のI10チェックプログ
ラム、或いは通常の処理プログラムが格納されるもので
ある。
In addition to the above-mentioned RAM check program, the ROM 2 stores an I10 check program for the buzzer 6, printer 7, etc., or a normal processing program.

以上の如く本実施例では、CPUIの内部レジスタの1
つを、チェック対象となるメモリアドレスの格納データ
の退避領域とし゛ζ割当てるものである。これによって
、RA M 3に格納されているデータを破壊すること
なく、RAM3の全ての領域の診断を行うことが可能と
なる。
As described above, in this embodiment, one of the internal registers of the CPUI is
One is allocated as a save area for the data stored at the memory address to be checked. This makes it possible to diagnose all areas of the RAM 3 without destroying the data stored in the RAM 3.

(、fl 発明の効果 以上の通り本発明によれば、診断を行うメモリの内容を
破壊することなく、換言すれば、メモリ内容の他装置へ
の退a(セーブ)等の作業を行うごとなく、メモリの迅
速且つ正値な診断が可能となる。これによって、特にバ
ソテリーザボート等による内容保持を行っているメモリ
に対しも、その動作チェックを行うことが可能となり、
その実用的効果は大きい。
(, fl) Effects of the Invention As described above, according to the present invention, the contents of the memory to be diagnosed are not destroyed, in other words, the contents of the memory are not saved to another device, etc. , it becomes possible to quickly and accurately diagnose memory.This makes it possible to check the operation of memory, especially for memories whose contents are retained by batho-thermal ports, etc.
Its practical effects are great.

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

第1図は本発明の一実施例を示す図、第2図はその動作
を示すフローチャートである。■は処理装置CPU、2
はROM、3はRAM、5は表示部、10はインデック
スレジスタ、11.12はデータレジスタをそれぞれ示
す。 第 1 ν」 り k・ ど レコ
FIG. 1 is a diagram showing an embodiment of the present invention, and FIG. 2 is a flowchart showing its operation. ■ is the processing unit CPU, 2
3 is a ROM, 3 is a RAM, 5 is a display section, 10 is an index register, and 11.12 is a data register. 1st ν”

Claims (1)

【特許請求の範囲】[Claims] メモリと、該メモリの診断を行う診断装置とを備え、診
断装置が予め定められたパターンのデータを該メモリに
書込み、書込んだデータを読出して読出したデータと予
め定められたパターンデータとを比較することによって
、メモリの診断を行うメモリ診断装置において、予め定
められたパターンのデータを書込むメモリ上の記1.e
領域に格納されるデータを退避する退避領域、及び退避
領域に退避したデータの格納されていたメモリ上の記設
け、メモリの各記憶領域に格納されるデータを退避しな
がら各記憶領域に対する診断を行うことを49徴とする
メモリ診断方式。
The system includes a memory and a diagnostic device that diagnoses the memory, the diagnostic device writes data in a predetermined pattern to the memory, reads the written data, and compares the read data with the predetermined pattern data. In a memory diagnostic device that diagnoses a memory by comparing the data in a predetermined pattern, 1. e
A save area for saving data stored in the area, a record on the memory where the data saved to the save area was stored, and a diagnosis for each storage area while saving data stored in each storage area of the memory. Memory diagnosis method with 49 symptoms.
JP59037813A 1984-02-29 1984-02-29 Memory diagnosing system Pending JPS60181947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59037813A JPS60181947A (en) 1984-02-29 1984-02-29 Memory diagnosing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59037813A JPS60181947A (en) 1984-02-29 1984-02-29 Memory diagnosing system

Publications (1)

Publication Number Publication Date
JPS60181947A true JPS60181947A (en) 1985-09-17

Family

ID=12507955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59037813A Pending JPS60181947A (en) 1984-02-29 1984-02-29 Memory diagnosing system

Country Status (1)

Country Link
JP (1) JPS60181947A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63279345A (en) * 1987-05-11 1988-11-16 Fujitsu Ltd Portable terminal equipment
JPH0424846A (en) * 1990-05-18 1992-01-28 Fujitsu Ten Ltd Confirming method for mounting of rewritable memory
US7257323B2 (en) 2001-11-21 2007-08-14 Nec Corporation Signal-off detection circuit and optical receiving device using the same
JP2007287314A (en) * 2006-04-14 2007-11-01 Hynix Semiconductor Inc Semiconductor memory element, and method of driving thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5580899A (en) * 1978-12-13 1980-06-18 Hitachi Ltd Ram monitor system
JPS55113199A (en) * 1979-02-23 1980-09-01 Fujitsu Ltd Diagnostic system for memory unit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5580899A (en) * 1978-12-13 1980-06-18 Hitachi Ltd Ram monitor system
JPS55113199A (en) * 1979-02-23 1980-09-01 Fujitsu Ltd Diagnostic system for memory unit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63279345A (en) * 1987-05-11 1988-11-16 Fujitsu Ltd Portable terminal equipment
JPH0424846A (en) * 1990-05-18 1992-01-28 Fujitsu Ten Ltd Confirming method for mounting of rewritable memory
US7257323B2 (en) 2001-11-21 2007-08-14 Nec Corporation Signal-off detection circuit and optical receiving device using the same
JP2007287314A (en) * 2006-04-14 2007-11-01 Hynix Semiconductor Inc Semiconductor memory element, and method of driving thereof

Similar Documents

Publication Publication Date Title
US8291379B2 (en) Runtime analysis of a computer program to identify improper memory accesses that cause further problems
US9262283B2 (en) Method for reading kernel log upon kernel panic in operating system
JPS60181947A (en) Memory diagnosing system
JPS63118951A (en) Single chip microcomputer
EP0070184B1 (en) A method of testing memory
JP2006079485A (en) Method for information collection for fault analysis in electronic computer
JPS6045853A (en) History diagnosing system
JPS60233743A (en) Fault detecting circuit of computer system
JPS59133654A (en) Program debugging device
JPH01241652A (en) Device for checking memory
JP2008242592A (en) Memory monitoring circuit, information processing apparatus and memory monitoring method
JPS62166429A (en) Setting system for device identification number
JPS63136238A (en) Microprogram control device
JPS63136242A (en) Diagnosing system for built-in ram of information processor
JP2001202272A (en) Debugging method, debugging device using this method and recording medium with debugging method recorded thereon
JPH0480860A (en) Program loading system
JPH0293847A (en) Memory test system at time of initial diagnosis
JPH01282658A (en) Common bus error detecting system
Sedman Testing and diagnostic aids für real-time programming
JPH02103647A (en) Method for controlling intelligent measuring card
JPH0434626A (en) Error logging method
JPS62224833A (en) Suitability inspecting system of data form
JPS59226955A (en) Program debug device
JPH0667988A (en) Semiconductor memory with ras function
JPS63201749A (en) Testing system for peripheral equipment subsystem