A METHOD AND DEVICE FOR TESTING OF AN INTEGRATED CIRCUIT

Abstract: The invention relates to a method for testing an integrated circuit, said circuit comprising testing means (2) for testing the circuit card and/or other circuits connected to the integrated circuit (1) after it has been assembled onto the circuit card, inputs (7, 12, 13) for controlling the testing means, and test structures for testing the internal operations of the integrated circuit (1). To keep the number of the inputs in the circuit low, a test mode is defined for the testing means (2), in which test mode one of the inputs (7) of the testing means is connected to the test structures for the internal operations of the integrated circuit (1), and when the internal operations of the integrated circuit (1) are tested, the testing means (2) are set in said test mode, whereupon the internal test structures of the integrated circuit can be controlled from the input (7) of the testing means (2). The invention also relates to an integrated circuit, where the method according to the invention can be applied.

Description: A method and a device for testing of an integrated circuit The invention relates to a method for testing an integrated circuit, said circuit comprising testing means for testing the circuit card and/or other circuits connected to the integrated circuit after it has been assembled onto the circuit card, inputs for controlling the testing means, and test structures for testing the internal operations of the integrated circuit. The invention also relates to an integrated circuit, comprising testing means for testing the circuit card and/or other circuits connected to the integrated circuit after it has been assembled onto the circuit card, inputs for controlling the testing means, and test structures for testing the internal operations of the integrated circuit. The invention relates in particular to the testing of the internal operation of an ASIC circuit conducted by a circuit manufacturer in connection with the manufacturing. The aim of this test is to check the operation of the circuits by feeding test data into the inputs of the circuit, after which signals obtained from the outputs of the circuit are monitored. To conduct these tests, so-called scan path test structures have been formed in the circuit during its manufacturing, the test structures being intended solely for in-circuit testing. A separate pin, i.e. an input port, is reserved in the circuit for controlling the scan path test structures. Said pin has proved to be very problematic, since fitting it in the integrated circuit often calls for the use of a bigger housing. Scan path testing is described for example in Digital Systems Testing and Testable Design (by M. Abramovic, M.A. Breuer & A.D. Friedman, Computer Science Press, New York, USA), and therefore it is not described in greater detail in this connection. In addition to the testing of the internal operation of a single integrated circuit, the entire circuit card onto which the integrated circuit is assembled is also usually tested. For this purpose, test logic needed in particular for this type of testing is built into the integrated circuits. For example in the ASIC circuits, it is possible to use boundary scan blocks according to the IEEE Standard (The Institute of Electrical and Electronics Engineers, Inc.) 1149.1, the blocks being applicable, among other things, in testing the connections between components assembled onto the circuit board. For the purpose of conducting these tests, the ASIC circuits comprise special pins, i.e. input ports, for controlling the tests. With an increasing demand for smaller and smaller integrated circuits, it has proved to be necessary to limit the number of pins, i.e. inputs and outputs, in the circuits, since in practice they have a very significant effect on the size of the housing of the integrated circuit. The use of a bigger housing may in turn lead into situations, where the size of that circuit card onto which the integrated circuit is to be assembled is too small, wherefore a bigger circuit card has to be used. The purpose of this invention is to provide a method by means of which the internal structures of an integrated circuit can be tested without therefore having to add extra pins to the circuit. These aims are achieved with a method according to the invention, which is characterized in that a test mode is defined for the testing means, in which test mode one of the inputs of the testing means is connected to the test structures for the internal operations of the integrated circuit, and that when the internal operations of the integrated circuit are tested, the testing means are set in said test mode, whereupon the internal test structures of the integrated circuit can be controlled from the input of the testing means. The invention is based on the idea that when the test structures required for testing the internal operations of the circuit are connected with the testing means intended for the testing of the connections between the circuits on the circuit board in such a way that a mode where one of the inputs of the testing means is connected to the internal test structures is defined for the testing means, it is not necessary to provide the integrated circuit with a separate pin, i.e. an input, for controlling the internal test structures. Therefore, the size of the housing of the integrated circuit can be decreased, and in addition to this, the in-circuit testing becomes faster since the solution according to the invention makes it possible to test simultaneously several scan paths. The greatest advantage of the method according to the invention is therefore that it saves space, since the number of pins in the integrated circuit decreases, which thus considerably diminishes the size of the circuit. It is also easy to define several modes for the testing means for testing independently the internal structures of different blocks. The invention also relates to an integrated circuit, where the method according to the invention can be applied. The circuit according to the invention is characterized in that at least one of the inputs of the testing means is connected to the input of a switching device, which is controlled by means of the testing means, and that a test mode is defined for the testing means, in which mode said switching device allows data fed into its input to propagate from its output, and that the output of the switching device is connected to the test structures of the internal operations of the integrated circuit, whereupon the test structures of the internal operations can be controlled from the input of the testing means by setting the testing means in the test mode. The major advantages of the integrated circuit according to the invention are thus that the circuit requires less pins (inputs/outputs) for testing purposes than known circuits, wherefore the size of the circuit can be decreased and there is no need to control any "extra" pins during the normal operation of the circuit, and that it is faster to test the internal structures of the circuit than in known circuits. The preferred embodiments of the integrated circuit according to the invention are disclosed in the appended dependent claims 3 and 4. The invention will be described in the following in greater detail with reference to the accompanying figure, which is a block diagram of a preferred embodiment of the integrated circuit according to the invention. The ASIC circuit 1 shown in the figure comprises a boundary scan block 2 according to the IEEE Standard (The Institute of Electrical and Electronics Engineers, Inc.) 1149.1, the block being applicable, among other things, in testing the connections between the components on the circuit card after the ASIC circuit shown in the figure is assembled onto the circuit board. The boundary scan block 2 comprises three inputs 7, 12 and 13, and each of them is connected to one of the pins of the ASIC circuit. The TMS input 12 (test mode select input) is used for selecting the test mode, a clock pulse is fed into the TCK input 13 (test clock input), and serial data required for conducting the test is fed from the TDI port 7 (test data input). The testing operation is controlled by means of data obtained from the aforementioned inputs and decoded by a TAP (test access port) controller 11. The output of the TAP controller 11 is connected to the input of an instruction register ( IR) 3. The instruction register is used to select the test to be performed. A decoding block 4 (IR Decoding) of the instruction register is connected to the output of the instruction register, the instruction obtained from the instruction register being interpreted and carried out by means of the decoding block. The couplings by means of which the connections between the components on the circuit board are tested are not shown in the figure. The operation of the boundary scan block 2 is described in greater detail in the standard IEEE-1149.1 IEEE Standard Test Access Port and Boundary Scan Architecture (IEEE, 1990, New York, USA). For the purpose of testing the internal structures of the ASIC circuit 1, the circuit shown in the figure comprises a scan path test structure, intended solely for testing the internal operation of the circuit. The test conducted by means of the scan path is controlled by means of its control input 6. Scan path testing is described for example in Digital Systems Testing and Testable Design (by M. Abramovic, M.A. Breuer & A.D. Friedman, Computer Science Press, New York, USA), and therefore it is not described in greater detail in this connection. For the purpose of testing the internal structures of the ASIC circuit 1, one private instruction defined in the IEEE Standard 1149.1 is reserved in the instruction register 3 of the boundary scan block 2 shown in the figure for controlling the scan path of the ASIC circuit 1; said instruction will hereafter be called the scan mode. When the scan mode has been selected from the instruction register, that output 14 in the decoding block 4 of the instruction register which indicates the scan mode is activated, i.e. it is given the value "1". In other instruction modes, i.e. when the internal operation of the ASIC circuit is not being tested, the value of the output 14 is "0". Due to an AND gate 5 placed between the decoding block 4 and the control input 6 of the scan path of the ASIC circuit, the control input 6 remains inactive as long as the output 14 indicating the scan mode is in the passive state. Thus it is ensured that the control input 6 remains inactive during the normal operation of the circuit 10 and during other test modes of the boundary scan block 2. Then the TDI input 7 is used for feeding serial test data, wherefore feeding this test data simultaneously through the control input 6 could lead into error situations. When the output 14 indicating the scan mode acquires the value "1" after an instruction for the scan mode has been given, the AND circuit 5 is activated, whereupon a control signal supplied from the TDI port 7 can propagate to the control input 6 of the scan mode. Thus the internal testing of the ASIC circuit 1 can be controlled directly by means of the TDI port 7 (test data input), i.e. the testing can be controlled by the input 7 of the boundary scan block 2, and therefore it is not necessary to provide a separate pin (input) in the ASIC circuit 1 for this purpose. One of the normal inputs of the ASIC circuit, for example input 8, is used as the scan input required by the scan path structure, as shown in the figure. The output of some flip-flop in the scan path is used in turn directly as the scan output required by the scan path structure, for example output 9, as shown in the figure, if it is an output port directly outbound from the circuit 10. If a direct output port of the circuit cannot be selected as the scan output in the scan path, the scan output can be directed to one of the output ports of the circuit by means a multiplexer (not shown in the figure) . It must be understood that the appended description and the figure related thereto describe only one preferred embodiment according to the invention. Therefore, for example the method according to the invention can also be applied in other integrated circuits and not only in ASIC circuits, even though the invention is described above mainly in connection with ASIC circuits. The preferred embodiments of the method and the integrated circuit according to the invention can thus be modified within the scope of the appended claims.

Claims: Claims : 1. A method for testing an integrated circuit, said circuit comprising testing means (2) for testing the circuit card and/or other circuits connected to the integrated circuit (1) after it has been assembled onto the circuit card, inputs (7, 12, 13) for controlling the testing means, and test structures for testing the internal operations of the integrated circuit (1 ), c h a r a c t e r i z e d in that a test mode is defined for the testing means (2), in which test mode one of the inputs (7) of the testing means is connected to the test structures for the internal operations of the integrated circuit (1), and that when the internal operations of the integrated circuit (1) are tested, the testing means (2) are set in said test mode, whereupon the internal test structures of the integrated circuit can be controlled from the input (7) of the testing means (2). 2. An integrated circuit, comprising testing means (2) for testing the circuit card and/or other circuits connected to the integrated circuit (1) after it has been assembled onto the circuit card, inputs (7, 12, 13) for controlling the testing means (2), and test structures for testing the internal operations of the integrated circuit (1), c h a r a c t e r i z e d in that at least one of the inputs (7) of the testing means (2) is connected to the input of a switching device ( 5) , which is controlled by means of the testing means (2), that a test mode is defined for the testing means (2), in which test mode said switching device (5) allows data fed into its input to propagate from its output, and that the output of the switching device (5) is connected to the test structures for the internal operations of the integrated circuit (1), whereby the test structures for the internal operations can be controlled from the input (7) of the testing means by setting the testing means (2) in the test mode. 3. An integrated circuit according to claim 2, c h a r a c t e r i z e d in that said integrated circuit (1) is a synchronous ASIC circuit. 4. An integrated circuit according to claim 2 or 3, c h a r a c t e r i z e d in that the testing means (2) comprise at least three inputs, a clock pulse being fed into the first input (13), data indicating the choice of the test mode being fed into the second input (12), and serial test data being fed into the third input (7), an instruction register (3), which selects the test to be performed on the basis of signals fed into the inputs.

Inventors: PIIRAINEN OLLI, PIIRAINEN, OLLI
Applicants: NOKIA TELECOMMUNICATIONS OY, PIIRAINEN OLLI, PIIRAINEN, OLLI
Application year: 1994
Main classification: G01R31
IPC codes: G01R31, G06F11, H01L21