Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3433809B2 - Memory diagnosis / initialization method - Google Patents
[go: Go Back, main page]

JP3433809B2 - Memory diagnosis / initialization method - Google Patents

Memory diagnosis / initialization method

Info

Publication number
JP3433809B2
JP3433809B2 JP22431492A JP22431492A JP3433809B2 JP 3433809 B2 JP3433809 B2 JP 3433809B2 JP 22431492 A JP22431492 A JP 22431492A JP 22431492 A JP22431492 A JP 22431492A JP 3433809 B2 JP3433809 B2 JP 3433809B2
Authority
JP
Japan
Prior art keywords
memory
cache memory
initialization
cache
program
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 - Fee Related
Application number
JP22431492A
Other languages
Japanese (ja)
Other versions
JPH0667991A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP22431492A priority Critical patent/JP3433809B2/en
Publication of JPH0667991A publication Critical patent/JPH0667991A/en
Application granted granted Critical
Publication of JP3433809B2 publication Critical patent/JP3433809B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、最小命令セットコンピ
ュータ(以下、単にRISCと記す)を搭載する情報処
理装置のメモリ診断/初期化方式に関し、特に、主記憶
装置との間にキャッシュメモリを有するプロセッサにお
けるメモリ診断/初期化方式に適用して有効な技術に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory diagnosis / initialization system for an information processing apparatus equipped with a minimum instruction set computer (hereinafter simply referred to as RISC). The present invention relates to a technique effectively applied to a memory diagnosis / initialization method in a processor included in the processor.

【0002】[0002]

【従来の技術】たとえば、情報処理装置のキャッシュメ
モリおよび揮発性主記憶メモリは、システム立ち上げ時
にメモリの動作保証をするための診断機構や、ECC
(誤り訂正符号)またはパリティビットを保証するため
の初期化機構を持つ。また、複雑命令セットコンピュー
タ(以下、単にCISCと記す)では、一般的に診断お
よび初期化機構をCISCチップ内に組み込まれたマイ
クロプログラムで動作させている。そして、マイクロプ
ログラムは高速で走行するため、診断および初期化の処
理時間はあまり問題とならない。
2. Description of the Related Art For example, a cache memory and a volatile main memory of an information processing apparatus have a diagnostic mechanism for guaranteeing the operation of the memory at the time of system startup and an ECC.
It has an initialization mechanism to guarantee (error correction code) or parity bits. Further, in a complex instruction set computer (hereinafter, simply referred to as CISC), a diagnosis and initialization mechanism is generally operated by a micro program incorporated in a CISC chip. Since the microprogram runs at high speed, the processing time for diagnosis and initialization does not pose a problem.

【0003】しかし、マイクロプログラムを持たないR
ISCを搭載する情報処理装置では、不揮発性主記憶メ
モリ上のメモリ診断プログラムにより、診断および初期
化機構を動作させ、キャッシュメモリおよび揮発性主記
憶メモリの診断および初期化を行っている。
However, R without a microprogram
In an information processing device equipped with an ISC, a memory diagnostic program on a non-volatile main memory operates a diagnostic and initialization mechanism to diagnose and initialize a cache memory and a volatile main memory.

【0004】[0004]

【発明が解決しようとする課題】ところが、前記のよう
な従来技術においては、メモリの診断および初期化の処
理時間はシステム立ち上げ処理時間に影響を与え、近年
のキャッシュメモリ大容量化および多階層化、主記憶メ
モリの大容量化に伴い、ますます処理時間が増大すると
いう欠点がある。
However, in the prior art as described above, the processing time for memory diagnosis and initialization affects the system startup processing time, and in recent years the cache memory capacity and the number of layers have been increased. However, there is a drawback that the processing time is further increased due to the increase in capacity and the capacity of the main memory.

【0005】そこで、本発明の第1の目的は、速度の遅
い主記憶メモリ上でメモリ診断プログラムが走行する時
間を極力短くし、キャッシュメモリ領域上で前記メモリ
診断プログラムを走行させ、キャッシュメモリの診断お
よび初期化処理を行い、キャッシュメモリの診断および
初期化の時間を短縮する技術を提供することにある。
Therefore, a first object of the present invention is to minimize the time during which the memory diagnostic program runs on the slow main memory and to run the memory diagnostic program on the cache memory area to save the cache memory area. It is an object of the present invention to provide a technique for performing diagnosis and initialization processing and shortening the cache memory diagnosis and initialization time.

【0006】そして、本発明の第2の目的は、主記憶装
置との間に複数の階層で構成されるキャッシュメモリを
有するプロセッサにおいて、複数の階層で構成されたキ
ャッシュメモリの初期化あるいは診断/初期化の時間を
短縮する技術を提供することにある。
A second object of the present invention is, in a processor having a cache memory composed of a plurality of layers between itself and a main storage device, initialization or diagnosis / diagnosis of the cache memory composed of a plurality of layers. It is to provide a technique for reducing the initialization time.

