Examples of the present disclosure generally relate to electronic circuits and, in particular, to dynamic scan chain reconfiguration in an integrated circuit (IC).
An integrated circuit (IC), such as an application specific integrated circuit (ASIC) or the like, are designed using design for testability (DFT) techniques. DFT techniques add testability features to a circuit design, such as scan chains. A scan chain is formed by a number of flip-flops (“flops”) connected sequentially in a chain. The input of the first flop is connected to an input pin (a “scan-in”) and the output of the last flop is connected to an output pin (a “scan-out”). Scan chains are inserted into designs to shift in test input data and shift out test result data.
IC manufacturers perform scan testing for various reasons, including to test stuck-at faults, to test the paths for delay (e.g., to determine if a path is operating at a functional frequency), and the like. Such scan testing is typically performed using automated test equipment (ATE) during manufacture. An IC can make use of scan compression to reduce the amount of data needed to test the IC, which frees up resources of the ATE and can reduce testing costs.
An IC can also be designed to perform self-testing using a logic built-in-self test (LBIST) feature. LBIST can test circuitry in the field and can test internal circuits that have no direct connections to external pins. LBIST can also provide test input to and receive test output from scan chains. An IC can perform LBIST upon being powered on.
Power-on LBIST typically exhibits run-time limitations so that the power-on time for a device meets specifications. To meet run-time limitations, LBIST can make use of smaller scan chains (e.g., scan chains having less flops). Conversely, manufacturing scan tests make use of larger scan chains (e.g., scan chains having more flops). For manufacturing scan tests, reducing scan chain length increases compression ratio. Increasing the compression ratio beyond a certain point affects test coverage. Thus, there is a conflict in terms of scan chain lengths in ICs that include both LBIST and manufacturing scan compression/decompression features.
Techniques for providing dynamic scan chain reconfiguration in an integrated circuit (IC) are described. In an example, a test circuit for an integrated circuit (IC) having a plurality of scan chains includes: a first circuit and a second circuit; and a scan chain router coupled between the first circuit and the plurality of scan chains and coupled between the second circuit and the plurality of scan chains, the scan chain router responsive to an enable signal to: (1) couple the first circuit to each of the plurality of scan chains; or (2) couple the second circuit to one or more concatenated scan chains, where each concatenated scan chain includes a concatenation of two or more of the plurality of scan chains.
In another example, an integrated circuit (IC) includes a plurality of scan chains, and test circuitry coupled to the plurality of scan chains. The test circuitry includes: a first circuit and a second circuit; and a scan chain router coupled between the first circuit and the plurality of scan chains and coupled between the second circuit and the plurality of scan chains, the scan chain router responsive to an enable signal to: (1) couple the first circuit to each of the plurality of scan chains; or (2) couple the second circuit to one or more concatenated scan chains, where each concatenated scan chain includes a concatenation of two or more of the plurality of scan chains.
In another example, a method of testing an integrated circuit (IC) having a plurality of scan chains includes: receiving one or more test signals from automatic test equipment (ATE); decompressing the one or more test signals; concatenating the plurality of scan chains into one or more concatenated scan chains, each concatenated scan chain including a concatenation of two or more of the plurality of scan chains; coupling each of the one or more test signals to a respective one of the concatenated scan chains; and coupling an output of each of the one or more concatenated scan chains to the ATE.
These and other aspects may be understood with reference to the following detailed description.
So that the manner in which the above recited features can be understood in detail, a more particular description, briefly summarized above, may be had by reference to example implementations, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical example implementations and are therefore not to be considered limiting of its scope.
To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures. It is contemplated that elements of one example may be beneficially incorporated in other examples.
Various features are described hereinafter with reference to the figures. It should be noted that the figures may or may not be drawn to scale and that the elements of similar structures or functions are represented by like reference numerals throughout the figures. It should be noted that the figures are only intended to facilitate the description of the features. They are not intended as an exhaustive description of the claimed invention or as a limitation on the scope of the claimed invention. In addition, an illustrated example need not have all the aspects or advantages shown. An aspect or an advantage described in conjunction with a particular example is not necessarily limited to that example and can be practiced in any other examples even if not so illustrated or if not so explicitly described.
Techniques for providing dynamic scan chain reconfiguration in an integrated circuit (IC) are described. In an example, an IC includes test circuitry having a scan chain router. The scan chain router can dynamically configure scan chains in the IC into chains of varying lengths for different modes of scan-related testing. For example, a power-on logic built-in self-test (LBIST) mode may need scan chains having shorter lengths to run faster for a quicker startup sequence. In contrast, a manufacturing scan test using automated test equipment (ATE) may need scan chains having longer lengths than those used for the LBIST mode, since manufacturing scan tests are limited in terms of the compression ratios. Beyond a certain compression ratio, it is more difficult to create test patterns using automatic test pattern generation (ATPG). In addition, for manufacturing scan tests, shorter scan chains (such as those needed by LBIST) can cause poor coverage or longer test times. The scan chain router described in examples herein supports both longer and shorter scan chains for various applications (e.g., both LBIST and manufacturing scan testing applications). These and further aspects are described below with respect to the drawings.
The scan chain router 106 is coupled between the scan chains 108 and the LBIST circuitry 102. The scan chain router 106 is also coupled between the scan chains 108 and the scan compressor/decompressor circuitry 104. The LBIST circuitry 102 provides an LBIST output. The scan compressor/decompressor circuitry 104 includes an automatic test equipment (ATE) input/output (“ATE In/Out”). The scan chain router 106 includes an input that receives an LBIST enable signal (“LBIST enable”).
In operation, scan chain router 106 couples the scan chains 108 into scan chains of varying lengths for different testing modes. In a first testing mode (“LBIST mode”), the scan chain router 106 couples the scan chains 108 into scan chains having smaller lengths. In a second testing mode (“scan compressor/decompressor mode”), the scan chain router 106 couples the scan chains 108 into scan chains having longer lengths with respect to the LBIST mode (“concatenated scan chains 109”).
In the LBIST mode, the scan chain router 106 couples the LBIST circuitry 102 to the scan chains 108. In the scan compressor/decompressor mode, the scan chain router 106 couples the scan compressor/decompressor circuitry 104 to the scan chains 108. ATE equipment (not shown in
The LBIST enable signal controls the mode of scan chain router 106. When LBIST enable is asserted, the scan chain router 106 is in the LBIST mode. When LBIST enable is de-asserted, the scan chain router 106 is in the scan compressor/decompressor mode. In an example, LBIST enable can be normally asserted and can be de-asserted during manufacture to perform ATE testing. LBIST enable can be accessible or inaccessible after the IC 100 is packaged.
The scan chain router 106 includes an M-bit input 206 coupled to the LBIST circuitry 102, and an M-bit output 208 coupled to the LBIST circuitry 102. In the LBIST mode, the M-bit input 206 includes an input test signal for each of the M scan chains 1081 . . . 108M. The M-bit output 208 includes an output test signal from each of the M scan chains 1081 . . . 108M. The scan chain router 106 passes the M test signals on the input 206 to input of the M scan chains 1081 . . . 108M, respectively. The scan chain router 106 passes the M outputs of the scan chains 1081 . . . 108M as the M output test signals on the output 208, respectively.
The scan chain router 106 includes an N-bit input 210 coupled to a decompressor 104D of the scan decompressor/compressor circuitry 104. The scan chain router 106 includes an N-bit output 212 coupled to a compressor 104C of the scan decompressor/compressor circuitry 104. In general, N is an integer less than M. In the scan compressor/decompressor mode, the N-bit input 210 includes an input test signal for each of N concatenated scan chains 109. The N-bit output 212 includes an output test signal for each of the N concatenated scan chains 109. The scan chain router 106 is configured to concatenate a plurality of the scan chains 108 to form each of the N concatenated scan chains 109. For example, consider N=M/2 (e.g., the ratio of M to N is 2), where M is an even integer greater than zero. In such an example, scan chain router 106 concatenates pairs of the scan chains 108 to form concatenated scan chains 109 that are twice as long as an individual scan chain 108x. The ratio of M to N can be other integers greater than two (e.g., more than two scan chains 108 can be concatenated into a concatenated scan chain). Moreover, it is not necessary that each concatenated scan chain have the same length.
The chain concatenation circuit 304 is coupled to the output 210 of the decompressor 104D and the input 212 of the compressor 104C. In this example, the output 210 includes two signals (“frmDecomp[1:0]”). Likewise, the input 212 includes two signals (“toComp[1:0]”). In the example, the chain concatenation circuit 304 couples the signal frmDecomp[0] to the output 3060 and the signal frmDecomp[1] to the output 3062. The chain concatenation circuit 304 couples the input 3080 to the output 3061. The chain concatenation circuit 304 couples the input 3082 to the output 3063. The chain concatenation circuit 304 provides the signal toComp[0] from the input 3081 and the signal toComp[1] from the input 3083.
In operation, the bypass router circuit 302 is enabled, and the chain concatenation circuit 304 is disabled, when the LBIST enable signal is asserted. The bypass router circuit 302 passes the signals frmLBIST[3:0] to the inputs of the scan chains 1081 . . . 1084. The bypass router circuit 302 passes signals output from the scan chains 1081 . . . 1084 as the signals toLBIST[3:0]. The bypass router circuit 302 is disabled, and the chain concatenation circuit 304 is enabled, when the LBIST enable signal is de-asserted. In such case, the chain concatenation circuit 304 concatenates scan chains 1081 and 1082 into a single concatenated chain 109. Likewise, the chain concatenation circuit 304 concatenates scan chains 1083 and 1084 into a single concatenated chain 109.
The example of
The test circuitry 103 described above can be implemented within an integrated circuit, such as a field programmable gate array (FPGA) or like type programmable circuit.
In some FPGAs, each programmable tile can include at least one programmable interconnect element (“INT”) 11 having connections to input and output terminals 20 of a programmable logic element within the same tile, as shown by examples included at the top of
In an example implementation, a CLB 2 can include a configurable logic element (“CLE”) 12 that can be programmed to implement user logic plus a single programmable interconnect element (“INT”) 11. A BRAM 3 can include a BRAM logic element (“BRL”) 13 in addition to one or more programmable interconnect elements. Typically, the number of interconnect elements included in a tile depends on the height of the tile. In the pictured example, a BRAM tile has the same height as five CLBs, but other numbers (e.g., four) can also be used. A DSP tile 6 can include a DSP logic element (“DSPL”) 14 in addition to an appropriate number of programmable interconnect elements. An IOB 4 can include, for example, two instances of an input/output logic element (“IOL”) 15 in addition to one instance of the programmable interconnect element 11. As will be clear to those of skill in the art, the actual I/O pads connected, for example, to the I/O logic element 15 typically are not confined to the area of the input/output logic element 15.
In the pictured example, a horizontal area near the center of the die (shown in
Some FPGAs utilizing the architecture illustrated in
Note that
At step 604, the decompressor 104D receives the test signal(s) from the ATE 502. At step 606, the decompressor 104D decompresses the test signal(s). At step 608, the scan chain router 106 couples the test signal(s) to input(s) of the concatenated scan chains 109. At step 610, the scan chain router 106 couples output(s) of the concatenated scan chains 109 to the compressor 104C, which compresses the output(s). At step 612, the compressor 104C provides the output(s) to the ATE 502.
While the foregoing is directed to specific examples, other and further examples may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.