JP2000347949A - System and method for diagnosing memory - Google Patents

System and method for diagnosing memory

Info

Publication number
JP2000347949A
JP2000347949A JP11161008A JP16100899A JP2000347949A JP 2000347949 A JP2000347949 A JP 2000347949A JP 11161008 A JP11161008 A JP 11161008A JP 16100899 A JP16100899 A JP 16100899A JP 2000347949 A JP2000347949 A JP 2000347949A
Authority
JP
Japan
Prior art keywords
memory
memory block
data
diagnosis
block
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
JP11161008A
Other languages
Japanese (ja)
Inventor
Kenichi Ando
健一 安藤
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 Communication Systems Ltd
Original Assignee
NEC Communication Systems 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 NEC Communication Systems Ltd filed Critical NEC Communication Systems Ltd
Priority to JP11161008A priority Critical patent/JP2000347949A/en
Publication of JP2000347949A publication Critical patent/JP2000347949A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Abstract

PROBLEM TO BE SOLVED: To shorten time for diagnosis and to prevent a throughput from being lowered during the activation of an application by copying data from a memory block designated before the start of diagnosis to a memory block for data saving. SOLUTION: A memory diagnosis control function 2 designates a memory block to execute diagnosis and instructs a memory copy function 12 so as to copy data in a designated memory block 1-2 to a memory block 1-4 for data saving. When the copy is completed, the control function 2 instructs a chip select circuit 3 and when an application 9 tries to access the block 1-2, the destination of access is changed to the block 1-4 for saving. Next, the control function 2 instructs the diagnosis of the block 1-2 to a memory diagnostic function 11. When the diagnostic function 11 completes all the diagnosis, the control function 2 instructs the copy function 12 so as to return the data copy from the block 1-4 for saving to the block 1-2.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はメモリ診断方式及び
その方法に関する。
The present invention relates to a memory diagnosis method and a memory diagnosis method.

【0002】[0002]

【従来の技術】従来のメモリ診断方式の一例が、特開平
03−142536号公報に記載されている。このメモ
リ診断方式は、記憶装置を複数の記憶部に分割して、各
記憶部が中央処理装置などからの指示により個々に自ら
の診断をするようにしたものである。
2. Description of the Related Art An example of a conventional memory diagnostic method is described in Japanese Patent Application Laid-Open No. 03-142536. In this memory diagnosis method, a storage device is divided into a plurality of storage units, and each storage unit performs its own diagnosis according to an instruction from a central processing unit or the like.

【0003】メモリ診断は、装置診断中に実施された
り、処理能力を犠牲にしてアプリケーションで実施され
ていた。
[0003] Memory diagnostics have been performed during device diagnostics or in applications at the expense of processing power.

【0004】[0004]

【発明が解決しようとする課題】しかし、この従来技術
には、次のような問題点があった。
However, this prior art has the following problems.

【0005】第1の問題点は、装置診断を起動しないと
メモリの破損がわからないということである。その理由
は、保守者が診断を実施するか、定期診断のときにしか
メモリの診断を行わないからである。
[0005] The first problem is that it is not possible to determine the corruption of the memory unless the device diagnosis is started. The reason is that the maintenance person performs the diagnosis of the memory only at the time of performing the diagnosis or at the time of the periodic diagnosis.

【0006】第2の問題点は、装置診断内で実施される
メモリ診断の時間が長いということである。その理由
は、メモリが大容量になりメモリの検査範囲が多くなり
診断に要する時間が増大したからである。
[0006] The second problem is that the memory diagnosis performed in the device diagnosis takes a long time. The reason is that the memory has a large capacity, the inspection range of the memory has increased, and the time required for diagnosis has increased.

【0007】第3の問題点は、アプリケーションを介し
てメモリ診断を行うとアプリケーション内の処理能力が
犠牲になってしまうことである。
A third problem is that when memory diagnosis is performed via an application, the processing capability in the application is sacrificed.

【0008】本発明は、保守者による診断や定期的に実
施される自動診断内の項目からモリ診断を省くことによ
り、それらの診断の時間の短縮を図り、また、アプリケ
ーション起動中にメモリ診断を実施してもアプリケーシ
ョンの処理能力の低下が生じないことを可能とするメモ
リ診断方式及びその方法を提供することを目的とする。
The present invention shortens the time required for the diagnosis by eliminating the memory diagnosis from the items included in the diagnosis by the maintenance person and the items included in the automatic diagnosis that is periodically performed, and performs the memory diagnosis during the application startup. It is an object of the present invention to provide a memory diagnosis method and a memory diagnosis method capable of preventing the processing performance of an application from being reduced even when it is implemented.

【0009】[0009]

【課題を解決するための手段】本発明によるメモリ診断
方式は、複数のメモリブロックに分割された診断対象の
メモリと、データ待避用メモリブロックと、前記複数の
メモリブロックのうち外部より指定されたいずれかのメ
モリブロックと前記データ待避用メモリブロックとの間
でデータをコピーするメモリコピー手段と、前記指定さ
れたメモリブロックへの上位からのアクセスがあったと
きに、アクセス先を前記指定されたメモリブロック又は
/及び前記データ待避用メモリブロックとするアクセス
変換手段と、前記指定されたメモリブロックを診断する
メモリ診断手段と、を備えることを特徴とする。
According to the memory diagnosis method of the present invention, a memory to be diagnosed divided into a plurality of memory blocks, a data saving memory block, and an externally designated memory block among the plurality of memory blocks are provided. A memory copying means for copying data between any one of the memory blocks and the data saving memory block; and when the specified memory block is accessed from a higher level, the access destination is designated by the designated memory block. An access conversion unit that is a memory block and / or a memory block for saving data is provided, and a memory diagnosis unit that diagnoses the specified memory block is provided.

【0010】また、本発明によるメモリ診断方式は、上
位のメモリ診断方式において、前記メモリコピー手段
は、前記メモリ診断手段による診断が開始する前に前記
指定されたメモリブロックから前記データ待避用メモリ
ブロックにデータをコピーし、前記メモリ診断手段によ
る診断が終了した後に前記データ待避用メモリブロック
から前記指定されたメモリブロックへデータをコピーす
ることを特徴とする。
In the memory diagnosis system according to the present invention, in the higher-level memory diagnosis system, the memory copy unit may start from the designated memory block and start the data saving memory block before the diagnosis by the memory diagnosis unit starts. And copying the data from the data save memory block to the designated memory block after the diagnosis by the memory diagnostic means is completed.

【0011】更に、本発明によるメモリ診断方式は、上
位のメモリ診断方式において、前記アクセス変換手段
は、前記メモリコピー手段による前記指定されたメモリ
ブロックから前記データ待避用メモリブロックへのデー
タのコピーが行われている最中には、前記上位から指定
されたメモリブロックへのアクセスが書き込みである場
合には、書き込み先を前記指定されたメモリブロック及
び前記データ待避用メモリブロックとして、前記上位か
ら指定されたメモリブロックへのアクセスが読み出しで
ある場合には、読み出し先を前記指定されたメモリブロ
ックとし、前記メモリ診断手段による診断の最中には、
前記上位から指定されたメモリブロックへのアクセスが
あったときに、アクセス先を前記データ待避用メモリブ
ロックとし、前記メモリコピー手段による前記データ待
避用メモリブロックから前記指定されたメモリブロック
へのデータのコピーが行われている最中には、前記上位
から指定されたメモリブロックへのアクセスが書き込み
である場合には、書き込み先を前記指定されたメモリブ
ロック及び前記データ待避用メモリブロックとして、前
記上位から指定されたメモリブロックへのアクセスが読
み出しである場合には、読み出し先を前記データ待避用
メモリブロックとすることを特徴とする。
Further, in the memory diagnosis method according to the present invention, in the higher-order memory diagnosis method, the access conversion means may be configured to copy data from the designated memory block to the data saving memory block by the memory copy means. While the access is being performed, if the access to the memory block specified from the upper level is a write, the write destination is set as the specified memory block and the data save memory block, and the write destination is specified from the upper level. If the access to the memory block is read, the read destination is the specified memory block, and during the diagnosis by the memory diagnostic means,
When there is an access to the specified memory block from the upper level, the access destination is the data save memory block, and the data copy from the data save memory block to the designated memory block by the memory copy means is performed. While the copy is being performed, if the access to the specified memory block from the upper level is a write, the write destination is set to the specified memory block and the data save memory block, and When the access to the specified memory block is read, the read destination is the data save memory block.

【0012】本発明によるメモリ診断方法は、診断対象
のメモリを複数のメモリブロックに分割するステップ
と、データ待避用メモリブロックを用意するステップ
と、前記複数のメモリブロックのうち外部より指定され
たいずれかのメモリブロックと前記データ待避用メモリ
ブロックとの間でデータをコピーするメモリコピーステ
ップと、前記指定されたメモリブロックへの上位からの
アクセスがあったときに、アクセス先を前記指定された
メモリブロック又は/及び前記データ待避用メモリブロ
ックとするアクセス変換ステップと、前記指定されたメ
モリブロックを診断するメモリ診断ステップと、を有す
ることを特徴とする。
According to the memory diagnosis method of the present invention, the memory diagnosis target is divided into a plurality of memory blocks, a data save memory block is prepared, and any one of the plurality of memory blocks specified from outside is used. A memory copy step of copying data between the memory block and the data save memory block; and when the specified memory block is accessed from a higher order, the access destination is changed to the specified memory. An access conversion step of making a block or / and the data saving memory block, and a memory diagnosis step of diagnosing the specified memory block.

【0013】また、本発明によるメモリ診断方法は、上
記のメモリ診断方法において、前記メモリコピーステッ
プは、前記メモリ診断ステップが開始する前に前記指定
されたメモリブロックから前記データ待避用メモリブロ
ックにデータをコピーするステップと、前記メモリ診断
ステップが終了した後に前記データ待避用メモリブロッ
クから前記指定されたメモリブロックへデータをコピー
するステップとを有することを特徴とする。
Further, in the memory diagnosis method according to the present invention, in the above-mentioned memory diagnosis method, the memory copy step includes transferring data from the designated memory block to the data saving memory block before the memory diagnosis step starts. And copying data from the data save memory block to the designated memory block after the memory diagnosis step is completed.

【0014】更に、本発明によるメモリ診断方法は、上
記のメモリ診断方法において、前記アクセス変換ステッ
プは、前記メモリコピーステップによる前記指定された
メモリブロックから前記データ待避用メモリブロックへ
のデータのコピーが行われている最中には、前記上位か
ら指定されたメモリブロックへのアクセスが書き込みで
ある場合には、書き込み先を前記指定されたメモリブロ
ック及び前記データ待避用メモリブロックとして、前記
上位から指定されたメモリブロックへのアクセスが読み
出しである場合には、読み出し先を前記指定されたメモ
リブロックとし、前記メモリ診断ステップの最中には、
前記上位から指定されたメモリブロックへのアクセスが
あったときに、アクセス先を前記データ待避用メモリブ
ロックとし、前記メモリコピーステップによる前記デー
タ待避用メモリブロックから前記指定されたメモリブロ
ックへのデータのコピーが行われている最中には、前記
上位から指定されたメモリブロックへのアクセスが書き
込みである場合には、書き込み先を前記指定されたメモ
リブロック及び前記データ待避用メモリブロックとし
て、前記上位から指定されたメモリブロックへのアクセ
スが読み出しである場合には、読み出し先を前記データ
待避用メモリブロックとすることを特徴とする。
Further, in the memory diagnosis method according to the present invention, in the above-mentioned memory diagnosis method, the access conversion step includes copying data from the designated memory block to the data save memory block by the memory copy step. While the access is being performed, if the access to the memory block specified from the upper level is a write, the write destination is set as the specified memory block and the data save memory block, and the write destination is specified from the upper level. If the access to the memory block is read, the read destination is the specified memory block, and during the memory diagnosis step,
When an access is made to the specified memory block from the upper level, an access destination is set to the data save memory block, and data is transferred from the data save memory block to the designated memory block by the memory copy step. While the copy is being performed, if the access to the specified memory block from the upper level is a write, the write destination is set to the specified memory block and the data save memory block, and When the access to the specified memory block is read, the read destination is the data save memory block.