【0007】次に、本発明の第3の目的は、揮発性主記
憶メモリと不揮発性主記憶メモリとキャッシュメモリを
有するプロセッサにおいて、揮発性主記憶メモリの初期
化あるいは診断/初期化の時間を短縮する技術を提供す
ることにある。
Next, a third object of the present invention is to provide a processor having a volatile main memory, a non-volatile main memory and a cache memory with the time required for initialization or diagnosis / initialization of the volatile main memory. It is to provide a technology for shortening.

【0008】本発明の前記ならびにその他の目的と新規
な特徴は、本明細書の記述および添付図面から明らかに
なるであろう。
The above and other objects and novel features of the present invention will be apparent from the description of this specification and the accompanying drawings.

【0009】[0009]

【課題を解決するための手段】本願において開示される
発明のうち、代表的なものの概要を簡単に説明すれば、
下記のとおりである。
Among the inventions disclosed in the present application, a brief description will be given to the outline of typical ones.
It is as follows.

【0010】すなわち、本発明のメモリ診断/初期化方
式は、主記憶装置との間にキャッシュメモリを有するプ
ロセッサにおいて、キャッシュメモリ上でメモリの初期
化あるいは診断/初期化を行うプログラムを走行させ、
キャッシュメモリの診断/初期化を実施するメモリ診断
/初期化方式であって、直接キャッシュメモリを読み書
きする手段を備え、主記憶装置上のメモリ初期化プログ
ラムによりキャッシュメモリの一部領域を初期化し、初
期化が完了したキャッシュメモリ領域に、前記手段によ
りキャッシュメモリの初期化あるいは診断/初期化を行
うプログラムを書き込み、初期化が完了していないキャ
ッシュメモリ領域の初期化あるいは診断/初期化をキャ
ッシュメモリ上にある該プログラムにより高速で行うも
のである。
That is, according to the memory diagnosis / initialization method of the present invention, in a processor having a cache memory between itself and a main memory, a program for memory initialization or diagnosis / initialization is run on the cache memory,
A memory diagnostic / initialization method for diagnosing / initializing the cache memory, comprising means for directly reading / writing the cache memory, and initializing a partial area of the cache memory by a memory initialization program on the main memory, A program for initializing or diagnosing / initializing the cache memory by the above means is written in the cache memory area that has been initialized, and the initialization or diagnosis / initialization of the cache memory area that has not been initialized is performed in the cache memory. It is performed at high speed by the above program.

【0011】また、本発明のメモリ診断/初期化方式
は、主記憶装置との間に複数の階層で構成されるキャッ
シュメモリを有するプロセッサにおいて、複数の階層の
キャッシュメモリの初期化あるいは診断/初期化を行う
メモリの診断/初期化方式であって、直接各キャッシュ
メモリの内容を読み書きする手段を備え、主記憶装置上
のメモリ初期化プログラムにより第一の階層のキャッシ
ュメモリの一部領域を初期化し、初期化が完了したキャ
ッシュメモリ領域に、前記手段によりキャッシュメモリ
の初期化あるいは診断/初期化を行うプログラムを書き
込み、前記階層のキャッシュメモリの初期化が完了して
いないキャッシュメモリ領域の初期化あるいは診断/初
期化をキャッシュメモリ上にある該プログラムにより行
い、さらに、キャッシュメモリに書き込んだ該プログラ
ムにより他の階層のキャッシュメモリの初期化あるいは
診断/初期化を高速で行うものである。
Further, the memory diagnosis / initialization system of the present invention is such that, in a processor having a cache memory composed of a plurality of layers between itself and a main memory, initialization or diagnosis / initialization of the cache memories of a plurality of layers. a diagnostic / initialization method of a memory which performs reduction, comprising means for reading and writing directly contents of each cache memory, a main memory on
The memory initialization program of the
A part of the memory is initialized and the initialized
Cache memory in the cache memory area
Write a program to initialize or diagnose / initialize
The initialization of the cache memory of the above layer is completed.
Not initializing or diagnosing cache memory area / first
The synchronization is performed by the program in the cache memory.
In addition, the program written in the cache memory is used to perform initialization or diagnosis / initialization of the cache memory in another layer at high speed.

【0012】さらに、本発明のメモリ診断/初期化方式
は、揮発性主記憶メモリと不揮発性主記憶メモリとキャ
ッシュメモリを有するプロセッサにおいて、揮発性主記
憶メモリと、複数の階層のキャッシュメモリの診断/初
期化を行うメモリ診断/初期化方式であって、直接キャ
ッシュメモリの内容を読み書きする手段を備え、不揮発
性主記憶メモリ上のメモリ初期化プログラムにより第一
の階層のキャッシュメモリの一部領域を初期化し、初期
化が完了したキャッシュメモリ領域に、前記手段により
キャッシュメモリおよび揮発性主記憶メモリの初期化あ
るいは診断/初期化を行うプログラムを書き込み、前記
階層のキャッシュメモリの初期化が完了していないキャ
ッシュメモリ領域の初期化あるいは診断/初期化をキャ
ッシュメモリ上にある該プログラムにより行い、キャッ
シュメモリに書き込んだ該プログラムにより他の階層の
キャッシュメモリの初期化あるいは診断/初期化を行
い、さらに、該プログラムにより揮発性主記憶メモリを
初期化あるいは診断/初期化するものである。
Further, the memory diagnosis / initialization method of the present invention is a processor having a volatile main memory, a non-volatile main memory, and a cache memory, which diagnoses the volatile main memory and the cache memories of a plurality of layers. / Memory diagnosis / initialization method for initialization, which is provided with means for directly reading / writing the contents of the cache memory, and is non-volatile.
First by the memory initialization program on the main memory
Initialize part of the cache memory in the hierarchy of
In the cache memory area that has been converted,
Initialization of cache memory and volatile main memory
Write a diagnostic / initialization program,
The cache memory of the hierarchy has not been initialized yet.
Cache memory area initialization or diagnostic / initialization cache
The program in the cache memory
By the program written in the Shme memory,
Performs cache memory initialization or diagnosis / initialization
Further, the volatile main memory is initialized or diagnosed / initialized by the program.

