Background of the Invention
1. Field of the Invention
The present invention relates generally to a test circuit built into a certain circuit to be tested. In particular, the present invention relates to a linear feedback shift register, a multiple input signature register, and a built-in self test circuit using such registers.
The present application is based on Korea Patent Application No. 96-47171 which is incorporated herein by reference for all purposes.
2. Description of the Related Art
A built-in self test (BIST) circuit means a test circuit such as a test input applying circuit, an output-responsive discriminating circuit, etc., which is built into the target circuit to be tested such as a large scale integrated circuit (LSI), a printed circuit board, a device, etc. The BIST circuit enables the target circuit to be tested without using a separate tester or a test equipment.
According to one conventional method for implementing the BIST circuit, a test is created utilizing a random signal, the results of the circuit to be tested under the signal are compressed, and the finally compressed results are compared with one another. A linear feedback shift register (LFSR) and a multiple input signature register (MISR) have been primarily used to implement such a BIST circuit.
FIG. 1 is a schematic circuit diagram of a conventional LFSR. Referring to FIG. 1, the conventional LFSR includes storage elements 2, 4, . . . , 6, and 8 for storing coefficients Ci of a primitive polynomial, XOR gates 10, 12, . . . , 14, and 16 for XOR-gating the corresponding coefficient, stored data, and input data, and D-type flip-flops 20, 22, . . . , 24, and 26 for storing data of 1 bit, respectively.
The conventional LFSR of FIG. 1 is a circuit for creating a pseudo-random pattern, and performs the following primitive polynomial:
where C.sub.i denotes the coefficient of the respective terms of the above Eq. (1). If the coefficient of the term is `1`, a feedback path exists as shown in FIG. 1, while if the coefficient is `0`, no feedback path exists.
FIG. 2 is a schematic circuit diagram of a conventional MISR. Referring to FIG. 2, the conventional MISR includes storage elements 50, 52, . . . , 54, and 56 for storing coefficients of a primitive polynomial, XOR gates 30, 32, . . . , 34, and 36 for XOR-gating the corresponding coefficient, stored data, and input data, and D-type flip-flops 40,42, . . . , 44, and 46 for storing data of 1 bit.
The conventional MISR has a structure similar to the conventional LFSR of FIG. 1. But, unlike the LFSR of FIG. 1, the MISR of FIG. 2 receives and processes the data D1, D2, . . . , D.sub.n-1, and D.sub.n in parallel.
The number of flip-flops in the conventional LFSR of FIG. 1 is determined in accordance with the number of inputs of the circuit to be tested, while the number of flip-flops in the conventional MISR of FIG. 2 is determined in accordance with the number of outputs of the circuit to be tested. Since the number of flip-flops in the conventional BIST circuit, implemented using the LFSR and the MISR circuits of FIGS. 1 and 2, is dependant upon the number of inputs and outputs of the circuit to be tested, a circuit to be tested having a large number of inputs and outputs will require a corresponding large number of flip-flops on the LFSR and MISR test circuits. Consequently, the circuit real estate or overhead required for such a BIST circuit increases dramatically.
Accordingly, the need exists for an LFSR and/or MISR circuit which is implemented using a memory already existing in a circuit to be tested.
Summary of the Invention
In one aspect of the present invention, there is provided an LFSR which is employed in a BIST circuit, built in a prescribed circuit having a memory, for testing the circuit and which performs a primitive polynomial. It is preferable that the LFSR comprises storage elements of N (where, N is not less than 1.) for storing coefficients of the primitive polynomial, XOR gates of N for respectively XOR-gating the corresponding coefficient stored in the corresponding storage element and data of the primitive polynomial read out from the memory, selection means of N for respectively receiving an output of the corresponding XOR gate and data used in the prescribed circuit and selectively outputting the received data to the memory in response to a selection signal, and control means for generating the selection signal in accordance with a test mode and controlling data input/output of the memory so that the memory outputs the data corresponding to an output of the selection means as the primitive polynomial data.
In another aspect of the present invention, there is provided an MISR which is employed in a BIST circuit, built in a prescribed circuit having a memory, for testing the circuit and which performs a primitive polynomial. It is preferable that the MISR comprises storage elements of N (where, N is not less than 1.) for storing coefficients of the primitive polynomial, XOR gates of N for respectively XOR-gating the corresponding coefficient stored in the corresponding storage element, data of the primitive polynomial read out from the memory, and data externally inputted, selection means of N for respectively receiving an output of the corresponding XOR gate and data used in the prescribed circuit and selectively outputting the received data to the memory in response to a selection signal, and control means for generating the selection signal in accordance with a test mode and controlling data input/output of the memory so that the memory outputs the data corresponding to an output of the selection means as the primitive polynomial data.
In still another aspect of the present invention, there is provided a BIST circuit, built in a prescribed circuit having a memory, for testing a target circuit in the prescribed circuit. It is preferable that the BIST circuit comprises an LFSR, including a first logic section which is composed of a plurality of XOR gates and selection means, and a first memory which is a part of the memory, for performing a primitive polynomial, an MISR, including a second logic section which is composed of a plurality of XOR gates and selection means, and a second memory which is a part of the memory, for performing the primitive polynomial, and a BIST control section for controlling data input/output between the first and second memories and the target circuit and providing selection signals for controlling the selection means in the first and second logic sections, the BIST control section controlling the target circuit and comparing operation results of the target circuit to perform the test of the target circuit.
Brief Description of the Drawings
The above objects, other features, and advantages of the present invention will become more apparent by describing the preferred embodiments thereof with reference to the accompanying drawings, in which:
FIG. 1 is a schematic circuit diagram of a conventional LFSR;
FIG. 2 is a schematic circuit diagram of a conventional MISR;
FIG. 3 is a schematic circuit diagram of the LFSR according to the present invention;
FIG. 4 is a schematic circuit diagram of the MISR according to the present invention; and
FIG. 5 is a schematic circuit diagram of the BIST circuit according to the present invention.
Detailed Description of Preferred Embodiments
The construction and operation of the LFSR, the MISR, and the BIST circuit using the LFSR and the MISR according to the present invention will now be explained with reference to the accompanying drawings.
FIG. 3 is a schematic circuit diagram of the LFSR according to the present invention. Referring to FIG. 3, the LFSR according to the present invention includes a plurality of storage elements 60, 62, 64, . . . , 66, and 68, XOR gates 70, 72, 74, . . . , 76, and 78, and multiplexers 80, 82, 84, . . . , 86, and 88, and a memory 90.
Each cell of the memory 90 as shown in FIG. 3 serves as a sequential element such as the flip-flop of the conventional LFSR of FIG. 1, and the LFSR of FIG. 3 has the same XOR gates and feedback paths as the LFSR of FIG. 1.
The storage elements 60, 62, 64, . . . , 66, and 68 of FIG. 3 store the respective coefficients of the primitive polynomial Eq.(1) and then output them to the corresponding XOR gates 70, 72, 74, . . . , 76, and 78. The n XOR gates 70, 72, 74, . . . , 76, and 78 XOR-gate the coefficients stored in the corresponding storage elements 60, 62, 64, . . . , 66, and 68 and primitive polynomial data D0 read out from the memory 90, respectively, and output the XOR-gated values to the corresponding multiplexers 80, 82, 84, . . . , 86, and 88.
The n multiplexers 80, 82, 84, . . . , 86, and 88 receive the outputs of the corresponding XOR gates 70, 72, 74, . . . , 76, and 78 and the data used in a circuit employing the LFSR according to the present invention, and selectively output the inputted data D1 to the memory 90 in response to the selection signal S1 provided from a control section (not illustrated). The control section provides the selection signals so that normal data applied through a data bus is outputted to the memory 90 in a normal mode, and the result of the corresponding XOR-gating is outputted to the memory 90 in a BIST mode, to form a shift chain.
Here, the control section generates an address of the memory 90 in such a manner that it creates the address which is distinct from that in the normal mode through the multiplexer, or it resets an address generation logic circuit without using the multiplexer so that the `0` address is used in the BIST mode.
FIG. 4 is a schematic circuit diagram of the MISR according to the present invention. Referring to FIG. 4, the MISR according to the present invention includes a plurality of storage elements 100, 102, 104, . . . , 106, and 108, XOR gates 110, 112, 114, . . . , 116 and 118, and multiplexers 120, 122, 124, . . . , 126, and 128, and a memory 130.
The MISR as shown in FIG. 4 has the same construction and performs the same operation as the LFSR of FIG. 3 except that each XOR gate has an additional input. Specifically, each XOR gate in the MISR XOR-gates the data D1, D2, D3, . . . , D.sub.n-1, or D.sub.n inputted in parallel, the coefficient stored in the corresponding storage element, and the data D0 outputted from the memory 130, and outputs the XOR-gated data to the corresponding multiplexer.
FIG. 5 is a schematic circuit diagram of the BIST circuit according to the present invention. Referring to FIG. 5, the BIST circuit according to the present invention includes an LFSR 150 comprising a first memory 152 and a first logic section 154, a MISR 170 comprising a second memory 174 and a second logic section 172, atarget circuit 160, and a BIST control section 180.
The LFSR 150 as shown in FIG. 5 corresponds to the LFSR of FIG. 3, and the MISR 170 in FIG. 5 corresponds to the MISR of FIG. 4 according to the present invention. Specifically, the first memory 152 and the first logic section 154 correspond to the memory 90, the XOR gates, and the multiplexers of FIG. 3, while the second memory 174 and the second logic section 172 correspond to the memory 130, the XOR gates, and the multiplexers of FIG. 4, respectively.
The BIST control section 180 of FIG. 5 controls the data input/output between the first and second memories 152 and 174 and the target circuit 160, and outputs the selection signals for controlling the multiplexers in the first and second logic sections 154 and 172. Also, the BIST control section 180 controls the test target circuit 160, and compares the operation results of the target circuit 160 to perform the test of the target circuit.
The first and second memories 152 and 174 of FIG. 5 may be replaced by the memory employed in the circuit which includes the BIST circuit.
As described above, according to the present invention, the BIST circuit is implemented using the LFSR and the MISR which share a memory built in a circuit to be tested, and thus the area of the BIST circuit can be greatly reduced regardless of the number of inputs and outputs of the circuit to be tested.
While the present invention has been described and illustrated herein with reference to the preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention.