Techniques for storing and using compressed restrict values for selected scan chains and flip-flops, such that the states that need to be applied to those flip flops need not be solved by a linear equation system solver, such as a linear equation system solver provided by an automatic test pattern generation (ATPG) tool. Selected restrict values can then be injected into test patterns for those flip-flop combinations that need to be set in a certain shift cycle or those flip-flops that need to be initialized one after another (e.g., for serial settings in one scan chain).

FIELD OF THE INVENTION

The present invention is directed to the generation of deterministic test patterns for a built-in self-test of an integrated circuit device. Various embodiments of the invention may be particularly useful for providing values of a deterministic pattern to specific scan chains or to specific flip-flops in one or more scan chains of an embedded deterministic test system.

BACKGROUND OF THE INVENTION

As integrated circuits continue to develop, they continue to have higher device densities and clocking rates. As a result, it requires ever-increasing numbers of test vectors to properly test them, which in turn requires larger and larger amounts of tester vector memory. Still further, manufacturing newer integrated circuits requires even more complex manufacturing techniques, with the corresponding increase in problems and costs related to the production of integrated circuits. To address these problems, and to allow for a self-test of integrated circuits in the field, a testing technique referred to as “built-in self-test” (BIST) is expected to be used more and more in the future.

With logic built-in self-test (LBIST), test circuits for testing the functional logic of an integrated circuit are added to the circuit's design.FIG. 1illustrates the general configuration of an integrated circuit using LBIST. As seen in this figure, an integrated circuit101includes a test stimulus generator103, a circuit-under-test (CUT)105, and a test response evaluator107. The integrated circuit101also includes a test control module109, for controlling the operation of the test stimulus generator103, the circuit-under-test (CUT)105, and the test response evaluator107. With this arrangement, the test stimulus generator103generates test stimuli that are applied to the circuit-under-test105through scan chains. The scan chains may be, for example, flip-flops in the circuit-under-test105that can be configured into serial shift registers during a test mode.

The self-test is performed by repeatedly shifting the generated test stimuli into the scan chains so that they are applied to the circuit-under-test105, and operating the circuit-under-test105for a number of clock cycles in its functional application mode. Various techniques for generating efficient stimuli are well-known in the art. The responses produced by the circuit-under-test105are captured by the scan chains, and relayed to the test response evaluator107where, for example, they are compacted on-chip using a compacting device, such as a multiple input shift register (MISR), to produce a compacted test signature. The compacted test signature can then be compared against a corresponding fault-free signature to determine if the integrated circuit has any of the faults tested for by the test stimuli. Depending upon the implementation, the compacted test signature can be compared with the fault-free signature on-chip, or after it has been exported off of the integrated circuit for comparison by, for example, automated test equipment.

As previously noted, various techniques for generating efficient stimuli are well-known in the art. These include, for example, techniques for generating test stimuli for built-in self-test applications that improve the random testability of the circuit by state-of-the-art test points insertion (TPI), by a linear feedback shift register (LFSR) reseeding, by Bit-Flipping-Logic (see, for example, U.S. Pat. No. 6,789,221, issued Sep. 7, 2004, which patent is incorporated entirely herein by reference), or by a cycle-based stimuli generation (see, for example, European Patent Application No. 06126627.6, filed on Dec. 20, 2006, which application is incorporated entirely herein by reference as well). In the case of reseeding a linear feedback shift register (LFSR), which is typically coupled with a phase shifter (PS), the test stimuli are derived from the LFSR seeds that are stored in, for example, a memory circuit, such as a read-only memory (ROM) circuit. With Bit Flipping Logic or cycle based stimuli generation, stimuli patterns generated using the LFSR/PS combination can be optimized to cover difficult-to-test faults.

Modern integrated circuits contain a large (e.g., multiple millions) number of flip-flops, however. When using the reseeding feature of a LFSR, it is often not possible to solve the set of linear equations required to get the correct states at the flip-flops, because only very few bits can be stored as the LFSR seed in the memory circuit. Further, the use of Bit Flipping Logic introduces a significant problem in the design flow, while the use of cycle based stimuli generation often is not feasible with modern integrated circuits because of the amount of data that needs to be stored on chip, e.g. in a ROM, becomes unacceptably large. Still further, the number of scan chains in typical modern integrated circuit designs can be very large as well, and can easily be in the range of 1000 to 5000 scan chains. Storing a complete stimuli pattern for such a large number of scan chains with cycle based stimuli generation also would require a prohibitively large memory circuit, and would slow down the test frequency as well.

BRIEF SUMMARY OF THE INVENTION

Aspects of the invention relate to techniques for storing and using compressed restrict values for selected scan chains and flip-flops, such that the states that need to be applied to those flip flops need not be solved by a linear equation system solver, such as a linear equation system solver provided by an automatic test pattern generation (ATPG) tool. Storing only compressed and selected restrict values reduces the on-chip storage requirements significantly, so that all of the needed compressed stimuli values to provide high fault coverage can be stored in an on-chip ROM. With selected restrict values according to various embodiments of the invention, only the flip-flop values for those flip-flops that are required in many test patterns or those flip-flop combinations that are difficult to set all in one pattern are stored. These are typically multiple flip-flops that need to be set in a certain shift cycle or those flip-flops that need to be initialized one after another (e.g., for serial settings in one scan chain).

Various implementations of the invention can efficiently store and provide a variety of flip-flop-related data including, e.g., compressed parallel data that is needed in one shift cycle, serial scan chain data, and also compressed LFSR seeds. All together, these three data categories can lead to a higher probability for a successful solution of a linear equations system and consequently to higher fault coverage, while significantly reducing the overall size of a memory circuit that conventionally would be used to store conventionally-used LFSR seeds, thus saving area and test costs.

DETAILED DESCRIPTION OF THE INVENTION

FIG. 2shows an example of an Embedded Deterministic Test (EDT) configuration201that may be employed with various implementations of the invention. As seen in this figure, the EDT configuration201includes a linear finite state machine (LFSM)203together with a phase shifter (PS)205connected to the linear finite state machine203. According to various embodiments of the invention, stimuli generation logic is placed between the outputs of the phase shifter205and the inputs of internal scan chains207. This stimuli generation logic may include bit-setting logic (BSL) devices209, one or more parallel data registers (PREG)211with corresponding XOR decompressors213, and one or more serial data registers (SREG)215with corresponding 1-hot decoders217. Further, with some implementations of the invention, the stimuli generation logic also may include a stimuli memory circuit device219(which may be, e.g., a read-only memory (ROM) device), a register decoder (DEC)221, a repeat counter register (RPC)223, a down counter (DWN CNT)225, and an address counter (ADR CNT)227. As also seen in this figure, a BIST controller229with another address counter (ADR CNT)231and another down counter (DWN CNT)233can be used to provide a deterministic ATPG pattern-dependant compressed LFSM seed to the linear finite state machine203, and a start address for the stimuli memory circuit device219.

At the beginning of a built-in self-test process, the address counter231for the BIST controller229is reset. In response, the BIST controller229provides a first “Start” address to the address counter227of the stimuli memory circuit device219. The effect of this will be that the stimuli memory circuit device219will output a number, e.g. an 8 bit register number, to the register decoder221for decoding. As seen from the figure, the resulting output of the register decoder221will select one or more of the parallel data registers211, the serial data registers215and the repeat counter register223. The stimuli memory circuit device219will also output a data word (e.g., a 32 bit data word) that will be loaded into the selected register (or registers). Next, the address counter227of the stimuli memory circuit device219is incremented, and as such another selected register or registers (i.e., parallel data registers211, serial data registers215and/or the repeat counter register223) will be loaded with data from the stimuli memory circuit device219.

This process is repeated until the repeat counter register223is loaded with data from the stimuli memory circuit device219. Loading the repeat counter register223also instructs the repeat counter register223to load the data from the repeat counter register223into the down counter225, and to stop the address incrementation of the address counter227until the down counter225has reached its zero state. During this time, no further registers are loaded, and the system operates in shift mode for the specified number of cycles (i.e., the value stored in the repeat counter register223). During this time, either random data from the linear finite state machine203/phase shifter205combination is shifted into the scan chains207, or deterministic parallel or serial data provided by the parallel data registers211or the serial data registers215registers is shifted into the scan chains207. The values from the registers, which are injected into the test pattern generated by the linear finite state machine203/phase shifter205combination via the bit-setting logic (BSL) devices209, are referred to herein as restrict values. With various examples of the invention, each of the registers211,215will only target a subset of the complete scan chains, e.g., 32 scan chains. Using this arrangement, it is possible to provide the desired deterministic stimuli specifically for difficult-to-test portions of the design, while the rest of the design can receives the random stimuli data that is conventionally generated by the linear finite state machine203.