【0013】[0013]

【作用】前記したメモリ診断/初期化方式によれば、メ
モリ診断/初期化プログラムを格納する容量分のキャッ
シュメモリ領域の診断および初期化を行い、その後、直
接キャッシュメモリ読み書き手段を用い、診断および初
期化が完了したキャッシュメモリ領域にメモリ診断プロ
グラムに相当するキャッシュデータを書き込み、前記キ
ャッシュメモリに書き込んだメモリ診断プログラムによ
り、診断および初期化が完了していないキャッシュメモ
リ領域の診断および初期化を主記憶メモリよりも速いキ
ャッシュメモリ上で走行することでメモリの診断および
初期化の時間を短縮できる。
According to the above-mentioned memory diagnosis / initialization method, the cache memory area for the capacity for storing the memory diagnosis / initialization program is diagnosed and initialized, and thereafter, the cache memory area is directly read / written by the cache memory read / write means. The cache data corresponding to the memory diagnostic program is written in the initialized cache memory area, and the memory diagnostic program written in the cache memory mainly diagnoses and initializes the cache memory area that has not been diagnosed and initialized. By running on the cache memory faster than the storage memory, the time required for memory diagnosis and initialization can be shortened.

【0014】また、キャッシュメモリが複数の階層(例
えば、プロセッサチップ内蔵キャッシュメモリと外付け
キャッシュメモリ)で構成されている場合において、直
接キャッシュメモリを読み書きする手段を用い、診断お
よび初期化されたキャッシュメモリにメモリ診断プログ
ラムに相当するキャッシュデータを書き込み、前記キャ
ッシュメモリに書き込んだメモリ診断プログラムによ
り、診断および初期化が完了していない他のキャッシュ
メモリの診断および初期化を主記憶よりも速いキャッシ
ュメモリ上で走行することでメモリの診断および初期化
時間を短縮することができる。
Further, when the cache memory is composed of a plurality of layers (for example, a cache memory built in a processor chip and an external cache memory), the cache which has been diagnosed and initialized by directly reading / writing the cache memory is used. A cache memory that is equivalent to a memory diagnostic program is written in the memory, and the memory diagnostic program written in the cache memory diagnoses and initializes another cache memory that has not been completed faster than the main memory. Running on top can reduce memory diagnostics and initialization time.

【0015】さらに、キャッシュメモリ、揮発性主記憶
メモリ、および不揮発性主記憶メモリで構成されている
場合において、直接キャッシュメモリを読み書きする手
段を用い、診断および初期化されたキャッシュメモリに
メモリ診断プログラムに相当するキャッシュデータを書
き込み、前記キャッシュメモリに書き込んだメモリ診断
プログラムにより、診断および初期化が完了していない
揮発性主記憶メモリの診断および初期化を主記憶メモリ
よりも速いキャッシュメモリ上で走行することでメモリ
の診断および初期化時間を短縮できる。
Further, in the case where the cache memory, the volatile main memory memory, and the non-volatile main memory memory are used, the memory diagnostic program is stored in the cache memory that has been diagnosed and initialized by using the means for directly reading and writing the cache memory. The cache diagnostic data written in the cache memory is written to the cache memory, and the diagnosis and initialization of the volatile main memory which is not completed to be diagnosed and initialized is executed on the cache memory faster than the main memory. By doing so, the memory diagnosis and initialization time can be shortened.

【0016】[0016]

【実施例】図1は本発明の一実施例であるメモリ診断/
初期化方式のシステム構成を示す概念図であり、図2は
図1のシステム構成図内のキャッシュメモリ書き込み回
路の一例を示す概念図、図3は前記メモリ診断/初期化
方式の動作フローの一例を示すフローチャート図、図4
は図3のメモリ診断/初期化方式の動作フロー内にある
メモリ診断プログラム10aを1次キャッシュメモリ2
へ書き込む動作フローの一例を示すフローチャート図で
ある。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a memory diagnostic /
2 is a conceptual diagram showing a system configuration of an initialization system, FIG. 2 is a conceptual diagram showing an example of a cache memory writing circuit in the system configuration diagram of FIG. 1, and FIG. 3 is an example of an operation flow of the memory diagnosis / initialization system. FIG. 4 is a flowchart showing FIG.
Shows the memory diagnostic program 10a in the operation flow of the memory diagnostic / initialization method of FIG.
It is a flowchart figure which shows an example of the operation flow which writes in.

【0017】まず、図1により本実施例のメモリ診断/
初期化方式の構成を説明する。
First, referring to FIG. 1, the memory diagnostic /
The configuration of the initialization method will be described.

【0018】本実施例のメモリの診断/初期化方式は、
たとえば、主記憶装置との間に複数の階層を持つキャッ
シュメモリを有するプロセッサにおいて、キャッシュメ
モリ上に該キャッシュメモリを診断/初期化するプログ
ラムを走行させ、キャッシュメモリおよび主記憶メモリ
を診断/初期化する方式とされ、複数の階層のキャッシ
ュメモリを備えるプロセッサ1と、主記憶装置6とから
構成されている。
The memory diagnosis / initialization method of this embodiment is as follows:
For example, in a processor having a cache memory having a plurality of layers with a main memory, a program for diagnosing / initializing the cache memory is run on the cache memory to diagnose / initialize the cache memory and the main memory. The main memory 6 is provided with a processor 1 having a plurality of layers of cache memories.

【0019】また、プロセッサ1内には、1次キャッシ
ュメモリ2と2次キャッシュメモリ3とからなる2階層
構成のキャッシュメモリ4と、キャッシュメモリ4に接
続するキャッシュメモリ選択回路5と、1次キャッシュ
メモリ2に接続するキャッシュメモリ書き込み回路11
を備えている。そして、キャッシュメモリ書き込み回路
11は、プロセッサ1からの指令によりキャッシュメモ
リ4の有効・無効の判断を行い、また、キャッシュメモ
リ4は主記憶装置6に接続されている。
Further, in the processor 1, a cache memory 4 having a two-layer structure composed of a primary cache memory 2 and a secondary cache memory 3, a cache memory selection circuit 5 connected to the cache memory 4, and a primary cache are provided. Cache memory writing circuit 11 connected to the memory 2
Is equipped with. Then, the cache memory writing circuit 11 determines whether the cache memory 4 is valid or invalid according to a command from the processor 1, and the cache memory 4 is connected to the main storage device 6.

【0020】次に、主記憶装置6は、揮発性主記憶メモ
リ7と不揮発性主記憶メモリ8から構成され、不揮発性
主記憶メモリ8には、メモリの診断および初期化を行う
キャッシュメモリ診断プログラム9とメモリ診断プログ
ラム10aが格納されている。
Next, the main memory 6 comprises a volatile main memory 7 and a non-volatile main memory 8. The non-volatile main memory 8 has a cache memory diagnostic program for diagnosing and initializing the memory. 9 and a memory diagnostic program 10a are stored.

【0021】ここで、図2によりキャッシュメモリ書き
込み回路11の構成について説明すると、前記キャッシ
ュメモリ書き込み回路11は、1次キャッシュメモリ2
に接続され、プロセッサ1から1次キャッシュメモリ2
へのキャッシュデータの書き込みを行う。そして、キャ
ッシュメモリ書き込み回路11は、アドレスタグ、命
令、データからなるキャッシュデータを格納するキャッ
シュデータレジスタ20と、1次キャッシュメモリ2の
任意のキャッシュエントリを選択するためのセレクタ回
路21、制御回路22から構成され、プロセツサ1から
の診断命令により1次キャッシュメモリ2へのキャッシ
ュデータの書き込み動作を行う。
The structure of the cache memory writing circuit 11 will now be described with reference to FIG.
Connected from the processor 1 to the primary cache memory 2
Write cache data to. Then, the cache memory writing circuit 11 includes a cache data register 20 for storing cache data including an address tag, an instruction, and data, a selector circuit 21 for selecting an arbitrary cache entry in the primary cache memory 2, and a control circuit 22. The processor 1 writes a cache data to the primary cache memory 2 according to a diagnostic command from the processor 1.

【0022】次に、本発明のメモリ診断/初期化方式の
作用を図3および図4の動作フローにより説明する。
Next, the operation of the memory diagnosis / initialization method of the present invention will be described with reference to the operation flows of FIGS.

【0023】ステップ301で、電源が投入された状態
では、1次キャッシュメモリ2および2次キャッシュメ
モリ3から構成されるキャッシュメモリ4は、キャッシ
ュメモリ選択回路5により無効状態になっている。
In step 301, when the power is turned on, the cache memory 4 including the primary cache memory 2 and the secondary cache memory 3 is disabled by the cache memory selection circuit 5.

【0024】そして、1次キャッシュメモリ2のメモリ
診断プログラム10b格納領域を診断および初期化する
ために、主記憶装置6内の不揮発性主記憶メモリ8に格
納されたキャッシュメモリ診断プログラム9が走行する
ときには、無効状態のキャッシュメモリ4にキャッシュ
データは格納されず、不揮発性主記憶メモリ8上にあ
り、プロセッサ1に読み込まれ、1次キャッシュメモリ
2の診断および初期化処理を開始する。
Then, in order to diagnose and initialize the memory diagnostic program 10b storage area of the primary cache memory 2, the cache memory diagnostic program 9 stored in the non-volatile main memory 8 in the main memory 6 runs. At times, cache data is not stored in the invalid cache memory 4 but is stored in the non-volatile main memory 8 and is read by the processor 1 to start the diagnosis and initialization processing of the primary cache memory 2.

