This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2008-274448 which was filed on Oct. 24, 2008, the disclosure of which is incorporated herein in its entirety by reference.
1. Field of the Invention
The present invention relates to a semiconductor device and a method of testing the same, and more particularly, to a semiconductor device having a built-in self-test circuit and a method of testing the same.
2. Description of Related Art
To make it easy to test semiconductor devices, semiconductor devices are each provided with a built-in self-test (BIST) circuit for detecting faults in them. Patent document 1 listed below, for example, discloses a semiconductor device having a BIST circuit which can identify a fail-data address and a fail-data bit without causing the testing time or cost to increase and which can easily test an AC characteristic, for example, an access time characteristic of a circuit. The BIST circuit compares test data written to a memory device and the data read from the memory device, when an error is detected, outputs the fail data read from the memory device and an address signal indicating the fail-data address.
Patent document 2 listed below discloses a method of diagnosing a RAM and an LSI which makes it possible to diagnose a RAM included in an LSI at high speed using a low-speed tester or a low-speed BIST circuit. The LSI includes a parallel/serial conversion circuit and a serial/parallel conversion circuit. The parallel/serial conversion circuit converts t-bit parallel data which is provided for use in testing the RAM and whose operating speed is lit times the operating clock frequency of the LSI into write data to be written, at the operating clock frequency of the LSI, to the RAM. The serial/parallel conversion circuit converts t-bit data read from the RAM at the operating clock frequency of the LSI into t-bit parallel data whose operating speed is 1/t times the operating clock frequency of the LSI.
[Patent Document 1] Japanese Patent Application Laid Open No. H 11-39226
[Patent Document 2] Japanese Patent Application Laid Open No. 2001-110200
Analysis made in connection with the present invention follows.
In recent years, LSIs have been remarkably growing in scale and operating speed. Keeping pace with the trend, the cost of testing LSIs has been increasing. Shortening the time required to test LSIs is one way of reducing the cost of testing LSIs. Namely, making it possible to successively test LSIs using a high-speed clock signal results in shortening the time required to test LSIs and reducing the cost of testing them.
According to the semiconductor device disclosed in the patent document 1, however, when outputting, upon detection of an error, the fail data read from memory and an address signal indicating the fail-data address, it is necessary to interrupt the error detection operation and output the data and the address signal from a scan circuit. It is therefore not possible to perform an error detection operation at every cycle of a clock signal, so that the testing time cannot be reduced beyond a certain extent.
The LSI disclosed in the patent document 2 includes a parallel/serial conversion circuit and a serial/parallel conversion circuit and reads a fault detection signal at low speed. It is therefore possible to perform successive fault detection operations using a clock signal for testing. When the clock signal is made faster, however, it becomes increasingly difficult to determine the timing for reading a fault detection signal from the parallel conversion circuit. Namely, supplying a clock signal to inside the LSI from an external tester via a clock pin makes it possible to read a fault detection signal in synchronization with the clock signal. In this case, however, the delay time involved in reading the fault detection signal is dependent, for example, on the LSI structure and the wiring length between the tester and the LSI, so that it is not constant. Therefore, when the clock signal is made faster, it becomes difficult to accurately determine the timing of the fault detection signal, so that performing the test becomes increasingly difficult.
The semiconductor device according to one exemplary aspect of the present invention includes circuits to be tested, an input terminal for inputting an external tester clock signal, a built-in self-test circuit for logically testing the circuit to be tested at every cycle of the tester clock signal, and an output terminal for outputting a test result signal representing a result of testing performed by the built-in self-test circuit. In the semiconductor device, the built-in self-test circuit has a function of generating, before generating the test result signal, a marker signal instead of the test result signal, the marker signal having a phase identical to the phase of the test result signal.
A method of testing a semiconductor device according to another exemplary aspect of the present invention is used to test a semiconductor device which includes a built-in self-test circuit for testing a circuit to be tested in synchronization with a tester clock signal inputted from outside and outputting a test result signal representing a result of testing performed in the built-in self-test circuit to outside. According to the method, before the test result signal is generated, a marker signal having a phase identical to the phase of the test result signal is generated instead of the test result signal in the built-in self-test circuit.
A method of testing a semiconductor device according to still another exemplary aspect of the present invention is used to test a semiconductor device which includes a circuit to be tested, an input terminal for inputting a tester clock signal from a test equipment, a built-in self-test circuit for logically testing the circuit to be tested in synchronization with the tester clock signal, and an output terminal for outputting a test result signal representing a result of testing performed by the built-in self-test circuit. The method includes supplying the tester clock signal to the input terminal by the test equipment, before generating the test result signal, generating a marker signal instead of the test result signal by the built-in self-test circuit, the marker signal having a phase identical to the phase of the test result signal, and receiving the marker signal from the output terminal and determining the phase of the test result signal by the test equipment.
According to the exemplary aspects, the marker pulse signal is generated before the generation of a test result signal, so that the timing for reading the test result signal can be accurately determined. It is therefore possible to successively perform checking with an expected value and faulty-cycle detection using a faster clock signal so as to reduce the cost of testing.
The above and other exemplary aspects, advantages and features of the present invention will be more apparent from the following description of certain exemplary embodiments taken in conjunction with the accompanying drawings, in which:
A semiconductor device according to an exemplary embodiment of the present invention includes a circuit to be tested (for example, SRAM 12 in
In the semiconductor device of the present invention, the BIST circuit may include a comparator circuit (comparator circuit 24 in
In the semiconductor device of the present invention, the circuit to be tested may be a memory circuit and the BIST circuit may be configured such that it writes data corresponding to a comparison result signal representing a comparison result “non-match” determined in the comparator circuit to a prescribed part of the memory circuit beforehand and such that it reads the data from the prescribed part of the memory circuit as a marker signal before generating a test result signal.
In the semiconductor device of the present invention, the circuit to be tested may be a memory circuit and the BIST circuit may include a marker signal generation circuit (check signal generator 22 in
The semiconductor device of the present invention may include a clock signal generation circuit (PLL 16 in
According to the semiconductor device as described above, before a test result signal is generated, a prescribed marker signal whose phase is the same as that of the test result signal is generated instead of the test result signal. This allows a test equipment (tester) connected to the semiconductor device to read the marker signal and thereby accurately determine the timing for reading the test result signal. It is, therefore, possible to successively perform checking with an expected value and faulty-cycle detection using a faster test clock signal.
In the following, exemplary embodiments of the present invention will be described in detail with reference to drawings.
The semiconductor device 10 has a tester clock signal Tc1 inputted thereto from an external test equipment 50 via the input terminal 13 and supplies the inputted tester clock signal Tc1 as a BIST clock signal Bc1 to the BIST circuit 11 and the SRAM 12. The BIST circuit 11 tests the SRAM 12 in synchronization with the BIST clock signal Bc1. The SRAM 12 reads and writes data used for the test in synchronization with the BIST clock signal Bc1.
The semiconductor device 10 has a BIST control signal Bct inputted thereto from the external test equipment 50 via the input terminal 14 and supplies the inputted BIST control signal Bct to the control register 21.
In accordance with the BIST control signal Bct, the control register 21 orders the check signal generator 22 to generate, before starting a test, a prescribed marker signal Ms, instead of a test result signal Ts, whose phase is the same as that of the test result signal Ts. The control register 21 controls the selector 25 to cause the selector 25 to select the marker signal Ms and output it as an output signal Out to the external test equipment 50 via the output terminal 15. The test equipment 50 reads the marker signal Ms outputted as an output signal Out and thereby determines the timing for reading a test result signal Ts when a test is performed.
In accordance with the BIST control signal Bct, the control register 21 sends a start signal St for starting a test to the pattern generation circuit 23. The pattern generation circuit 23 generates an address signal Ad for a series of write operations and sends it to the SRAM 12 while also supplying the SRAM 12 with write data Dw. The pattern generation circuit 23 then generates an address signal Ad for a series of read operations and gives it to the SRAM 12 while supplying the comparator 24 with the data Dw written at the addresses given by the address signal Ad. The SRAM 12 reads the data Dw written according to the address signal Ad and outputs the data thus read as read data Dr to the comparator 24.
The comparator 24 compares the data Dw and the data Dr and outputs a test result signal Ts representing a test result “match” or “non-match” to the selector 25. In performing the test, the control register 21 controls the selector 25 to cause the selector 25 to select the test result signal Ts and output it as an output signal Out. The test equipment 50 reads the test result signal Ts outputted as the output signal Out and determines if the SRAM 12 has a faulty part.
The check signal generator 22 will be described in detail below.
The marker register 31 inputs, before starting a test, mark position data Mi from the control register 21 and holds it. The mark position data Mi represents a count value for generating a marker pulse in the marker signal Ms. The counter 33 counts, after a test is started, the number of clock pulses of the BIST clock signal Bc1. The pulse generator 32 compares the data from the control register 21 and the number of clock pulses counted by the counter 33 and, when they match, outputs a pulse to the latch circuit 34. The latch circuit 34 latches the pulse based on the BIST clock signal Bc1 and outputs the result of latching as a marker signal Ms to the selector 25 via the delay buffer 35. The delay buffer 35 delays the outputting of the marker signal Ms by an amount of time equivalent to the time used in reading data from the SRAM 12 and performing data comparison in the comparator 24.
The generation of a marker signal Ms by the check signal generator 22 will be described in the following.
The tester clock signal Tc1 is delayed by t1 to be used as the BIST clock signal Bc1. The delay t1 is caused mainly by the wiring between the test equipment 50 and the semiconductor device 10. It is after the start signal is activated that the BIST clock signal Bc1 is practically supplied in the BIST circuit 11.
The check signal generator 22 outputs, after the BIST clock signal Bc1 is practically supplied and a delay t2 is generated, a marker pulse to the marker signal Ms. In the present example, the marker pulse is generated during the phase A period of the tester clock signal. The marker pulse is delayed by t3 before being outputted as an output signal Out to the test equipment 50.
The test equipment 50 searches for an active (high level) marker pulse at different timings (s1, s2, and s3) and selects timing s3, which allows the marker pulse to be reliably detected, as the timing for collecting the output signal Out.
The generation of a test result signal Ts by the comparator 24 will be described in the following.
The comparator 24 outputs, after the BIST clock signal Bc1 is practically supplied and a delay t2 is generated, a test result signal Ts. The test result signal Ts is delayed by t3 before being outputted as an output signal Out to the test equipment 50.
The test equipment 50 reads, at the timing s3 previously selected in generating a marker signal Ms, the output signal Out and determines if the SRAM 12 has a faulty part.
As described above, before generating a test result signal Ts, the BIST circuit 11 generates, instead of the test result signal Ts, a prescribed marker signal Ms whose phase is the same as that of the test result signal Ts. The test equipment 50 connected to the semiconductor device 10 can, therefore, accurately determine the timing for collecting the test result signal Ts by reading the marker signal Ms. This makes it possible, even in cases where the tester clock signal Tc1 is made faster, to check the SRAM 12 on a stable basis and reduce the time required to perform the test.
The PLL 16 generates a BIST clock signal Bc1 by multiplying a tester clock signal Tc1 (by three in the present example) and supplies the BIST clock signal Bc1 thus generated to a BIST circuit 11, an SRAM 12, a counter 17, and a serial/parallel converter 18.
The counter 17 frequency-divides the BIST clock signal Bc1 (by three in the present example) and supplies the resultant signal as a collection signal Pei to the serial/parallel converter 18.
The serial/parallel converter 18 includes flip-flop circuits FF1 to FF5. The flip-flop circuits FF1 and FF2 shift the marker signal Ms or the test result signal Ts outputted from the selector 25 based on the BIST clock signal Bc1. The flip-flop circuits FF3, FF4, and FF5 latch, according to the collection signal Pc1, the signals outputted from the selector 25 and the flip-flop circuits FF1 and FF2 and output the signals thus latched as output signals Outa, Outb, and Outc to the test equipment 50 via output terminals 15a, 15b, and 15c, respectively. The serial/parallel converter 18 functions as a speed conversion circuit and outputs the marker signal Ms or the test result signal Ts as a parallel signal to the test equipment 50.
The generation of a marker signal Ms by the check signal generator 22 will be described in the following.
As described above, the semiconductor device 10a provided with the serial/parallel converter 18 can output test results to the test equipment 50 at low speed. In this case, the test equipment 50 connected to the semiconductor device 10a can accurately determine the timing for collecting the test result signal Ts by reading the marker signal Ms as the output signal Outa, Outb, or Outc.
A pattern generation circuit 23b writes data for fault detection to an address to be a target of marker pulse generation of an SRAM 12. A comparator 24 detects the data for fault detection and outputs a marker pulse to a test result signal Ts. Namely, the control register 21b makes the pattern generation circuit 23b generate, before generating a test result signal, a prescribed marker pulse whose phase is the same as that of the test result signal. The test equipment 50 can accurately determine, like in the first exemplary embodiment, the timing for collecting the test result signal Ts by reading an output signal Out and determining the position of the marker pulse.
The disclosures of the foregoing patent documents are incorporated herein by reference. The above exemplary embodiments or examples of the present invention can be changed and adjusted within the framework and based on the basic technical concept of the present disclosure (inclusive of the appended claims) of the invention. Also within the framework of the scope of claims of the invention, disclosed elements can be combined in various ways or adopted selectively. Namely, the invention is inclusive of various modifications and alterations which can be devised by people with ordinary skill in the art within the framework and based on the basic technical concept of the whole disclosure, inclusive of the appended claims, of the invention.
Further, it is noted that Applicant's intent is to encompass equivalents of all claim elements, even if amended later during prosecution.
Number | Date | Country | Kind |
---|---|---|---|
274448-2008 | Oct 2008 | JP | national |