JPH0877069A - Cache testing method - Google Patents

Cache testing method

Info

Publication number
JPH0877069A
JPH0877069A JP6230441A JP23044194A JPH0877069A JP H0877069 A JPH0877069 A JP H0877069A JP 6230441 A JP6230441 A JP 6230441A JP 23044194 A JP23044194 A JP 23044194A JP H0877069 A JPH0877069 A JP H0877069A
Authority
JP
Japan
Prior art keywords
cache memory
data
cache
data processor
diagnostic 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.)
Pending
Application number
JP6230441A
Other languages
Japanese (ja)
Inventor
Toshihisa Ono
利寿 小野
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.)
JFE Engineering Corp
Original Assignee
NKK Corp
Nippon Kokan 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 NKK Corp, Nippon Kokan Ltd filed Critical NKK Corp
Priority to JP6230441A priority Critical patent/JPH0877069A/en
Publication of JPH0877069A publication Critical patent/JPH0877069A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE: To shorten the time required for product inspection by setting a diagnostic program in a cache memory at a time. CONSTITUTION: A microprocessor chip 1 is connected to an external test device 2 ab the time of production inspection which is done before shipment. The microprocessor chip 1 has a data processor 3 and the cache memory 4 inside and is connected by a control bus, an address bus, a data bus, etc., and provided with an internal register. Then process instructions stored in the cache memory 4 are fetched and executed in order. Namely, data can be written to and read out of all the addresses of the cache memory 4 without supplying access instructions to the data processor 3 in order. Further, data other than a defect detection signal need not be transferred between the data processor 3 and external test device 2 during the execution of the diagnostic program. The time required for the production inspection can, therefore, be shortened.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、キャッシュメモリがデ
ータプロセッサと共に組み込まれた半導体チップの製品
検査においてキャッシュ機能を確認するキャッシュテス
ト方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a cache test method for confirming a cache function in product inspection of a semiconductor chip in which a cache memory is incorporated with a data processor.

【0002】[0002]

【従来の技術】最近のコンピュータシステムはキャッシ
ュメモリを用いて処理速度の向上を図っている。このキ
ャッシュメモリはメインメモリよりもアクセス時間の短
いSRAMのような不揮発性メモリであり、例えばCP
Uのようなデータプロセッサと共に同一半導体チップ上
に形成される。データプロセッサは所定数毎に処理命令
をメインメモリからキャッシュメモリに一括転送し、こ
のキャッシュメモリから処理命令を順次フェッチし実行
する。処理命令の一括転送は極めて高速であり、処理命
令をメインメモリから直接フェッチする場合よりも全処
理時間に占める命令フェッチ時間の割合を低減できる。
2. Description of the Related Art Recent computer systems use a cache memory to improve the processing speed. This cache memory is a non-volatile memory such as SRAM which has an access time shorter than that of the main memory.
It is formed on the same semiconductor chip with a data processor such as U. The data processor collectively transfers processing instructions from the main memory to the cache memory for each predetermined number, and sequentially fetches and executes the processing instructions from the cache memory. The batch transfer of the processing instructions is extremely fast, and the ratio of the instruction fetch time to the entire processing time can be reduced as compared with the case of directly fetching the processing instructions from the main memory.

【0003】上述した半導体チップの製品検査では、外
部テスト装置がキャッシュ機能を確認するテストを行な
うために半導体チップに接続される。外部テスト装置は
様々なデータパターンをデータプロセッサを経由してキ
ャッシュメモリに書き込み、これをキャッシュメモリか
らデータプロセッサを経由して読出し、さらに書込デー
タパターンと読出データパターンとを比較することによ
り機能不良があるかどうかを調べる。
In the above-mentioned semiconductor chip product inspection, an external tester is connected to the semiconductor chip to perform a test for confirming the cache function. The external test device writes various data patterns to the cache memory via the data processor, reads the data patterns from the cache memory via the data processor, and compares the write data pattern with the read data pattern to cause a malfunction. Find out if there is.

【0004】[0004]

【発明が解決しようとする課題】しかし、このテスト方
法では、外部テスト装置が各データパターンの書込みお
よび読出しにおいてキャッシュメモリの全アドレスにつ
いて順次アクセス命令をデータプロセッサに供給しなく
てはならない。さらに、データはキャッシュメモリとデ
ータプロセッサとの間において高速に転送されても、デ
ータプロセッサと外部テスト装置との間において高速に
転送することが難しい。従って、キャッシュメモリの不
良検出の遅れから製品検査に多くの時間を要している。
However, in this test method, the external test apparatus must supply the data processor with sequential access instructions for all addresses of the cache memory in writing and reading of each data pattern. Further, even if data is transferred at high speed between the cache memory and the data processor, it is difficult to transfer at high speed between the data processor and the external test equipment. Therefore, a lot of time is required for product inspection due to delay in detecting defects in the cache memory.

【0005】本発明の目的は製品検査に要する時間を短
縮できるキャッシュテスト方法を提供することにある。
An object of the present invention is to provide a cache test method capable of reducing the time required for product inspection.

【0006】[0006]

【課題を解決するための手段】本発明によれば、データ
プロセッサと共に半導体チップ内に形成されたキャッシ
ュメモリの一部にキャッシュ診断プログラムを設定する
ステップと、キャッシュメモリに格納された診断プログ
ラムをデータプロセッサに実行させるステップと、キャ
ッシュ機能の不良が診断プログラムの実行により検出さ
れたときにデータプロセッサから得られる不良検出信号
を監視するステップとを備えるキャッシュテスト方法が
提供される。
According to the present invention, a step of setting a cache diagnostic program in a part of a cache memory formed in a semiconductor chip together with a data processor, and a diagnostic program stored in the cache memory A cache test method is provided that includes causing a processor to execute, and monitoring a failure detection signal obtained from a data processor when a failure of a cache function is detected by executing a diagnostic program.

【0007】[0007]

【作用】このキャッシュテスト方法では、診断プログラ
ムを一括してキャッシュメモリに設定することにより、
キャッシュメモリの全アドレスについて順次アクセス命
令をデータプロセッサに供給することなくデータ書込み
およびデータ読出しを行なうことが可能となる。さら
に、診断プログラムの実行中、不良検出信号以外のデー
タはデータプロセッサと外部テスト装置との間で転送す
る必要がない。従って、製品検査に要する時間を大幅に
短縮することができる。
In this cache test method, the diagnostic programs are collectively set in the cache memory,
It becomes possible to perform data writing and data reading for all addresses of the cache memory without supplying sequential access instructions to the data processor. Furthermore, during execution of the diagnostic program, it is not necessary to transfer data other than the defect detection signal between the data processor and the external test equipment. Therefore, the time required for product inspection can be significantly reduced.

【0008】[0008]

【実施例】以下、図面を参照して本発明の一実施例に係
るキャッシュテスト方法を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A cache test method according to an embodiment of the present invention will be described below with reference to the drawings.

【0009】図1はこのキャッシュテスト方法が適用さ
れる半導体マイクロプロセッサチップ1の構造を概略的
に示す。このマイクロプロセッサチップ1は出荷前に行
われる製品検査において図1に示す外部テスト装置に接
続される。マイクロプロセッサチップ1はデータプロセ
ッサ3およびキャッシュメモリ4を内蔵する。プロセッ
サ3は制御バス、アドレスバス、データバス、タグバリ
ッドライン等によりキャッシュメモリ4に接続され、こ
のキャッシュメモリ4に格納された処理命令を順次フェ
ッチし実行する。このデータプロセッサ3には、n個の
内部レジスタが設けられる。キャッシュメモリ4は複数
のスタティックメモリセルがマトリクス状に配列された
不揮発性メモリであり、所定数のメモリセル毎にアドレ
スが割り当てられる。各アドレスにおいて、所定数のメ
モリセルは処理命令等のデータを格納する複数のデータ
ビット、インデックスを表す複数のタグビット、および
書換属性を表すバリッドビットを構成する。
FIG. 1 schematically shows the structure of a semiconductor microprocessor chip 1 to which this cache test method is applied. The microprocessor chip 1 is connected to the external test device shown in FIG. 1 in a product inspection performed before shipping. The microprocessor chip 1 contains a data processor 3 and a cache memory 4. The processor 3 is connected to the cache memory 4 via a control bus, an address bus, a data bus, a tag valid line, etc., and sequentially fetches and executes the processing instructions stored in the cache memory 4. The data processor 3 is provided with n internal registers. The cache memory 4 is a non-volatile memory in which a plurality of static memory cells are arranged in a matrix, and an address is assigned to each predetermined number of memory cells. At each address, a predetermined number of memory cells form a plurality of data bits that store data such as a processing instruction, a plurality of tag bits that represent an index, and a valid bit that represents a rewrite attribute.

【0010】次に外部テスト装置2を用いてキャッシュ
機能を確認するテスト処理を説明する。図2はこのテス
ト処理のフローチャートである。このテスト処理が開始
されると、外部テスト装置2がステップS1で診断プロ
グラムをキャッシュメモリ4に設定する。この診断プロ
グラムは外部テスト装置2からプロセッサ3に供給さ
れ、キャッシュメモリ4の一部で構成される診断プログ
ラムエリア4Aにプロセッサ3を経由して転送される。
ステップS2では、外部テスト装置2が診断プログラム
エリア4Aに格納された診断プログラムをプロセッサ3
に実行させる。さらにステップS3では、外部テスト装
置2がキャッシュ機能の不良が検出されたときにプロセ
ッサ3から得られる不良検出信号を監視する。
Next, a test process for confirming the cache function using the external test device 2 will be described. FIG. 2 is a flowchart of this test process. When this test process is started, the external test apparatus 2 sets the diagnostic program in the cache memory 4 in step S1. This diagnostic program is supplied from the external test apparatus 2 to the processor 3 and transferred to the diagnostic program area 4A formed by a part of the cache memory 4 via the processor 3.
In step S2, the external test apparatus 2 executes the diagnostic program stored in the diagnostic program area 4A on the processor 3
To run. Further, in step S3, the external test apparatus 2 monitors the defect detection signal obtained from the processor 3 when the cache function defect is detected.

【0011】データプロセッサ3は診断プログラムを実
行することにより図3に示すキャッシュ診断処理を行な
う。このキャッシュ診断処理が開始されると、書込デー
タがステップS10でプロセッサ3の第1レジスタに格
納され、テスト開始アドレスがステップST11でプロ
セッサ3の第2レジスタに格納される。ステップS12
では、第1レジスタの内容が第2レジスタで指定される
キャッシュメモリ4のアドレスに対して書き込まれる。
この後、プロセッサ3は次の書込アドレスを指定するた
めステップS13で第2レジスタをインクリメントし、
ステップS14で第2レジスタの内容が最終アドレスを
越えたかどうかチェックする。もし、最終アドレスを越
えていなければ、ステップS12−14が繰り返され
る。これにより、第1レジスタの内容が診断プログラム
エリア4Aを除いた例えば全アドレス範囲においてキャ
ッシュレジスタ3に書き込まれる。この後、テスト開始
アドレスがステップST15で再び第2レジスタに格納
され、ステップS16でデータが第2レジスタで指定さ
れたアドレスから読出されプロセッサ3の第3レジスタ
に格納される。この第3レジスタの内容はステップS1
7で第1レジスタの内容と一致するかチェックされる。
もし、一致しなければ、プロセッサ3は第4レジスタに
所定のエラーデータを格納し、診断処理を終了する。エ
ラーデータは不良検出信号として第4レジスタから外部
テスト装置2に供給される。
The data processor 3 executes the diagnostic program to perform the cache diagnostic process shown in FIG. When the cache diagnosis process is started, the write data is stored in the first register of the processor 3 in step S10, and the test start address is stored in the second register of the processor 3 in step ST11. Step S12
Then, the content of the first register is written to the address of the cache memory 4 designated by the second register.
After that, the processor 3 increments the second register in step S13 to specify the next write address,
In step S14, it is checked whether the content of the second register exceeds the final address. If the final address is not exceeded, steps S12-14 are repeated. As a result, the contents of the first register are written in the cache register 3 in, for example, the entire address range excluding the diagnostic program area 4A. Thereafter, the test start address is stored in the second register again in step ST15, and the data is read from the address designated by the second register and stored in the third register of the processor 3 in step S16. The contents of this third register are set in step S1.
At 7, it is checked whether it matches the contents of the first register.
If they do not match, the processor 3 stores predetermined error data in the fourth register and ends the diagnostic process. The error data is supplied from the fourth register to the external test apparatus 2 as a defect detection signal.

【0012】他方、ステップS17で一致が検出された
場合、第2レジスタが次の読出アドレスを指定するため
ステップS19でインクリメントされる。ステップS1
4では、第2レジスタの内容が最終アドレスを越えたか
どうかチェックされる。もし、最終アドレスを越えてい
なければ、ステップS16−20が繰り返される。これ
により、第1レジスタの内容が診断プログラムエリア4
Aを除いた例えば全アドレス範囲においてキャッシュレ
ジスタ3から読出された読出データと順次比較される。
第2レジスタの内容が最終アドレスを越えると、診断処
理が終了する。
On the other hand, if a match is detected in step S17, the second register is incremented in step S19 to specify the next read address. Step S1
At 4, it is checked if the contents of the second register exceeds the final address. If the final address is not exceeded, steps S16-20 are repeated. As a result, the contents of the first register are changed to the diagnostic program area 4
For example, in the entire address range except A, the read data read from the cache register 3 is sequentially compared.
When the content of the second register exceeds the final address, the diagnostic process ends.

【0013】上述の実施例によれば、診断プログラムを
一括してキャッシュメモリ4に設定することにより、キ
ャッシュメモリ4のアクセス命令をデータプロセッサに
繰り返し供給することなくデータ書込みおよびデータ読
出しを行なうことが可能となる。さらに、診断プログラ
ムの実行中、不良検出信号以外のデータはデータプロセ
ッサ3と外部テスト装置2との間で転送する必要がな
い。従って、製品検査に要する時間を大幅に短縮するこ
とができる。
According to the above-described embodiment, the diagnostic programs are collectively set in the cache memory 4 so that the data writing and the data reading can be performed without repeatedly supplying the access instruction of the cache memory 4 to the data processor. It will be possible. Further, during execution of the diagnostic program, it is not necessary to transfer data other than the defect detection signal between the data processor 3 and the external test device 2. Therefore, the time required for product inspection can be significantly reduced.

【0014】尚、この実施例では診断プログラムエリア
4Aについての診断を省略したが、診断プログラムエリ
ア4Aは残りのエリアに対して僅かであるため、キャッ
シュ機能の不良がある場合には、診断プログラムエリア
4A以外の領域を診断したときにほぼ検出できる。も
し、キャッシュメモリ4の全アドレスについて診断を行
なうのであれば、診断プログラムエリア4Aをキャッシ
ュメモリ4の他の部分に変更することで実現できる。
Although the diagnosis of the diagnostic program area 4A is omitted in this embodiment, the diagnostic program area 4A is a little smaller than the remaining areas. It can be almost detected when a region other than 4A is diagnosed. If diagnosis is performed for all addresses of the cache memory 4, it can be realized by changing the diagnostic program area 4A to another part of the cache memory 4.

【0015】尚、本発明は上述の実施例に限定されず、
その要旨を逸脱しない範囲において様々に変更すること
ができる。
The present invention is not limited to the above embodiment,
Various modifications can be made without departing from the spirit of the invention.

【0016】[0016]

【発明の効果】本発明によれば、より短い時間で製品検
査を完了することができる。
According to the present invention, the product inspection can be completed in a shorter time.

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

【図1】本発明の一実施例に係るキャッシュテスト方法
が適用される半導体マイクロプロセッサチップの構造を
概略的に示す図である。
FIG. 1 is a diagram schematically showing a structure of a semiconductor microprocessor chip to which a cache test method according to an embodiment of the present invention is applied.

【図2】図1に示す外部テスト装置において行われるテ
スト処理のフローチャートである。
2 is a flowchart of a test process performed by the external test apparatus shown in FIG.

【図3】図1に示すプロセッサにおいてキャッシュ診断
処理のフローチャートである。
FIG. 3 is a flowchart of cache diagnosis processing in the processor shown in FIG.

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

1…半導体マイクロプロセッサチップ、2…外部テスト
装置、3…データプロセッサ、4…キャッシュメモリ、
4A…診断プログラムエリア。
1 ... Semiconductor microprocessor chip, 2 ... External test device, 3 ... Data processor, 4 ... Cache memory,
4A ... Diagnostic program area.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データプロセッサと共に半導体チップ内
に形成されたキャッシュメモリの一部にキャッシュ診断
プログラムを設定するステップと、前記キャッシュメモ
リに格納された診断プログラムを前記データプロセッサ
に実行させるステップと、キャッシュ機能の不良が前記
診断プログラムの実行により検出されたときに前記デー
タプロセッサから得られる不良検出信号を監視するステ
ップとを備えることを特徴とするキャッシュテスト方
法。
1. A step of setting a cache diagnostic program in a part of a cache memory formed in a semiconductor chip together with a data processor, a step of causing the data processor to execute the diagnostic program stored in the cache memory, and a cache. And a step of monitoring a failure detection signal obtained from the data processor when a failure of the function is detected by executing the diagnostic program.
JP6230441A 1994-08-31 1994-08-31 Cache testing method Pending JPH0877069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6230441A JPH0877069A (en) 1994-08-31 1994-08-31 Cache testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6230441A JPH0877069A (en) 1994-08-31 1994-08-31 Cache testing method

Publications (1)

Publication Number Publication Date
JPH0877069A true JPH0877069A (en) 1996-03-22

Family

ID=16907956

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6230441A Pending JPH0877069A (en) 1994-08-31 1994-08-31 Cache testing method

Country Status (1)

Country Link
JP (1) JPH0877069A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7702956B2 (en) 2006-02-08 2010-04-20 Samsung Electronics Co., Ltd. Circuit for transferring test flag signals among multiple processors, the test flag signals being used by a test controller to generate test signals

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7702956B2 (en) 2006-02-08 2010-04-20 Samsung Electronics Co., Ltd. Circuit for transferring test flag signals among multiple processors, the test flag signals being used by a test controller to generate test signals

Similar Documents

Publication Publication Date Title
KR20000029997A (en) A method for testing integrated memory using an integrated dma controller
US5680544A (en) Method for testing an on-chip cache for repair
KR940001146B1 (en) System for checking comparision check function of information processing apparatus
JP2003324155A (en) Semiconductor integrated circuit device and test method thereof
US8762926B2 (en) Method and apparatus for diagnosing a fault of a memory using interim time after execution of an application
JPH0877069A (en) Cache testing method
JP2812630B2 (en) Test method and test apparatus for buffer storage device
KR100286186B1 (en) One Chip Clock Synchronous Memory Device
KR20210080398A (en) Read-only memory testing with built-in memory self-test controller
US20140164844A1 (en) pBIST ENGINE WITH DISTRIBUTED DATA LOGGING
TWI288242B (en) Digital logic test method to systematically approach functional coverage completely and related apparatus and system
JP2627751B2 (en) IC test system
JPH10106293A (en) Method and equipment for testing semiconductor memory
US7702956B2 (en) Circuit for transferring test flag signals among multiple processors, the test flag signals being used by a test controller to generate test signals
JP2583056B2 (en) IC test system
JPH06349299A (en) Memory test result collecting method and memory tester
JPH0628329A (en) Input data check system for computer system
JPH0745099A (en) Semiconductor integrated circuit and its inspecting method
JP3079366B2 (en) High-speed operation test method of peripheral devices and devices from low-speed bus
JPH01204150A (en) Information processor
JPH02242439A (en) Program load control system
JPH05108395A (en) Method for testing computer
JPH05282212A (en) Information processor
JPH1139227A (en) Method for speed testing of peripheral element and device with low-speed bus
JPH096685A (en) Memory device and its error test method