【0025】次に、ステップ302では、キャッシュメ
モリ診断プログラム9は、メモリ診断プログラム10a
を格納できる容量分のみの前記1次キャッシュメモリ2
の診断および初期化をする。そして、前記1次キャッシ
ュメモリ2の診断および初期化が完了すると、キャッシ
ュメモリ診断プログラム9は、キャッシュメモリ書き込
み回路11を経由し、不揮発性主記憶メモリ8に格納さ
れているメモリ診断プログラム10aをアドレスタグ、
命令、データからなるキャッシュデータとして1次キャ
ッシュメモリ2に書き込む。
Next, at step 302, the cache memory diagnostic program 9 is executed by the memory diagnostic program 10a.
The primary cache memory 2 of only the capacity capable of storing
Diagnosis and initialization of. When the diagnosis and initialization of the primary cache memory 2 are completed, the cache memory diagnostic program 9 passes the cache memory writing circuit 11 to address the memory diagnostic program 10a stored in the non-volatile main memory 8. tag,
The data is written in the primary cache memory 2 as cache data including instructions and data.

【0026】ここで、メモリ診断プログラム10bを1
次キャッシュメモリ2に書き込む処理について図2およ
び図4を参考にしながら説明する。
Here, the memory diagnostic program 10b is set to 1
The process of writing to the next cache memory 2 will be described with reference to FIGS. 2 and 4.

【0027】すなわち、キャッシュデータの1次キャッ
シュメモリ2への書き込みは、キャッシュメモリ診断プ
ログラム9が発行する診断命令により行われ、以下ステ
ップ401からステップ406をとおしてメモリ診断プ
ログラム10bの1次キャッシュメモリ2への書き込み
について説明する。
That is, the writing of the cache data to the primary cache memory 2 is performed by a diagnostic command issued by the cache memory diagnostic program 9, and the primary cache memory of the memory diagnostic program 10b is executed through steps 401 to 406 below. Writing to No. 2 will be described.

【0028】まず、ステップ401では、キャッシュメ
モリ診断プログラム9は、キャッシュデータを格納する
キャッシュエントリを決定する。
First, in step 401, the cache memory diagnostic program 9 determines a cache entry for storing cache data.

【0029】次に、ステップ402では、不揮発性主記
憶メモリ8内にあるメモリ診断プログラム10aの先頭
アドレスを求め、該アドレスをAにセットする。ここ
で、Aはメモリ診断プログラム10aのアドレスを示す
指標とする。
Next, at step 402, the head address of the memory diagnostic program 10a in the non-volatile main memory 8 is obtained and the address is set to A. Here, A is an index indicating the address of the memory diagnostic program 10a.

【0030】そして、ステップ403では、不揮発性主
記憶メモリ8に格納されているメモリ診断プログラム1
0aのA番地のデータを取り出し、アドレスタグを作成
する。
Then, in step 403, the memory diagnostic program 1 stored in the non-volatile main memory 8
The data of address A of 0a is taken out and an address tag is created.

【0031】次いで、ステップ404では、A番地のデ
ータより、命令、データからなるキャッシュデータを作
成する。
Next, at step 404, cache data consisting of an instruction and data is created from the data at address A.

【0032】さらに、ステップ405では、キャッシュ
メモリ診断プログラム9は、診断命令により1次キャッ
シュメモリ2のキャッシュエントリと、前記キャッシュ
エントリに書き込むアドレスタグ、命令、データをキャ
ッシュメモリ書き込み回路11に指示する。そして、指
示されたキャッシュメモリ書き込み回路11は、指定さ
れたキャッシュエントリをセレクタ回路21により選択
し、キャッシュデータレジスタ20に格納した前記キャ
ッシュデータであるアドレスタグ、命令、データを1次
キャッシュメモリ2へ書き込む。
Further, in step 405, the cache memory diagnostic program 9 instructs the cache memory writing circuit 11 with the cache entry of the primary cache memory 2 and the address tag, the instruction and the data to be written in the cache entry by the diagnostic instruction. Then, the instructed cache memory writing circuit 11 selects the specified cache entry by the selector circuit 21 and transfers the address tag, the instruction, and the data, which are the cache data stored in the cache data register 20, to the primary cache memory 2. Write.

【0033】次に、ステップ406では、A番地のアド
レスがメモリ診断プログラムの最終アドレスかどうか判
断し、最終アドレスでない場合には、メモリ診断プログ
ラム10aのアドレスを示すAとキャッシュエントリを
カウントアップし、ステップ403のアドレスタグの作
成に戻る。このようにして、キャッシュメモリ診断プロ
グラム9は、メモリ診断プログラム10aに相当するキ
ャッシュデータをすべて1次キャッシュメモリ2に書き
込む。
Next, at step 406, it is judged whether the address of the address A is the final address of the memory diagnostic program, and if it is not the final address, the address A of the memory diagnostic program 10a and the cache entry are counted up, Returning to the creation of the address tag in step 403. In this way, the cache memory diagnostic program 9 writes all cache data corresponding to the memory diagnostic program 10a in the primary cache memory 2.

