Semiconductor integrated circuit device

By employing voltage-current conversion circuits and current comparators, the semiconductor IC testing method addresses inefficiencies in stabilizing and comparing internal node voltages, achieving faster and more efficient testing with reduced circuit complexity.

JP7558424B2Active Publication Date: 2024-09-30MITSUBISHI ELECTRIC CORP
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
JP2023555927
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-10-26
Publication Date
2024-09-30
Estimated Expiration
2041-10-26

AI Technical Summary

Technical Problem

Existing semiconductor integrated circuit (IC) testing methods face inefficiencies due to increased test time as the number of internal nodes grows, particularly when using voltage comparators with changeover switches, which require stabilization time and additional circuitry for reference voltage switching.

Method used

The implementation of voltage-current conversion circuits and a current comparator within the IC, allowing for faster normality determination of internal node voltages by comparing output currents with a reference current, reducing stabilization time and circuit complexity.

Benefits of technology

This approach significantly shortens the time required for voltage stabilization and reduces circuit scale, enabling faster and more efficient testing of multiple internal nodes with minimal additional components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007558424000001
    Figure 0007558424000001
  • Figure 0007558424000002
    Figure 0007558424000002
  • Figure 0007558424000003
    Figure 0007558424000003
Patent Text Reader

Abstract

A voltage-current conversion circuit (20a) generates an output current (Iout) by converting a measured voltage (Vout) at a measurement node (NTa) inside a semiconductor integrated circuit device in accordance with a conversion gain dependent on an electric resistance value (RO) determined to reflect a determination voltage. A reference current source (40) outputs a predetermined reference current (Iref). A current comparator (50) outputs a determination signal (Sjd) indicating the result of comparing the output current (Iout) and the reference current (Iref).
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a semiconductor integrated circuit device. [Background technology]

[0002] In ICs (Integrated Circuits), such as semiconductor integrated circuits, checking whether the analog circuit is outputting the correct voltage to the internal node is an important element for detecting failures. The simplest method is to provide an external terminal for voltage monitoring and connect the internal node to be measured to the external terminal, thereby measuring the voltage of the internal node via the external terminal. In this case, by connecting the external terminal to multiple internal nodes in sequence, the external terminal can be shared to measure the voltages of multiple internal nodes.

[0003] As ICs become larger, the number of internal nodes whose voltages need to be checked increases, and the test time required to check the voltages of the internal nodes also increases. As a technique for making such tests more efficient, Japanese Patent Application Laid-Open No. 2006-234577 (Patent Document 1) describes a configuration in which a voltage comparator is provided inside an IC to determine whether the DC voltage of a specific circuit node of an analog integrated circuit is within a certain range and the result of the determination is output outside the IC. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2006-234577 A Summary of the Invention [Problem to be solved by the invention]

[0005] In Patent Document 1, when there are a large number of internal nodes to be measured, a configuration in which a changeover switch (selection circuit) is placed between multiple internal nodes and a voltage comparator, and the voltage comparator is shared by multiple internal nodes, is required from the perspective of chip size.

[0006] However, in this configuration, when the internal node connected to the voltage comparator is switched by the changeover switch, the time until the input voltage to the voltage comparator settles is required to obtain an accurate judgment result, which raises the concern that the test time will be longer if the number of measurement targets increases.

[0007] In addition, because the standard value, i.e., the voltage range that should be judged as normal, differs for each internal node, it becomes necessary to switch the reference voltage that is compared with the voltage of the internal node on the voltage comparator side. As a result, there are concerns that the circuit size will increase due to the addition of a configuration for switching the reference voltage, and that the test time will be further extended because a settling time is required for switching the reference voltage.

[0008] The present disclosure has been made to solve such problems, and an object of the present disclosure is to speed up the determination of whether the voltage of an internal node of a semiconductor integrated circuit device is normal using a simple circuit configuration. [Means for solving the problem]

[0009] In one aspect of the present disclosure, a semiconductor integrated circuit device is provided. The semiconductor integrated circuit device includes a plurality of voltage-current conversion circuits, a reference current source, and a current comparator. Each voltage-current conversion circuit performs voltage-to-current conversion on a measurement voltage according to a first conversion gain, the measurement voltage being in accordance with a voltage of at least one measurement node inside the semiconductor integrated circuit device, to generate at least one output current. The reference current source outputs a predetermined reference current. The current comparator outputs at least one determination signal in accordance with a comparison result between the reference current and each of at least one output currents input from a voltage-to-current conversion circuit selected from the plurality of voltage-to-current conversion circuits. Effect of the Invention

[0010] According to the present disclosure, the measured voltage can be compared with a judgment voltage by using a current comparator to compare the output current obtained by voltage-current conversion of the measured voltage with a reference current, and when switching between a plurality of voltage-current converters, the time required for the output current input to the current comparator to settle can be shortened. As a result, the normality judgment of the voltage of an internal node of a semiconductor integrated circuit device can be accelerated with a simple circuit configuration. [Brief description of the drawings]

[0011] [Figure 1] 1 is a block diagram showing a configuration of a semiconductor integrated circuit device according to a first embodiment. [Diagram 2] FIG. 2 is a circuit diagram for explaining the internal configuration of each block shown in FIG. [Diagram 3] 2 is a circuit diagram for explaining an internal configuration of each block shown in FIG. 1 according to a first modification of the first embodiment. FIG. [Figure 4] 1 is a circuit diagram illustrating a configuration of a voltage-current conversion circuit according to a first modification of the first embodiment. FIG. [Diagram 5] 10 is a circuit diagram illustrating a configuration of a reference current source according to a first modification of the first embodiment. FIG. [Figure 6] FIG. 11 is a block diagram showing a configuration of a semiconductor integrated circuit device according to a second embodiment. [Figure 7] FIG. 7 is a circuit diagram for explaining the internal configuration of each block shown in FIG. 6. [Figure 8] FIG. 11 is a block diagram showing a configuration of a semiconductor integrated circuit device according to a third embodiment. [Figure 9] FIG. 9 is a circuit diagram for explaining the internal configuration of each block shown in FIG. 8. [Figure 10] FIG. 13 is a block diagram showing a configuration of a semiconductor integrated circuit device according to a fourth embodiment. [Figure 11] FIG. 11 is a circuit diagram for explaining the internal configuration of each block shown in FIG. [Figure 12] FIG. 13 is a block diagram showing a configuration of a semiconductor integrated circuit device according to a fifth embodiment. [Figure 13]FIG. 13 is a circuit diagram for explaining the internal configuration of each block shown in FIG. 12. [Figure 14] FIG. 13 is a block diagram showing a configuration of a semiconductor integrated circuit device according to a sixth embodiment. [Figure 15] FIG. 15 is a circuit diagram for explaining the internal configuration of each block shown in FIG. [Figure 16] FIG. 23 is a signal waveform diagram for explaining the operation of the semiconductor integrated circuit device according to the sixth embodiment. [Figure 17] 11 is a table illustrating the operation of the abnormality detection configuration with respect to the determination results of the first and second internal circuits. [Figure 18] FIG. 13 is a block diagram showing a configuration of a semiconductor integrated circuit device according to a seventh embodiment. [Figure 19] FIG. 13 is a circuit diagram illustrating a configuration of a voltage-current conversion circuit according to a seventh embodiment. [Figure 20] FIG. 23 is a circuit diagram illustrating a configuration of a voltage-current conversion circuit according to a modification of the seventh embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In the following, the same or corresponding parts in the drawings are denoted by the same reference characters, and their description will not be repeated in principle.

[0013] Embodiment 1 FIG. 1 is a block diagram showing a configuration of a semiconductor integrated circuit device 5a according to the first embodiment.

[0014] 1, semiconductor integrated circuit device 5a includes N (N: an integer of 2 or more) internal circuits 10, N voltage-current conversion circuits 20, a selection circuit 30, a reference current source 40, and a current comparator 50. Since an example where N=4 will be described below, semiconductor integrated circuit device 5a includes four internal circuits 10a-10d and voltage-current conversion circuits 20a-20d.

[0015] The internal circuits 10a to 10d generate voltages at the internal nodes NTa to NTd. That is, the internal nodes NTa to NTd are "measurement nodes", and the current comparator 50 outputs a binary judgment signal Sjd according to the comparison result between the voltage of the measurement node (the output voltage Vout of the internal circuit 10a in FIG. 1) and a predetermined judgment voltage Vto. In the first embodiment, the judgment signal Sjd indicates whether the output voltage Vout is included in a range higher or lower than the predetermined judgment voltage. The judgment voltage Vto can be set to the boundary value of the normal range of the output voltage (measurement voltage) Vout.

[0016] Fig. 2 shows a circuit diagram for explaining the internal configuration of each block shown in Fig. 1. Since the measurement configurations for the internal circuits 10a to 10d (internal nodes NTa to NTd) are similar, in Fig. 2, the configuration corresponding to the internal circuit 10a (internal node NTa) is representatively shown with the subscript a, but similar configurations are arranged corresponding to the internal circuits 10b to 10d.

[0017] In the following, when elements corresponding to the internal circuits 10a to 10d are to be collectively described without distinction, the subscripts a to d will be omitted, and they will be described as, for example, the internal circuit 10, the internal node NT, and the voltage-current conversion circuit 20.

[0018] 2 shows an example in which the voltage-current conversion circuit 20a is selected from among the voltage-current conversion circuits 20a to 20d, and the output current Iout generated by the voltage-current conversion circuit 20a is input to the current comparator 50. At this time, the output voltage Vout from the internal circuit 10a appears at the internal node NTa, which is the measurement node. Hereinafter, the voltage compared with the judgment voltage is referred to as the measurement voltage. Therefore, the output voltage Vout is also referred to as the measurement voltage Vout below.

[0019] The voltage-current conversion circuit 20a includes an N-type MOS (Metal-oxide Semiconductor) transistor (hereinafter, referred to as an NMOS transistor) 201a and a resistive element 202a. The NMOS transistor 201a is connected between a node N1a and the resistive element 202a. The resistive element 202a is connected between the NMOS transistor 201a and a ground line NL that transmits a ground voltage GND. The resistive element 202a has an electric resistance value RO.

[0020] The gate of the NMOS transistor 201a is connected to the internal node NTa, which is a measurement node, that is, the measurement voltage Vout is input to the gate of the NMOS transistor 201a.

[0021] The selection circuit 30 has switches 301a to 301d. The switches 301a to 301d are respectively connected between the nodes N1a to N1d and the node N2 of the current comparator 50. The nodes N1a to N1d are respectively connected to the internal nodes NTa to NTd via the voltage-current conversion circuits 20a to 20d as shown in Fig. 1. The voltage-current conversion circuits 20b to 20d are also configured similarly to the voltage-current conversion circuit 20a, and have a series circuit of an NMOS transistor and a resistance element between the nodes N1b to N1c and the ground line NL.

[0022] The current comparator 50 includes two pairs of current mirrors, P-type MOS transistors (hereinafter referred to as PMOS transistors) 501 and 502 and NMOS transistors 503 and 504. The PMOS transistor 501 is connected between a power supply line NP that transmits a power supply voltage VDD and a node N2, and the PMOS transistor 502 is connected between the power supply line NP and a node N3. The PMOS transistors 501 and 502 configure a current mirror by commonly connecting their gates to the node N2 (i.e., the drain of the PMOS transistor 501). The current ratio of the current mirror is assumed to be 1:1.

[0023] The NMOS transistor 503 is connected between the node N3 and the ground line NL, and the NMOS transistor 504 is connected between the node N4 and the ground line NL. The NMOS transistors 503 and 504 configure a current mirror by having their gates commonly connected to the node N4 (i.e., the drain of the NMOS transistor 504). In the following, the current ratio of the current mirror is assumed to be 1:1.

[0024] The reference current source 40 includes resistive elements 401, 402, and 404, an NMOS transistor 403, and PMOS transistors 405 and 406.

[0025] The PMOS transistor 406 is connected between the power supply line NP and a node N4, and the PMOS transistor 405 is connected between the power supply line NP and a node N5. The PMOS transistors 405 and 406 configure a current mirror by having their gates commonly connected to the node N5 (i.e., the drain of the PMOS transistor 405). The current ratio of the current mirror is assumed to be 1:1.

[0026] The NMOS transistor 403 is connected between the node N5 and a node N7, and the resistive element 404 is connected between the node N7 and a ground line NL. The resistive element 404 has an electric resistance value RP.

[0027] The resistor element 401 is connected between the power supply line NP and the node N6, and the resistor element 402 is connected between the ground line NL and the node N6. Therefore, a reference voltage Vref obtained by dividing the power supply voltage VDD by the resistor elements 401 and 402 is generated at the node N6.

[0028] Next, the operation of the circuit shown in FIG. 2 will be described. The selection circuit 30 turns on one of the switches 301a to 301d that corresponds to the internal node to be measured, and turns off the remaining switches. In the example of Fig. 2, the switch 301a is turned on. This creates a path for the output current Iout from the power supply line NP to the ground line NL, including the PMOS transistor 501, the switch 301a (node ​​N1a), the NMOS transistor 201a, and the resistance element 202a.

[0029] The output current Iout is expressed by the following formula (1) using the measured voltage Vout, the electrical resistance value RO of the resistive element 202a, and the gate-source voltage Vgs2 of the NMOS transistor 201a. That is, the voltage-current conversion circuit 20 converts the measured voltage Vout into the output current Iout according to a conversion gain in accordance with formula (1). In formula (1), (1 / RO) corresponds to one example of a "first conversion gain."

[0030] Iout = (Vout - Vgs2) / RO … (1) The output current Iout is copied by a current mirror (current ratio 1:1) formed by PMOS transistors 501 and 502. As a result, in the current comparator 50, a current equivalent to the output current Iout is supplied to the node N3 by the PMOS transistor 502.

[0031] On the other hand, in the reference current source 40, a path of the reference current Iref including the PMOS transistor 405, the NMOS transistor 403, and the resistance element 404 is generated from the power supply line NP to the ground line NL.

[0032] The reference current Iref is expressed by the following formula (2) using the reference voltage Vref at the node N6, the electrical resistance value RP of the resistor element 404, and the gate-source voltage Vgs4 of the NMOS transistor 403. That is, the reference current source 40 converts the reference voltage Vref into the reference current Iref in accordance with the conversion gain according to formula (2). In formula (2), (1 / RP) corresponds to one example of the "second conversion gain."

[0033] Iref = (Vref - Vgs4) / RP …(2) The reference current Iref is copied by the current mirrors formed by PMOS transistors 405 and 406 (current ratio 1:1) and NMOS transistors 504 and 503 (current ratio 1:1). As a result, in current comparator 50, a current equivalent to the reference current Iref is drawn from node N3 by NMOS transistor 503.

[0034] As a result, in current comparator 50, a voltage V3 that amplifies the current difference between the output current Iout and the reference current Iref is generated at node N3. Specifically, when Iout > Iref, the voltage V3 becomes a high-level voltage equivalent to the power supply voltage VDD (hereinafter, also simply referred to as "H level"). On the other hand, when Iout < Iref, the voltage V3 becomes a low-level voltage equivalent to the ground voltage GND (hereinafter, also simply referred to as "L level"). The voltage V3 at node N3 is output as a determination signal Sjd to terminal 6 that can be contacted from the outside of semiconductor integrated circuit device 5a.

[0035] At this time, by designing so that Iout = Iref when Vout = Vto using the determination voltage Vto to be compared with the measurement voltage Vout, the determination can be speeded up.

[0036] From equations (1) and (2), such a condition can be obtained by solving the following equation (3).

[0037] (Vto - Vgs2) / RO = (Vref - Vgs4) / RP …(3) Therefore, by determining the electrical resistance value RO of resistance element 202a according to equation (4) obtained by transforming equation (3), Iout = Iref can be achieved when Vout = Vto.

[0038] RO = (Vto - Vgs2) / (Vref - Vgs4)·RP …(4) In this way, the semiconductor integrated circuit device according to the first embodiment can compare the measurement voltage Vout with the determination voltage Vto by comparing the output current Iout, which is a current conversion of the measurement voltage Vout, with the reference current Iref.

[0039] Since the input of the current comparator 50 essentially has low impedance characteristics, in this embodiment, the settling time of the voltage at the node N3 when the selection circuit 30 switches the measurement voltage Vout is significantly shortened compared to the settling time of the input voltage of the voltage comparison circuit that compares voltages in Patent Document 1. In particular, in a configuration in which the circuit size is suppressed by sharing the current comparator 50 between multiple internal nodes, the effect of shortening the test time is significant.

[0040] Furthermore, as can be understood from the formula (4), by changing the electric resistance value RO of the resistive element 202a, the reference current Iref fixed in the reference current source 40 can be used to equivalently change the judgment voltage Vto to be compared with the measured voltage Vout. That is, by changing the conversion gain according to the electric resistance value RO of the resistive element 202a in the voltage-current conversion circuit 20, the reference current Iref is fixed, and the judgment voltage Vto can be freely changed in accordance with the normal range of the measured voltage Vout at each internal node NT. That is, the electric resistance value RO (i.e., the conversion gain) in the voltage-current conversion circuit 20 is determined to reflect at least the judgment voltage Vto, and is preferably set according to the formula (4). This makes it possible to realize switching of the judgment voltage for a plurality of measured voltages with a simple configuration. As a result, the manufacturing cost of the semiconductor integrated circuit device can be reduced.

[0041] In addition, in the formulas (1) to (4), Vgs2 and Vgs4 can be made to have the same value by matching the ratio of the current and the transistor size (W / L) between the NMOS transistor 201a and the NMOS transistor 403. With this, under the condition that the electric resistance values ​​RO and RP are determined according to the formula (4), when Iout=Iref, the measured voltage Vout can be compared with the above-mentioned determination voltage Vto with Vgs2=Vgs4.

[0042] However, there is a concern that the judgment result may be affected if Vgs2 and Vgs4 fluctuate due to manufacturing variations (mainly threshold voltage variations) of transistors and temperature changes. Therefore, it is preferable to use elements whose threshold voltages (Vth) are sufficiently smaller than the judgment voltage Vto and the reference voltage Vref for the NMOS transistors 201a and 403 used in the voltage-current conversion circuit 20 and the reference current source 40. For example, it is preferable to configure the NMOS transistors 201a and 403 using native MOSs with Vth=0 (V) in principle.

[0043] 2 shows an example in which the voltage-current conversion circuit 20 is configured using NMOS transistors, but it is also possible to configure the voltage-current conversion circuit 20 to perform voltage-current conversion using PMOS transistors. In particular, when the determination voltage Vto is low, it is preferable to increase the voltage applied to the resistive element 202a (electrical resistance value RO) in order to reduce the influence of Vgs2 in the formula (1).

[0044] (Variation 1) Fig. 3 shows a circuit diagram illustrating the internal configuration of each block in Fig. 1, which relates to a modification in which voltage-current conversion is performed using PMOS transistors. In Fig. 3, the configuration corresponding to the internal circuit 10a is representatively shown with the subscript a, but similar configurations are arranged corresponding to each internal circuit 10.

[0045] 3, in the first modification, the voltage-current conversion circuit 20a, the current comparator 50, and the reference current source 40 in FIG. 2 are replaced with a voltage-current conversion circuit 20pa, a current comparator 50p, and a reference current source 40p.

[0046] The voltage-current conversion circuit 20pa has a PMOS transistor 201pa and a resistive element 202a. The resistive element 202a (electrical resistance value RO) is connected between a power supply line NP and the PMOS transistor 201pa. The PMOS transistor 201pa is connected between the resistive element 202a and a node N1a. The gate of the PMOS transistor 201pa is connected to an internal node NTa to be measured, similar to the NMOS transistor 201 (FIG. 2). The configuration of the selection circuit 30 is the same as that of FIG. 2.

[0047] The current comparator 50p includes two pairs of current mirrors, NMOS transistors 501p and 502p and PMOS transistors 503p and 504p. The NMOS transistor 501p is connected between the node N2 and the ground line NL, and the NMOS transistor 502p is connected between the node N3 and the ground line NL. The NMOS transistors 501p and 501n form a current mirror in the same manner as the PMOS transistors 501 and 502 (FIG. 2).

[0048] As a result, when the switch 301a is turned on, a path for the output current Iout is generated from the power supply line NP to the ground line NL, including the resistive element 202a, the PMOS transistor 201pa, the switch 301a (node ​​N1a), and the NMOS transistor 501p. The output current Iout is obtained by converting the measured voltage Vout into a voltage-current in accordance with the following equation (5) instead of the equation (1) in Fig. 2. From the equation (5), the conversion gain of the voltage-current conversion circuit 20pa is also (1 / RO).

[0049] Iout=(VDD-Vout-Vgs2) / RO…(5) The reference current source 40 includes resistive elements 401, 402, and 404, a POS transistor 403p, and NMOS transistors 405p and 406p. The NMOS transistor 406p is connected between the ground line NL and a node N4, and the NMOS transistor 405p is connected between the ground line NL and a node N7. The NMOS transistors 405p and 406p form a current mirror similarly to the PMOS transistors 405 and 406 (FIG. 2). The PMOS transistor 403p is connected between the node N5 and a node N7, and the resistive element 404 (electrical resistance value RP) is connected between the node N5 and a power supply line NP.

[0050] As a result, in the reference current source 40p, a path for the reference current Iref according to the reference voltage Vref is generated from the power supply line NP to the ground line NL, including the resistance element 404, the PMOS transistor 403p, and the NMOS transistor 405p.

[0051] The reference current Iref is expressed by the following equation (6) which replaces the equation (2) in Fig. 2. From the equation (6), the conversion gain in the reference current source 40p is also (1 / RP).

[0052] Iref=(VDD-Vref-Vgs4) / RP…(6) 3, the reference current Iref is copied by a current mirror (current ratio 1:1) formed by PMOS transistors 503p and 504p. As a result, the PMOS transistor 503p supplies a current equivalent to the reference current Iref to the node N3, in contrast to FIG.

[0053] On the other hand, the output current Iout generated in the voltage-current conversion circuit 20p is copied by a current mirror (current ratio 1:1) formed by NMOS transistors 501p and 502p. As a result, in the current comparator 50p, a current equivalent to the output current Iout is drawn from the node N3 by the NMOS transistor 502p.

[0054] Therefore, in the current comparator 50p as well, a voltage V3 is generated at N3 by amplifying the current difference between the output current Iout and the reference current Iref. Specifically, the polarity is opposite to that of the current comparator 50 (FIG. 2), and when Iref>Iout, the voltage V3 becomes H level (VDD). On the other hand, when Iout>Iref, the voltage V3 becomes L level (GND). The voltage V3 at the node N3 is output from the current comparator 50p as a judgment signal Sjd.

[0055] As can be understood from the above equations (5) and (6), in the modified example of FIG. 3, in order to design Iout=Iref when Vout=Vto using the determination voltage Vto relative to the measurement voltage Vout, the ratio of the electrical resistance value RO of the resistive element 202a and the electrical resistance value RP of the resistive element 404 is determined according to the following equation (7).

[0056] RO=(VDD-Vto-Vgs2) / (VDD-Vref-Vgs4)·RP…(7) In this way, in the configuration of Modification 1, by swapping the positions of the power supply line NP and the ground line NL and swapping the NMOS transistors and PMOS transistors compared to the configuration example of FIG. 2, it becomes possible to perform voltage-current conversion using PMOS transistors.

[0057] With the configuration of the first modification, the measurement voltage Vout can be compared with the determination voltage Vto by comparing the output current Iout, which is obtained by current-converting the measurement voltage Vout, with the reference current Iref, in the same manner as with the configuration of Fig. 2. As a result, when the determination voltage Vto is low, the same effect as that described with reference to Fig. 2 can be obtained by using the modification of Fig. 3.

[0058] (Variation 2) Furthermore, a modified example for canceling the influence of Vgs2 and Vgs4 in the expressions (1), (2) and the like will be described.

[0059] FIG. 4 is a circuit diagram illustrating a modification of the voltage-current conversion circuit 20a shown in FIG. A voltage-to-current converter 20a# according to the second modification in FIG. 4 further includes an operational amplifier buffer 230a in addition to an NMOS transistor 201a and a resistive element 202a similar to those in the voltage-to-current converter 20a (FIG. 2).

[0060] The operational amplifier buffer 230a includes PMOS transistors 2033a and 2034a, NMOS transistors 2031a, 2032a, and 2035a, and current sources 2036a and 2037a.

[0061] The PMOS transistors 2033a and 2034a are connected between the power supply line NP and the node N10 and between the power supply line NP and the node N11, respectively, and the NMOS transistors 2031a and 2032a are connected between the node N10 and the node N11 and between the node N12 and the node N12, respectively. The current source 2036a is connected between the node N12 and the ground line NL. Furthermore, the gates of the PMOS transistors 2033a and 2034a are connected to the node N10.

[0062] In this manner, a current mirror type differential amplifier is configured by the PMOS transistors 2033a and 2034a, the NMOS transistors 2031a and 2032a, and the current source 2036a. The gate of the NMOS transistor 2031a is connected to an internal node NTa that corresponds to the measurement node.

[0063] Furthermore, the NMOS transistor 2035a is connected between the power supply line NP and a node N13 connected to the gate of the NMOS transistor 2032a. The current source 2037a is connected between the node N13 and a ground line NL. The gate of the NMOS transistor 2035a is connected to a node N11. The NMOS transistor 2035a, the NMOS transistor 201a, and the NMOS transistor 403 (reference current source 40) are designed to have the same characteristics (transistor size).

[0064] As a result, in the operational amplifier buffer 230a, the gate voltage of the NMOS transistor 2032a becomes equivalent to the gate voltage of the NMOS transistor 2031a, i.e., the measurement voltage Vout. Furthermore, when the current of the current source 2037a is made equivalent to the reference current Iref, the gate-source voltage of the NMOS transistor 2035a becomes equivalent to Vgs4 in Fig. 2. Therefore, the gate voltage of the NMOS transistor 2035a, i.e., the voltage of the node N11, becomes equivalent to Vout+Vg4.

[0065] On the other hand, the NMOS transistor 201a generates a gate-source voltage Vgs2 similar to that in Fig. 2. As a result, it can be understood that the voltage applied to the resistance element 202a becomes Vout+Vgs4-Vg2.

[0066] Furthermore, in the second modification, a similar operational amplifier buffer is also disposed on the reference current source side. FIG. 5 is a circuit diagram illustrating a modification of the reference current source 40 shown in FIG.

[0067] The reference current source 40# of the second variant of FIG. 5 differs from the reference current source 40 (FIG. 2) in that it further includes an operational amplifier buffer 407 between a node N6, which is the connection point of the resistive elements 401 and 402, and the gate of the NMOS transistor 403.

[0068] The operational amplifier buffer 407 is configured similarly to the operational amplifier buffer 230a in FIG.

[0069] The gate of the NMOS transistor 4071 is connected to a node N6 where a reference voltage Vref is generated. The NMOS transistor 4075 is connected between a power supply line NP and a node N14, and the current source 4077 is connected between the node N14 and a ground line NL. The gate of the NMOS transistor 4075 is connected to a node N15 which is a connection point between the PMOS transistor 4074 and the NMOS transistor 4072. The gate of the NMOS transistor 403 is also connected to the node N15. The NMOS transistor 4075 is designed to have the same characteristics (transistor size and threshold voltage) as the NMOS transistor 403 (reference current source 40).

[0070] As a result, in the operational amplifier buffer 407, the gate voltage of the NMOS transistor 4072 becomes equivalent to the gate voltage of the NMOS transistor 4071, i.e., the reference voltage Vref. Furthermore, if the current of the current source 4077 is made equivalent to the current flowing through the resistance element 404, i.e., the reference current Iref, the gate-source voltage of the NMOS transistor 4075 becomes equivalent to the gate-source voltage Vgs4 of the NMOS transistor 403. Therefore, the gate voltage of the NMOS transistor 4075, i.e., the voltage of the node N15, becomes equivalent to Vout+Vg4.

[0071] As a result, it is understood that the voltage applied to the resistance element 404 becomes equal to the reference voltage Vref. Therefore, the reference current Iref is expressed as Iref=Vref / RS.

[0072] As described above, in voltage-current conversion circuit 20a#, the voltage applied to resistor element 202a is Vout+Vgs4-Vg2. Therefore, if the output current Iout and the reference current Iref are designed to be equal when measurement voltage Vout is the determination voltage Vto (Vout=Vto), Vgs4=Vgs2 is satisfied, and therefore output current Iout is expressed as Iout=Vout / RO.

[0073] Therefore, in a modified example in which voltage-to-current conversion circuit 20a# including an operational amplifier buffer and reference current source 40# are used, in order to design Iout=Iref when Vout=Vto using a determination voltage Vto for a measurement voltage Vout, the ratio of the electric resistance value RO of resistive element 202a and the electric resistance value RP of resistive element 404 can be determined according to the following formula (8). Note that formula (8) also holds in the voltage-to-current conversion circuits 20 and 20p in FIG. 2 and FIG. 3 by setting Vgs2=Vgs4.

[0074] RO = (Vto / Vref) · RP … (8) As can be seen from equation (8), by using an operational amplifier buffer, the dependency of VGs2 and Vgs4 in equations (4) and (7) can be cancelled even if there are manufacturing variations in transistors (mainly variations in threshold voltage) and temperature changes. As a result, the comparison and determination between the measurement voltage Vout and the determination voltage Vto can be performed with high accuracy.

[0075] Incidentally, the operational amplifier buffer 230a (FIG. 4) and the operational amplifier buffer 407 (FIG. 5) can also be applied to the voltage-to-current converter circuit 20pa and the reference current source 40p in the first modified example shown in FIG 3. In this case, it is necessary to swap the positions of the power supply line NP and the ground line NL, and to swap the NMOS transistors and PMOS transistors in each of the operational amplifier buffer 230a and the operational amplifier buffer 407, in the same manner as in the arrangement from FIG 2 to FIG 3.

[0076] Embodiment 2 FIG. 6 is a block diagram showing a configuration of a semiconductor integrated circuit device 5b according to the second embodiment.

[0077] 6, semiconductor integrated circuit device 5b differs from semiconductor integrated circuit device 5a according to the first embodiment in that it includes N voltage-current conversion circuits 21 instead of N voltage-current conversion circuits 20, and in that it includes a selection circuit 31 instead of selection circuit 30. FIG. 6 also shows a configuration example in which N=4.

[0078] Each selection circuit 21 has nodes that generate two output currents with different conversion gains for the measurement voltage Vout at the internal node NT that corresponds to the measurement node of the corresponding internal circuit 10. In response to this, the selection circuit 31 is configured to select one of the (2×N) nodes of the N voltage-current conversion circuits 21 and connect it to the current comparator 50.

[0079] In the second embodiment, the measured voltage Vout can be compared with two types of judgment voltages. For example, by comparing the measured voltage Vout with a judgment voltage Vtl corresponding to the lower limit of the normal range of the measured voltage Vout and a judgment voltage Vtu corresponding to the upper limit of the normal range, it is possible to determine whether the measured voltage Vout is within the normal range.

[0080] Fig. 7 shows a circuit diagram for explaining the internal configuration of each block shown in Fig. 6. In Fig. 7, the configuration corresponding to the internal circuit 10a is representatively shown with the subscript a, but similar configurations are arranged corresponding to each internal circuit 10.

[0081] 7, the voltage-current conversion circuit 21a includes NMOS transistors 203a and 205a and resistor elements 204a and 206a. The gates of the NMOS transistors 203a and 205a are commonly connected to an internal node NTa. That is, the gate voltages of the NMOS transistors 203a and 205a are the measurement voltage Vout.

[0082] The NMOS transistor 203a is connected between the node N1ax and the resistive element 204a, and the resistive element 204a is connected between the NMOS transistor 203a and a ground line NL. The resistive element 204a has an electrical resistance value RU.

[0083] Similarly, the NMOS transistor 205a is connected between the node N1ay and the resistive element 206a, which is connected between the NMOS transistor 205a and the ground line NL. The resistive element 206a has an electrical resistance value RL.

[0084] The voltage-current conversion circuit 21a is provided with two "voltage-current conversion units" corresponding to the series circuit of the NMOS transistor 201a and the resistive element 202a in Fig. 2, and the number of nodes at which the output current Iout is generated, corresponding to the node N1a in Fig. 2, increases to two, that is, nodes N1xa and N1ya. Since the resistive elements 204a and 206a have different electrical resistance values, the two voltage-current conversion units convert the common measurement voltage Vout into output currents with different conversion gains.

[0085] The voltage-current conversion circuits 21b to 21d are configured in the same manner as the voltage-current conversion circuit 21a, and in each voltage-current conversion circuit 21, a series circuit of an NMOS transistor and a resistive element (voltage-current conversion unit) is arranged between two nodes and a ground line NL.

[0086] Selection circuit 31 has switches 302a-302d and 303a-303d. Switches 303a-303d are each connected between one of two nodes (node ​​N1ax in FIG. 7) of voltage-current conversion circuit 21 and node N2. Switches 302a-302d are each connected between the other of two nodes (node ​​N1ay in FIG. 7) of voltage-current conversion circuit 21 and node N2.

[0087] In the second embodiment, the configuration subsequent to the node N2, that is, the configurations of the current comparator 50 and the reference current source 40, are similar to those in FIG. 2, and therefore detailed description thereof will not be repeated.

[0088] In the semiconductor integrated circuit device 5b according to the second embodiment, the selection circuit 31 turns on one of the switches 302a to 302d and 303a to 303d, while turning off the remaining switches. By sequentially turning on one of the two switches corresponding to the internal circuit (internal node) to be measured, the output current (Iou) generated at the node N1ax and the output current (Iol) generated at the node N1ay are input one by one to the current comparator 50. This allows the measurement voltage Vout to be compared with the two determination voltages Vtu and Vtl in sequence.

[0089] First, the switch 302a is turned on, while the remaining switches are turned off. As a result, a path of the output current Iol including the PMOS transistor 501, the switch 302a (node ​​N1ay), the NMOS transistor 205a, and the resistor element 206a from the power supply line NP to the ground line NL is generated similarly to the path of the output current Iout in Fig. 2. At this time, in the current comparator 50, the output current Iout supplied by the PMOS transistor 502 to the node N3 becomes equal to the output current Iol (Iout = Iol) due to the current mirror formed by the PMOS transistors 501 and 502.

[0090] Next, the switch 303a is turned on while the remaining switches are turned off. A path of the output current Iou including the PMOS transistor 501, the switch 303a (node ​​N1ax), the NMOS transistor 203a, and the resistance element 204a from the power supply line NP to the ground line NL is generated similarly to the path of the output current Iout in Fig. 2. At this time, in the current comparator 50, the output current Iout supplied by the PMOS transistor 502 to the node N3 becomes equal to the output current Iou (Iout = Iou).

[0091] In this way, the voltage-current conversion circuit 21 can generate a plurality of output currents Iol, Iou with different conversion gains for a common measurement voltage Vout. The conversion gains of the output currents Iol and Iou for the measurement voltage Vout are adjusted by the electrical resistance values ​​RL and RL.

[0092] Regarding the determination voltage Vtl corresponding to the lower limit value of the normal range of the measured voltage Vout, when Vout = Vtl, the electrical resistance value RU for making Iout = Iol = Iref is represented by the following formula (9) obtained by transforming formula (4). Vgs22 in formula (9) represents the gate-source voltage of NMOS transistor 205a.

[0093] RO=(Vtl-Vgs22) / (Vref-Vgs4)·RP …(9) Regarding the determination voltage Vtu corresponding to the upper limit value of the normal range of the measured voltage Vout, when Vout = Vtu, the electrical resistance value RU for making Iout = Iou = Iref is represented by the following formula (10) obtained by transforming formula (4). Vgs21 in formula (10) represents the gate-source voltage of NMOS transistor 203a.

[0094] RO=(Vtu-Vgs21) / (Vref-Vgs4)·RP …(10) In current comparator 50, in the same way as in FIG. 2, a current equivalent to the reference current Iref is drawn from node N3 by NMOS transistor 503. Therefore, at node N3, when switch 302a is on, a voltage V3 that amplifies the current difference between the output current Iol and the reference current Iref is generated, while when switch 303a is on, a voltage V3 that amplifies the current difference between the output current Iou and the reference current Iref is generated. That is, according to the magnitude relationship between the output current Iout set to either Iou or Iol and the reference current Iref, the determination signal Sjd generated at node N3 is set to the H level or the L level.

[0095] Therefore, when switch 302a is on, when Vout > Vtl, Iout = Iou > Iref, so the determination signal Sjd is set to the H level. On the other hand, when switch 303a is on, when Vout < Vtu, Iout = Iol < Iref, so the determination signal Sjd is set to the L level. In this way, it is possible to determine whether the measured voltage Vout is included in the predetermined voltage range (normal range) Vtu < Vout < Vtl.

[0096] As described above, according to the semiconductor integrated circuit device of the second embodiment, in addition to the effects described in the first embodiment, it is possible to compare the measured voltage Vout with a plurality of determination voltages while suppressing an increase in the circuit size by using one set of the reference current source 40 and the current comparator 50. This makes it possible to efficiently determine whether or not the measured voltage Vout is within the normal range by comparing it with the lower limit value and the upper limit value of the normal range.

[0097] Note that the first and second modifications described in the first embodiment can also be applied to the second embodiment. That is, in the voltage-current conversion circuit 21, the current comparator 50, and the reference current source 40, the positions of the power supply line NP and the ground line NL are interchanged, and the NMOS transistors and PMOS transistors are interchanged, so that the voltage-current conversion can be performed using PMOS transistors. Alternatively, by adding an operational amplifier buffer (FIGS. 4 and 5) to the voltage-current conversion circuit 21 and the reference current source 40, the effects of MOS transistor variations and temperature fluctuations can be suppressed, and the accuracy of the determination can be improved.

[0098] Embodiment 3 In the third embodiment, similarly to the second embodiment, another example of a configuration for comparing the measurement voltage Vout with a plurality of determination voltages will be described.

[0099] FIG. 8 is a block diagram showing a configuration of a semiconductor integrated circuit device 5c according to the third embodiment. 8, semiconductor integrated circuit device 5c differs from semiconductor integrated circuit device 5a according to the first embodiment in that it includes N voltage-current conversion circuits 22 instead of N voltage-current conversion circuits 20. A control signal Schg for switching the conversion gain is input to each voltage-current conversion circuit 22.

[0100] On the other hand, the selection circuit 30, the reference current source 40, and the current comparator 50 have the same configuration as in the first embodiment. An example configuration in the case of N=4 is also shown in Fig. 8. In the third embodiment, too, a configuration for comparing the measurement voltage Vout with the determination voltages Vtl and Vtu similar to those in the second embodiment will be described.

[0101] Fig. 9 shows a circuit diagram for explaining the internal configuration of each block shown in Fig. 8. In Fig. 9, the configuration corresponding to the internal circuit 10a is representatively shown with the subscript a, but similar configurations are arranged corresponding to each internal circuit 10.

[0102] 9, the voltage-current conversion circuit 22a includes an NMOS transistor 201a, resistive elements 209a and 210a, and a transistor switch 208a. The resistive element 209a has an electric resistance value RO1, and the resistive element 210a has an electric resistance value RO2.

[0103] 2, the voltage-current converter circuit 22a has a configuration in which, instead of the resistor element 202a, series-connected resistor elements 209a and 201a are connected between the source of the NMOS transistor 201a and the ground line NL. The transistor switch 208a is connected in parallel to the resistor element 210a. The transistor switch 208a is turned on when the control signal Schg is at H level, and turned off when the control signal Schg is at L level.

[0104] In the third embodiment, the configuration subsequent to the nodes N1a to N1d, ie, the configurations of the selection circuit 30, the current comparator 50, and the reference current source 40, are similar to those in FIG. 2, and therefore detailed description thereof will not be repeated.

[0105] In the semiconductor integrated circuit device 5c according to the third embodiment, the selection circuit 30 turns on the switch 301a corresponding to the measurement node, similar to Fig. 2. This creates a path for the output current Iout from the power supply line NP to the ground line NL, including the PMOS transistor 501, the switch 301a (node ​​N1a), and the NMOS transistor 201a, similar to Fig. 2.

[0106] In the voltage-current conversion circuit 22a, the electrical resistance value between the source of the NMOS transistor 201a and the ground line NL, which are included in the path of the output current Iout, is switched according to the control signal Schg. Specifically, when the control signal Schg is at H level, the output current Iout bypasses the resistance element 210a, so the electrical resistance value is RO1. On the other hand, when the control signal Schg is at L level, the output current Iout passes through both the resistance elements 209a and 210a, so the electrical resistance value is RO1+RO2.

[0107] As a result, in the voltage-current conversion circuit 22a, like the voltage-current conversion circuit 21a of the second embodiment (FIG. 7), the conversion gain of the output current Iout relative to the measurement voltage Vout can be set in two stages. The respective conversion gains correspond to 1 / RO1 and 1 / (RO1+RO2). In the current comparator 50, the output current Iout supplied to the node N3 by the PMOS transistor 502 is switched in response to the control signal Schg input to the transistor switch 208a. That is, the transistor switch 208a can constitute one embodiment of a "gain switching mechanism."

[0108] For the same determination voltage Vtl (lower limit side) as in the second embodiment, when Vout=Vtl, the electrical resistance value RO1 for making Iout=Iref is given by the following equation (11), which is a modification of equation (4).

[0109] RO1=(Vtl-Vgs2) / (Vref-Vgs4)·RP…(11) Similarly, for the determination voltage Vtu (upper limit value side), when Vout = Vtu, the electrical resistance value RO1 + RO2 for making Iout = Iref is represented by the following equation (12) obtained by transforming equation (4).

[0110] RO1 + RO2 = (Vtu - Vgs2) / (Vref - Vgs4) · RP …(12) In the current comparator 50, similarly to FIG. 2, a current equivalent to the reference current Iref is drawn from the node N3 by the NMOS transistor 503. Therefore, at the node N3, a voltage V3 is generated that amplifies the current difference between the output current Iout whose conversion gain is switched according to the control signal Schg and the reference current Iref.

[0111] Therefore, when the control signal Schg is at the H level (when the transistor switch 208a is on), when Vout < Vtl, Iout > Iref, and the determination signal Sjd is set to the H level. On the other hand, when the control signal Schg is at the L level (when the transistor switch 208a is off), when Vout < Vtu, Iout < Iref, and the determination signal Sjd is set to the L level. In this way, it is possible to determine whether the measured voltage Vout is included in a predetermined voltage range (normal range) Vtu < Vout < Vtl.

[0112] As described above, according to the semiconductor integrated circuit device according to Embodiment 3, similar to Embodiment 2, by using a set of reference current sources 40 and current comparators 50, an increase in circuit scale can be suppressed, and the measured voltage Vout can be compared with a plurality of determination voltages. Thereby, by comparing with the lower limit value and the upper limit value of the normal range, it is possible to efficiently determine whether the measured voltage Vout is within the normal range.

[0113] Furthermore, according to the configuration of Embodiment 3, it is possible to execute the determination of the measured voltage Vout similar to that of Embodiment 2 without using the selection circuit 31 in which the number of switches is doubled. That is, the same effect as that of Embodiment 2 can be obtained, and the circuit scale can be suppressed compared with Embodiment 2.

[0114] Note that the first and second modifications described in the first embodiment can also be applied to the third embodiment. That is, in the voltage-current conversion circuit 22, the current comparator 50, and the reference current source 40, the positions of the power supply line NP and the ground line NL are interchanged, and the NMOS transistors and PMOS transistors are interchanged, so that the voltage-current conversion can be performed using PMOS transistors. Alternatively, by adding an operational amplifier buffer (FIGS. 4 and 5) to the voltage-current conversion circuit 22 and the reference current source 40, the effects of MOS transistor variations and temperature fluctuations can be suppressed, and the accuracy of the determination can be improved.

[0115] Embodiment 4 In the fourth embodiment, a configuration will be described in which the comparison of the measurement voltage Vout with a plurality of determination voltages (for example, Vtu, Vtl) described in the second and third embodiments can be executed at the same time.

[0116] FIG. 10 is a block diagram showing a configuration of a semiconductor integrated circuit device 5d according to the fourth embodiment.

[0117] 10, the semiconductor integrated circuit device 5d differs from the semiconductor integrated circuit device 5b (FIG. 6) according to the second embodiment in that a selection circuit 32 is provided instead of the selection circuit 31, a current comparator 51 is provided instead of the current comparator 50, and a decision logic circuit 60 is further provided. On the other hand, the voltage-current conversion circuit 21 and the reference current source 40 are the same as those in the second embodiment (FIG. 6).

[0118] Fig. 11 shows a circuit diagram for explaining the internal configuration of each block shown in Fig. 10. In Fig. 11, the configuration corresponding to the internal circuit 10a is representatively shown with the subscript a, but similar configurations are arranged corresponding to each internal circuit 10.

[0119] 11, the selection circuit 32 includes switches 304a to 304d and 305a to 305d. The current comparator 51 is configured to simultaneously generate output currents Ioutx and Iouty at the nodes N2x and N2x.

[0120] Therefore, node N1ax of voltage-current conversion circuit 21a is connected to node N2x of current comparator 51 via switch 305a of selection circuit 32, and node N1ay of voltage-current conversion circuit 21a is connected to node N2y of current comparator 51 via switch 304a of selection circuit 32. In this manner, selection circuit 32 is controlled to connect two nodes (corresponding to Niax, N1ay) of one voltage-current conversion circuit 21 of voltage-current conversion circuits 21a to 21d to nodes N2x and N2y of current comparator 51, respectively.

[0121] The current comparator 51 has PMOS transistors 505 to 508 and NMOS transistors 509 to 511 which form four current mirrors.

[0122] The PMOS transistors 505 and 506 are connected between the power supply line NP and the nodes N2x and N3x, respectively. The PMOS transistors 505 and 506 configure a current mirror (current ratio is 1:1) by having their gates commonly connected to the node N2x (i.e., the drain of the PMOS transistor 505).

[0123] The PMOS transistors 507 and 508 are connected between the power supply line NP and the nodes N2y and N3y, respectively. The PMOS transistors 507 and 508 configure a current mirror (current ratio is 1:1) by having their gates commonly connected to the node N2y (i.e., the drain of the PMOS transistor 507).

[0124] The NMOS transistor 509 is connected between the node N3x and the ground line NL, and the NMOS transistor 510 is connected between the node N3y and the ground line NL. The NMOS transistor 511 is connected between the node N4 and the ground line NL, similar to the NMOS transistor 504 in Fig. 7. A reference current Iref is supplied to the node N4 from the reference current source 40 similar to that in Fig. 2.

[0125] The gates of the NMOS transistors 509 to 511 are commonly connected to a node N4 (the drain of the NMOS transistor 511). This forms a current mirror of the NMOS transistors 511 and 509 (current ratio is 1:1), and a current mirror of the NMOS transistors 511 and 510 (current ratio is 1:1).

[0126] Next, a description will be given of the operation of the circuit shown in Fig. 11. In the example of Fig. 11, the operation will be described when the internal node NTa of the internal circuit 10a is selected and the switches 304a and 305a are turned on in the selection circuit 32.

[0127] When the switch 305a is turned on, a path for the output current Ioutx is generated from the power supply line NP to the ground line NL, including the PMOS transistor 505, the switch 305a (node ​​N1ax), the NMOS transistor 203a, and the resistive element 204a. The output current Ioutx is equivalent to the output current Iou in FIG.

[0128] Similarly, when the switch 304a is turned on, a path for the output current Iouty is generated from the power supply line NP to the ground line NL, the path including the PMOS transistor 507, the switch 304a (node ​​N1ay), the NMOS transistor 205a, and the resistive element 206a. The output current Iouty is equivalent to the output current Iol in FIG. 7. In this manner, in the current comparator 52 of the fourth embodiment, the output currents Ioutx and Iouty corresponding to the output currents Iou and Iol in FIG. 7 are simultaneously generated. That is, a plurality of output currents Ioutx and Iouty having different conversion ratios generated by the voltage-current conversion circuit 22 are input in parallel to the current comparator 50.

[0129] The output current Ioutx is copied by a current mirror (current ratio 1:1) made up of PMOS transistors 505 and 506. Similarly, the output current Iouty is copied by a current mirror (current ratio 1:1) made up of PMOS transistors 507 and 508. As a result, in the current comparator 52, a current equivalent to the output current Ioutx is supplied to the node N3x by the PMOS transistor 506, and a current equivalent to the output current Iouty is supplied to the node N3y by the PMOS transistor 508.

[0130] On the other hand, the reference current Iref supplied from the reference current source 40 to the node N4 is copied by a current mirror (current ratio 1:1) formed by the NMOS transistors 511 and 509, and a current mirror (current ratio 1:1) formed by the NMOS transistors 511 and 510. As a result, a current equivalent to the reference current Iref is drawn from the node N3x by the PMOS transistor 509. Similarly, a current equivalent to the reference current Iref is drawn from the node N3y by the PMOS transistor 510.

[0131] As a result, a voltage V3x is generated at node N3x, which is the amplified voltage of the current difference between the output current Ioutx (Ioutx = Iou) and the reference current Iref. This is equivalent to the voltage V3 generated at node N3 when switch 303a is on in FIG. 7. Therefore, the voltage V3x is set to a voltage level indicating the comparison result between the measured voltage Vout and the determination voltage Vtu (upper limit side). Similar to FIG. 7, when Vout < Vtu, since Iout < Iref, the determination signal Sidx corresponding to the voltage V3x is set to the L level.

[0132] On the other hand, a voltage V3y is generated at node N3y, which is the amplified voltage of the current difference between the output current Iouty (Iouty = Iou) and the reference current Iref. This is equivalent to the voltage V3 generated at node N3 when switch 302a is on in FIG. 7. Therefore, the voltage V3y is set to a voltage level indicating the comparison result between the measured voltage Vout and the determination voltage Vtl (lower limit side). Similar to FIG. 7, when Vout > Vtl, since Iout = Iol > Iref, the determination signal Sidy corresponding to the voltage V3y is set to the H level.

[0133] The determination logic circuit 60 includes an inverter 601 and a NAND (negative logic product) gate 602. The inverter 601 inverts and outputs the determination signal Sidx. The output voltage of the inverter 610 and the determination signal Sidy are input to the NAND gate 602, which outputs the determination signal Sjd. In the configuration of FIG. 11, the determination signal Sjd from the determination logic circuit 60 can be output to a terminal 6 that can be contacted from the outside of the semiconductor integrated circuit device 5f.

[0134] Therefore, when both of the above-mentioned conditions, Vout < Vtu (V3x = L level) and Vout > Vtl (V3y = H level), are satisfied and the measured voltage Vout is within the voltage range (normal range) of Vtl < Vout < Vtu, the determination signal Sjd is set to the L level. On the contrary, when the measured voltage Vout is not within the voltage range (normal range) of Vtl < Vout < Vtu, either Vout < Vtu or Vout > Vtl is not satisfied, so the determination signal Sjd is set to the H level.

[0135] As described above, in the semiconductor integrated circuit device of embodiment 4, the current comparator 52 can simultaneously compare the measurement voltage Vout with the determination voltage Vtl (lower limit side) and compare the measurement voltage Vout with the determination voltage Vtu (upper limit side).

[0136] In contrast, in the configurations of the second and third embodiments, the measured voltage Vout can be compared with only one judgment voltage, so that the judgment as to whether the measured voltage Vout is within the normal range defined by the upper and lower limit values ​​must be performed using the judgment signals Sjd at different timings.

[0137] As a result, according to the configuration of the fourth embodiment, the comparison of the measured voltage Vout with a plurality of determination voltages, for example, the determination of whether or not the measured voltage Vout is within the normal range by comparing it with the lower and upper limits of the normal range, as in the second embodiment, can be performed faster than in the second embodiment. That is, in the semiconductor integrated circuit device according to the fourth embodiment, in addition to the effects described in the second embodiment, it is possible to further shorten the test time.

[0138] Note that the first and second modifications described in the first embodiment can also be applied to the fourth embodiment. That is, in the voltage-current conversion circuit 21, the current comparator 51, and the reference current source 40, the positions of the power supply line NP and the ground line NL are interchanged, and the NMOS transistors and PMOS transistors are interchanged, so that the voltage-current conversion can be performed using PMOS transistors. Alternatively, by adding an operational amplifier buffer (FIGS. 4 and 5) to the voltage-current conversion circuit 21 and the reference current source 40, the effects of MOS transistor variations and temperature fluctuations can be suppressed, and the accuracy of the determination can be improved.

[0139] Embodiment 5. In the fifth embodiment, a circuit configuration for omitting the placement of the selection circuit 32 in the fourth embodiment will be described.

[0140] FIG. 12 is a block diagram showing a configuration of a semiconductor integrated circuit device 5e according to the fifth embodiment.

[0141] As shown in FIG. 12, the semiconductor integrated circuit device 5e is different from the semiconductor integrated circuit device 5d (FIG. 10) according to the fourth embodiment in that the selection circuit 32 is omitted and a voltage-current conversion circuit 23 is arranged instead of the voltage-current conversion circuit 21. An enable signal EN is input to each voltage-current conversion circuit 21. FIG. 12 also shows a configuration of N=4, and individual enable signals ENa-ENd are input to the voltage-current conversion circuits 23a-23d arranged corresponding to the internal circuits 10a-10d, respectively. One of the enable signals ENa-ENd is set to H level to select the internal nodes NTa-NTd of the internal circuits 10a-10d as the measurement target. On the other hand, the remaining three enable signals ENa-ENd are set to L level.

[0142] Fig. 13 shows a circuit diagram for explaining the internal configuration of each block shown in Fig. 12. In Fig. 13, the configuration corresponding to the internal circuit 10a is representatively shown with the subscript a, but similar configurations are arranged corresponding to each internal circuit 10.

[0143] 13, the voltage-to-current conversion circuit 23a further includes an enable switch 207a connected in series to each of the resistance elements 204a and 206a between the resistance elements 204a and 206a and the ground line NL, in comparison with the voltage-to-current conversion circuit 21a of FIG 11. The enable switch 207a is turned on and off in response to an enable signal ENa.

[0144] 11 is not provided, two nodes of each voltage-current conversion circuit 23 are connected to nodes N2x and N2y of current comparator 51, respectively, without a switch. For example, nodes N1ax and N1ay of voltage-current conversion circuit 23a are connected to nodes N2x and N2y of current comparator 51, respectively, without a switch.

[0145] When the enable signal ENa is set to an H level and the enable switch 207a is turned on, the voltage-current conversion circuit 23a is connected to the nodes N2x and N2y of the current comparator 51 in a circuit state similar to that of the voltage-current conversion circuit 21a. Therefore, the voltage-current conversion circuit 23a can input the output currents Ioutx and Iouty similar to those in FIG. 11 to the current comparator 51. This makes it possible to generate a judgment signal Sjd based on a comparison between the measurement voltage Vout and the judgment voltages Vlu and Vtl, similar to that in the fourth embodiment.

[0146] In contrast, when the enable signal ENa is set to the L level and the enable switch 207a is turned off, the paths of the output currents Ioutx and Iouty are cut off in the voltage-current conversion circuit 23a. As a result, similar to the case in which the switches 304a and 305a of the selection circuit 32 in FIG. 11 are turned off, the current comparator 51 does not generate the output currents Ioutx and Iouty according to the measurement voltage Vout of the internal node NTa. In this case, one of the other voltage-current conversion circuits 23 (the voltage-current conversion circuits 23b to 23d in FIG. 12) is selected, and the corresponding enable signal EN is set to the H level. Then, in the current comparator 51, the output currents Ioutx and Iouty according to the measurement voltage Vout input to the selected voltage-current conversion circuit 23 are generated and compared with the reference current Iref.

[0147] In this way, in the semiconductor integrated circuit device of the fifth embodiment, the selection circuit 32 can be omitted, and judgment can be performed by comparing the measurement voltage Vout with a plurality of judgment voltages Vtu and Vyl, similar to the semiconductor device of the fourth embodiment. Therefore, in addition to the effect of the semiconductor integrated circuit device of the fourth embodiment, the effect of circuit miniaturization can be further enjoyed.

[0148] Note that the first and second modifications described in the first embodiment can also be applied to the fifth embodiment. That is, in the voltage-current conversion circuit 22, the current comparator 50, and the reference current source 40, the positions of the power supply line NP and the ground line NL are interchanged, and the NMOS transistors and PMOS transistors are interchanged, so that the voltage-current conversion can be performed using PMOS transistors. Alternatively, by adding an operational amplifier buffer (FIGS. 4 and 5) to the voltage-current conversion circuit 22 and the reference current source 40, the effects of MOS transistor variations and temperature fluctuations can be suppressed, and the accuracy of the determination can be improved.

[0149] Furthermore, the fifth embodiment can be combined with the first to third embodiments and with a configuration in which the first and second modifications are applied to the first to third embodiments. Specifically, the fifth embodiment can be combined with the first embodiment or the first modification by connecting the enable switch 207a in series with the resistive element 202a in the voltage-current conversion circuit 20a (FIG. 2) and the voltage-current conversion circuit 20a♯ (FIG. 4). Similarly, the fifth embodiment can be combined with the first embodiment or the first modification by connecting the enable switch 207a in series with the resistive element 202pa in the voltage-current conversion circuit 20pa (FIG. 3).

[0150] Moreover, in the voltage-current conversion circuit 21a (FIG. 7), by connecting the enable switch 207a between the resistance elements 204a and 206a and the ground line NL in the same manner as in FIG. 13, it is possible to combine the second embodiment with the fifth embodiment. Moreover, in the voltage-current conversion circuit 22a (FIG. 9), by connecting the enable switch 207a in series with the resistance elements 209a and 210a and so as to be removed from the short-circuit path formed by the transistor switch 208a, it is also possible to combine the third embodiment with the fifth embodiment.

[0151] Embodiment 6 In the sixth embodiment, a configuration for dealing with an anomaly using the determination results in the fourth and fifth embodiments will be described.

[0152] FIG. 14 is a block diagram showing a configuration of a semiconductor integrated circuit device 5f according to the sixth embodiment.

[0153] As shown in FIG. 14, the semiconductor integrated circuit device 5f configures each of N internal circuits 10 with an internal circuit (hereinafter also referred to as a "first internal circuit") 11 and an internal circuit (hereinafter also referred to as a "second internal circuit") 12 having the same function, and is equipped with an abnormality response configuration in each internal circuit 10 that switches to the second internal circuit 12 when a fault is detected in the first internal circuit 11.

[0154] 14 also shows an example where N=4. That is, the internal circuit 10a has a first internal circuit 11a and a second internal circuit 12a, the internal circuit 10b has a first internal circuit 11b and a second internal circuit 12b, the internal circuit 10c has a first internal circuit 11c and a second internal circuit 12c, and the internal circuit 10d has a first internal circuit 11d and a second internal circuit 12d.

[0155] The semiconductor integrated circuit device 5f includes, in addition to the voltage-current conversion circuits 21a-21d, selection circuit 32, reference current source 40, current comparator 51, and judgment logic circuit 60 similar to those of the semiconductor integrated circuit device 5d (FIG. 10), selection circuits 15a-15d, judgment result selection circuit 70, recording devices 80a-80d, and control logic circuits 9a-9d for the above-mentioned abnormality response configuration.

[0156] Fig. 15 shows a circuit diagram for explaining the internal configuration of each block shown in Fig. 14. In Fig. 15, the configuration corresponding to the internal circuit 10a is also shown with the subscript a, and similar configurations are arranged corresponding to each internal circuit 10.

[0157] The selection circuit 15 has switches 1001a to 1004a. Switches 1001a and 1002a are connected between the first internal circuit 11a and the second internal circuit 12a and another actual circuit (not shown) mounted on the semiconductor integrated circuit device 5f that takes the output voltage of the internal circuit 10a as an input. Switch 1001a is turned on and off according to the control signal Aa, while switch 1001a is turned on and off according to the control signal / Aa (the inverted signal of Aa). Thereby, the output voltage of one of the first internal circuit 11a and the second internal circuit 12a is input to the actual circuit.

[0158] Switch 1003a is connected between an internal node NT1a corresponding to the output node of the first internal circuit 11a and the voltage-current conversion circuit 21a. Switch 1004a is connected between an internal node NT2a corresponding to the output node of the second internal circuit 12a and the voltage-current conversion circuit 21a.

[0159] When switch 1003a is on, the voltage of the internal node NT1a, that is, the output voltage of the first internal circuit 11a, is input to the voltage-current conversion circuit 21a as the measurement voltage Vout. In contrast, when switch 1004a is on, the voltage of the internal node NT2a, that is, the output voltage of the second internal circuit 12a, is input to the voltage-current conversion circuit 21a as the measurement voltage Vout.

[0160] By controlling switches 1003a and 1004a, for each of the output voltage of the first internal circuit 11a and the output voltage of the second internal circuit 12a, in the same manner as described in Embodiment 5, a determination signal Sjd indicating whether the output voltage (Vout) of the first internal circuit 11a is included in the range of Vtl < Vout < Vtu (normal range) can be obtained at node N20.

[0161] The determination result selection circuit 70 has switches 701a to 701d, 702a to 702d. The recording device 80a corresponding to the internal circuit 10a has a first latch circuit 801a, a second latch circuit 802a, and a NAND gate 803a.

[0162] The switch 701a is connected between the node N20 and a first latch circuit 801a. The first latch circuit 801a is arranged to store a determination signal Sjd for a first internal circuit 11a included in the internal circuit 10a. Therefore, the switch 701a is provided with an on period in conjunction with the switch 1003a.

[0163] Similarly, the switch 702a is connected between the node N20 and a second latch circuit 802a. The second latch circuit 802a is arranged to store a determination signal Sjd for the second internal circuit 12a included in the internal circuit 10a. Therefore, the switch 702a is provided with an on period in conjunction with the switch 1004a.

[0164] Although not shown in the figure, each of the recording devices 80b to 80d arranged corresponding to the internal circuits 10b to 10d includes a first latch circuit 801 that stores the judgment result of the first internal circuit 11 and a second latch circuit 802 that stores the judgment result of the second internal circuit 12. Furthermore, in the judgment result selection circuit 70, a switch 701 leading to the first latch circuit and a switch 702 leading to the second latch circuit are arranged between the recording devices 80b to 80d and a node N20 to which the judgment signal Sjd is output from the judgment logic circuit 60.

[0165] The NAND gate 803a receives the latch data S11a of the first latch circuit 801a and the latch data S12a of the second latch circuit 802a as inputs, and outputs an internal circuit normal signal / Ea.

[0166] The control logic circuit 9a includes a NAND gate 901a and an inverter 902a. The NAND gate 901a receives latch data S11a and the inverted data of latch data S12a, and outputs a control signal Aa for the switch 1001a. The inverter 902a inverts the output signal of the NAND gate 901a and outputs a control signal / Aa for the switch 1002a.

[0167] FIG. 16 shows a signal waveform diagram for explaining the operation of the semiconductor integrated circuit device 5f. Referring to FIG. 16, at the test timing of the internal circuit 10a for determining the output voltages of the first internal circuit 11a and the second internal circuit 12a, the switches 304a and 305a of the selection circuit 32 are turned on, and the voltage-current conversion circuit 21a corresponding to the internal circuit 10a is connected to the current comparator 51.

[0168] At the test timing of the internal circuit 10a, the output voltage of the first internal circuit 11a and the output voltage of the second internal circuit 12a are determined in sequence. First, by turning on the switches 1003a and 701a, a determination signal Sjd indicating whether the output voltage (Vout) of the first internal circuit 11a is included in the range of Vtl < Vout < Vtu (normal range) is input to the first latch circuit 801a. If the determination result of the first internal circuit 11a is normal, the latch data S11a of the first latch circuit 801a becomes the L level.

[0169] Next, by turning on the switches 1004a and 702a, a determination signal Sjd indicating whether the output voltage (Vout) of the second internal circuit 12a is included in the range of Vtl < Vout < Vtu (normal range) is input to the second latch circuit 802a. If the determination result of the first internal circuit 11a is normal, the latch data S12a of the second latch circuit 802a becomes the L level.

[0170] The first latch circuit 801a corresponds to an embodiment of the "first memory circuit", and the latch data S11a corresponds to an embodiment of the "first information". The second latch circuit 802a corresponds to an embodiment of the "second memory circuit", and the latch data S12a corresponds to an embodiment of the "second information". Also, among the selection circuits 15a, the switches 1003a and 1004a can constitute an embodiment of the "measurement selection circuit".

[0171] When the determination of the output voltages of the first internal circuit 11a and the second internal circuit 12a is completed, the test timing of the internal circuit 10a is terminated, and the test timing of the internal circuit 10b is provided. In the test timing of the internal circuit 10b, the switches 1003b, 1004b, 304b, 305b, 701b, and 702b corresponding to the internal circuit 10b are turned on and off in the same manner as the switches 1003a, 1004a, 304a, 305a, 701a, and 702a in the test timing of the internal circuit 10a so as to determine the output voltages of the first internal circuit 11b and the second internal circuit 12b in order.

[0172] Fig. 17 is a diagram for explaining the operation of the abnormality detection configuration for the determination results of the first and second internal circuits. As shown in Fig. 17, there are Case 1 to Case 4 for combinations of the determination results of the first and second internal circuits.

[0173] In case 1, the output voltages (Vout) of both the first internal circuit 11a and the second internal circuit 12a are normal (S11a=S12a=L). At this time, the control signal Aa is set to H level, while the control signal / Aa is set to L level. That is, the output of the first internal circuit 11a is transmitted to the actual circuit by the switch 1001a. Also, the internal circuit abnormality signal / Ea is set to H level.

[0174] In case 2, the output voltage of the first internal circuit 11a is normal (S11a=L), while the output voltage of the second internal circuit 12a is abnormal (S12a=H), and the second internal circuit 12a is broken. In this case, as in case 1, the control signal Aa is set to H level, while the control signal / Aa is set to L level. That is, the output of the first internal circuit 11a is transmitted to the actual circuit by the switch 1001a. Also, the internal circuit abnormality signal / Ea is set to H level.

[0175] In case 3, contrary to case 2, the output voltage of the second internal circuit 12a is normal (S12a=L), while the output of the first internal circuit 11a is abnormal (S11a=H), and the first internal circuit 11a is broken. In this case, the control signal Aa is set to L level, while the control signal / Aa is set to H level. That is, the output of the second internal circuit 12a is transmitted to the actual circuit by the switch 1002a. Also, the internal circuit abnormality signal / Ea is set to H level. In this way, one embodiment of the "output selection circuit" can be configured by the switches 1001a and 1002a of the selection circuit 15a.

[0176] In case 4, the output voltages of both the first internal circuit 11a and the second internal circuit 12a are abnormal (S11a=S12a=L), and both the first internal circuit 11a and the second internal circuit 12a are broken. In this case, the internal circuit abnormality signal / Ea is set to the L level, unlike cases 1 to 3. The control signals Aa and / Aa are set in the same manner as in cases 1 and 2.

[0177] In this way, the first internal circuit 11a is set as a default circuit for actual use, and when the first internal circuit 11a fails, the second internal circuit 12a for backup is automatically switched to the circuit for actual use on condition that the determination result is normal. This allows the semiconductor integrated circuit device 5e to continue operating even when a failure occurs in the internal circuit.

[0178] Moreover, when both the first internal circuit 11a and the second internal circuit 12a fail, the internal circuit abnormality signal / Ea is set to the L level, thereby making it possible to notify that the internal circuit 10a is unusable.

[0179] The test timing of the internal circuit 10 shown in FIG. 16 can be set at the time of power-on of the semiconductor integrated circuit device 5f and periodically at a time that does not affect the circuit operation.

[0180] As described above, according to the semiconductor integrated circuit device according to Embodiment 6, since it is possible to automatically detect a failure in the internal circuit 10 and switch to the backup circuit when a failure occurs, in addition to the effects described in Embodiment 4, the reliability of continuous circuit operation can be enhanced. Further, by monitoring the control signals Aa, / Aa and the internal circuit abnormality signal / Ea from outside the semiconductor integrated circuit device 5f, the failure state of each internal circuit 10 can also be grasped. That is, regarding the control signals Aa, / Aa and the internal circuit abnormality signal / Ea, similar to the terminal 6, they can be output to a terminal (not shown) that can be contacted from outside the semiconductor integrated circuit device 5f.

[0181] In addition, in FIG. 15, an example in which the abnormality handling configuration in Embodiment 6 is applied to the semiconductor integrated circuit device according to Embodiment 4 has been described. However, similarly for the other Embodiments 1 to 3 and 5, in addition to the application of Modifications 1 and 2, it is possible to further combine Embodiment 6. At this time, if necessary, the number of latch circuits in the recording device 80 and the logical operation content in the control logic circuit 9 can be appropriately changed.

[0182] As an example, in Embodiments 1 to 3, in order to determine normal and ≧ using the determination results related to the same voltage range (Vtl < Vout < Vtu) as in Embodiment 4, in order to hold the determination signal Sjd in the comparison with each of the determination voltages Vtl and Vtu, four latch circuits are required for each recording device 80. Using the latch data of the four latch circuits, for the combinations of normal and abnormal of the first internal circuit 11a and the second internal circuit 12a (Cases 1 to 4), it is necessary to change the logical operation in the control logic circuit 9 so that the control signals Aa, / Aa and the internal circuit abnormality signal / Ea similar to FIG. 17 can be obtained.

[0183] Embodiment 7. In Embodiment 7, a configuration in which two voltage differences (voltage differences) related to the measurement nodes of the internal circuit are used as the measurement voltages, that is, the object of determination, will be described.

[0184] FIG. 18 is a block diagram showing a configuration of a semiconductor integrated circuit device 5g according to the seventh embodiment.

[0185] 18, the semiconductor integrated circuit device 5g differs from the semiconductor integrated circuit device 5b (FIG. 10) according to the fourth embodiment in that two voltages, a first voltage Vout1 and a second voltage Vout2, are output from the internal circuit 10a, and that a voltage-current conversion circuit 24a is arranged instead of the voltage-current conversion circuit 21a. Furthermore, an upper peak detector 13a and a lower peak detector 14a are provided for an internal node NTa (output voltage Vout) of the internal circuit 10a, which corresponds to the "measurement node".

[0186] The upper peak detector 13a extracts the maximum value (upper peak value) of the output voltage Vout and outputs it as a first voltage Vout1. The lower peak detector 14a extracts the minimum value (lower peak value) of the output voltage Vout and outputs it as a second voltage Vout2. For example, when an AC voltage is output to the internal node NTa, Vout1-Vout2 indicates the peak-to-peak value of the AC voltage.

[0187] A first voltage Vout1 and a second voltage Vout2 are input to the voltage-current conversion circuit 24a. The voltage-current conversion circuit 24a converts the voltage difference (Vout1-Vout2) between the first voltage Vout1 and the second voltage Vout2 into output currents Ioutx and Iouty in FIG. 11 with different conversion gains.

[0188] On the other hand, the selection circuit 32, the current comparator 50, the reference current source 40, and the decision logic circuit 60 shared by the N internal circuits 10 are the same as those in the fourth embodiment (FIG. 10). In FIGS. 18 and 19, the configuration corresponding to the internal circuit 10a is representatively shown with the subscript a, but similar configurations are arranged corresponding to each internal circuit 10.

[0189] FIG. 19 shows a circuit diagram illustrating the configuration of a voltage-current converter according to the seventh embodiment, that is, the voltage-current converter 24a of FIG.

[0190] 19, the voltage-current conversion circuit 24a is connected to the selection circuit 32 (FIG. 11) via nodes N1ax and N1ay. The voltage-current conversion circuit 24a has NMOS transistors 2031a, 2035a, and 2308a, PMOS transistors 2304a, 2307a, and 2310a, resistive elements 2306a and 2309a, and current sources 2302a and 2303a.

[0191] The NMOS transistor 2301a is connected between the power supply line NP and a node N31, and the current source 2302a is connected between the node N31 and a ground line NL. A second voltage Vout2 is input to the gate of the NMOS transistor 2301a.

[0192] The current source 2303a is connected between the power supply line NP and a node N32, and the PMOS transistor 2304a is connected between the node N32 and a ground line NL. The first voltage Vout1 is input to the gate of the PMOS transistor 2304a.

[0193] The NMOS transistor 2305a is connected between the node N1ax and the node N33. The resistive element 2306a is connected between the node N33 and the PMOS transistor 2307a, which is connected between the resistive element 2306a and the ground line NL. The resistive element 2306a has an electrical resistance value RDU.

[0194] The NMOS transistor 2308a is connected between the node N1ay and a node N34. The resistive element 2309a is connected between the node N34 and a PMOS transistor 2310a, which is connected between the resistive element 2309a and a ground line NL. The resistive element 2309a has an electrical resistance value RDL.

[0195] The gates of the NMOS transistors 2305a and 2308a are commonly connected to a node N32. The gates of the PMOS transistors 2307a and 2310a are commonly connected to a node N31.

[0196] The voltage V32 of the node N32 is expressed as V32=Vout1+Vgs14 using the gate-source voltage Vgs14 of the PMOS transistor 2304a. Similarly, the voltage V31 of the node N31 is expressed as V31=Vout2-Vgs11 using the gate-source voltage Vgs11 of the NMOS transistor 2301a.

[0197] Therefore, the voltage difference applied to both ends of the resistor element 2306a is expressed as (V32-Vgs15)-(V31+Vgs17) by further using the gate-source voltage Vgs15 of the NMOS transistor 2305a and the gate-source voltage Vgs17 of the NMOS transistor 2307a. As a result, the output current Ioutx is expressed by the following equation (13).

[0198] Ioutx=((Vout1+Vgs14-Vgs15)-(Vout2-Vgs11+Vgs17)) / RDU =(Vout1-Vout2+Vgs14-Vgs15+Vgs11-Vgs17) / RDU …(13) Similarly, the voltage difference applied across the resistor element 2309a is expressed as (V32-Vgs18)-(V31+Vgs20) by further using the gate-source voltage Vgs18 of the NMOS transistor 2308a and the gate-source voltage Vgs20 of the NMOS transistor 2310a. As a result, the output current Iouty is expressed by the following equation (14).

[0199] Iouty=((Vout1+Vgs14-Vgs18)-(Vout2-Vgs11+Vgs20)) / RDL =(Vout1-Vout2+Vgs14-Vgs18+Vgs11-Vgs20) / RDL …(14) In this way, the output currents Ioutx and Iouty are obtained by performing voltage-to-current conversion on the measurement voltage (Vout1-Vout2) using different conversion gains.

[0200] By setting the judgment voltages Vdu and Vdl corresponding to the lower and upper limits of the normal range of the measured voltage Vout=Vout1-Vout2, it is possible to determine whether the voltage difference (Vout1-Vout2) is within the normal range by comparing each of the judgment voltages Vdu and hVdl with the voltage difference (Vout1-Vout2).

[0201] As in the first embodiment, the electrical resistance value RDU for making Ioutx=Iref when Vout=Vout1-Vout2=Vdu is expressed by the following equation (15) using the electrical resistance value RS (reference current source 40) that determines the reference current Iref.

[0202] RDU=(Vdu+Vgs14-Vgs15+Vgs11-Vgs17) / (Vref-Vgs4)·RP …(15) Similarly, when Vout=Vout1−Vout2=Vdl, the electric resistance value RDL for making Iouty=Iref is expressed by the following equation (16) using the electric resistance value RS (reference current source 40).

[0203] RDL=(Vdl+Vgs14-Vgs18+Vgs11-Vgs20) / (Vref-Vgs4)·RP …(16) By determining the electric resistance value RDU of the resistor element 2306a and the electric resistance value RDL of the resistor element 2309a according to the formulas (15) and (16), the voltage difference (Vout1-Vout2) can be compared as the measurement voltage Vout with each of the determination voltages Vdu and Vdl using a fixed reference current Iref. As a result, it can be determined whether or not the voltage difference between the two voltages related to the measurement nodes of the internal circuit is within the normal range determined by the determination voltages Vdu and Vdl.

[0204] As in the first and third embodiments, even in a configuration in which a single node N1a is connected to the current comparator 50 via the selection circuit 30 (FIG. 2 or FIG. 9), it is possible to compare the voltage difference between the first voltage Vout1 and the second voltage Vout2 as the measurement voltage Vout with the single determination voltage Vdt. In this case, the above voltage comparison can be performed by omitting the arrangement of the NMOS transistor 2308a, the resistive element 2309a, and the PMOS transistor 2310a in the voltage-current conversion circuit 24a of FIG. 19 and connecting the NMOS transistor 2305a between the node N1a and the node N33. The electric resistance value of the resistive element 2306a in this case can be obtained by replacing the determination voltage Vtu with the determination voltage Vdt in the formula (15).

[0205] In addition, in the example of Figure 18, the first voltage Vout1 and the second voltage Vout2 related to the measurement nodes of the internal circuit 10 are two voltages at different times for the same node, but it is also possible to set the voltages of two different nodes of the internal circuit 10 as the first voltage Vout1 and the second voltage Vout2, and set the voltage difference between the two internal nodes as the measurement voltage Vout.

[0206] In the semiconductor integrated circuit device of the seventh embodiment, the circuit downstream of the nodes N1ax and N1ay (or the node N1a) can be the same as any of the first to sixth embodiments. This makes it possible to perform the same determination as in the first to sixth embodiments with respect to the difference between the two voltages (voltage difference) related to the internal circuit 10, or to perform an abnormality response configuration based on the determination result.

[0207] (Modification) 18 and 19, an example was described in which the first voltage Vout1 and the second voltage Vout2 are the upper limit peak voltage and the lower limit peak voltage of the same node, and therefore an example configuration of the voltage-current conversion circuit 24a was described assuming that both the determination voltage Vtu (upper limit side) and the determination voltage (lower limit side) are positive voltages. In FIG. 20, as a modified example, an example configuration of the voltage-current conversion circuit 25a for dealing with the case in which the determination voltage Vtu (upper limit side) is a positive voltage while the determination voltage (lower limit side) is a negative voltage will be described with reference to FIG.