【0015】[0015]

【発明の実施の形態】[実施形態1]本発明の実施形態
1によるメモリ診断方式を図1に示す。
[First Embodiment] FIG. 1 shows a memory diagnosis system according to a first embodiment of the present invention.

【0016】アプリケーション9は、CPUで動作して
いるプログラムや装置内の機能である。また、メモリ1
をある単位でブロック分割する。分割されたメモリには
アプリケーションが使用するメモリブロック1−1,1
−2,1−3とメモリ診断を行う時にメモリのデータを
待避しておくデータ待避用メモリブロック1−4の2種
類がある。また、このメモリの他にメモリ診断コントロ
ール機能2、メモリ診断を実施するメモリ診断機能1
1、診断前に診断対象メモリからデータ待避用メモリブ
ロック1−4にデータをコピーし、診断後にデータ待避
用メモリブロック1−4から診断対象メモリにデータを
コピーするメモリコピー機能12、コピー最中にアプリ
ケーションからメモリブロックへ書き込みが指示された
場合にコピー対象のメモリブロックとデータ待避用メモ
リブロックとの両方にデータを書き込み、読み出しが指
示された場合、コピー対象のメモリブロックからデータ
を読み出すためにメモリブロックのアドレスを切り替え
るチップセレクト回路3を有している。
The application 9 is a program running on the CPU or a function in the apparatus. Also, memory 1
Is divided into blocks by a unit. Memory blocks 1-1, 1 used by the application are stored in the divided memories.
There are two types of data save memory blocks 1-4 for saving the data of the memory when performing the memory diagnosis with -2 and 1-3. In addition to this memory, a memory diagnostic control function 2 and a memory diagnostic function 1 for performing memory diagnostics
1. A memory copy function 12 for copying data from the diagnosis target memory to the data saving memory block 1-4 before diagnosis, and copying data from the data saving memory block 1-4 to the diagnosis target memory after diagnosis, during copying. To write data to both the memory block to be copied and the memory block for data saving when the application instructs writing to the memory block, and to read data from the memory block to be copied when reading is instructed. It has a chip select circuit 3 for switching the address of the memory block.

【0017】診断開始時に診断を実施するメモリブロッ
ク1−1,1−2又は1−3をメモリ診断コントロール
機能2に対して指示する。メモリ診断コントロール機能
2は、指示されたメモリブロック1−1,1−2又は1
−3のデータをメモリコピー機能12を使用し、データ
待避用メモリブロック1−4にコピーする。この時、メ
モリのコピー最中は、アプリケーション9が診断対象の
メモリブロック1−1,1−2又は1−3に書き込みを
行おうとした場合、チップセレクト回路3を使用して、
診断対象のメモリブロック1−1,1−2又は1−3と
データ待避用メモリブロック1−4の両方のメモリにデ
ータを書き込む。また、メモリのコピー最中は、アプリ
ケーション9が診断対象のメモリブロック1−1,1−
2又は1−3から読み出しを行おうとした場合、チップ
セレクト回路3を使用して、診断対象のメモリブロック
1−1,1−2若しくは1−3からデータを読み出す。
At the start of diagnosis, a memory block 1-1, 1-2 or 1-3 for performing diagnosis is instructed to the memory diagnosis control function 2. The memory diagnostic control function 2 is configured to control the specified memory block 1-1, 1-2 or 1
-3 is copied to the data save memory block 1-4 using the memory copy function 12. At this time, if the application 9 attempts to write to the memory block 1-1, 1-2, or 1-3 to be diagnosed during the copying of the memory, the chip select circuit 3 is used.
Data is written to both memories of the memory blocks 1-1, 1-2 or 1-3 to be diagnosed and the data saving memory block 1-4. Also, during the copying of the memory, the application 9 sets the memory blocks 1-1, 1-
When reading is to be performed from 2 or 1-3, data is read from the memory block 1-1, 1-2 or 1-3 to be diagnosed using the chip select circuit 3.

【0018】診断対象のメモリブロック1−1,1−2
又は1−3内のデータのデータ待避用メモリブロック1
−4へのコピーが終了したら、アプリケーション9によ
るアクセス先をチップセレクト回路3によりデータ待避
用メモリブロック1−4に切り替えて、診断対象のメモ
リブロック1−1,1−2又は1−3の診断を開始す
る。これ以降、メモリ診断が終了するまで、アプリケー
ション9はデータ待避用メモリブロック1−4に対して
アクセスを行う。尚、チップセレクト回路3でアドレス
変換を行うので他のアプリケーションは診断対象のメモ
リブロック1−1,1−2又は1−3とデータ待避用メ
モリブロック1−4との相違を意識せずにアクセスでき
る。
Memory blocks 1-1 and 1-2 to be diagnosed
Or a data save memory block 1 for data in 1-3
When the copy to -4 is completed, the access destination by the application 9 is switched to the data saving memory block 1-4 by the chip select circuit 3 to diagnose the memory block 1-1, 1-2 or 1-3 to be diagnosed. To start. Thereafter, the application 9 accesses the data saving memory block 1-4 until the memory diagnosis ends. Note that since the address conversion is performed by the chip select circuit 3, other applications can access the memory block 1-1, 1-2, or 1-3 to be diagnosed without being aware of the difference between the memory block 1-4 and the data saving memory block 1-4. it can.

【0019】次にメモリ診断の手順について記述する。Next, the procedure of memory diagnosis will be described.