【0034】このようにして、1次キャッシュメモリ2
に書き込んだキャッシュデータをメモリ診断プログラム
10bと呼ぶことにする。
In this way, the primary cache memory 2
The cache data written in will be called a memory diagnostic program 10b.

【0035】そして、図3に示すようにステップ303
では、キャッシュメモリ診断プログラム9は、メモリ診
断プログラム10bの書き込みを終了すると、キャッシ
ュメモリ選択回路5により、キャッシュメモリ4を有効
状態に切り換える。キャッシュメモリ4を有効にする
と、プロセッサ1は1次キャッシュメモリ2に対しキャ
ッシュヒットの検索を行う。
Then, as shown in FIG. 3, step 303
Then, when the cache memory diagnostic program 9 finishes writing the memory diagnostic program 10b, the cache memory selection circuit 5 switches the cache memory 4 to the valid state. When the cache memory 4 is validated, the processor 1 searches the primary cache memory 2 for a cache hit.

【0036】そして、この時、1次キャッシュメモリ2
には、メモリ診断プログラム10bが走行するために必
要なアドレスタグ、命令、データが格納されており、プ
ロセッサ1からのキャッシュヒット検索は全てヒット
し、1次キャッシュメモリ2からメモリ診断プログラム
10bが読み出される。
At this time, the primary cache memory 2
Stores address tags, instructions, and data necessary for the memory diagnostic program 10b to run. All cache hit searches from the processor 1 hit, and the memory diagnostic program 10b is read from the primary cache memory 2. Be done.

【0037】次に、ステップ304では、プロセッサ1
に読み込まれたメモリ診断プログラム10bは、診断お
よび初期化を行っていない1次キャッシュメモリ2内領
域の診断および初期化の処理を開始する。
Next, in step 304, the processor 1
The memory diagnostic program 10b read in starts the process of diagnosing and initializing the area in the primary cache memory 2 which has not been diagnosed and initialized.

【0038】その後、ステップ305では、メモリ診断
プログラム10bは、1次キャッシュメモリ2の診断お
よび初期化を完了すると、2次キャッシュメモリ3の診
断および初期化の処理を開始する。
After that, in step 305, the memory diagnostic program 10b starts diagnosis and initialization processing of the secondary cache memory 3 when the diagnosis and initialization of the primary cache memory 2 are completed.

【0039】最後に、ステップ306では、メモリ診断
プログラム10bは、2次キャッシュメモリ3の診断お
よび初期化を完了すると、主記憶装置6内の揮発性主記
憶メモリ7の診断および初期化の処理を開始する。揮発
性主記憶メモリ7の診断および初期化が完了し、全ての
メモリの診断、初期化処理を終える。
Finally, in step 306, when the memory diagnostic program 10b completes the diagnosis and initialization of the secondary cache memory 3, it executes the diagnosis and initialization processing of the volatile main memory 7 in the main memory device 6. Start. The diagnosis and initialization of the volatile main memory 7 are completed, and the diagnosis and initialization processing of all the memories is completed.

【0040】従って、本実施例のメモリ診断/初期化方
式によれば、メモリ診断プログラムを主記憶メモリより
もより高速な1次キャッシュメモリに置くことで、キャ
ッシュメモリおよび揮発性主記憶メモリを高速に診断/
初期化することができる。
Therefore, according to the memory diagnosis / initialization method of this embodiment, by placing the memory diagnosis program in the primary cache memory which is faster than the main memory, the cache memory and the volatile main memory can be operated at high speed. Diagnosis /
It can be initialized.

【0041】以上、本発明者によってなされた発明を実
施例に基づき具体的に説明したが、本発明は前記実施例
に限定されるものではなく、その要旨を逸脱しない範囲
で種々変更可能であることはいうまでもない。
Although the invention made by the present inventor has been specifically described based on the embodiments, the present invention is not limited to the above embodiments, and various modifications can be made without departing from the scope of the invention. Needless to say.

【0042】たとえば、本実施例のキャッシュメモリに
ついては、2階層のキャッシュメモリを持つ場合につい
て説明したが、本発明は前記実施例に限定されるもので
なく、2階層以上のキャッシュメモリを持つ場合につい
ても広く適用可能である。
For example, although the cache memory of this embodiment has been described as having a two-level cache memory, the present invention is not limited to the above-mentioned embodiment and has a cache memory of two or more levels. Is also widely applicable.

【0043】[0043]

【発明の効果】本願において開示される発明のうち、代
表的なものによって得られる効果を簡単に説明すれば、
下記のとおりである。
The effects obtained by the typical ones of the inventions disclosed in the present application will be briefly described as follows.
It is as follows.

【0044】すなわち、キャッシュメモリ書き込み回路
などのわずかなハードウェアを追加し、メモリ診断プロ
グラムをキャッシュメモリ上で走行させることで、キャ
ッシュメモリおよび揮発性主記憶メモリの診断/初期化
を高速に行うことが可能となる。
That is, by adding a small amount of hardware such as a cache memory writing circuit and running a memory diagnostic program on the cache memory, high speed diagnosis / initialization of the cache memory and the volatile main memory can be performed. Is possible.

【0045】この結果、システム立ち上げ処理に含まれ
るメモリの診断および初期化時間が速くなり、システム
立ち上げ時間の短縮化が図れる。
As a result, the diagnosis and initialization time of the memory included in the system start-up process becomes faster, and the system start-up time can be shortened.

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

【図1】本発明の一実施例であるメモリ診断/初期化方
式のシステム構成を示す概念図である。
FIG. 1 is a conceptual diagram showing a system configuration of a memory diagnosis / initialization system which is an embodiment of the present invention.

【図2】本発明の一実施例であるキャッシュメモリ書き
込み回路の構成を示す概念図である。
FIG. 2 is a conceptual diagram showing a configuration of a cache memory write circuit that is an embodiment of the present invention.

【図3】本発明の一実施例であるメモリ診断/初期化を
行うメモリ診断プログラムの動作フローを示すフローチ
ャート図である。
FIG. 3 is a flowchart showing an operation flow of a memory diagnosis program for performing memory diagnosis / initialization which is an embodiment of the present invention.

【図4】本発明の一実施例であるキャッシュメモリ書き
込み回路の動作フローを示すフローチャート図である。
FIG. 4 is a flowchart showing an operation flow of the cache memory writing circuit according to the embodiment of the present invention.

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

1 プロセッサ 2 1次キャッシュメモリ 3 2次キャッシュメモリ 4 キャッシュメモリ 5 キャッシュメモリ選択回路 6 主記憶装置 7 揮発性主記憶メモリ 8 不揮発性主記憶メモリ 9 キャッシュメモリ診断プログラム 10a メモリ診断プログラム 10b メモリ診断プログラム 11 キャッシュメモリ書き込み回路 20 キャッシュデータレジスタ 21 セレクタ回路 22 制御回路 1 processor 2 Primary cache memory 3 Secondary cache memory 4 cache memory 5 Cache memory selection circuit 6 main memory 7 Volatile main memory 8 Non-volatile main memory 9 Cache memory diagnostic program 10a Memory diagnostic program 10b Memory diagnostic program 11 Cache memory writing circuit 20 cash data register 21 Selector circuit 22 Control circuit

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平4−170647(JP,A) 特開 昭59−173854(JP,A) 特表 平2−503485(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06F 12/16 G06F 11/22 G06F 12/08 G06F 1/24 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-4-170647 (JP, A) JP-A-59-173854 (JP, A) JP-A-2-503485 (JP, A) (58) Field (Int.Cl. 7 , DB name) G06F 12/16 G06F 11/22 G06F 12/08 G06F 1/24

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 主記憶装置との間にキャッシュメモリを
有するプロセッサにおいて、キャッシュメモリ上でメモ
リの初期化あるいは診断/初期化を行うプログラムを走
行させ、キャッシュメモリの診断/初期化を実施するメ
モリの診断/初期化方式であって、直接キャッシュメモ
リを読み書きする手段を備え、主記憶装置上のメモリ初
期化プログラムによりキャッシュメモリの一部領域を初
期化し、初期化が完了したキャッシュメモリ領域に、前
記手段によりキャッシュメモリの初期化あるいは診断/
初期化を行うプログラムを書き込み、初期化が完了して
いないキャッシュメモリ領域の初期化あるいは診断/初
期化をキャッシュメモリ上にある該プログラムにより高
速で行うことを特徴とするメモリ診断/初期化方式。
1. In a processor having a cache memory between itself and a main memory, a memory that executes a program for initializing or diagnosing / initializing the memory is executed on the cache memory, and diagnosing / initializing the cache memory. The diagnostic / initialization method of (1), which comprises means for directly reading and writing the cache memory, initializes a partial area of the cache memory by the memory initialization program on the main storage device, and initializes the cache memory area to Initializing or diagnosing cache memory by the above means
A memory diagnosis / initialization method, wherein a program for initialization is written, and initialization or diagnosis / initialization of a cache memory area that has not been initialized is performed at high speed by the program in the cache memory.
【請求項2】 主記憶装置との間に複数の階層で構成さ
れるキャッシュメモリを有するプロセッサにおいて、複
数の階層のキャッシュメモリの初期化あるいは診断/初
期化を行うメモリ診断/初期化方式であって、直接各キ
ャッシュメモリの内容を読み書きする手段を備え、主記
憶装置上のメモリ初期化プログラムにより第一の階層の
キャッシュメモリの一部領域を初期化し、初期化が完了
したキャッシュメモリ領域に、前記手段によりキャッシ
ュメモリの初期化あるいは診断/初期化を行うプログラ
ムを書き込み、前記階層のキャッシュメモリの初期化が
完了していないキャッシュメモリ領域の初期化あるいは
診断/初期化をキャッシュメモリ上にある該プログラム
により行い、さらに、キャッシュメモリに書き込んだ該
プログラムにより他の階層のキャッシュメモリの初期化
あるいは診断/初期化を高速で行うことを特徴とするメ
モリ診断/初期化方式。
2. A memory diagnosis / initialization method for initializing or diagnosing / initializing cache memories of a plurality of layers in a processor having a cache memory composed of a plurality of layers between a main storage device. Te, comprising means for reading and writing directly contents of each cache memory, Omoki
The memory initialization program on the storage device
Initialize a part of the cache memory and complete the initialization
The cache memory area that has been
Program for initializing or diagnosing / initializing memory
Write to the cache memory of the above hierarchy
Initialization of uncompleted cache memory area or
Diagnosis / initialization of the program on the cache memory
The conducted, further, the memory diagnosis / initialization method which is characterized in that the initialization or diagnostic / initialize the cache memory of other hierarchies fast by written the program into the cache memory.
【請求項3】 揮発性主記憶メモリと不揮発性主記憶メ
モリとキャッシュメモリを有するプロセッサにおいて、
揮発性主記憶メモリと、複数の階層のキャッシュメモリ
の診断/初期化を行うメモリ診断/初期化方式であっ
て、直接キャッシュメモリの内容を読み書きする手段を
備え、不揮発性主記憶メモリ上のメモリ初期化プログラ
ムにより第一の階層のキャッシュメモリの一部領域を初
期化し、初期化が完了したキャッシュメモリ領域に、前
記手段によりキャッシュメモリおよび揮発性主記憶メモ
リの初期化あるいは診断/初期化を行うプログラムを書
込み、前記階層のキャッシュメモリの初期化が完了し
ていないキャッシュメモリ領域の初期化あるいは診断/
初期化をキャッシュメモリ上にある該プログラムにより
行い、キャッシュメモリに書き込んだ該プログラムによ
り他の階層のキャッシュメモリの初期化あるいは診断/
初期化を行い、さらに、該プログラムにより高速で揮発
性主記憶メモリを初期化あるいは診断/初期化すること
を特徴とするメモリ診断/初期化方式。
3. A processor having a volatile main memory, a non-volatile main memory and a cache memory,
A memory diagnosing / initializing method for diagnosing / initializing a volatile main memory and a plurality of layers of cache memory, comprising means for directly reading / writing the contents of the cache memory, and a memory on the non-volatile main memory Initialization program
First part of the cache memory of the first layer
To the cache memory area that has been initialized and initialized.
A cache memory and a volatile main memory memo
Write a program for initializing or diagnosing / initializing
And the initialization of the cache memory of the above layer is completed.
Not initialized or diagnosed cache memory area /
Initialization by the program in the cache memory
Executed by the program written in the cache memory
Initialization or diagnosis of cache memory of other layers
A memory diagnosis / initialization system characterized by performing initialization, and further, by initializing or diagnosing / initializing a volatile main memory by the program at high speed.
JP22431492A 1992-08-24 1992-08-24 Memory diagnosis / initialization method Expired - Fee Related JP3433809B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22431492A JP3433809B2 (en) 1992-08-24 1992-08-24 Memory diagnosis / initialization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22431492A JP3433809B2 (en) 1992-08-24 1992-08-24 Memory diagnosis / initialization method

Publications (2)

Publication Number Publication Date
JPH0667991A JPH0667991A (en) 1994-03-11
JP3433809B2 true JP3433809B2 (en) 2003-08-04

Family

ID=16811814

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22431492A Expired - Fee Related JP3433809B2 (en) 1992-08-24 1992-08-24 Memory diagnosis / initialization method

Country Status (1)

Country Link
JP (1) JP3433809B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4803275B2 (en) * 2009-03-23 2011-10-26 日本電気株式会社 Processor, server system, processor addition method and processor addition program

Also Published As

Publication number Publication date
JPH0667991A (en) 1994-03-11

Similar Documents

Publication Publication Date Title
US7117332B2 (en) Window-based flash memory storage system and management and access methods thereof
US6760814B2 (en) Methods and apparatus for loading CRC values into a CRC cache in a storage controller
US3800294A (en) System for improving the reliability of systems using dirty memories
JPH03501660A (en) Error detection in partial write operations to storage devices
JP4745613B2 (en) Information processing apparatus and information processing method
JP3433809B2 (en) Memory diagnosis / initialization method
JP2000501872A (en) Processing system and method for reading and reproducing information in a RAM structure
JPH10269150A (en) Memory initializing method
JPH10240453A (en) Disk array device
JP3098363B2 (en) Storage device
JP2972587B2 (en) How to diagnose cache memory
JP2000090014A (en) Memory test system/method at the time of starting system by control firmware
JP2845746B2 (en) Micro program controller
JP3212116B2 (en) Storage controller
JP3001464B2 (en) Microprocessor device
JPS6336019B2 (en)
JP2000112832A (en) Information recording method, recording medium, and information processing device
JPH04181331A (en) Instruction retry system
JP3036449B2 (en) Memory diagnostic device
JPH05189332A (en) Information processor
JPH04311218A (en) External storage controller
JPH10307762A (en) Memory initialization control method
JPH103423A (en) Memory device
JPH0644091A (en) Memory diagnostic circuit
JPS6159696A (en) Control memory repair method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees