JPH02201560A - Cache test system - Google Patents

Cache test system

Info

Publication number
JPH02201560A
JPH02201560A JP1019650A JP1965089A JPH02201560A JP H02201560 A JPH02201560 A JP H02201560A JP 1019650 A JP1019650 A JP 1019650A JP 1965089 A JP1965089 A JP 1965089A JP H02201560 A JPH02201560 A JP H02201560A
Authority
JP
Japan
Prior art keywords
cache
data
memory
read
cache memory
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.)
Ceased
Application number
JP1019650A
Other languages
Japanese (ja)
Inventor
Koichi Nishide
西出 康一
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP1019650A priority Critical patent/JPH02201560A/en
Publication of JPH02201560A publication Critical patent/JPH02201560A/en
Ceased legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To easily test bits and to accurately test a cache by caching only a data part or this part and a code part in the test mode of a system. CONSTITUTION:In the system provided with a processor 1, a cache memory 2, and a main storage 7 as constituting elements, a flag to indicate the operation mode of the cache (the test mode or the normal operation mode) is provided in a cache memory control logic 6. Only the data part or this part and the code part are cached in the test mode, and only the code part is cached in the normal operation mode. Thus, bits of the cache memory 2 are easily tested, and the cache is accurately tested.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) この発明は、記憶階層構造(キャッシュメモリ)を持つ
データ処理装置に用いて好適なキャッシュテスト方式に
関する、 (従来の技術) メモリアクセスの高速化のためにキャッシュメモリを用
いる事は常套手段であり、比較的高性能なコンピュータ
システムでは標準的に使用されている。ところで従来、
インストラクションキャッシュのメモリテストは、命令
コードのビットパターンが固定化されていて、ビットテ
ストが困難であるため、キャッシュ容量分のコードを含
むプログラムを実行させて、キャツシュヒツトした場合
とミスヒツトの場合のプログラム実行時間を測定して、
キャツシュヒツトした場合の方が実行時間が短かいこと
を確認することによって、正常動作しているかどうかを
テストしていた。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to a cache test method suitable for use in a data processing device having a storage hierarchy structure (cache memory). It is common practice to use cache memory to speed up memory access, and it is standard in relatively high-performance computer systems. By the way, conventionally,
In the instruction cache memory test, the bit pattern of the instruction code is fixed and bit testing is difficult. Therefore, a program containing the cache capacity's code is executed, and the program execution is performed in the case of a cache hit and the case of a miss. measure the time,
We tested whether it was working properly by confirming that the execution time was shorter when it was hit.

(発明が解決しようとする課題) しかしながら上記従来例に従えばビットテストが困難で
あり、正確なキャッシュテストになっていない。
(Problems to be Solved by the Invention) However, according to the conventional example described above, it is difficult to perform a bit test, and the cache test is not accurate.

この発明は上記欠点に鑑みてなされたものであり、イン
ストラクションキャッシュのメモリテストにおいて、ビ
ットテストを容易にし正確なキャッシュテストを行うキ
ャッシュテスト方式を提供することを目的とする。
The present invention has been made in view of the above drawbacks, and an object of the present invention is to provide a cache test method that facilitates bit testing and performs accurate cache tests in instruction cache memory tests.

[発明の構成] (課題を解決するための手段) 本発明が採用されるキャッシュメモリ制御装置は、キャ
ッシュの動作モードが設定される一時記憶手段と、この
一時記憶手段がテストモードを示す時キャッシングの対
象である主記憶の記憶内容をキャッシュ容量分リードし
てキャッシュメモリへ書込み、上記リードアクセスに要
する時間を計M1する手段と、同リードアクセスの対象
メモリ空間を再度リードアクセスしてキャッシュメモリ
からデータを得、このリードアクセスに要する時間を計
?IISする手段と、上記計測の結果を比較して有意と
なり、かつリードデータがあらかじめ主記憶に格納され
ているデータと一致がとれたとき正常と判定する手段と
、上記一時記憶手段が通常の動作モードを示し、プロセ
ッサが主記憶内のデータ部をリードした時にキャッシュ
の動作を停止させる手段で構成される。
[Structure of the Invention] (Means for Solving the Problems) A cache memory control device employing the present invention includes a temporary storage means in which a cache operation mode is set, and a cache memory control device in which a cache operation mode is set, and a cache memory control device in which a cache operation mode is set. means for reading the storage contents of the main memory, which is the object of the read access, by the amount of the cache capacity and writing them to the cache memory, and totaling the time M1 required for the above read access; Get the data and measure the time it takes to access this lead? a means for performing IIS, a means for determining normality when the result of the measurement is significant and the read data matches data stored in the main memory in advance, and a means for determining normality when the read data matches data stored in the main memory in advance, and the temporary storage means performs normal operation. The cache is configured to indicate the mode and stop the cache operation when the processor reads the data section in the main memory.

(作 用) 本発明は、上述したように、プロセッサ、キャッシュメ
モリ、主記憶を構成要素とするシステムにおいて、キャ
ッシュの動作モード(テストモードまたは通常動作モー
ド)を示すフラグをキャッシュメモリ制御ロジックに設
け、テストモード時、データ部のみ、あるいはデータ部
及びコード部共にキャッシングできるようにし、通常動
作モードではコード部のみをキャッシングすることによ
り、インストラクションキャッシュのビットテストの容
易化を実現する。
(Function) As described above, the present invention provides a system that includes a processor, a cache memory, and a main memory as components by providing a flag indicating the cache operation mode (test mode or normal operation mode) in the cache memory control logic. In the test mode, only the data part or both the data part and the code part can be cached, and in the normal operation mode, only the code part is cached, thereby realizing easy bit testing of the instruction cache.

このことにより、キャッシュメモリのビットテストが容
易になり、正確なキャッシュテストが可能となる。
This facilitates bit testing of the cache memory and allows accurate cache testing.

(実施例) 以下、図面を使用して本発明実施例について説明する。(Example) Embodiments of the present invention will be described below using the drawings.

第1図は本発明の実施例を示すブロック図である。図に
おいて、符号1はプロセッサであり、命令セットを備え
ており、この命令セットによりプログラムが組まれてお
り、動作を制御する。符号2はキャッシュメモリであり
、主記憶7の内容をキャッシングする。符号3はヒツト
信号(HIT)が転送されるラインであり、キャツシュ
ヒツト(所望のブロックデータがキャッシュメモリ2内
に存在)したことを制御ロジック6に知らせる。符号4
はライトイネーブル信号(WE)が転送されるラインで
あり、ミスヒツト時にキャッシュメモリ2の内容を変更
するための信号である。符号5はノンキャッシャプルア
クセス信号(NCA)が転送されるラインであり、必要
に応じてキャッシュメモリ2の動作を停止させるために
使用する。符号6は制御ロジックであり、このシステム
全体の制御を行う。符号7は主記憶であり、システムを
動作させるのに必要な命令やデータが格納される。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, reference numeral 1 denotes a processor, which is equipped with an instruction set, and is programmed with this instruction set to control operations. A cache memory 2 caches the contents of the main memory 7. Reference numeral 3 is a line to which a hit signal (HIT) is transferred, which notifies the control logic 6 that a cache hit (desired block data exists in the cache memory 2) has been made. code 4
is a line to which a write enable signal (WE) is transferred, and is a signal for changing the contents of the cache memory 2 in the event of a miss. Reference numeral 5 is a line to which a non-cache pull access signal (NCA) is transferred, and is used to stop the operation of the cache memory 2 as necessary. Reference numeral 6 denotes a control logic, which controls the entire system. A main memory 7 stores instructions and data necessary to operate the system.

第2図は第1図に示す制御ロジックの内部構成を示すブ
ロック図である。図において、符号61はアドレス生成
部であり、システムバス上のメモリをアクセスするため
のアドレスを生成し、その出力するタイミングはメモリ
制御部64がらの信号による。符号62はフリップフロ
ップ(F F)であり、キャッシュの動作モードを切換
えるためのフラグデータが設定される。符号63はデコ
ーダであり、プロセッサ(符号1)からのアドレスとコ
ントロール信号をデコードし、フリップフロップ62、
メモリ制御部64へ伝える。符号64はメモリ制御部で
あり、システムの状態に応じて、どのデバイスをどの様
なタイミングでアクセスするのかを他のロジックに知ら
せる。符号65はデータ制御部であり、ローカルデータ
バスとシステムバスをメモリ制御部64がらの信号によ
って接続したり、切り離したりする。
FIG. 2 is a block diagram showing the internal configuration of the control logic shown in FIG. 1. In the figure, reference numeral 61 denotes an address generation section, which generates an address for accessing the memory on the system bus, and the output timing is determined by a signal from the memory control section 64. Reference numeral 62 is a flip-flop (FF), in which flag data for switching the cache operation mode is set. Reference numeral 63 is a decoder, which decodes the address and control signals from the processor (number 1), and converts the flip-flops 62,
The information is transmitted to the memory control unit 64. Reference numeral 64 is a memory control unit that informs other logic which device to access and at what timing depending on the state of the system. A data control section 65 connects and disconnects the local data bus and the system bus using signals from the memory control section 64.

以下、本発明実施例の動作について説明する。The operation of the embodiment of the present invention will be explained below.

まず、テストモード時、クリア(CLR)信号の到来に
よってフリップフロップ62の出力が初期状態゛0″に
なると、これはシステムがテストモードであることを意
味する。この時、制御ロジック6はデータ部(データ部
データ)のみまたはデータ部及びコード部(コード部デ
ータ)共にキャッシングするように制御する。そこで、
主記憶7にあらかじめキャッシュメモリ2のビットテス
トに必要なデータを格納しておく。
First, in the test mode, when the output of the flip-flop 62 becomes the initial state "0" due to the arrival of the clear (CLR) signal, this means that the system is in the test mode.At this time, the control logic 6 Control is performed so that only (data part data) or both data part and code part (code part data) are cached.
Data necessary for bit testing of the cache memory 2 is stored in the main memory 7 in advance.

まず最初にキャッシングの対象である主記憶7のデータ
をキャッシュ容二分リードする。この主記憶アクセスが
システムリセット後最初のアクセスであるとすると、こ
の時にはヒツトせず、リードデータは主記憶7から読み
出され、同時にキャッシュメモリ2にその内容がWE倍
信号71号4)によって書き込まれる。このリードアク
セスに要した時間をタイマなどにより計測しておく [
計測1]。次に、上述と同じメモリ空間を再度リードす
る。すると今度はキャツシュヒツトし、主記憶7はアク
セスされず、データはキャッシュメモリ2から読み出さ
れる。この時に要した時間もif 7Tp1する[計測
2]、計M1結果を比較して、計測2の方が計測1より
もかかった時間が短く、またリードされたデータがあら
かじめ主記憶7に格納してあったデータと一致していれ
ば、キャッシュメモリ2は正常に動作していることにな
る。
First, the data in the main memory 7 that is the object of caching is read in two parts of the cache. Assuming that this main memory access is the first access after system reset, there is no hit at this time, the read data is read from the main memory 7, and at the same time its contents are written to the cache memory 2 by the WE double signal 71 4). It will be done. Measure the time required for this read access using a timer etc. [
Measurement 1]. Next, read the same memory space as above again. Then, the data is cached, the main memory 7 is not accessed, and the data is read from the cache memory 2. The time required at this time is also calculated as if 7Tp1 [Measurement 2], and the total M1 results are compared, and it is found that the time taken for Measurement 2 is shorter than that for Measurement 1, and that the read data is stored in the main memory 7 in advance. If the cache memory 2 matches the data previously stored, it means that the cache memory 2 is operating normally.

この様にテストが終了したら、プロセッサ1はフリップ
フロップ62の出力を“1”にしてシステムを通常動作
モードに切換える。
When the test is completed in this way, the processor 1 sets the output of the flip-flop 62 to "1" and switches the system to the normal operation mode.

以下、通常動作モードについて簡iltに説明する。The normal operation mode will be briefly explained below.

フリップフロップ62の出力が“loになると、メモリ
制御部64は、プロセッサ1が主記憶7のデータ部(デ
ータ部データ)をリードした時にはNCA信号(ライン
5)をアクティブにしてキャッシュメモリ2をヒツトし
ない様にし、データ部は主21f17からリードする様
に制御する。当然このデータリード時には、キャッシュ
メモリ2の更新は行なわれず、WE倍信号ライン4)は
アクティブにならない。キャッシングの対象は主2t8
7のコードリードのみとなる。
When the output of the flip-flop 62 becomes "lo", the memory control unit 64 activates the NCA signal (line 5) to hit the cache memory 2 when the processor 1 reads the data section (data section data) of the main memory 7. The data section is controlled so that it is read from the main 21f17.Of course, when this data is read, the cache memory 2 is not updated and the WE double signal line 4) is not activated.The object of caching is the main 2t8.
7 code lead only.

[発明の効果] 以上説明のように本発明によれば、キャッシュメモリの
ビットテストが容易になり、正常なキャッシュテストが
可能となる。このことにより、−層信頼性の高いキャッ
シュメモリシステムを提供できる。
[Effects of the Invention] As described above, according to the present invention, a bit test of a cache memory becomes easy and a normal cache test becomes possible. This makes it possible to provide a highly reliable cache memory system.

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

第1図は本発明の実施例を示すブロック図、第2図は第
1図に示す制御ロジックの内部構成を示すブロック図で
ある。 1・・・プロセッサ、2・・・キャッシュメモリ、6・
・・制御ロジック、7・・・主記憶、61・・・アドレ
ス生成部、62・・・フリップフロップ(F F)63
・・・デコーダ、64・・・メモリ制御部、65・・・
データIII御部。 第1 図 出願人代理人 弁理士 鈴江武彦
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a block diagram showing the internal configuration of the control logic shown in FIG. 1. 1... Processor, 2... Cache memory, 6.
... Control logic, 7... Main memory, 61... Address generation section, 62... Flip-flop (F F) 63
...Decoder, 64...Memory control unit, 65...
Data III Department. Figure 1 Applicant's agent Patent attorney Takehiko Suzue

Claims (1)

【特許請求の範囲】[Claims] キャッシュの動作モードが設定される一時記憶手段と、
この一時記憶手段がテストモードを示す時キヤッシング
の対象である主記憶の記憶内容をキャッシュ容量分リー
ドしてキャッシュメモリへ書込み、上記リードアクセス
に要する時間を計測する手段と、上記リードアクセスの
対象メモリ空間を再度リードアクセスして上記キャッシ
ュメモリからデータを得、このリードアクセスに要する
時間を計測する手段と、上記計測の結果を比較して有意
となり、かつリードデータがあらかじめ上記主記憶に格
納されているデータと一致がとれたとき正常と判定する
手段と、上記一時記憶手段が通常の動作モードを示し、
プロセッサが上記主記憶内のデータ部をリードした時に
キャッュの動作を停止させる手段とを具備することを特
徴とするキャッシュテスト方式。
a temporary storage means in which a cache operation mode is set;
means for reading the storage contents of the main memory to be cached by the cache capacity when the temporary storage means indicates the test mode and writing them to the cache memory, and measuring the time required for the read access; and a memory to be accessed for the read. Data is obtained from the cache memory by read accessing the space again, and the result of the measurement is compared with a means for measuring the time required for this read access, and the read data is previously stored in the main memory. means for determining that the data is normal when the data matches the data, and the temporary storage means indicates a normal operation mode;
A cache test method comprising means for stopping the operation of a cache when a processor reads a data section in the main memory.
JP1019650A 1989-01-31 1989-01-31 Cache test system Ceased JPH02201560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1019650A JPH02201560A (en) 1989-01-31 1989-01-31 Cache test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1019650A JPH02201560A (en) 1989-01-31 1989-01-31 Cache test system

Publications (1)

Publication Number Publication Date
JPH02201560A true JPH02201560A (en) 1990-08-09

Family

ID=12005119

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1019650A Ceased JPH02201560A (en) 1989-01-31 1989-01-31 Cache test system

Country Status (1)

Country Link
JP (1) JPH02201560A (en)

Similar Documents

Publication Publication Date Title
US4357656A (en) Method and apparatus for disabling and diagnosing cache memory storage locations
US5249284A (en) Method and system for maintaining data coherency between main and cache memories
CA1080365A (en) Data security system employing automatic time stamping mechanism
US5671231A (en) Method and apparatus for performing cache snoop testing on a cache system
GB2210480A (en) Flush support
US5497458A (en) Cache testability circuit for embedded diagnostics
JPH02288927A (en) Shared memory management system
KR940001146B1 (en) System for checking comparison check function of information processing device
JPH06332800A (en) Memory coherency holding system and its method
US7577791B2 (en) Virtualized load buffers
JPS6319058A (en) Memory device
JP3733604B2 (en) Cache memory
US5960456A (en) Method and apparatus for providing a readable and writable cache tag memory
EP0460852A2 (en) System for maintaining data coherency between main and cache memories
KR950000389B1 (en) Test Method of State Change of Memory Module in Multiprocessor System
JPH04242455A (en) Inter-processor communication trace circuit
JPS6011943A (en) Inspection system for test program
JPH0553929A (en) Central processing unit with failure information storage function
JP2982197B2 (en) Bus monitor circuit for cache
JPS6141023B2 (en)
JPS60153554A (en) processor
AU493699B2 (en) Trace device fora data processing system
JPH05224989A (en) Microprocessor with cache memory and its trace analyzer
JPS638849A (en) Chche memory control system
JP2791319B2 (en) Data processing device