JP2006039843A - Ram test circuit, information processing apparatus, and ram testing method - Google Patents

Ram test circuit, information processing apparatus, and ram testing method Download PDF

Info

Publication number
JP2006039843A
JP2006039843A JP2004217288A JP2004217288A JP2006039843A JP 2006039843 A JP2006039843 A JP 2006039843A JP 2004217288 A JP2004217288 A JP 2004217288A JP 2004217288 A JP2004217288 A JP 2004217288A JP 2006039843 A JP2006039843 A JP 2006039843A
Authority
JP
Japan
Prior art keywords
ram
data
test
address
request
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
JP2004217288A
Other languages
Japanese (ja)
Inventor
Mitsuharu Kawaguchi
光治 川口
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2004217288A priority Critical patent/JP2006039843A/en
Publication of JP2006039843A publication Critical patent/JP2006039843A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To conduct a RAM test during operation through the addition of few hardware resources without affecting memory-access performance by providing a save buffer for the RAM (memory), and conducting a test for each (or every two or four, etc.) word. <P>SOLUTION: A RAM test circuit includes a save register 16 for saving and retaining data in the RAM 13 during tests; an address comparison part 15 that detects if a requested address 32 and an address for use during the execution of the test match; and a data comparison part 18 for making comparisons to see if the test data written in the RAM is correct. First the RAM 13 is read and stored in the save register 16. Next, the test data is written into the RAM 13, the RAM is read, and the data comparison part 18 determines whether or not the data is normal. Then the data in the save register 16 is written back into the RAM 13. A series of these procedures is repeated if there is no RAM request or if the addresses match. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明はRAMテスト回路、情報処理装置、及びRAMテスト方法に関し、特に、稼働中のRAMに対して効率的にRAMをテストするための技術に関する。   The present invention relates to a RAM test circuit, an information processing apparatus, and a RAM test method, and more particularly to a technique for efficiently testing a running RAM.

従来、RAM(Random Access Memory)のテストの1つとしてBIST(Built In Self Test)が知られている。BISTは予めチップ内或いは装置内にRAMのテスト回路を組み込むことによりRAMのテストを実行している。   Conventionally, BIST (Built In Self Test) is known as one of RAM (Random Access Memory) tests. The BIST executes a RAM test by incorporating a RAM test circuit in the chip or in the device in advance.

従来のBISTでは、比較的低速なクロックを用いてテストをするため実際のクロックでテストが行われていないことがあり、実際の稼働状態とは環境が異なることがある。また、稼働時と同じクロックでテストを行う場合でも、BISTは予め用意されたテストパターンを予め決められたアドレス順に予め決められたタイミング間隔でBISTのみが動作する環境で実行されるため、実際にBIST以外のアプリケーションプログラム等が動作している稼働環境とはノイズの発生する状態が異なることがある。このため、稼働環境のみで発生し、BISTでは発生しないノイズによるエラー等はBISTでは検出できないことがある。   In the conventional BIST, since a test is performed using a relatively low-speed clock, the test may not be performed with the actual clock, and the environment may differ from the actual operating state. Even when a test is performed with the same clock as in operation, the BIST is executed in an environment in which only the BIST operates at a predetermined timing interval in a predetermined address order in a predetermined address order. The state in which noise occurs may differ from the operating environment in which application programs other than BIST are operating. For this reason, errors due to noise that occurs only in the operating environment and does not occur in the BIST may not be detected by the BIST.

また、BISTは通常電源投入等の立ち上げの際の初期化処理に組み込まれて診断し、実際の稼働中に実行されることはない。特開平4−125753号公報の発明は、これを解決する一例であり、システムの動作中に診断モードをセットしてオンライン診断をする技術である。この発明は、バッファレジスタを設けて診断対象メモリの診断前のメモリデータを退避させ、診断中に診断対象メモリへのアクセスがあった場合はバッファレジスタへアクセスするようにして稼働状態に近い環境でのテストを実現している。   Further, BIST is usually diagnosed by being incorporated in an initialization process at the time of start-up such as power-on, and is not executed during actual operation. The invention disclosed in Japanese Patent Application Laid-Open No. 4-125575 is an example for solving this, and is a technique for performing online diagnosis by setting a diagnosis mode during operation of the system. In this environment, a buffer register is provided to save memory data before diagnosis of the diagnosis target memory, and when the diagnosis target memory is accessed during diagnosis, the buffer register is accessed in an environment close to the operating state. The test has been realized.

稼働中にRAMテストを実行可能とすることにより、出荷前の検査工程でソフトウェアを動作させている際にRAMテストを実行可能となり、出荷後にしか発生しないRAMのエラーを事前に検出することが可能となる。   By enabling the RAM test during operation, it is possible to execute the RAM test while operating the software in the inspection process before shipment, and it is possible to detect in advance RAM errors that occur only after shipment. It becomes.

特開平4−125753号公報Japanese Patent Laid-Open No. 4-125575

特開平4−125753号公報の発明は、メモリ診断の対象をブロック単位で分割し、退避用のバッファを1ブロックの大きさとした退避メモリブロックを設けて、ブロック単位で診断を実行しているため、退避メモリブロックとして大きな容量の退避バッファを用意しなければならないという問題がある。   In the invention of Japanese Patent Laid-Open No. 4-125575, the diagnosis is executed in units of blocks by dividing a memory diagnosis target in units of blocks and providing a save memory block in which the size of the save buffer is one block. There is a problem in that a large-capacity save buffer must be prepared as the save memory block.

退避メモリブロックは診断専用に設けると診断専用に大きなハードウェア資源を投入することになってしまう。退避メモリブロックを診断の際にメモリ上に確保するとしても、診断中に通常稼働のために使用できるメモリ容量が削減されてしまうことになる。   If the save memory block is provided exclusively for diagnosis, a large hardware resource is dedicated for diagnosis. Even if the saved memory block is secured on the memory at the time of diagnosis, the memory capacity that can be used for normal operation during the diagnosis is reduced.

本発明の目的は、メモリのアクセス幅に応じたバッファを退避用に設けてメモリアクセス幅単位でテストを実行することにより、少ないハードウェア資源の投入によりメモリアクセス性能に影響することなく、稼働中におけるメモリ(RAM)のテストを実行可能としたRAMテスト回路、情報処理装置、及びRAMテスト方法を提供することにある。   The object of the present invention is to provide a buffer corresponding to the memory access width for saving and execute the test in units of memory access width, so that the memory access performance is not affected by the input of a small amount of hardware resources. It is an object of the present invention to provide a RAM test circuit, an information processing apparatus, and a RAM test method that can execute a memory (RAM) test.

本発明の第1のRAMテスト回路は、RAMの複数のワードのテストするRAMテスト回路であって、
RAMのデータをテスト中に退避して保持する退避レジスタと、RAMをアクセスするためのRAM要求のアドレスとテストを実行するRAMのアドレスであるテスト実行中アドレスとを比較するアドレス比較部と、テスト用に準備されたテストデータとRAMに書き込まれたテストデータとを比較するデータ比較部と、
テスト実行アドレスの1ワードのRAMデータを読み出して退避レジスタに格納する手順Aと、
RAMのテスト実行アドレスに1ワードのテストデータを書き込む手順Bと、
RAMのテスト実行アドレスから1ワードのデータを読み出して前記データ比較部で正常か否かを判定する手順Cと、
退避レジスタの1ワードのデータをRAMへ書き戻す手順Dとを有することを特徴とする。
A first RAM test circuit of the present invention is a RAM test circuit for testing a plurality of words in a RAM,
A save register that saves and holds RAM data during a test, an address comparison unit that compares an address of a RAM request for accessing the RAM with a test execution address that is an address of the RAM for executing the test, and a test A data comparison unit for comparing test data prepared for use with test data written in the RAM;
Procedure A for reading 1 word of RAM data at the test execution address and storing it in the save register;
Procedure B for writing one word of test data to the test execution address of the RAM;
A procedure C for reading one word of data from the test execution address in the RAM and determining whether the data comparison unit is normal;
And a procedure D for writing back one word data of the save register to the RAM.

本発明の第2のRAMテスト回路は、本発明の第1のRAMテスト回路において、前記手順Aは前記RAM要求がないタイミングで実行し、前記手順B、C、及びDは前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで実行することを特徴とする。   In the second RAM test circuit of the present invention, in the first RAM test circuit of the present invention, the procedure A is executed at a timing without the RAM request, and the procedures B, C, and D have no RAM request. Alternatively, it is executed at a timing when the address comparison unit detects a match.

本発明の第3のRAMテスト回路は、RAMのM(Mは2以上でRAMの全ワード数以下の整数)ワード分のテストを実行するRAMテスト回路であって、
RAMのN(NはM以下で2以上の整数)ワード分のデータをテスト中に退避して保持する退避レジスタと、RAMをアクセスするためのRAM要求のアドレスとテスト実行中のアドレスとをNワード単位で比較するアドレス比較部と、テスト用に準備されたテストデータとRAMに書き込まれたテストデータとを比較するデータ比較部と、
前記RAM要求がないタイミングで、テスト実行アドレスのNワードのRAMデータを読み出して退避レジスタに格納する手順Aと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、RAMに1ワードずつNワード分のテストデータを書き込む手順Bと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、RAMを読み出し前記データ比較部で正常か否かを1ワードずつNワード分判定する手順Cと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、退避レジスタのNワード分のデータをRAMへ書き戻す手順Dとを有し、
前記手順A、B、C、及びDをMワード分繰り返し実行することを特徴とする。
A third RAM test circuit according to the present invention is a RAM test circuit that executes a test for M words (M is an integer not less than 2 and not more than the total number of words in the RAM) of RAM.
A save register that saves and holds data for N words (N is an integer equal to or greater than 2 and greater than or equal to 2) words in the RAM, an address of the RAM request for accessing the RAM, and an address during the test execution are represented by N An address comparison unit for comparing in word units, a data comparison unit for comparing test data prepared for testing and test data written in the RAM,
Procedure A for reading N words of RAM data of a test execution address and storing them in a save register at a timing when there is no RAM request;
Step B for writing N words of test data into the RAM one word at a time when there is no RAM request or when the address comparison unit detects a match,
A procedure C for reading out the RAM and determining whether the data comparison unit is normal or not by N words at a time when there is no RAM request or when the address comparison unit detects a match,
A procedure D for writing back N words of data in the save register to the RAM at the timing when the RAM request is not present or the address comparison unit detects a match,
The procedures A, B, C, and D are repeatedly executed for M words.

本発明の第4のRAMテスト回路は、本発明の第1、第2、又は第3のRAMテスト回路において、前記退避レジスタがRAMのデータを退避中であることを示す退避フラグを有し、前記RAM要求があり且つアドレス比較部が一致を検出したタイミングにおいて前記退避フラグが有効の場合、前記RAM要求はRAMに代えて前記退避レジスタに対してアクセスするようにしたことを特徴とする。   A fourth RAM test circuit according to the present invention has a save flag indicating that the save register is saving the RAM data in the first, second, or third RAM test circuit according to the present invention, When the RAM request is present and the save flag is valid at the timing when the address comparison unit detects a match, the RAM request accesses the save register instead of the RAM.

本発明の第1の情報処理装置は、データやプログラムを記憶するRAMの一部の領域を前記プログラム稼働中にテストする情報処理装置であって、
RAMのデータをテスト中に退避して保持する退避レジスタと、前記プログラムがRAMをアクセスするためのRAM要求のアドレスとテストを実行するRAMのアドレスであるテスト実行中アドレスとを比較するアドレス比較部と、テスト用に準備されたテストデータとRAMに書き込まれたテストデータとを比較するデータ比較部と、
テスト実行アドレスの1ワードのRAMデータを読み出して退避レジスタに格納する手順Aと、
RAMのテスト実行アドレスに1ワードのテストデータを書き込む手順Bと、
RAMのテスト実行アドレスから1ワードのデータを読み出して前記データ比較部で正常か否かを判定する手順Cと、
退避レジスタの1ワードのデータをRAMへ書き戻す手順Dとを有することを特徴とする。
A first information processing apparatus of the present invention is an information processing apparatus that tests a partial area of a RAM that stores data and a program while the program is running,
An address comparison unit that compares a save register that saves and holds RAM data during a test, and an address of a RAM request for the program to access the RAM and a test execution address that is an RAM address for executing the test A data comparison unit that compares the test data prepared for the test with the test data written in the RAM;
Procedure A for reading 1 word of RAM data at the test execution address and storing it in the save register;
Procedure B for writing one word of test data to the test execution address of the RAM;
A procedure C for reading one word of data from the test execution address in the RAM and determining whether the data comparison unit is normal;
And a procedure D for writing back one word data of the save register to the RAM.

本発明の第2の情報処理装置は、本発明の第1の情報処理装置において、前記手順Aは前記RAM要求がないタイミングで実行し、前記手順B、C、及びDは前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで実行することを特徴とする。   In the second information processing apparatus of the present invention, in the first information processing apparatus of the present invention, the procedure A is executed at a timing without the RAM request, and the procedures B, C, and D have no RAM request. Alternatively, it is executed at a timing when the address comparison unit detects a match.

本発明の第3の情報処理装置は、データやプログラムを記憶するRAMの一部の領域を前記プログラム稼働中にテストする情報処理装置であって、
RAMのN(NはM以下で2以上の整数)ワード分のデータをテスト中に退避して保持する退避レジスタと、前記プログラムがRAMをアクセスするためのRAM要求のアドレスとテスト実行中のアドレスとをNワード単位で比較するアドレス比較部と、テスト用に準備されたテストデータとRAMに書き込まれたテストデータとを比較するデータ比較部と、
前記RAM要求がないタイミングで、テスト実行アドレスのNワードのRAMデータを読み出して退避レジスタに格納する手順Aと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、RAMに1ワードずつNワード分のテストデータを書き込む手順Bと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、RAMを読み出し前記データ比較部で正常か否かを1ワードずつNワード分判定する手順Cと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、退避レジスタのNワード分のデータをRAMへ書き戻す手順Dとを有し、
前記手順A、B、C、及びDをMワード分繰り返し実行することを特徴とする。
A third information processing apparatus of the present invention is an information processing apparatus that tests a partial area of a RAM that stores data and programs during the operation of the program,
A save register that saves and holds data for N words (N is an integer equal to or greater than 2 and greater than or equal to 2) in RAM, a RAM request address for accessing the RAM by the program, and an address during test execution An address comparison unit that compares the data in units of N words, a data comparison unit that compares test data prepared for testing and test data written in the RAM,
Procedure A for reading N words of RAM data of a test execution address and storing them in a save register at a timing when there is no RAM request;
Step B for writing N words of test data into the RAM one word at a time when there is no RAM request or when the address comparison unit detects a match,
A procedure C for reading out the RAM and determining whether the data comparison unit is normal or not by N words at a time when there is no RAM request or when the address comparison unit detects a match,
A procedure D for writing back N words of data in the save register to the RAM at the timing when the RAM request is not present or the address comparison unit detects a match,
The procedures A, B, C, and D are repeatedly executed for M words.

本発明の第4の情報処理装置は、本発明の第1、第2、又は第3の情報処理装置において、前記退避レジスタがRAMのデータを退避中であることを示す退避フラグを有し、前記RAM要求があり且つアドレス比較部が一致を検出したタイミングにおいて前記退避フラグが有効の場合、前記RAM要求はRAMに代えて前記退避レジスタに対してアクセスするようにしたことを特徴とする。   According to a fourth information processing apparatus of the present invention, in the first, second, or third information processing apparatus of the present invention, the fourth information processing apparatus has a save flag indicating that the save register is saving data in the RAM, When the RAM request is present and the save flag is valid at the timing when the address comparison unit detects a match, the RAM request accesses the save register instead of the RAM.

本発明の第1のRAMテスト方法は、データやプログラムを記憶するRAMの一部の領域を前記プログラム稼働中にテストするRAMテスト方法であって、
RAMのデータをテスト中に退避して保持する退避レジスタと、前記プログラムがRAMをアクセスするためのRAM要求のアドレスとテストを実行するRAMのアドレスであるテスト実行中アドレスとを比較するアドレス比較部と、テスト用に準備されたテストデータとRAMに書き込まれたテストデータとを比較するデータ比較部とを有し、
テスト実行アドレスの1ワードのRAMデータを読み出して退避レジスタに格納する手順Aと、
RAMのテスト実行アドレスに1ワードのテストデータを書き込む手順Bと、
RAMのテスト実行アドレスから1ワードのデータを読み出して前記データ比較部で正常か否かを判定する手順Cと、
退避レジスタの1ワードのデータをRAMへ書き戻す手順Dとを順に繰り返して実行することを特徴とする。
A first RAM test method of the present invention is a RAM test method for testing a partial area of a RAM for storing data and programs during the operation of the program,
An address comparison unit that compares a save register that saves and holds RAM data during a test, and an address of a RAM request for the program to access the RAM and a test execution address that is an RAM address for executing the test And a data comparison unit that compares the test data prepared for the test and the test data written in the RAM,
Procedure A for reading 1 word of RAM data at the test execution address and storing it in the save register;
Procedure B for writing one word of test data to the test execution address of the RAM;
A procedure C for reading one word of data from the test execution address in the RAM and determining whether the data comparison unit is normal;
It is characterized in that the procedure D of writing back one word data of the save register to the RAM is repeatedly executed in order.

本発明の第2のRAMテスト方法は、本発明の第1のRAMテスト方法において、前記手順Aは前記RAM要求がないタイミングで実行し、前記手順B、C、及びDは前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで実行することを特徴とする。   According to a second RAM test method of the present invention, in the first RAM test method of the present invention, the procedure A is executed at a timing without the RAM request, and the procedures B, C, and D have no RAM request. Alternatively, it is executed at a timing when the address comparison unit detects a match.

本発明の第3のRAMテスト方法は、データやプログラムを記憶するRAMの一部の領域を前記プログラム稼働中にテストするRAMテスト方法であって、
RAMのN(NはM以下で2以上の整数)ワード分のデータをテスト中に退避して保持する退避レジスタと、前記プログラムがRAMをアクセスするためのRAM要求のアドレスとテスト実行中のアドレスとをNワード単位で比較するアドレス比較部と、テスト用に準備されたテストデータとRAMに書き込まれたテストデータとを比較するデータ比較部とを有し、
前記RAM要求がないタイミングで、テスト実行アドレスのNワードのRAMデータを読み出して退避レジスタに格納する手順Aと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、RAMに1ワードずつNワード分のテストデータを書き込む手順Bと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、RAMを読み出し前記データ比較部で正常か否かを1ワードずつNワード分判定する手順Cと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、退避レジスタのNワード分のデータをRAMへ書き戻す手順Dとを順にMワード分繰り返し実行することを特徴とする。
A third RAM test method of the present invention is a RAM test method for testing a partial area of a RAM for storing data and programs during the operation of the program,
A save register that saves and holds data for N words (N is an integer equal to or greater than 2 and greater than or equal to 2) in RAM, a RAM request address for accessing the RAM by the program, and an address during test execution And an address comparison unit that compares the data in units of N words, and a data comparison unit that compares the test data prepared for the test and the test data written in the RAM,
Procedure A for reading N words of RAM data of a test execution address and storing them in a save register at a timing when there is no RAM request;
Step B for writing N words of test data into the RAM one word at a time when there is no RAM request or when the address comparison unit detects a match,
A procedure C for reading out the RAM and determining whether the data comparison unit is normal or not by N words at a time when there is no RAM request or when the address comparison unit detects a match,
At the timing when there is no RAM request or when the address comparison unit detects a match, the procedure D for rewriting the data of N words in the save register to the RAM is sequentially repeated for M words.

本発明の第4のRAMテスト方法は、本発明の第1、第2、又は第3のRAMテスト方法において、前記退避レジスタがRAMのデータを退避中であることを示す退避フラグを有し、前記RAM要求があり且つアドレス比較部が一致を検出したタイミングにおいて前記退避フラグが有効の場合、前記RAM要求はRAMに代えて前記退避レジスタに対してアクセスするようにしたことを特徴とする。   According to a fourth RAM test method of the present invention, in the first, second, or third RAM test method of the present invention, the save register includes a save flag indicating that the save register is saving the RAM data, When the RAM request is present and the save flag is valid at the timing when the address comparison unit detects a match, the RAM request accesses the save register instead of the RAM.

本発明は、稼働中にRAMテストを実行できるので実際の稼働環境でしか発生しないRAMの故障が検出しやすくなるという効果があり、さらに少ないハードウェア資源の投入で実現できるという効果がある。   The present invention has an effect that a RAM test can be executed during operation, so that it is easy to detect a failure of the RAM that occurs only in an actual operating environment, and it can be realized with less hardware resources.

次に、本発明を実施するための最良の形態について図面を参照して詳細に説明する。   Next, the best mode for carrying out the present invention will be described in detail with reference to the drawings.

図1は全体の構成を示したブロック図である。図1は、RAMテスト回路とRAMを含んだ情報処理装置10の構成を示しており、稼働中にRAMをアクセスする回路については図示せず省略しているが、RAM13が主記憶装置として構成される場合はCPU(Central Processing Unit)や入出力制御部や通信制御部からRAMへのアクセスが実行される。また、図1は機能を説明するために用意した図であり、実際の実装位置を示すものではない。   FIG. 1 is a block diagram showing the overall configuration. FIG. 1 shows a configuration of an information processing apparatus 10 including a RAM test circuit and a RAM. A circuit that accesses the RAM during operation is not shown in the figure, but the RAM 13 is configured as a main storage device. In this case, the RAM is accessed from a CPU (Central Processing Unit), an input / output control unit, or a communication control unit. FIG. 1 is a diagram prepared for explaining the function, and does not show an actual mounting position.

図1を参照すると、RAM13は情報処理装置10の中ではCPU内部に設けられた例えば汎用レジスタとして使用されるRAMであったりIOボードに実装されたRAMであったり複数のRAMで構成され主記憶のようなRAMである。   Referring to FIG. 1, in the information processing apparatus 10, the RAM 13 is, for example, a RAM provided as a general-purpose register provided in the CPU, a RAM mounted on an IO board, or a plurality of RAMs. RAM.

RAM要求信号31は例えばCPUのようなアクセス元の回路から送られるRAMアクセスの要求であり、RAM13からのデータの読み出しを行うリード要求やRAM13へのデータの書込を行うライト要求を含んでいる。要求アドレス32はRAM要求に伴って送られるアドレス情報であり、ライトデータ33はRAM要求がライト要求の際にRAM要求に伴って送られるRAM13への書込データであり、リードデータ34はRAM要求がリード要求の際にRAM13から読み出したデータである。   The RAM request signal 31 is a RAM access request sent from an access source circuit such as a CPU, and includes a read request for reading data from the RAM 13 and a write request for writing data to the RAM 13. . The request address 32 is address information sent along with the RAM request, the write data 33 is write data to the RAM 13 sent along with the RAM request when the RAM request is a write request, and the read data 34 is the RAM request. Is the data read from the RAM 13 at the time of the read request.

図1ではRAM要求信号31、要求アドレス32、ライトデータ33はそれぞれセレクタ等へ直接供給する構成としているが、要求元とのインタフェースにおいて、又はRAM13のアクセスの処理においてRAM要求信号受信時にアドレスとデータを保持しておく必要があれば、レジスタを挿入して保持するようにすればよい。ここでは、説明を簡素化するために保持の必要が無いものとする。   In FIG. 1, the RAM request signal 31, the request address 32, and the write data 33 are each directly supplied to the selector or the like. However, the address and data are received when the RAM request signal is received in the interface with the request source or in the access processing of the RAM 13. If it is necessary to hold the register, a register may be inserted and held. Here, in order to simplify the description, it is assumed that there is no need for holding.

以上説明したRAM13、RAM要求信号31、要求アドレス32、ライトデータ33、リードデータ34は通常稼働においても必要とする構成であるが、以下はRAMテストを通常のプログラム稼働中に実行するために設けた構成である。   The RAM 13, the RAM request signal 31, the request address 32, the write data 33, and the read data 34 described above are necessary for normal operation. The following is provided for executing the RAM test during normal program operation. It is a configuration.

テスト部20は、RAMテストの実行を制御する回路であり、アドレスカウンタ21とデータ生成部22と制御部23とを含む。アドレスカウンタ21はRAMテストを実行する際のRAM13のアドレスを保持するカウンタであり、RAM13のアクセス単位であるワードのテストを進めるたびに次のワードアドレスへ更新する。   The test unit 20 is a circuit that controls execution of the RAM test, and includes an address counter 21, a data generation unit 22, and a control unit 23. The address counter 21 is a counter that holds the address of the RAM 13 when the RAM test is executed, and is updated to the next word address every time the test of the word that is the access unit of the RAM 13 is advanced.

データ生成部22はテスト用の書込データを生成する機能を有する。生成するテストデータについては特に限定しないが、例えば予め決められたパターンのデータを制御部23の指示で選択して出力するようにしても良いし、他の方法で不特的のパターンを生成するようにしてもよい。   The data generation unit 22 has a function of generating test write data. The test data to be generated is not particularly limited. For example, data of a predetermined pattern may be selected and output by an instruction from the control unit 23, or a special pattern may be generated by another method. You may do it.

制御部23は、RAMテストを制御する回路であり、通常ハードウェアの回路で実現されるが、全体或いは一部をマイクロプログラムで制御するようにしてもよい。図2は制御部23を説明するための図である。   The control unit 23 is a circuit that controls the RAM test, and is usually realized by a hardware circuit, but may be entirely or partially controlled by a microprogram. FIG. 2 is a diagram for explaining the control unit 23.

制御部23はテスト開始信号35によりRAMテストを開始し、以降、RAM要求をリード要求かライト要求かに分け、アドレス一致信号データ一致信号を受けて、アドレスセレクタ11,ライトセレクタ12、リードセレクタ14、退避セレクタ16、退避レジスタ17を制御してRAMテストを実行する。   The control unit 23 starts a RAM test in response to a test start signal 35, and thereafter divides the RAM request into a read request or a write request, receives an address match signal data match signal, and receives an address selector 11, a write selector 12, and a read selector 14. Then, the RAM selector is executed by controlling the save selector 16 and the save register 17.

また、制御部23は、テスト中フラグ25と退避中フラグ24を持つ。テスト中フラグ25はテスト開始信号35によりセットされテスト終了時にリセットされる。退避中フラグ24は、退避レジスタ17に退避中のデータがあることを示すフラグであり、要求アドレス32とアドレスカウンタ21が一致した場合に、RAM要求のアクセス先をRAM13から退避レジスタへ切り換えてテストと通常アクセスを並列実行する。   Further, the control unit 23 has a testing flag 25 and a saving flag 24. The in-test flag 25 is set by a test start signal 35 and reset at the end of the test. The save flag 24 is a flag indicating that there is data being saved in the save register 17. When the request address 32 and the address counter 21 match, the access destination of the RAM request is switched from the RAM 13 to the save register and the test is performed. And normal access are executed in parallel.

アドレスセレクタ11は、RAM13に供給するアドレスを制御部23の指示に従って要求アドレス32とアドレスカウンタ21とから選択する回路である。ライトセレクタ12は、RAM13に供給する書込データを制御部23の指示に従ってライトデータ33とデータ生成部22から選択する回路である。リードセレクタ14はアクセス元へ返却する読み出しデータを制御部23の指示に従ってRAM13と退避レジスタ17から選択する回路である。   The address selector 11 is a circuit that selects an address to be supplied to the RAM 13 from the request address 32 and the address counter 21 in accordance with an instruction from the control unit 23. The write selector 12 is a circuit that selects write data to be supplied to the RAM 13 from the write data 33 and the data generation unit 22 in accordance with an instruction from the control unit 23. The read selector 14 is a circuit that selects read data to be returned to the access source from the RAM 13 and the save register 17 in accordance with an instruction from the control unit 23.

退避レジスタ17は、RAM13のアクセス幅に応じた幅のレジスタであり、制御部23の指示に従って、テスト中にRAM13のデータを一時的に退避しておく。退避セレクタ16は退避レジスタに供給するデータを制御部23の指示に従ってRAM13と書込データから選択する。   The save register 17 is a register having a width corresponding to the access width of the RAM 13, and temporarily saves data in the RAM 13 during the test in accordance with an instruction from the control unit 23. The save selector 16 selects data to be supplied to the save register from the RAM 13 and the write data in accordance with an instruction from the control unit 23.

アドレス比較部15は要求アドレスとアドレスカウンタ21のアドレスが一致するかを比較し、結果をアドレス一致信号として制御部23に伝える。データ比較部18はRAM13のデータとデータ生成部22のデータが一致するかを比較し、結果をデータ一致信号として制御部23に伝える。   The address comparison unit 15 compares whether the request address matches the address of the address counter 21 and transmits the result to the control unit 23 as an address match signal. The data comparison unit 18 compares whether the data in the RAM 13 matches the data in the data generation unit 22 and transmits the result to the control unit 23 as a data match signal.

次に、本発明を実施するための最良の形態の動作について図面を参照して説明する。以降の動作説明において、説明の都合上RAM13を256ワード構成とし、退避レジスタは1ワード幅とする。ただし、ワードとはRAM13をアクセスする単位データ幅を示し、テストやRAM要求のアクセスはワード単位で実行される。   Next, the operation of the best mode for carrying out the present invention will be described with reference to the drawings. In the following description of the operation, for convenience of explanation, the RAM 13 has a 256 word configuration, and the save register has a 1 word width. However, a word indicates a unit data width for accessing the RAM 13, and an access for a test or a RAM request is executed in units of words.

図3は、本発明の動作を示したフローチャートである。ただし、このフローチャートに示した動作をハードウェアの回路で実行する場合、図3の各ステップは可能な範囲で並列して同時に実行することとなる。
図3を参照すると、RAMテスト開始においてテスト開始信号35が入力されると、制御部23はアドレスカウンタ21を初期値000#(#は16進数表示であることを示す)にリセットし、テスト中フラグ25をセットする(S51)。テスト開始信号は通常CPU又は診断装置から送られる。RAMテストはアドレス=000#のワードから開始されアドレス=0FF#まで実行される。
FIG. 3 is a flowchart showing the operation of the present invention. However, when the operation shown in this flowchart is executed by a hardware circuit, the steps in FIG. 3 are simultaneously executed in parallel as much as possible.
Referring to FIG. 3, when a test start signal 35 is input at the start of the RAM test, the control unit 23 resets the address counter 21 to an initial value 000 # (# indicates hexadecimal display) and the test is in progress. The flag 25 is set (S51). The test start signal is usually sent from a CPU or a diagnostic device. The RAM test is started from the word at address = 000 # and executed until address = 0FF #.

テスト中フラグ25がセットされると、制御部23はRAM要求が無い時間を利用してテストを進める。RAMテストは制御部23の制御によりRAMデータの退避とテストデータの書き込みと書き込んだデータの比較と退避データのRAMへの戻しという4つの動作を各ワードに対して順次実行し、これを全ワードに対して繰り返し実行することにより終了する。上記各動作はそれぞれRAM要求と競合しないように実行される。   When the test-in-progress flag 25 is set, the control unit 23 proceeds with the test using a time when there is no RAM request. In the RAM test, four operations of saving RAM data, writing test data, comparing written data, and returning the saved data to the RAM are sequentially executed for each word under the control of the control unit 23, and this operation is performed on all words. It ends by repeatedly executing for. Each of the above operations is executed so as not to conflict with the RAM request.

まずRAMデータの退避の動作は、RAM要求の無いことを確認する(S52)。もしRAM要求があればRAM要求の処理が終わりRAM要求が無くなるのを待つ。RAM要求がなければ次へ進む。   First, the RAM data saving operation confirms that there is no RAM request (S52). If there is a RAM request, the processing of the RAM request is finished and it waits for the RAM request to disappear. If there is no RAM request, proceed to the next.

次に、RAM13からデータを読み出して退避レジスタ17に格納し、退避中フラグ24をセットする(S53)。このとき制御部23は退避セレクタ16に対してRAM13を選択するよう指示し、退避レジスタ17にデータの更新を指示するよう動作する。なお、最初はアドレスカウンタ21が初期値000#であるので、RAM13の0番地のデータを退避することになる。退避中フラグ24はデータが退避レジスタ17に退避されたからRAM13に戻されるまで有効になる。S51とS52は制御部23がハードウェア回路で実現される場合は、同じサイクルで実行される。サイクルとはハードウェア回路がクロックを基準として定義され繰り返される期間のことである。   Next, data is read from the RAM 13, stored in the save register 17, and the save flag 24 is set (S53). At this time, the control unit 23 operates to instruct the save selector 16 to select the RAM 13 and to instruct the save register 17 to update data. Since the address counter 21 initially has an initial value 000 #, the data at address 0 in the RAM 13 is saved. The save-in-progress flag 24 is valid until data is saved in the save register 17 and then returned to the RAM 13. S51 and S52 are executed in the same cycle when the control unit 23 is realized by a hardware circuit. A cycle is a period in which a hardware circuit is defined and repeated with reference to a clock.

ここで、RAM要求の動作について説明する。図4はRAM要求の動作の論理を示した図である。RAM要求の動作とはRAM要求31が有効の場合の動作を示す。退避中フラグ24が無効の場合は、RAM要求はRAM13に対して通常通り実行される。アドレスセレクタ11は要求アドレス32を選択し、ライトセレクタ12はライトデータ33を選択し、リードセレクタ14はRAM13を選択し、退避レジスタ17は保持される。例えば、リード要求では要求アドレス32でアドレスしたRAM13のデータがリードセレクタ14から返却され、ライト要求ではライトデータ33がRAM13の要求アドレス32でアドレスされるワードに書き込まれる。   Here, the operation of the RAM request will be described. FIG. 4 shows the logic of the RAM request operation. The RAM request operation indicates an operation when the RAM request 31 is valid. When the saving flag 24 is invalid, the RAM request is executed to the RAM 13 as usual. The address selector 11 selects the request address 32, the write selector 12 selects the write data 33, the read selector 14 selects the RAM 13, and the save register 17 is held. For example, in the read request, the data in the RAM 13 addressed by the request address 32 is returned from the read selector 14, and in the write request, the write data 33 is written in the word addressed by the request address 32 in the RAM 13.

また、退避中フラグ24が有効でアドレス一致36が無効の場合は無効の場合と同じ動作をし、RAM要求はRAM13に対して実行される。   When the saving flag 24 is valid and the address match 36 is invalid, the same operation as when invalid is performed, and the RAM request is executed to the RAM 13.

退避中フラグ24が有効でアドレス一致36が有効の場合、RAMデータは退避レジスタ17に退避中であるためRAM要求はRAM13に代えて退避レジスタ17に対して実行される。リードセレクタ14は退避レジスタ17を選択し、退避セレクタ16はライトデータ33を選択する。例えば、リード要求では退避レジスタ17に退避されているRAMデータがリードセレクタ14から返却され、ライト要求ではライトデータ33が退避レジスタ17に書き込まれる。このとき、RAMテストも同時に動作し、アドレスセレクタ11とライトセレクタ12は以降に示すように各動作内容に応じて制御部23により制御される。   When the save flag 24 is valid and the address match 36 is valid, the RAM data is being saved in the save register 17, so that the RAM request is executed to the save register 17 instead of the RAM 13. The read selector 14 selects the save register 17 and the save selector 16 selects the write data 33. For example, the RAM data saved in the save register 17 is returned from the read selector 14 in the read request, and the write data 33 is written in the save register 17 in the write request. At this time, the RAM test also operates simultaneously, and the address selector 11 and the write selector 12 are controlled by the control unit 23 in accordance with the contents of each operation as will be described later.

次に、テストデータの書き込みの動作は、RAM要求31が無いか(S54)、又はアドレス一致36が有効(S55)なことが確認できれば次に進む。もしRAM要求31が有効で且つアドレス一致36が無効であればRAM要求31の処理が終わりRAM要求31が無効になるのを待つ。   Next, the test data write operation proceeds to the next if there is no RAM request 31 (S54) or it is confirmed that the address match 36 is valid (S55). If the RAM request 31 is valid and the address match 36 is invalid, the processing of the RAM request 31 is completed and the RAM request 31 is awaited to become invalid.

次に、制御部23は、アドレスセレクタ11に対してアドレスカウンタ21を選択するよう指示し、データセレクタ12に対してデータ生成部22を選択するよう指示し、RAM13に書き込みを指示することにより、データ生成部22が作成したテストデータ(A)をライトセレクタ12を介してアドレスカウンタ21でアドレスされるRAM13のワードに書き込む(S56)。S54とS55とS56は制御部23がハードウェア回路で実現される場合は、同じサイクルで実行される。   Next, the control unit 23 instructs the address selector 11 to select the address counter 21, instructs the data selector 12 to select the data generation unit 22, and instructs the RAM 13 to write. The test data (A) created by the data generator 22 is written into the word of the RAM 13 addressed by the address counter 21 via the write selector 12 (S56). S54, S55, and S56 are executed in the same cycle when the control unit 23 is realized by a hardware circuit.

次に、データの比較の動作は、RAM要求31が無いか(S57)、又はアドレス一致36が有効(S58)なことが確認できれば次に進む。もしRAM要求31が有効で且つアドレス一致36が無効であればRAM要求31の処理が終わりRAM要求31が無効になるのを待つ。   Next, the data comparison operation proceeds to the next if there is no RAM request 31 (S57) or it can be confirmed that the address match 36 is valid (S58). If the RAM request 31 is valid and the address match 36 is invalid, the processing of the RAM request 31 is completed and the RAM request 31 is awaited to become invalid.

次に、制御部23は、アドレスセレクタ11に対してアドレスカウンタ21を選択するよう指示し、アドレスカウンタ21でアドレスしたRAM13のデータとデータ生成部22が作成したテストデータ(A)とをデータ比較部18に供給して比較させ、一致するかを確認する(S59)。S57とS58とS59は制御部23がハードウェア回路で実現される場合は、同じサイクルで実行される。   Next, the control unit 23 instructs the address selector 11 to select the address counter 21 and compares the data in the RAM 13 addressed by the address counter 21 with the test data (A) created by the data generation unit 22. The data is supplied to the unit 18 for comparison to check whether they match (S59). S57, S58, and S59 are executed in the same cycle when the control unit 23 is realized by a hardware circuit.

RAM13のデータがテストデータ(A)と一致すればデータ比較部18はデータ一致信号37を有効にする。制御部23はデータ一致信号37が有効である場合は次へ進み、無効である場合にRAM13の異常と判定する。   If the data in the RAM 13 matches the test data (A), the data comparison unit 18 validates the data match signal 37. The control unit 23 proceeds to the next when the data match signal 37 is valid, and determines that the RAM 13 is abnormal when it is invalid.

異常を判定した後の動作については特に限定しないが、即座にテストを中止して異常のあることをCPUや診断装置に通知しても良いし、退避データをRAM13に書き戻して続行可能な状態に戻してからテストを中止してCPUや診断装置に通知しても良いし、異常に関するデータ(異常となったアドレスやテストデータ)をRAM13やRAM13とは別途も受けた記憶手段の予め決められた領域に図示しない手順にて記憶しておき、全ワードのテストが終了した時点でCPUや診断装置に通知するようにしてもかまわない。   The operation after determining the abnormality is not particularly limited, but the test may be stopped immediately to notify the CPU or the diagnostic device that there is an abnormality, or the saved data can be written back to the RAM 13 and continued. The test may be stopped and the CPU or diagnostic device may be notified after returning to step 1, or the RAM 13 or the storage means that receives the data separately from the RAM 13 in advance is determined in advance. It is also possible to store the data in a region not shown in the figure and notify the CPU and the diagnostic device when all the words have been tested.

次に、退避データのRAMへの戻しの動作は、RAM要求31が無いか(S60)、又はアドレス一致36が有効(S61)なことが確認できれば次に進む。もしRAM要求31が有効で且つアドレス一致36が無効であればRAM要求31の処理が終わりRAM要求31が無効になるのを待つ。   Next, the operation for returning the saved data to the RAM proceeds if there is no RAM request 31 (S60) or it can be confirmed that the address match 36 is valid (S61). If the RAM request 31 is valid and the address match 36 is invalid, the processing of the RAM request 31 is completed and the RAM request 31 is awaited to become invalid.

次に、制御部23は、アドレスセレクタ11に対してアドレスカウンタ21を選択するよう指示し、ライトデータセレクタ12に対して退避レジスタ17を選択するように指示し、RAM13に書き込みを指示して、退避レジスタ17に退避しておいたRAMデータを元の場所に書き戻し、書き戻すと同時に退避中フラッグをリセットして無効にする(S62)。   Next, the control unit 23 instructs the address selector 11 to select the address counter 21, instructs the write data selector 12 to select the save register 17, and instructs the RAM 13 to write, The RAM data saved in the save register 17 is written back to the original location, and at the same time as the write back, the saving flag is reset and invalidated (S62).

続いて、制御部23はアドレスカウンタ21を更新する(S63)。最初はアドレスカウンタ21はその内容を000#から001#に更新される。S60とS61とS62とS63は制御部23がハードウェア回路で実現される場合は、同じサイクルで実行される。   Subsequently, the control unit 23 updates the address counter 21 (S63). Initially, the address counter 21 is updated from 000 # to 001 #. S60, S61, S62, and S63 are executed in the same cycle when the control unit 23 is realized by a hardware circuit.

制御部23はアドレスカウンタ21の値に基づいて終了したかを判定する(S64)。この例ではアドレスカウンタ21の値が100#である場合に制御部23は終了したと判断する。   The control unit 23 determines whether the process has been completed based on the value of the address counter 21 (S64). In this example, when the value of the address counter 21 is 100 #, the control unit 23 determines that the process has ended.

RAMテストが終了していない場合はテスト対象のワードを次にアドレスに移してステップS52からの動作を繰り返す。この例ではテストが実行されるのはアドレスカウンタ21の値が000#から0FF#までのワードである。RAMテストが終了した場合は、テスト中フラグ25をリセットして制御部23はRAMテストを終了する(S65)。   If the RAM test has not ended, the test target word is moved to the next address, and the operation from step S52 is repeated. In this example, the test is executed for words whose address counter 21 has a value from 000 # to 0FF #. When the RAM test is finished, the testing flag 25 is reset and the control unit 23 finishes the RAM test (S65).

以上のように、本発明では、RAMテスト対象領域の一部を順次退避しながらテストするので、退避のために必要とするハードウェア量が少なくてすむ。また、RAMテストの実行を退避・テスト書込・比較・戻しの4つの動作に分け各動作毎に通常のRAMアクセスと競合しないように並行して処理を進めるようにしているため、退避についても通常アクセスに影響を与えずに実行できる。従って、従来のようにテスト前の事前準備としてテスト対象領域のデータを一斉に退避領域又は退避用のバッファへ移動させるために稼働中のJOB(プログラムのまとまった作業単位)に影響を与えることを回避できる。   As described above, according to the present invention, a part of the RAM test target area is tested while being sequentially saved, so that the amount of hardware required for saving can be reduced. In addition, the execution of the RAM test is divided into four operations of saving, test writing, comparison, and returning, and the processing is advanced in parallel so as not to compete with normal RAM access for each operation. It can be executed without affecting normal access. Therefore, as in the prior preparation before the test, the data in the test target area is moved to the save area or the save buffer all at once, so that it affects the JOB (unit of work of the program) in operation. Can be avoided.

例えば、RAMテストが通常のRAMアクセスと競合した場合でも通常のアクセスを優先させて処理するだけでなく、テストのための割込が1動作分の1サイクルのみですむため通常アクセスを遅らせることを回避できる。またデータの退避中に要求アドレスとテストアドレスとが一致した場合は通常アクセスとRAMテストを同時に実行できるので、RAMテストをより効率的に実行することができる。   For example, even if the RAM test conflicts with normal RAM access, not only normal access is prioritized but also the normal access is delayed because the test interrupt is only one cycle per operation. Can be avoided. If the request address matches the test address during data saving, the normal access and the RAM test can be executed simultaneously, so that the RAM test can be executed more efficiently.

以上の説明では、退避レジスタ17を1ワード幅として説明してきたが、例えば2ワード幅、4ワード幅としても本発明を適用することができる。例えば、退避レジスタ17が2ワード幅のRAMテスト回路は、RAMデータの退避動作を2ワード分連続して行い、テストデータの書き込み動作を1ワードずつ2回に分けて行い、データの比較動作を1ワードずつ2回に分けて行い、退避データのRAMへの戻しの動作を2ワード分連続して行うことにより実現できる。   In the above description, the save register 17 has been described as having one word width. However, the present invention can be applied to, for example, a two word width and a four word width. For example, a RAM test circuit whose save register 17 has a 2-word width performs a RAM data save operation continuously for two words, performs a test data write operation in two words one by one, and performs a data comparison operation. This can be realized by dividing each word into two times and performing the operation of returning the saved data to the RAM continuously for two words.

退避レジスタ17に複数ワード保持するようにした場合、アドレス比較部15は、連続した複数ワード数の単位で比較するように構成する必要がある。例えば、退避レジスタ17に2ワードを退避するようにした場合、アドレスの最下位ビットを比較対象から除外することにより偶数番地と続く奇数番地の2ワード単位で比較することができ、容易に実現することができる。   When a plurality of words are held in the save register 17, the address comparison unit 15 needs to be configured to compare in units of the number of consecutive words. For example, when 2 words are saved in the save register 17, by comparing the least significant bit of the address from the comparison target, it is possible to compare the even address and the following odd address in units of 2 words, which is easily realized. be able to.

本発明の構成を示したブロック図である。It is the block diagram which showed the structure of this invention. 本発明の制御部23の詳細を示した図である。It is the figure which showed the detail of the control part 23 of this invention. 本発明の動作を示したフローチャートである。It is the flowchart which showed the operation | movement of this invention. 本発明の通常アクセスの動作論理を示した図である。It is the figure which showed the operation logic of the normal access of this invention.

符号の説明Explanation of symbols

10 情報処理装置
11 アドレスセレクタ
12 ライトセレクタ
13 RAM
14 リードセレクタ
15 アドレス比較部
16 退避セレクタ
17 退避レジスタ
18 データ比較部
20 テスト部
21 アドレスカウンタ
22 データ生成部
23 制御部
24 退避中フラグ
25 テスト中フラグ
DESCRIPTION OF SYMBOLS 10 Information processing apparatus 11 Address selector 12 Write selector 13 RAM
14 Read selector 15 Address comparison unit 16 Save selector 17 Save register 18 Data comparison unit 20 Test unit 21 Address counter 22 Data generation unit 23 Control unit 24 Saving flag 25 Testing flag

Claims (12)

RAMの複数のワードのテストするRAMテスト回路であって、
RAMのデータをテスト中に退避して保持する退避レジスタと、RAMをアクセスするためのRAM要求のアドレスとテストを実行するRAMのアドレスであるテスト実行中アドレスとを比較するアドレス比較部と、テスト用に準備されたテストデータとRAMに書き込まれたテストデータとを比較するデータ比較部と、
テスト実行アドレスの1ワードのRAMデータを読み出して退避レジスタに格納する手順Aと、
RAMのテスト実行アドレスに1ワードのテストデータを書き込む手順Bと、
RAMのテスト実行アドレスから1ワードのデータを読み出して前記データ比較部で正常か否かを判定する手順Cと、
退避レジスタの1ワードのデータをRAMへ書き戻す手順Dとを有することを特徴とするRAMテスト回路。
A RAM test circuit for testing a plurality of RAM words,
A save register that saves and holds RAM data during a test, an address comparison unit that compares an address of a RAM request for accessing the RAM with a test execution address that is an address of the RAM for executing the test, and a test A data comparison unit for comparing test data prepared for use with test data written in the RAM;
Procedure A for reading 1 word of RAM data at the test execution address and storing it in the save register;
Procedure B for writing one word of test data to the test execution address of the RAM;
A procedure C for reading one word of data from the test execution address in the RAM and determining whether the data comparison unit is normal;
A RAM test circuit comprising a procedure D for writing back one word of data in the save register to the RAM.
前記手順Aは前記RAM要求がないタイミングで実行し、前記手順B、C、及びDは前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで実行することを特徴とする請求項1のRAMテスト回路。 The procedure A is executed when there is no RAM request, and the procedures B, C, and D are executed when there is no RAM request or when the address comparison unit detects a match. 1 RAM test circuit. RAMのM(Mは2以上でRAMの全ワード数以下の整数)ワード分のテストを実行するRAMテスト回路であって、
RAMのN(NはM以下で2以上の整数)ワード分のデータをテスト中に退避して保持する退避レジスタと、RAMをアクセスするためのRAM要求のアドレスとテスト実行中のアドレスとをNワード単位で比較するアドレス比較部と、テスト用に準備されたテストデータとRAMに書き込まれたテストデータとを比較するデータ比較部と、
前記RAM要求がないタイミングで、テスト実行アドレスのNワードのRAMデータを読み出して退避レジスタに格納する手順Aと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、RAMに1ワードずつNワード分のテストデータを書き込む手順Bと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、RAMを読み出し前記データ比較部で正常か否かを1ワードずつNワード分判定する手順Cと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、退避レジスタのNワード分のデータをRAMへ書き戻す手順Dとを有し、
前記手順A、B、C、及びDをMワード分繰り返し実行することを特徴とするRAMテスト回路。
A RAM test circuit that executes a test for M words of RAM (M is an integer not less than 2 and not more than the total number of words of RAM).
A save register that saves and holds data for N words (N is an integer equal to or greater than 2 and greater than or equal to 2) words in the RAM, an address of the RAM request for accessing the RAM, and an address during the test execution are represented by N An address comparison unit for comparing in word units, a data comparison unit for comparing test data prepared for testing and test data written in the RAM,
Procedure A for reading N words of RAM data of a test execution address and storing them in a save register at a timing when there is no RAM request;
Step B for writing N words of test data into the RAM one word at a time when there is no RAM request or when the address comparison unit detects a match,
A procedure C for reading out the RAM and determining whether the data comparison unit is normal or not by N words at a time when there is no RAM request or when the address comparison unit detects a match,
A procedure D for writing back N words of data in the save register to the RAM at the timing when the RAM request is not present or the address comparison unit detects a match,
A RAM test circuit, wherein the steps A, B, C, and D are repeated for M words.
前記退避レジスタがRAMのデータを退避中であることを示す退避フラグを有し、前記RAM要求があり且つアドレス比較部が一致を検出したタイミングにおいて前記退避フラグが有効の場合、前記RAM要求はRAMに代えて前記退避レジスタに対してアクセスするようにしたことを特徴とする請求項1、2、又は3のRAMテスト回路。 If the save register has a save flag indicating that the RAM data is being saved, and the RAM request is present and the save flag is valid at the timing when the address comparison unit detects a match, the RAM request is stored in the RAM request. 4. The RAM test circuit according to claim 1, wherein the save register is accessed instead of the RAM test circuit. データやプログラムを記憶するRAMの一部の領域を前記プログラム稼働中にテストする情報処理装置であって、
RAMのデータをテスト中に退避して保持する退避レジスタと、前記プログラムがRAMをアクセスするためのRAM要求のアドレスとテストを実行するRAMのアドレスであるテスト実行中アドレスとを比較するアドレス比較部と、テスト用に準備されたテストデータとRAMに書き込まれたテストデータとを比較するデータ比較部と、
テスト実行アドレスの1ワードのRAMデータを読み出して退避レジスタに格納する手順Aと、
RAMのテスト実行アドレスに1ワードのテストデータを書き込む手順Bと、
RAMのテスト実行アドレスから1ワードのデータを読み出して前記データ比較部で正常か否かを判定する手順Cと、
退避レジスタの1ワードのデータをRAMへ書き戻す手順Dとを有することを特徴とする情報処理装置。
An information processing apparatus that tests a partial area of a RAM for storing data and programs while the program is running,
An address comparison unit that compares a save register that saves and holds RAM data during a test, and an address of a RAM request for the program to access the RAM and a test execution address that is an RAM address for executing the test A data comparison unit that compares the test data prepared for the test with the test data written in the RAM;
Procedure A for reading 1 word of RAM data at the test execution address and storing it in the save register;
Procedure B for writing one word of test data to the test execution address of the RAM;
A procedure C for reading one word of data from the test execution address in the RAM and determining whether the data comparison unit is normal;
An information processing apparatus comprising: a procedure D for writing back one word data of a save register to a RAM.
前記手順Aは前記RAM要求がないタイミングで実行し、前記手順B、C、及びDは前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで実行することを特徴とする請求項5の情報処理装置。 The procedure A is executed when there is no RAM request, and the procedures B, C, and D are executed when there is no RAM request or when the address comparison unit detects a match. 5. Information processing apparatus. データやプログラムを記憶するRAMの一部の領域を前記プログラム稼働中にテストする情報処理装置であって、
RAMのN(NはM以下で2以上の整数)ワード分のデータをテスト中に退避して保持する退避レジスタと、前記プログラムがRAMをアクセスするためのRAM要求のアドレスとテスト実行中のアドレスとをNワード単位で比較するアドレス比較部と、テスト用に準備されたテストデータとRAMに書き込まれたテストデータとを比較するデータ比較部と、
前記RAM要求がないタイミングで、テスト実行アドレスのNワードのRAMデータを読み出して退避レジスタに格納する手順Aと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、RAMに1ワードずつNワード分のテストデータを書き込む手順Bと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、RAMを読み出し前記データ比較部で正常か否かを1ワードずつNワード分判定する手順Cと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、退避レジスタのNワード分のデータをRAMへ書き戻す手順Dとを有し、
前記手順A、B、C、及びDをMワード分繰り返し実行することを特徴とする情報処理装置。
An information processing apparatus that tests a partial area of a RAM for storing data and programs while the program is running,
A save register that saves and holds data for N words (N is an integer equal to or greater than 2 and greater than or equal to 2) in RAM, a RAM request address for accessing the RAM by the program, and an address during test execution An address comparison unit that compares the data in units of N words, a data comparison unit that compares test data prepared for testing and test data written in the RAM,
Procedure A for reading N words of RAM data of a test execution address and storing them in a save register at a timing when there is no RAM request;
Step B for writing N words of test data into the RAM one word at a time when there is no RAM request or when the address comparison unit detects a match,
A procedure C for reading out the RAM and determining whether the data comparison unit is normal or not by N words at a time when there is no RAM request or when the address comparison unit detects a match,
A procedure D for writing back N words of data in the save register to the RAM at the timing when the RAM request is not present or the address comparison unit detects a match,
An information processing apparatus characterized by repeatedly executing the procedures A, B, C, and D for M words.
前記退避レジスタがRAMのデータを退避中であることを示す退避フラグを有し、前記RAM要求があり且つアドレス比較部が一致を検出したタイミングにおいて前記退避フラグが有効の場合、前記RAM要求はRAMに代えて前記退避レジスタに対してアクセスするようにしたことを特徴とする請求項5、6、又は7の情報処理装置。 If the save register has a save flag indicating that the RAM data is being saved, and the RAM request is present and the save flag is valid at the timing when the address comparison unit detects a match, the RAM request is stored in the RAM request. 8. The information processing apparatus according to claim 5, wherein the save register is accessed instead of the information processing apparatus. データやプログラムを記憶するRAMの一部の領域を前記プログラム稼働中にテストするRAMテスト方法であって、
RAMのデータをテスト中に退避して保持する退避レジスタと、前記プログラムがRAMをアクセスするためのRAM要求のアドレスとテストを実行するRAMのアドレスであるテスト実行中アドレスとを比較するアドレス比較部と、テスト用に準備されたテストデータとRAMに書き込まれたテストデータとを比較するデータ比較部とを有し、
テスト実行アドレスの1ワードのRAMデータを読み出して退避レジスタに格納する手順Aと、
RAMのテスト実行アドレスに1ワードのテストデータを書き込む手順Bと、
RAMのテスト実行アドレスから1ワードのデータを読み出して前記データ比較部で正常か否かを判定する手順Cと、
退避レジスタの1ワードのデータをRAMへ書き戻す手順Dとを順に繰り返して実行することを特徴とするRAMテスト方法。
A RAM test method for testing a partial area of a RAM for storing data and programs while the program is running,
An address comparison unit that compares a save register that saves and holds RAM data during a test, and an address of a RAM request for the program to access the RAM and a test execution address that is an RAM address for executing the test And a data comparison unit that compares the test data prepared for the test and the test data written in the RAM,
Procedure A for reading 1 word of RAM data at the test execution address and storing it in the save register;
Procedure B for writing one word of test data to the test execution address of the RAM;
A procedure C for reading one word of data from the test execution address in the RAM and determining whether the data comparison unit is normal;
A RAM test method, wherein a procedure D for writing back one word data of a save register to a RAM is repeatedly executed in order.
前記手順Aは前記RAM要求がないタイミングで実行し、前記手順B、C、及びDは前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで実行することを特徴とする請求項9のRAMテスト方法。 The procedure A is executed when there is no RAM request, and the procedures B, C, and D are executed when there is no RAM request or when the address comparison unit detects a match. 9. RAM test method. データやプログラムを記憶するRAMの一部の領域を前記プログラム稼働中にテストするRAMテスト方法であって、
RAMのN(NはM以下で2以上の整数)ワード分のデータをテスト中に退避して保持する退避レジスタと、前記プログラムがRAMをアクセスするためのRAM要求のアドレスとテスト実行中のアドレスとをNワード単位で比較するアドレス比較部と、テスト用に準備されたテストデータとRAMに書き込まれたテストデータとを比較するデータ比較部とを有し、
前記RAM要求がないタイミングで、テスト実行アドレスのNワードのRAMデータを読み出して退避レジスタに格納する手順Aと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、RAMに1ワードずつNワード分のテストデータを書き込む手順Bと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、RAMを読み出し前記データ比較部で正常か否かを1ワードずつNワード分判定する手順Cと、
前記RAM要求がないか又は前記アドレス比較部が一致を検出したタイミングで、退避レジスタのNワード分のデータをRAMへ書き戻す手順Dとを順にMワード分繰り返し実行することを特徴とするRAMテスト方法。
A RAM test method for testing a partial area of a RAM for storing data and programs while the program is running,
A save register that saves and holds data for N words (N is an integer equal to or greater than 2 and greater than or equal to 2) in RAM, a RAM request address for accessing the RAM by the program, and an address during test execution And an address comparison unit that compares the data in units of N words, and a data comparison unit that compares the test data prepared for the test and the test data written in the RAM,
Procedure A for reading N words of RAM data of a test execution address and storing them in a save register at a timing when there is no RAM request;
Step B for writing N words of test data into the RAM one word at a time when there is no RAM request or when the address comparison unit detects a match,
A procedure C for reading out the RAM and determining whether the data comparison unit is normal or not by N words at a time when there is no RAM request or when the address comparison unit detects a match,
A RAM test characterized in that, when there is no RAM request or when the address comparison unit detects a match, the procedure D for rewriting the data of N words in the save register to the RAM is sequentially repeated for M words. Method.
前記退避レジスタがRAMのデータを退避中であることを示す退避フラグを有し、前記RAM要求があり且つアドレス比較部が一致を検出したタイミングにおいて前記退避フラグが有効の場合、前記RAM要求はRAMに代えて前記退避レジスタに対してアクセスするようにしたことを特徴とする請求項9、10、及び11のRAMテスト方法。
If the save register has a save flag indicating that the RAM data is being saved, and the RAM request is present and the save flag is valid at the timing when the address comparison unit detects a match, the RAM request is stored in the RAM request. 12. The RAM test method according to claim 9, wherein the save register is accessed instead.
JP2004217288A 2004-07-26 2004-07-26 Ram test circuit, information processing apparatus, and ram testing method Pending JP2006039843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004217288A JP2006039843A (en) 2004-07-26 2004-07-26 Ram test circuit, information processing apparatus, and ram testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004217288A JP2006039843A (en) 2004-07-26 2004-07-26 Ram test circuit, information processing apparatus, and ram testing method

Publications (1)

Publication Number Publication Date
JP2006039843A true JP2006039843A (en) 2006-02-09

Family

ID=35904791

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004217288A Pending JP2006039843A (en) 2004-07-26 2004-07-26 Ram test circuit, information processing apparatus, and ram testing method

Country Status (1)

Country Link
JP (1) JP2006039843A (en)

Cited By (4)

* 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
JP2012524334A (en) * 2009-04-16 2012-10-11 フリースケール セミコンダクター インコーポレイテッド Method and apparatus for testing memory
JP2014048920A (en) * 2012-08-31 2014-03-17 Aisin Aw Co Ltd Electronic apparatus
US9330788B2 (en) 2014-03-14 2016-05-03 Kabushiki Kaisha Toshiba Semiconductor integrated circuit capable of performing self-test

Cited By (4)

* 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
JP2012524334A (en) * 2009-04-16 2012-10-11 フリースケール セミコンダクター インコーポレイテッド Method and apparatus for testing memory
JP2014048920A (en) * 2012-08-31 2014-03-17 Aisin Aw Co Ltd Electronic apparatus
US9330788B2 (en) 2014-03-14 2016-05-03 Kabushiki Kaisha Toshiba Semiconductor integrated circuit capable of performing self-test

Similar Documents

Publication Publication Date Title
CN107544923B (en) Apparatus, and associated method, for controlling access to a memory device
US9256556B2 (en) RAM memory device capable of simultaneously accepting multiple accesses
KR101295655B1 (en) Test apparatus and test method
JPH10144095A (en) Defect analyzing memory for semiconductor memory test device
KR102584651B1 (en) Data processing
JP2006039843A (en) Ram test circuit, information processing apparatus, and ram testing method
KR940002904B1 (en) Memory card resident diagnostic testing
JP7394849B2 (en) Testing read-only memory using the memory built-in self-test controller
JP2007102940A (en) Testing device and testing method
JP2005309787A (en) Central processing unit and microcomputer
JP2001014893A (en) Pattern generator and electric parts testing device
JP4461934B2 (en) Cache memory test system, test method, test program
JP3201420B2 (en) Memory test equipment
JPH1125006A (en) Memory tester
JPS6045829B2 (en) fail memory
JPH10106293A (en) Method and equipment for testing semiconductor memory
JPH0863406A (en) Memory access controller
JP2004014037A (en) Semiconductor memory, semiconductor device, and test method for semiconductor memory
JP2000322330A (en) Failure diagnosing circuit for storage device
JP6133386B2 (en) Semiconductor memory device
US7017000B2 (en) Data transfer control circuit in system LSI
JP2641917B2 (en) Memory element
JP6137944B2 (en) Semiconductor device, test circuit and test method
JP2023150107A (en) In-circuit emulator device
JP2007213415A (en) Memory device

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070119

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080513

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20080606

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080610

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080807

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080902