[0208] As shown in FIG. 20, voltage-current conversion circuit 25a differs from voltage-current conversion circuit 24a shown in FIG. 19 in that it further includes a PMOS transistor 2312a, an NMOS transistor 2313a, and current sources 2311a and 2314a, and in that the gates of NMOS transistor 2308a and PMOS transistor 2310a are connected to different destinations.

[0209] The current source 2311a is connected between the power supply line NP and a node N35, and the PMOS transistor 2312a is connected between the node N35 and a ground line NL. The second voltage Vout2 is input to the gate of the PMOS transistor 2312a in common with the gate of the NMOS transistor 2301a.

[0210] The NMOS 2313a is connected between the power supply line NP and a node N36, and the current source 2314a is connected between the node N36 and a ground line NL. The first voltage Vout1 is input to the gate of the NMOS transistor 2313a in common with the gate of the PMOS transistor 2304a.

[0211] The gate of the NMOS transistor 2308 is connected to a node N35 at which a voltage according to the second voltage Vout2 is generated, and the gate of the PMOS transistor 2310a is connected to a node N36 at which a voltage according to the first voltage Vout1 is generated. Therefore, a voltage according to the voltage difference (Vout2-Vout1) is applied to both ends of the resistance element 2309a. As a result, the output current Iouty becomes a current obtained by converting the voltage difference (Vout2-Vout1) by a conversion gain according to the electrical resistance value RDL.

[0212] 20, the polarity (positive / negative) of the conversion gain of the output current Iouty is inverted with respect to the voltage-current conversion circuit 24a. Therefore, it can be understood that, overall, the polarity (positive / negative) of the determination voltage Vdl can be inverted and compared with the voltage difference (Vout1-Vout2) with respect to the case where the voltage-current conversion circuit 24a is used.

[0213] In this manner, by using the voltage-current conversion circuit 25a shown in FIG. 20, even if the lower limit of the normal range of the voltage difference (Vout1-Vout2) is a negative voltage, the voltage difference between the first voltage Vout1 and the second voltage Vout2 can be taken as the measurement voltage Vout and compared with the determination voltage, as in the first to sixth embodiments.

[0214] Although various exemplary embodiments and examples are described in this disclosure, the various features, aspects, and functions described in one or more embodiments are not limited to application to a particular embodiment, but may be applied to the embodiments alone or in various combinations.

[0215] Therefore, countless modifications not illustrated are assumed within the scope of the technology of the present disclosure, including, for example, modifying, adding, or omitting at least one component, and further, extracting at least one component and combining it with a component of another embodiment.

[0216] In addition, in the second and subsequent embodiments, a configuration example has been described in which the measurement voltage Vout is converted into two output currents with different conversion gains and compared with two judgment voltages, but in principle, it is also possible to configure the measurement voltage Vout to be compared with three or more judgment voltages by comparing three or more output currents with different conversion gains with a reference current. For example, in each of the voltage-current conversion circuits 21 and 22, such a configuration can be realized by increasing the number of voltage-current conversion units arranged in parallel as in Fig. 7 or the number of resistance elements and switches (gain switching mechanisms) as in Fig. 9.

[0217] In the above embodiment, the current ratio of each current mirror is 1:1, but other current ratios are also possible. In this case, it is necessary to multiply the electric resistance value RO of the formula (4) by (A / B) using the current ratio A of the output current Iout generated in the current comparator 50 transistor, 51 (nodes N3, N3x, N3y) to the output currents Iout, Ioutx, Iouty of the voltage-current conversion circuit 20, etc., and the current ratio B of the reference current Iref generated in the current comparators 50 to 52, 51 (node ​​N4) to the reference current Iref of the reference current source 40.

[0218] In this case, in order to balance Vgs2 and Vgs4 in the formula (4) and the like, it is preferable to make the ratio of the current and the transistor size uniform between the NMOS transistor 201a and the NMOS transistor 403 in FIG. 2 by adjusting the transistor size, for example. As an example, when (A / B)=0.5, the electric resistance value RO is halved and the current flowing through the NMOS transistor 201a is doubled, so it is preferable that the transistor size of the NMOS transistor 201a is twice that of the NMOS transistor 403. For example, by configuring the NMOS transistor 201a by connecting two NMOS transistors having the same transistor size as the NMOS transistor 403 in parallel, it is possible to make the ratio of the current and the transistor size uniform between the NMOS transistor 201a and the NMOS transistor 403.

[0219] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present disclosure is defined by the claims, not the above description, and is intended to include all modifications within the meaning and scope of the claims. [Explanation of symbols]

[0220] 5a to 5g semiconductor integrated circuit device, 9a to 9d control logic circuit, 10a to 10d internal circuit, 11a to 11d first internal circuit, 12a to 12d second internal circuit, 13a upper peak detector, 14a lower peak detector, 15a to 15d, 21, 30, 31, 32 selection circuit, 20a to 20d, 20pa, 21a to 21d, 22a to 22d, 23a to 23d, 24a, 25a voltage-current conversion circuit, 40, 40p reference current source, 50, 50p, 51, 52 current comparator, 60 decision logic circuit, 70 decision result selection circuit, 80a, 80b, 80d recording device, 207a enable switch, 208a transistor switch, 230a, 407 operational amplifier buffer, 801a First latch circuit, 802a second latch circuit, Aa, / Aa,Schg control signals, ENa~ENd enable signals, GND ground voltage, Iol,Iou,Iout,Ioutx,Iouty output current, Iref reference current, NL ground line, NP power line, S11a,S12a latch data, Sjd judgment signal, VDD power supply voltage, Vout measurement voltage, Vout1 first voltage, Vout2 second voltage, Vref reference voltage.

Claims

1. A plurality of voltage-current conversion circuits are provided, each of the plurality of voltage-current conversion circuits is configured to perform voltage-to-current conversion of a measurement voltage corresponding to a voltage of at least one measurement node inside the semiconductor integrated circuit device in accordance with a first conversion gain reflecting a determination voltage to be compared with the measurement voltage, to generate at least one output current; a reference current source that outputs a predetermined reference current; a current comparator that outputs at least one determination signal according to a comparison result between the at least one output current input from a voltage-to-current conversion circuit selected from the plurality of voltage-to-current conversion circuits and the reference current.

2. Each of the voltage-current conversion circuits includes a plurality of voltage-current conversion units each having a different first conversion gain, the plurality of voltage-to-current conversion units convert the measurement voltages according to the respective first conversion gains to generate the plurality of output currents; The plurality of output currents generated by the plurality of voltage-to-current conversion units of the selected voltage-to-current conversion circuit are input one by one in sequence to the current comparator; 2. The semiconductor integrated circuit device according to claim 1, wherein the current comparator is configured to output the determination signal according to a result of comparison between one of the plurality of output currents input from the selected voltage-to-current conversion circuit and the reference current.

3. Each of the voltage-current conversion circuits includes: a gain switching mechanism for switching the first conversion gain between a plurality of gains; the selected voltage-current conversion circuit sequentially outputs the plurality of output currents, each of which corresponds to the plurality of first conversion gains switched by the gain switching mechanism, one by one; 2. The semiconductor integrated circuit device according to claim 1, wherein the current comparator is configured to output the determination signal according to a result of comparison between one of the plurality of output currents input from the selected voltage-to-current conversion circuit and the reference current.

4. Each of the voltage-current conversion circuits includes a plurality of voltage-current conversion units each having a different first conversion gain, the plurality of voltage-to-current conversion units convert the measurement voltages according to the respective first conversion gains to generate the plurality of output currents; The plurality of output currents generated by the plurality of voltage-to-current conversion units are input in parallel to the current comparator; 2. The semiconductor integrated circuit device according to claim 1, wherein said current comparator is configured to output a plurality of said determination signals according to a result of comparing each of said plurality of output currents input from said plurality of voltage-to-current conversion units with said reference current.

5. 5. The semiconductor integrated circuit device according to claim 4, further comprising a decision logic circuit for generating a signal indicative of a result of a logical operation of said plurality of decision signals.

6. 6. The semiconductor integrated circuit device according to claim 1, wherein the voltage-to-current conversion circuit generates the at least one output current using a voltage at one of the measurement nodes as the measurement voltage.

7. 6. The semiconductor integrated circuit device according to claim 1, wherein the voltage-to-current conversion circuit generates the at least one output current using a voltage difference between a first voltage and a second voltage at one of the measurement nodes at different timings as the measurement voltage.

8. 8. The semiconductor integrated circuit device according to claim 7, wherein the first voltage and the second voltage are a maximum peak value and a minimum peak value of a voltage at the one measurement node.

9. 6. The semiconductor integrated circuit device according to claim 1, wherein the voltage-to-current conversion circuit generates the at least one output current using a voltage difference between two of the measurement nodes as the measurement voltage.

10. the reference current source is configured to generate the reference current by performing voltage-to-current conversion on a predetermined reference voltage in accordance with a second predetermined conversion gain; 10. The semiconductor integrated circuit device according to claim 1, wherein the first conversion gain in each of the voltage-to-current conversion circuits is determined using a ratio between the determination voltage and the reference voltage, and the second conversion gain.

11. 10. The semiconductor integrated circuit device according to claim 1, wherein the first conversion gain is set so that the output current and the reference current become equivalent when the measurement voltage is equivalent to the determination voltage.

12. The semiconductor integrated circuit device is a selection circuit having a plurality of switches connected between the plurality of voltage-to-current conversion circuits and the current comparator; 12. The semiconductor integrated circuit device according to claim 1, wherein in the selection circuit, a part of the plurality of switches connected between the selected voltage-to-current conversion circuit and the current comparator is selectively turned on.

13. Each of the plurality of voltage-to-current conversion circuits has an enable switch connected in a path of the at least one output current, 12. The semiconductor integrated circuit device according to claim 1, wherein the enable switch is turned on in the selected voltage-to-current conversion circuit.

14. The semiconductor integrated circuit device is a first internal circuit having a predetermined function; a second internal circuit having the same function as the first internal circuit; a measurement selection circuit for selectively inputting one of the measurement voltage related to the first internal circuit and the measurement voltage related to the second internal circuit to the voltage-current conversion circuit; a first storage circuit for storing first information related to the determination signal output from the current comparator when the measurement voltage related to the first internal circuit is input to the voltage-current conversion circuit by the measurement selection circuit; a second storage circuit for storing second information related to the determination signal output from the current comparator when the measurement voltage related to the second internal circuit is input to the voltage-current conversion circuit by the measurement selection circuit; The semiconductor integrated circuit device according to any one of claims 1 to 13, further comprising an output selection circuit for operating the semiconductor integrated circuit device using the output of the second internal circuit when a fault occurs in the first internal circuit, based on the first information and the second information stored in the first memory circuit and the second memory circuit, and for operating the semiconductor integrated circuit device using the output of the first internal circuit when a fault occurs in the second internal circuit.

Citation Information

Patent Citations

  • Offset voltage correcting circuit

    JP1987032714A

  • Semiconductor integrated circuit device

    JP1996029493A

  • Current mirror circuit

    JP1997139635A

  • Semiconductor integrated circuit and its test method

    JP2006234577A

  • Electronic device and measuring apparatus

    JP2012117983A