【0020】メモリ診断機能11は、指定されたメモリ
ブロックにあるパターンのデータを書き込み、そのデー
タを読み出し、それらのデータの一致をチェックする。
The memory diagnostic function 11 writes pattern data in a specified memory block, reads the data, and checks whether the data match.

【0021】書き込みパターンの例としては、0x0
0、0x55、0xAA、0xFF、インクリメントデ
ータやデクリメントデータのデータを使用する。あるい
は、メモリ試験で一般的に使用されるマーチングで試験
を行う。
As an example of the write pattern, 0x0
0, 0x55, 0xAA, 0xFF, data of increment data and decrement data are used. Alternatively, the test is performed with marching commonly used in memory testing.

【0022】メモリ診断が終了したら、メモリ診断機能
11は、メモリコピー機能12とメモリ診断コントロー
ル機能2に結果を報告し、メモリコピー機能12は、デ
ータ待避用メモリブロック1−4から診断対象のメモリ
1−1,1−2又は1−3にデータのコピーを行う。ア
プリケーション9からのメモリブロック1−1,1−2
又は1−3への書き込み要求に対しては診断開始時と同
様にチップセレクト回路3を使用し、メモリブロックメ
モリ1−1,1−2又は1−3及びデータ待避用メモリ
ブロック1−4に対して書き込みを行う。アプリケーシ
ョン9からのメモリブロック1−1,1−2又は1−3
から読み出し要求に対してはチップセレクト回路3を使
用し、データ待避用メモリブロック1−4から読み出し
を行う。
When the memory diagnosis is completed, the memory diagnosis function 11 reports the result to the memory copy function 12 and the memory diagnosis control function 2, and the memory copy function 12 transmits the data to the memory to be diagnosed from the data saving memory block 1-4. Data is copied to 1-1, 1-2 or 1-3. Memory blocks 1-1 and 1-2 from application 9
Alternatively, for a write request to 1-3, the chip select circuit 3 is used as in the start of diagnosis, and the memory block memories 1-1, 1-2 or 1-3 and the data save memory block 1-4 are used. Write to it. Memory block 1-1, 1-2 or 1-3 from application 9
In response to the read request, the chip select circuit 3 is used to read from the data save memory block 1-4.

【0023】コピー終了後、メモリ診断終了とメモリ診
断の結果を報告する。
After the copy is completed, the end of the memory diagnosis and the result of the memory diagnosis are reported.

【0024】このようにして、アプリケーション9が起
動されている最中にメモリ自身が診断を実施することで
アプリケーション起動時でも処理能力を落とさず、ま
た、装置全体の診断の時にメモリ診断の部分を省くこと
ができれば、全体の診断時間の短縮が可能である。
In this way, the memory itself performs the diagnosis while the application 9 is running, so that the processing capacity is not reduced even when the application is started, and the memory diagnosis part is replaced when the whole device is diagnosed. If it can be omitted, the overall diagnosis time can be reduced.

【0025】図1を参照すると、本発明の実施形態は、
プログラム制御により動作する。
Referring to FIG. 1, an embodiment of the present invention comprises:
Operates by program control.

【0026】メモリ診断は、ブロック分割したメモリ
1、メモリコピー機能12、メモリ診断機能11、メモ
リ診断コントロール機能2、アドレス切替用チップセレ
クト回路3とから構成されている。
The memory diagnosis includes a memory 1 divided into blocks, a memory copy function 12, a memory diagnosis function 11, a memory diagnosis control function 2, and an address switching chip select circuit 3.

【0027】メモリコピー機能12は、メモリ診断時に
アプリケーション9により指定されるメモリブロック1
−1,1−2又は1−3からデータ待避用メモリブロッ
ク(図1の1−4)にデータをコピーする機能を持つ。
また、その逆方向にコピーする機能も持つ。メモリコピ
ー機能12は、データ待避用メモリブロックのメモリ診
断の時にはコピーは実施しない。
[0027] The memory copy function 12 is a memory block 1 designated by the application 9 at the time of memory diagnosis.
It has a function of copying data from -1, 1-2 or 1-3 to a data save memory block (1-4 in FIG. 1).
It also has the function of copying in the opposite direction. The memory copy function 12 does not copy data during memory diagnosis of the data saving memory block.

【0028】アドレス切替用チップセレクト回路9は、
メモリ診断コントロール機能2の指示により、アプリケ
ーション9から、メモリコピー時には、メモリブロック
1−1,1−2又は3及びデータ待避用メモリブロック
1−4、メモリ診断時には、データ待避用メモリブロッ
ク1−4、通常時には、メモリブロック1−1,1−2
又は1−3をアクセスできる機能を持つ。
The address switching chip select circuit 9
In response to an instruction from the memory diagnosis control function 2, the application 9 sends a memory block 1-1, 1-2 or 3 and a data saving memory block 1-4 at the time of memory copying, and a data saving memory block 1-4 at the time of memory diagnosis. , Normally, the memory blocks 1-1 and 1-2
Or a function that can access 1-3.

【0029】メモリ診断機能11は、メモリブロック1
−1,1−2又は1−3に特定のパターンを書き込んだ
後、メモリブロック1−1,1−2又は1−3からパタ
ーンを読み出して、両者を比較することにより、その書
き込んだパターンが正常かどうかチェックする機能を持
つ。
The memory diagnostic function 11 is used for the memory block 1
After writing a specific pattern in -1, 1-2 or 1-3, the pattern is read out from the memory blocks 1-1, 1-2 or 1-3, and by comparing the two, the written pattern becomes It has a function to check whether it is normal.

