Information
-
Patent Application
-
20030237036
-
Publication Number
20030237036
-
Date Filed
December 17, 200222 years ago
-
Date Published
December 25, 200321 years ago
-
CPC
-
US Classifications
-
International Classifications
Abstract
A semiconductor integrated circuit with built-in self-test function includes an I/O port which is connected to a pad and constituted of a port direction register; a port register; and a comparator, and a peripheral function block connected to the pad, and when it is intended to test an output of the peripheral function block, the semiconductor integrated circuit with built-in self-test function performs a test judgment by setting an expected value for the output of the peripheral function block in the port register, setting a value for setting the I/O port as an input port in the port direction register and making a comparison between a value output from the peripheral function block via the pad and the expected value set in the port register with the comparator.
Description
BACKGROUND OF THE INVENTION
[0001] 1. Field of the Invention
[0002] The present invention relates to a semiconductor integrated circuit with built-in self-test function and a system including the same.
[0003] 2. Description of Related Art
[0004] In conventional micro processors, a test accompanied by external input and output is being performed by using a semiconductor tester, and with speedup of micro processors in recent years, a high-speed and costly semiconductor tester becomes needed and a test cost has been increased.
[0005] Therefore, a semiconductor integrated circuit with built-in self-test function in which a test circuit is provided inside the micro processor is made up in some cases.
[0006] Because the conventional semiconductor integrated circuit with built-in self-test function is made up as above, a scale of the test circuit provided inside the micro processor raises a problem. And because specifically a large-scale test circuit is needed for a sufficient test on logic of the micro processor, this causes a problem that the constitution of micro processor is upsized.
[0007] Further, there arises another problem that it is difficult to test a micro processor integrated in a system after shipment.
SUMMARY OF THE INVENTION
[0008] The present invention is intended to solve the above described problems and it is an object of the present invention to provide a semiconductor integrated circuit with built-in self-test function which allows a self-test on a peripheral function block by additionally providing a small scale circuit and achieves reduction in test cost and a fail safe on products, and a system including the same.
[0009] The semiconductor integrated circuit with built-in self-test function in accordance with the present invention is made to perform a test judgment when it is intended to test an output of the peripheral function block, by setting an expected value for the output of the peripheral function block in the port register, and at the same time setting a value for setting the I/O port as an input port in the port direction register and making a comparison between a value output from the peripheral function block via the terminal and the expected value set in the port register with the comparator.
[0010] Therefore, by this arrangement the present invention produces an effect of achieving a self-test on a multifunction semiconductor integrated circuit without utilizing an expensive tester to realize a reduction in test cost.
[0011] The system including a semiconductor integrated circuit with built-in self-test function in accordance with the present invention, the semiconductor integrated circuit with built-in self-test function is incorporated therein and is made to perform a test on a peripheral function block which the semiconductor integrated circuit with built-in self-test function itself includes when the system is powered-up, reset, under a judgment of abnormal condition or under diagnostics to realize a fail safe function by an early detection of abnormal operation, output of a signal notifying an operation halt due to detection of abnormal condition or a signal notifying an upper level control block of an abnormal condition, or any combination thereof.
[0012] Therefore, by this arrangement the present invention produces an effect of obtaining a system which achieves a fail safe function.
BRIEF DESCRIPTION OF THE DRAWINGS
[0013]
FIG. 1 is a block diagram to show a constitution of a semiconductor integrated circuit with built-in self-test function in accordance with a first preferred embodiment of the present invention;
[0014]
FIG. 2 is a timing chart to show an operation of the semiconductor integrated circuit with built-in self-test function in accordance with the first preferred embodiment of the present invention;
[0015]
FIG. 3 is a block diagram to show problems a semiconductor integrated circuit in the prior art technology;
[0016]
FIG. 4 is a timing chart to show problems of the semiconductor integrated circuit in the prior art technology; and
[0017]
FIG. 5 is a block diagram to show a constitution of a semiconductor integrated circuit with built-in self-test function in accordance with a fifth preferred embodiment of the present invention.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Now, preferred embodiments of the present invention will be discussed with reference to the attached drawings.
[0019] The First Preferred Embodiment
[0020]
FIG. 1 is a block diagram to show a constitution of a semiconductor integrated circuit with built-in self-test function in accordance with a first preferred embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a pad (terminal), 2 denotes a path selection switch, 3 denotes a port direction register, 4 denotes a port register and 5 denotes a comparator. The port direction register 3, the port register 4 and the comparator 5 constitute an I/O port.
[0021] Reference numeral 6 denotes a peripheral function block and 7 denotes an input signal line (port input signal line). Reference signs A and B represent paths.
[0022]
FIG. 2 is a timing chart to show an operation of the semiconductor integrated circuit with built-in self-test function in accordance with the first preferred embodiment of the present invention.
[0023] Next, an operation will be discussed.
[0024]
FIGS. 3 and 4 are explanatory illustrations to show problems of a semiconductor integrated circuit in the prior art technology.
[0025] When the port register 4 and the peripheral function block 6 are connected to the same pad 1 as shown in FIG. 3, with a command of write to the port register 4, an input is given to the peripheral function block 6 through the path A (IN of FIG. 4). On the other hand, through a readout from the port register 4, an output of the peripheral function block 6 at that time can be read out, via the pad 1, from the input signal line as an input of the port register 4 through the path B (at this time, the port register 4 holds the written value and does not make an update with the readout value), and therefore an output of the peripheral function block 6 can be read out (OUT of FIG. 4)
[0026] Since the same port register 4 is used, however, for the input to the peripheral function block 6 and the output from the peripheral function block 6, it is impossible to test the input and output to/from the peripheral function block 6 at the same time. In other words, there is a problem that an output value of the peripheral function block 6 can be tested only during the period of readout from the port register 4.
[0027] Then, as shown in FIG. 1, provided are the port direction register 3 for setting the I/O port as an output port or an input port in response to a value set for it and the comparator 5 for comparing an expected value set in the port register 4 with a value output from the peripheral function block 6 to perform a test judgment in response to the value set in the port direction register 3, specifically, when the value set in the port direction register 3 indicates a test of the output from the peripheral function block 6.
[0028] When it is intended to give an input to the peripheral function block 6, a value for setting the I/O port as the output port, for example “0”, is set in the port direction register 3 and the value set in the port register 4 is given to the peripheral function block 6 via the pad 1 through the path A. At this time, the comparator 5 is set in a comparison disabling mode in response to the value of “0” set in the port direction register 3.
[0029] Further, when it is intended to test an output of the peripheral function block 6, the test judgment is performed by setting an expected value of the output of the peripheral function block 6 in the port register 4, and at, the same time setting a value for setting the I/O port as the input port, for example, “1” in the port direction register 3 and making a comparison between the value output from the peripheral function block 6 via the pad I through the path B and the expected value set in the port register 4 with the comparator 5. At this time, the comparator 5 is set in a comparison enabling mode in response to the value of “1” set in the port direction register 3.
[0030] Thus, according to the first preferred embodiment, by distinguishing the values written into the port register 4 between the input values to the peripheral function block 6 and the expected values of output from the peripheral function block 6 as shown in FIG. 2 and always making a comparison between the output value of the peripheral function block 6 and the expected value with the comparator 5 to judge whether these values are equal to each other or not, it is made possible to solve the problem that comparison of the output value from the peripheral function block 6 can be performed only during a period of next readout from the port register 4 and that the input and the output can not be tested at the same time.
[0031] Further, for controlling the comparator 5 with the port direction register 3, other signal, for example, indicating the output of the peripheral function block 6 may be used together.
[0032] The Second Preferred Embodiment
[0033] In the second preferred embodiment, a test judgment result obtained by the comparator 5 is used as an interrupt request to perform an error processing as an interrupt processing in the semiconductor integrated circuit with built-in self-test function of the above discussed first preferred embodiment.
[0034] Thus, the error processing can be performed as the interrupt processing and therefore an efficient test judgment is achieved.
[0035] The Third Preferred Embodiment
[0036] In the third preferred embodiment, the test judgment result obtained by the comparator 5 is output through an external pin to the outside in the semiconductor integrated circuit with built-in self-test function of the above discussed first preferred embodiment.
[0037] Thus, the test judgment result can be output to external devices other than the present semiconductor integrated circuit by using the external pin.
[0038] The Fourth Preferred Embodiment
[0039] In the fourth preferred embodiment, when tests are simultaneously performed on a plurality of I/O ports which can not be accessed at the same time in the semiconductor integrated circuit with built-in self-test function of the above discussed first preferred embodiment, a permission or a non-permission is given to a plurality of I/O ports at the same time with a comparison enabling signal other than the values of the respective port direction registers 3.
[0040] Thus, though it is impossible to simultaneously perform tests on a plurality of I/O ports only with the port direction registers 3, it is made possible to simultaneously perform the tests on a plurality of I/O ports by giving permission or non-permission to a plurality of I/O ports at the same time with the comparison enabling signal.
[0041] The Fifth Preferred Embodiment
[0042]
FIG. 5 is a block diagram to show a constitution of a semiconductor integrated circuit with built-in self-test function in accordance with a fifth preferred embodiment of the present invention. In FIG. 5, reference numeral 8 denotes a reload register. Other constituents are quite the same as those of the fourth embodiment.
[0043] Next, an operation will be discussed.
[0044] Adding to the semiconductor integrated circuit with built-in self-test function of the above discussed fourth preferred embodiment, each reload register 8 is provided correspondingly to the respective port registers 4 of the I/O ports to reload a reload value set in advance to the respective corresponding port registers 4 of a plurality of I/O ports in response to the comparison enabling signal.
[0045] When tests are simultaneously performed on a plurality of I/O ports, by reloading the reload value to the corresponding port registers 4 of a plurality of I/O ports at the same time in response to the comparison enabling signal, it is made possible to give the reload value to a plurality of I/O ports at the same time and simultaneously perform the tests thereof.
[0046] The Sixth Preferred Embodiment
[0047] The sixth preferred embodiment uses any one of the semiconductor integrated circuits with built-in self-test function of the above discussed first to fifth preferred embodiments and provides a constitution where the semiconductor integrated circuit with built-in self-test function is incorporated in a system to perform a test on the peripheral function block which the semiconductor integrated circuit with built-in self-test function itself includes when the system is powered-up, reset, under a judgment of abnormal condition or under diagnostics to realize a fail safe function by an early detection of abnormal operation, output of a signal notifying an operation halt due to detection of abnormal condition or a signal notifying an upper level control block of an abnormal condition, or any combination thereof.
[0048] With such a constitution, it is made possible to obtain a system which achieves a fail safe function.
Claims
- 1. A semiconductor integrated circuit with built-in self-test function comprising:
an I/O port which is programmable and constituted of:
a port direction register physically and logically connected to a terminal; a port register for storing an output value when said I/O port is an output port; a port input signal line sharing an address space with said port register; and a comparator, and a peripheral function block physically and logically connected to said terminal, wherein a value for setting said I/O port as said output port is set in said port direction register and the value set in said port register is given to said peripheral function block via said terminal when it is achieved to give an input to said peripheral function block, and a test judgment is performed when it is achieved to test an output of said peripheral function block, by setting an expected value for said output of said peripheral function block in said port register, and at the same time setting a value for setting said I/O port as an input port in said port direction register and making a comparison between a value output from said peripheral function block via said terminal and said expected value set in said port register with said comparator.
- 2. The semiconductor integrated circuit with built-in self-test function according to claim 1, wherein an interrupt processing is performed in response to a test judgment result obtained by said comparator.
- 3. The semiconductor integrated circuit with built-in self-test function according to claim 1, wherein the test judgment result obtained by said comparator is output through an external pin to the outside.
- 4. The semiconductor integrated circuit with built-in self-test function according to claim 1, wherein permission or non-permission is simultaneously given to a plurality of I/O ports in response to respective values of said port direction registers and a comparison enabling signal when tests are simultaneously performed on said plurality of I/O ports.
- 5. The semiconductor integrated circuit with built-in self-test function according to claim 4, further comprising
a reload register provided correspondingly to each port register of said I/O ports, wherein the each reload register reload value to each corresponding port register of said plurality of I/O ports in response to said comparison enabling signal when tests are simultaneously performed on said plurality of I/O ports.
- 6. A system comprising a semiconductor integrated circuit with built-in self-test function, wherein said semiconductor integrated circuit with built-in self-test function as defined in claim 1 is incorporated and performs a test on a peripheral function block which said semiconductor integrated circuit with built-in self-test function itself includes when the system is powered-up, reset, under a judgment of abnormal condition or under diagnostics to realize a fail safe function by an early detection of abnormal operation, output of a signal notifying an operation halt due to detection of abnormal condition or a signal notifying an upper level control block of an abnormal condition, or any combination thereof.
Priority Claims (1)
Number |
Date |
Country |
Kind |
2002-178872 |
Jun 2002 |
JP |
|