With various examples of the invention, an ATPG tool can be used to calculate the required data that needs to be loaded into the parallel data registers211and the serial data registers215, so that fully deterministic test patterns will be generated on-chip. The BIST controller229can create a new start address for the stimuli memory circuit device219for each pattern determined by the ATPG tool, or the BIST controller229can continue to create random patterns via the linear finite state machine203using the same start address for the stimuli memory circuit device219. This arrangement allows, for example, control of the clocks in multi-clock systems and permits the linear finite state machine203to generate pseudo-random patterns from a given linear finite state machine203start seed.

With various examples of the invention, each data word provided by the stimuli memory circuit device219may have two fields: a register field, which allows it to address a particular register (i.e., a parallel data register211, a serial data register215, or that repeat counter register223) or all of the registers when a register number 0 is provided, and a data field. The data word may provide 8 bits for the register number, and 32 bits for the data field. Of course, while the number of bits needed for addressing the various registers will typically be 8, various implementations of the invention can provide more or less bits for addressing the registers, if needed.

FIG. 3, for example, illustrates an example of a data word format that can be employed to access a parallel data register211according to various implementations of the invention. As seen in this figure, each data word301of the stimuli memory circuit device219is separated into 2 or more bit/data fields: the register field303, and the register data305.FIG. 4then illustrates an example of a data word format that can be employed to access a serial data register215according to various implementations of the invention. As seen in this figure, the data word401provided by the stimuli memory circuit device219may be divided into, for example, 4 portions: a register number403, the serial data405, the chain selector507, and the length of the serial bit stream409.FIG. 5illustrates an example of a data word format that can be employed to access the repeat counter register223according to various implementations of the invention. As seen in this figure, the data word501employed by the stimuli memory circuit device219may include 2 portions: a register number503and a data portion505. Each word501can, for example, have 8 bits for the register number503as previously noted, and 32 bits for the counter value505.

Table 1 describes a possible content of a stimuli memory circuit device219according to various embodiments of the invention, along with the related hardware activities initiated by that content.

FIG. 6illustrates a flow diagram describing an algorithm for calculating the contents of the stimuli memory circuit device219according to various embodiments of the invention, so that the contents of the stimuli memory circuit device219will drive the hardware components to create the needed deterministic stimuli to reach a very high fault coverage.

As will be appreciated from the foregoing description, a stimuli generation logic configuration according to various embodiments of the invention can provide an effective, flexible, and cheap solution for generating deterministic test patterns on-chip, such that a logic built-in self-test can be executed in production, during wafer and final test, but also when the chip is placed into the application system in the field. Various embodiments of the invention can re-use the stimuli generation hardware of a conventional EDT logic arrangement (e.g., a linear finite state machine and a phase shifter) so that the chip manufacturer can decide when to run the chip in test compression mode and when in a logic BIST mode according to various embodiments of the invention.

Further, with various implementations of the invention, no test points need to be inserted into the circuit-under-test, because random resistive faults will not matter in view of the deterministic patterns that may be generated according to embodiments of the invention. As a result, the design flow can become very simple, so that the RTL code for the logic BIST circuitry according to various embodiments of the invention can be created very early in the design phase and the needed hardware is no longer dependent on the circuit-under-test logic. The designer can implement a design as desired, while still achieving a high fault coverage. Still further, various embodiments of the invention allow the design of the circuit-under-test to be changed up to the final end of the design flow, as the ATPG tool employed with logic BIST circuitry according to various embodiments of the invention will only have to create new data to be loaded into the stimuli memory circuit device219to compensate for a design change to the circuit-under-test. Due to the modular register approach, BIST techniques employing various embodiments of the invention can be used even for designs with many scan chains.

CONCLUSION

While the invention has been described with respect to specific examples including presently preferred modes of carrying out the invention, those skilled in the art will appreciate that there are numerous variations and permutations of the above described systems and techniques that fall within the spirit and scope of the invention as set forth in the appended claims. For example, while specific implementations of the invention have been discussed with regard to logic built-in self-test techniques, it should be appreciated that implementations of the invention also may be employed with other types of built-in self-test techniques, such as memory built-in self-test (MBIST) techniques.