【0030】メモリ診断コントロール機能2は、アプリ
ケーション9とのインターフェース(診断開始の受付、
診断終了時の結果通知など)を行い、また、診断を実行
するためにメモリコピー機能12、メモリ診断機能1
1、チップセレクト回路3の動作を管理する。
The memory diagnosis control function 2 has an interface with the application 9 (reception of start of diagnosis,
Memory copy function 12, memory diagnostic function 1
1. The operation of the chip select circuit 3 is managed.

【0031】図1を参照して本実施形態の全体の動作に
ついて詳細に説明する。
The overall operation of the present embodiment will be described in detail with reference to FIG.

【0032】外部のトリガ発生部は、メモリ診断コント
ロール機能2へメモリ診断を実行するメモリブロックを
指定して、起動のトリガをかける。ここでは、指定され
たメモリをメモリブロック1−2として説明する。メモ
リ診断コントロール機能11は、メモリブロック1−2
のデータをデータ退避用メモリブロック1−4へコピー
するようにメモリコピー機能12へ指示する。外部のト
リガ発生部としては、タイマ、操作者によるコマンド受
付手段、他のアプリケーション内の命令などがある。
The external trigger generator designates a memory block for executing a memory diagnosis to the memory diagnosis control function 2 and triggers a start. Here, the designated memory will be described as a memory block 1-2. The memory diagnostic control function 11 includes a memory block 1-2.
The memory copy function 12 is instructed to copy this data to the data save memory block 1-4. Examples of the external trigger generation unit include a timer, a command receiving unit by an operator, and a command in another application.

【0033】この時、診断対象としてデータ退避用メモ
リブロックが指示された場合には、データコピーは省略
する。待避すべきデータがないからである。コピー開始
と同時にメモリ診断コントロール機能2はチップセレク
ト回路3に指示を出し、アプリケーション9からのデー
タの書き込みがあった場合には、メモリブロック1−2
とデータ退避用メモリブロックの両方に書き込むように
設定する。データの読み出し時にはメモリブロック1−
2から読み出すように設定する。
At this time, if a data saving memory block is designated as a diagnosis target, data copying is omitted. This is because there is no data to be saved. Simultaneously with the start of copying, the memory diagnostic control function 2 issues an instruction to the chip select circuit 3, and when data is written from the application 9, the memory block 1-2
And write to both the data save memory block. When reading data, the memory block 1-
Set to read from 2.

【0034】コピーが終了したらメモリコピー機能12
はメモリ診断コントロール機能2にコピー終了を通知す
る。それに応じてメモリ診断コントロール機能2はチッ
プセレクト回路3に指示を出し、アプリケーション9が
メモリブロック1−2にアクセスしようとした場合にデ
ータ退避用メモリブロック1−4にアクセスするように
設定を変更する。
When copying is completed, the memory copy function 12
Notifies the memory diagnosis control function 2 of the end of copying. In response, the memory diagnostic control function 2 issues an instruction to the chip select circuit 3 and changes the setting so that when the application 9 attempts to access the memory block 1-2, it accesses the data saving memory block 1-4. .

【0035】次にメモリ診断コントロール機能2はメモ
リ診断機能11にメモリブロック1−2の診断を行うよ
うに指示する。メモリ診断機能11は、対象メモリに対
して所定の書き込みパターンを書き込んだ後に読み出し
て書き込みパターンと読み出しパターンを比較すること
によりメモリブロック1−2が正常であるか否かをチェ
ックする。メモリブロック1−2に対し全ての診断が終
了したらメモリ診断コントロール機能2にメモリ診断の
結果を通知する。
Next, the memory diagnosis control function 2 instructs the memory diagnosis function 11 to diagnose the memory block 1-2. The memory diagnosis function 11 checks whether or not the memory block 1-2 is normal by writing a predetermined write pattern to the target memory and reading it out and comparing the write pattern with the read pattern. When all diagnoses have been completed for the memory block 1-2, the result of the memory diagnostic is notified to the memory diagnostic control function 2.

【0036】メモリ診断の終了を確認したら、メモリ診
断コントロール機能2はメモリコピー機能12に指示を
出し、データ退避用メモリブロック1−4からメモリブ
ロック1−2にデータコピーの指示を出す。この場合に
アプリケーション9からメモリブロック1−2へのアク
セス要求があったら、書き込みの場合はメモリブロック
1−2とデータ待避用メモリブロック1−4へデータを
書き込み、読み出しの場合はデータ待避用メモリブロッ
ク1−4からデータを読み出す。データ待避用メモリブ
ロック1−4からメモリブロック1−2へのデータコピ
ーが終了したら、メモリコピー機能12はアプリケーシ
ョンへその旨を通知する。なお、診断対象としてデータ
退避用メモリブロックが指示されている場合には、デー
タコピーは省略する。
After confirming the end of the memory diagnosis, the memory diagnosis control function 2 issues an instruction to the memory copy function 12, and issues a data copy instruction from the data saving memory block 1-4 to the memory block 1-2. In this case, if there is an access request from the application 9 to the memory block 1-2, data is written to the memory block 1-2 and the data saving memory block 1-4 for writing, and the data saving memory is read for reading. Data is read from blocks 1-4. When the data copy from the data save memory block 1-4 to the memory block 1-2 is completed, the memory copy function 12 notifies the application to that effect. If a data save memory block is designated as a diagnosis target, data copy is omitted.

【0037】メモリコントロール機能2は外部にメモリ
診断結果をモニタ、LEDなどの表示装置などの外部装
置に通知する。
The memory control function 2 notifies the external device of the memory diagnosis result to an external device such as a monitor or a display device such as an LED.

【0038】[実施形態2]次に、本発明の実施形態2
について図2を参照して詳細に説明する。
[Embodiment 2] Next, Embodiment 2 of the present invention.
Will be described in detail with reference to FIG.

【0039】実施形態2の基本構成は実施形態1と同様
であるが、フラッシュメモリのような書き込みや消去に
特別なシーケンスがあるメモリに対しても本発明による
メモリ診断方式を適用することができる。
Although the basic configuration of the second embodiment is the same as that of the first embodiment, the memory diagnostic system according to the present invention can be applied to a memory such as a flash memory having a special sequence for writing and erasing. .

【0040】例えば、メモリコピー機能112に、フラ
ッシュメモリ消去機能とフラッシュメモリ書き込み機能
を追加する。メモリコピー機能112は、メモリ診断コ
ントロール機能2からコピー指示を受信したら、データ
退避用フラッシュメモリ101−4のデータを消去シー
ケンスに従いデータを消去する。
For example, a flash memory erase function and a flash memory write function are added to the memory copy function 112. Upon receiving the copy instruction from the memory diagnostic control function 2, the memory copy function 112 erases the data in the data saving flash memory 101-4 according to the erase sequence.

【0041】消去後、指定されたフラッシュメモリブロ
ック101−1、101−2又は101−3からデータ
待避用フラッシュメモリ101−4へフラッシュメモリ
の書き込みシーケンスに従いデータをコピーする。
After the erasure, the data is copied from the designated flash memory block 101-1, 101-2 or 101-3 to the data saving flash memory 101-4 in accordance with the flash memory write sequence.

【0042】次に、メモリ診断機能111にも、フラッ
シュメモリ消去機能とフラッシュメモリ書き込み機能を
追加する。メモリ診断機能111は、メモリ診断コント
ロール機能2から診断開始指示を受信したら対象のフラ
ッシュメモリ101−1、101−2又は101−3を
消去する。消去が終了したら、書き込みシーケンスに従
い診断用データパターンを書き込み、書き込まれた診断
用データパターンを読み出し、それらの診断用データパ
ターンを比較することにより、フラッシュメモリの正常
性をチェックする。
Next, a flash memory erasing function and a flash memory writing function are added to the memory diagnostic function 111. When receiving the diagnosis start instruction from the memory diagnosis control function 2, the memory diagnosis function 111 erases the target flash memory 101-1, 101-2, or 101-3. When the erasure is completed, the diagnostic data pattern is written in accordance with the write sequence, the written diagnostic data pattern is read, and the normality of the flash memory is checked by comparing the diagnostic data patterns.

【0043】メモリ診断が終了したらメモリコピー機能
112を使用して、フラッシュメモリ101−1、10
1−2又は101−3の消去、データ待避用フラッシュ
メモリ101−4から指定されたフラッシュメモリブロ
ック101−1、101−2又は101−3へのデータ
のコピーを行う。
When the memory diagnosis is completed, the flash memory 101-1 and the flash memory 101-1 are used by using the memory copy function 112.
Erase 1-2 or 101-3 and copy data from the data saving flash memory 101-4 to the designated flash memory block 101-1, 101-2 or 101-3.

【0044】このように、特殊な機能をもつメモリに
は、メモリコピー機能とメモリ診断機能に機能追加を行
えば対応できる。
As described above, a memory having a special function can be handled by adding functions to the memory copy function and the memory diagnostic function.

【0045】また、メモリ診断機能を変更すれば、さま
ざまなメモリ診断を実施できる。
By changing the memory diagnostic function, various memory diagnostics can be performed.

【0046】本発明のメモリ診断方式は、全ての種類の
メモリ(ダイナミックランダムアクセスメモリ、スタテ
ィックランダムアクセスメモリ、フラッシュメモリ)に
対して適用できる。
The memory diagnosis method of the present invention can be applied to all kinds of memories (dynamic random access memory, static random access memory, flash memory).

【0047】また、アプリケーションからのトリガによ
らず、巡回的に各メモリブロックを診断するようにして
もよい。
Further, each memory block may be diagnosed cyclically irrespective of the trigger from the application.

【0048】本発明によるメモリ診断方式は、RAMな
どの1次メモリ(主記憶装置)のみならず、ハードディ
スクなどの2次メモリ(外部記憶装置)をも対象とする
ことができるのはいうまでもない。
The memory diagnostic method according to the present invention can be applied not only to a primary memory (main storage device) such as a RAM but also to a secondary memory (external storage device) such as a hard disk. Absent.

【0049】なお、上記の実施形態による方法は、コン
ピュータに当該方法を実行させるためのプログラムを記
録したCD−ROMなどの記録媒体からコンピュータが
当該プログラムを読み込んで実行することにより実現す
ることもできる。
The method according to the above-described embodiment can also be realized by a computer reading and executing the program from a recording medium such as a CD-ROM on which a program for causing the computer to execute the method is recorded. .

【0050】また、上記の実施形態による方式は、コン
ピュータを当該装置の各機能として動作させるためのプ
ログラムを記録したCD−ROMなどの記録媒体からコ
ンピュータが当該プログラムを読み込んで実行すること
により実現することもできる。
The system according to the above-described embodiment is realized by the computer reading and executing the program from a recording medium such as a CD-ROM in which the program for operating the computer as each function of the apparatus is recorded. You can also.

【0051】この際、通常は、コンピュータのCPU
は、オペレーティングシステムにより、当該プログラム
を当該記録媒体から主メモリに一旦転送した後に、主メ
モリから当該プログラムを読み込んで実行する。
At this time, usually, the CPU of the computer is used.
After the program is once transferred from the recording medium to the main memory by the operating system, the program is read from the main memory and executed.

【0052】また、上記プログラムは、インタプリタ形
式の命令を記述したテキスト形式のファイルと、このフ
ァイルを読み込んで実行命令に変換するインタプリタよ
り生成されることもある。
The above program may be generated by a text file in which instructions in an interpreter format are described, and an interpreter which reads the file and converts the file into execution instructions.

【0053】また、上記の実施形態による方式の各機能
はハードウェアにより実現することも可能である。
Each function of the system according to the above-described embodiment can be realized by hardware.

【0054】[0054]

【発明の効果】本発明によれば、以下の効果が奏され
る。
According to the present invention, the following effects can be obtained.

【0055】第1の効果は、装置起動時の装置全体の診
断時間を短縮できることである。その理由は、装置起動
時の装置全体の診断時にメモリを診断する必要が無く、
起動後の通常稼働時にメモリを診断することが可能だか
らである。
The first effect is that the diagnosis time of the entire apparatus at the time of starting the apparatus can be reduced. The reason is that there is no need to diagnose the memory when diagnosing the entire device at the time of device startup,
This is because it is possible to diagnose the memory during normal operation after startup.

【0056】第2の効果は、アプリケーションが動作中
でもメモリ診断が可能になることにある。その理由は、
メモリ診断中は、アプリケーションが使用するメモリの
データをデータ待避用メモリブロックに待避し、アプリ
ケーションはデータ待避用メモリブロックをアクセスす
るからである。
The second effect is that the memory diagnosis can be performed even while the application is operating. The reason is,
This is because during the memory diagnosis, the data of the memory used by the application is saved in the data saving memory block, and the application accesses the data saving memory block.

【0057】第3の効果は、アプリケーションの処理能
力を損なうことがないことである。その理由は、アプリ
ケーションの動作とは無関係にメモリ診断を行うからで
ある。
The third effect is that the processing capability of the application is not impaired. The reason is that the memory diagnosis is performed independently of the operation of the application.

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

【図1】本発明の実施形態1によるメモリ診断方式の構
成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a memory diagnostic system according to a first embodiment of the present invention.

【図2】本発明の実施形態2によるメモリ診断方式の構
成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of a memory diagnostic system according to a second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 メモリ 1−1、1−2、1−3 メモリブロック 1−4 データ待避用メモリブロック 2 メモリ診断コントロール機能 3 チップセレクト回路 9 アプリケーション又は装置 11 メモリ診断機能 12 メモリコピー機能 DESCRIPTION OF SYMBOLS 1 Memory 1-1, 1-2, 1-3 Memory block 1-4 Memory block for data saving 2 Memory diagnostic control function 3 Chip select circuit 9 Application or device 11 Memory diagnostic function 12 Memory copy function

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 複数のメモリブロックに分割された診断
対象のメモリと、 データ待避用メモリブロックと、 前記複数のメモリブロックのうち外部より指定されたい
ずれかのメモリブロックと前記データ待避用メモリブロ
ックとの間でデータをコピーするメモリコピー手段と、 前記指定されたメモリブロックへの上位からのアクセス
があったときに、アクセス先を前記指定されたメモリブ
ロック又は/及び前記データ待避用メモリブロックとす
るアクセス変換手段と、 前記指定されたメモリブロックを診断するメモリ診断手
段と、 を備えることを特徴とするメモリ診断方式。
1. A memory to be diagnosed divided into a plurality of memory blocks, a memory block for data saving, one of the plurality of memory blocks designated from outside, and the memory block for data saving A memory copy unit for copying data between the specified memory block and an access destination from the specified memory block or / and the data saving memory block when the specified memory block is accessed from above. A memory diagnosis unit for diagnosing the specified memory block.
【請求項2】 請求項1に記載のメモリ診断方式におい
て、 前記メモリコピー手段は、前記メモリ診断手段による診
断が開始する前に前記指定されたメモリブロックから前
記データ待避用メモリブロックにデータをコピーし、前
記メモリ診断手段による診断が終了した後に前記データ
待避用メモリブロックから前記指定されたメモリブロッ
クへデータをコピーすることを特徴とするメモリ診断方
式。
2. The memory diagnosis method according to claim 1, wherein the memory copy unit copies data from the designated memory block to the data save memory block before the diagnosis by the memory diagnosis unit starts. And a method of copying data from the data save memory block to the designated memory block after the diagnosis by the memory diagnostic means is completed.
【請求項3】 請求項2に記載のメモリ診断方式におい
て、前記アクセス変換手段は、 前記メモリコピー手段による前記指定されたメモリブロ
ックから前記データ待避用メモリブロックへのデータの
コピーが行われている最中には、前記上位から指定され
たメモリブロックへのアクセスが書き込みである場合に
は、書き込み先を前記指定されたメモリブロック及び前
記データ待避用メモリブロックとして、前記上位から指
定されたメモリブロックへのアクセスが読み出しである
場合には、読み出し先を前記指定されたメモリブロック
とし、 前記メモリ診断手段による診断の最中には、前記上位か
ら指定されたメモリブロックへのアクセスがあったとき
に、アクセス先を前記データ待避用メモリブロックと
し、 前記メモリコピー手段による前記データ待避用メモリブ
ロックから前記指定されたメモリブロックへのデータの
コピーが行われている最中には、前記上位から指定され
たメモリブロックへのアクセスが書き込みである場合に
は、書き込み先を前記指定されたメモリブロック及び前
記データ待避用メモリブロックとして、前記上位から指
定されたメモリブロックへのアクセスが読み出しである
場合には、読み出し先を前記データ待避用メモリブロッ
クとすることを特徴とするメモリ診断方式。
3. The memory diagnostic method according to claim 2, wherein the access conversion unit copies data from the designated memory block to the data save memory block by the memory copy unit. In the meantime, when the access to the memory block specified from the upper level is a write, the write destination is set to the specified memory block and the data saving memory block, and the memory block specified from the upper level is written. If the access to is a read, the read destination is the specified memory block. During the diagnosis by the memory diagnostic means, when the memory block specified from the upper level is accessed, The access destination is the data saving memory block, and the memory copying means While data is being copied from the data save memory block to the designated memory block, if the access to the designated memory block from the upper level is write, the write destination is When the access to the specified memory block from the upper level is a read, the read destination is the data save memory block as the specified memory block and the data save memory block. Diagnostic method.
【請求項4】 診断対象のメモリを複数のメモリブロッ
クに分割するステップと、 データ待避用メモリブロックを用意するステップと、 前記複数のメモリブロックのうち外部より指定されたい
ずれかのメモリブロックと前記データ待避用メモリブロ
ックとの間でデータをコピーするメモリコピーステップ
と、 前記指定されたメモリブロックへの上位からのアクセス
があったときに、アクセス先を前記指定されたメモリブ
ロック又は/及び前記データ待避用メモリブロックとす
るアクセス変換ステップと、 前記指定されたメモリブロックを診断するメモリ診断ス
テップと、 を有することを特徴とするメモリ診断方法。
4. A step of dividing a memory to be diagnosed into a plurality of memory blocks, a step of preparing a data save memory block, and any one of an externally designated memory block among the plurality of memory blocks. A memory copy step of copying data to and from a data save memory block; and when the specified memory block is accessed from a higher level, an access destination is set to the specified memory block or / and the data. A memory diagnosis method, comprising: an access conversion step of setting a save memory block; and a memory diagnosis step of diagnosing the specified memory block.
【請求項5】 請求項4に記載のメモリ診断方法におい
て、 前記メモリコピーステップは、前記メモリ診断ステップ
が開始する前に前記指定されたメモリブロックから前記
データ待避用メモリブロックにデータをコピーするステ
ップと、前記メモリ診断ステップが終了した後に前記デ
ータ待避用メモリブロックから前記指定されたメモリブ
ロックへデータをコピーするステップとを有することを
特徴とするメモリ診断方法。
5. The memory diagnosis method according to claim 4, wherein the memory copy step is a step of copying data from the specified memory block to the data save memory block before the memory diagnosis step starts. And a step of copying data from the data save memory block to the designated memory block after the memory diagnosis step is completed.
【請求項6】 請求項5に記載のメモリ診断方法におい
て、前記アクセス変換ステップは、 前記メモリコピーステップによる前記指定されたメモリ
ブロックから前記データ待避用メモリブロックへのデー
タのコピーが行われている最中には、前記上位から指定
されたメモリブロックへのアクセスが書き込みである場
合には、書き込み先を前記指定されたメモリブロック及
び前記データ待避用メモリブロックとして、前記上位か
ら指定されたメモリブロックへのアクセスが読み出しで
ある場合には、読み出し先を前記指定されたメモリブロ
ックとし、 前記メモリ診断ステップの最中には、前記上位から指定
されたメモリブロックへのアクセスがあったときに、ア
クセス先を前記データ待避用メモリブロックとし、 前記メモリコピーステップによる前記データ待避用メモ
リブロックから前記指定されたメモリブロックへのデー
タのコピーが行われている最中には、前記上位から指定
されたメモリブロックへのアクセスが書き込みである場
合には、書き込み先を前記指定されたメモリブロック及
び前記データ待避用メモリブロックとして、前記上位か
ら指定されたメモリブロックへのアクセスが読み出しで
ある場合には、読み出し先を前記データ待避用メモリブ
ロックとすることを特徴とするメモリ診断方法。
6. The memory diagnosis method according to claim 5, wherein in the access conversion step, data is copied from the designated memory block to the data saving memory block by the memory copy step. In the meantime, when the access to the memory block specified from the upper level is a write, the write destination is set to the specified memory block and the data saving memory block, and the memory block specified from the upper level is written. If the access to is a read, the read destination is set to the specified memory block. During the memory diagnosis step, when an access is made to the memory block specified from the upper level, the access is performed. The first is the data save memory block, and the memory copy step While data is being copied from the data save memory block to the designated memory block, if the access to the designated memory block from the upper level is a write, Wherein the specified memory block and the data save memory block are read, and when the access to the specified memory block from the upper level is read, the read destination is the data save memory block. Memory diagnostic method to do.
JP11161008A 1999-06-08 1999-06-08 System and method for diagnosing memory Pending JP2000347949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11161008A JP2000347949A (en) 1999-06-08 1999-06-08 System and method for diagnosing memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11161008A JP2000347949A (en) 1999-06-08 1999-06-08 System and method for diagnosing memory

Publications (1)

Publication Number Publication Date
JP2000347949A true JP2000347949A (en) 2000-12-15

Family

ID=15726835

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11161008A Pending JP2000347949A (en) 1999-06-08 1999-06-08 System and method for diagnosing memory

Country Status (1)

Country Link
JP (1) JP2000347949A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007226640A (en) * 2006-02-24 2007-09-06 Nec Corp Memory diagnosis processing circuit and memory diagnosis processing method
JP2015095741A (en) * 2013-11-12 2015-05-18 日本電信電話株式会社 Optical subscriber line termination device and method for detecting damage of transfer table

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007226640A (en) * 2006-02-24 2007-09-06 Nec Corp Memory diagnosis processing circuit and memory diagnosis processing method
JP2015095741A (en) * 2013-11-12 2015-05-18 日本電信電話株式会社 Optical subscriber line termination device and method for detecting damage of transfer table

Similar Documents

Publication Publication Date Title
US6449735B1 (en) Method and apparatus for providing improved diagnostic functions in a computer system
JP5021190B2 (en) Memory dump generation with fast restart
JP2716275B2 (en) Method and apparatus for testing computer system storage
JP5509568B2 (en) Computer apparatus, processor diagnosis method, and processor diagnosis control program
US6615364B1 (en) Computer system and methods for acquiring dump information and system recovery
US5479413A (en) Method for testing large memory arrays during system initialization
JP2000347949A (en) System and method for diagnosing memory
US8176250B2 (en) System and method for testing a memory
JP2001356971A (en) System and method for testing multiprocessor memory
JP2008046981A (en) System controller, information processor, and input/output request control method
JP2005149503A (en) System and method for testing memory using dma
JP2007148536A (en) Ram-diagnosing device and method
JP2000339189A (en) Method for detecting illegal memory access debugging device and storage medium
JPH09269896A (en) Booting method for firm cpu
JPS6045829B2 (en) fail memory
JP2006039843A (en) Ram test circuit, information processing apparatus, and ram testing method
JP2001147863A (en) Flash memory rewrite device
JPH0644091A (en) Memory diagnostic circuit
JPH09330253A (en) Memory dump method and memory damp system applying the same
JP2004013506A (en) Download device for processor and its control method
JP3177990B2 (en) Diagnostic device for redundant memory
KR20060020755A (en) Method for communication among overlay units and apparatus using by method for the same
JPH0635747A (en) Debug supporting device
JPH0341538A (en) Main storage device
JPS634500A (en) Ram device with test circuit