Semiconductor device
By optimizing the inter-wiring distance and position of sense positions on the top electrode, the semiconductor device effectively detects electrode deterioration, ensuring early intervention and preventing failure.
Patent Information
- Application Number
- JP2024032448
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-29
- Filing Date
- 2024-03-04
- Publication Date
- 2024-10-11
AI Technical Summary
Existing semiconductor devices lack effective methods to detect signs of electrode deterioration in main MOSFETs, which can lead to performance degradation and potential failure due to electromigration.
The semiconductor device incorporates a current sensing element and a sense wiring system that adjusts the inter-wiring distance and position of sense positions on the top electrode to maximize the detection of resistance changes, allowing for early detection of electrode deterioration by monitoring changes in the sense ratio.
This configuration enables early detection of electrode deterioration, preventing potential failure by allowing for timely intervention and protecting the main element from damage.
Smart Images

Figure 2024144186000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a semiconductor device. [Background technology]
[0002] 2. Description of the Related Art Conventionally, there is known a semiconductor device including a main MOSFET for driving a load and a sense MOSFET for detecting a current flowing through the main MOSFET (see, for example, Patent Documents 1 and 2). Patent Document 1: JP 2019-144004 A Patent Document 2: JP 2007-121052 A Summary of the Invention [Problem to be solved by the invention]
[0003] It is preferable to be able to detect signs of electrode degradation in the main MOSFET. [Means for solving the problem]
[0004] In order to solve the above problems, a first aspect of the present invention provides a semiconductor device. The semiconductor device may include a main element having an upper surface electrode. Any of the above semiconductor devices may include one or more output wirings connected to the upper surface electrode. Any of the above semiconductor devices may include a first sense wiring connected to a first sense position in the upper surface electrode and transmitting a potential at the first sense position. In any of the above semiconductor devices, the one or more output wirings may include a first proximity wiring having a smallest distance between a connection position to the upper surface electrode and the first sense position. In any of the above semiconductor devices, the first proximity wiring may be connected to a first proximity position of the upper surface electrode. In any of the above semiconductor devices, a first wiring distance from the first sense position to the first proximity position in the upper surface electrode may be different from half the maximum distance from the first proximity position to an end of the upper surface electrode.
[0005] Any of the semiconductor devices described above may include a current sensing element through which a current flows according to a current flowing through the main element. The first sense wiring of any of the semiconductor devices described above may apply a potential at the first sense position to the current sensing element.
[0006] In any of the semiconductor devices described above, the first inter-wiring distance may be equal to or greater than 0 times and equal to or less than 1 / 4 times the maximum distance.
[0007] In any of the above semiconductor devices, the first inter-wiring distance may be 3 / 4 to 1 time the maximum distance.
[0008] In any one of the above semiconductor devices, the top electrode may be rectangular having a short side in a first direction and a long side in a second direction. In any one of the above semiconductor devices, the first sense position and the first proximity position may be aligned in the first direction.
[0009] In any of the above semiconductor devices, the first sense position may be located in a first region when the top electrode is equally divided into a plurality of regions by a straight line parallel to any side of the top electrode, and the first proximity position may be located in a second region.
[0010] In any of the above semiconductor devices, when the top electrode is equally divided into a plurality of regions by a straight line parallel to any side of the top electrode, the first sense position and the first proximity position may be located in the same region.
[0011] In any of the above semiconductor devices, when the top electrode is equally divided into a plurality of regions by a straight line parallel to a first side of the top electrode, and the top electrode is equally divided into a plurality of regions by a straight line parallel to a second side not parallel to the first side, the first sense position may be located in a first region, and the first proximity position may be located in a second region diagonally arranged to the first region.
[0012] In any of the above semiconductor devices, when the top electrode is equally divided into a plurality of regions by a straight line parallel to a first side of the top electrode, and when the top electrode is equally divided into a plurality of regions by a straight line parallel to a second side not parallel to the first side, the first sense position and the first proximity position may be located in the same region.
[0013] In any of the above semiconductor devices, the one or more output wirings may include a second wiring having a second smallest distance between a connection position to the top electrode and the first sense position. In any of the above semiconductor devices, the distance between the connection position of the second wiring and the first sense position may be greater than the distance between the first proximity position and the first sense position.
[0014] Any of the above semiconductor devices may include a second sense wiring connected to a second sense position in the top electrode for applying a potential at the second sense position to the current sensing element. In the top electrode of any of the above semiconductor devices, a second wiring distance from the second sense position to the first proximity position may be different from the first wiring distance.
[0015] In any of the above semiconductor devices, the first sense position may be arranged in a first region when the top electrode is equally divided into a plurality of regions by a straight line parallel to any side of the top electrode, and the second sense position may be arranged in a second region.
[0016] Any of the semiconductor devices described above may include a selection section for selecting either the potential at the first sense position or the potential at the second sense position and applying the selected potential to the current sensing element.
[0017] Any of the above semiconductor devices may include a first sense terminal that outputs the potential at the first sense position to an external device of the semiconductor device. Any of the above semiconductor devices may include a second sense terminal that outputs the potential at the second sense position to an external device of the semiconductor device.
[0018] Any of the above semiconductor devices may include a third sense wiring connected to a third sense position between the first sense position and the second sense position in the top electrode. Any of the above semiconductor devices may include a third sense terminal that outputs a potential at the third sense position to an outside of the semiconductor device.
[0019] Any of the semiconductor devices described above may include a sense ratio measurement unit that measures a sense ratio indicating a ratio of a current flowing through the current sensing element to a current flowing through the output wiring, and an electrode evaluation unit that evaluates the top electrode of the main element based on the sense ratio measured by the sense ratio measurement unit.
[0020] Any of the above semiconductor devices may further include an initial value storage section configured to store an initial value of the sense ratio.In any of the above semiconductor devices, the electrode evaluation section may compare the initial value of the sense ratio with a measured value.
[0021] Any of the above semiconductor devices may further include a control unit that controls a current flowing through the main element based on the sense ratio measured by the sense ratio measurement unit.
[0022] Any of the above semiconductor devices may further include a sense resistor disposed between the current sensing element and a reference potential. In any of the above semiconductor devices, the resistance value of the sense resistor may be variable.
[0023] Any of the above semiconductor devices may include a second sense wiring connected to a second sense position in the top electrode and transmitting a potential at the second sense position. Any of the above semiconductor devices may include a differential output section that outputs a difference between a potential at the first sense position and a potential at the second sense position. In any of the above semiconductor devices, the top electrode may be equally divided into a plurality of regions by a straight line parallel to any side of the top electrode, and the first sense position may be disposed in a first region and the second sense position may be disposed in a second region.
[0024] The above summary of the invention does not list all of the necessary features of the present invention. In addition, subcombinations of these features may also be inventions. [Brief description of the drawings]
[0025] [Figure 1] FIG. 1 is a diagram showing an example of a semiconductor device 100 according to an embodiment of the present invention. [Diagram 2] 2 is a cross-sectional view showing an example of a main element 12. FIG. [Diagram 3] 2 is a diagram showing an example of an arrangement of elements on the top surface of the semiconductor device 100. FIG. [Figure 4] 13 is a diagram illustrating a change in the resistance value of the path from the first sense position 61 to the output position 71 when the first sense position 61 is changed. FIG. [Diagram 5] 11 is a circuit diagram showing the resistance between a first sense position 61-1 and an output position 71 when the first sense position 61-1 is provided in an area 101. FIG. [Figure 6] 13 is a circuit diagram showing the resistance between the first sense position 61-2 and the output position 71 when the first sense position 61-2 is provided in the region 102. FIG. [Figure 7] 13 is a circuit diagram showing the resistance between the first sense position 61-3 and the output position 71 when the first sense position 61-3 is provided in the region 103. FIG. [Figure 8] 13 is a diagram showing an example of the drain-source voltage Vds in the main element 12 for each first sense position 61. FIG. [Figure 9] 13 is a diagram showing an example of the drain-source voltage Vds in the main element 12 for each first sense position 61 when the resistance value of the top electrode 60 increases. FIG. [Figure 10] 13 is a diagram showing a change in the sense voltage Vsns before and after an increase in the resistance value Rsw of the upper electrode 60. FIG. [Figure 11] 13 is a diagram showing a change in the sense voltage Vsns before and after an increase in the resistance value Rsw of the upper electrode 60. FIG. [Figure 12] 13 is a diagram showing a change in the sense voltage Vsns before and after an increase in the resistance value Rsw of the upper electrode 60. FIG. [Figure 13] 13 is a diagram showing a change in the sense voltage Vsns before and after an increase in the resistance value Rsw of the upper electrode 60. FIG. [Figure 14] 13 is a diagram illustrating the relationship between the position Ymos (%) of the first sense position 61 and the fluctuation rate ΔVsns (%) of the sense voltage Vsns. [Figure 15] 2 is a diagram illustrating a first sense position 61 on an upper electrode 60. FIG. [Figure 16] 13 is a diagram showing another example of the arrangement of the first sense position 61. FIG. [Figure 17] 13 is a diagram showing another example of the arrangement of the first sense position 61. FIG. [Figure 18] 13 is a diagram showing another example of the arrangement of the first sense position 61. FIG. [Figure 19] 13 is a diagram showing another example of the arrangement of the first sense position 61. FIG. [Figure 20] 13 is a diagram showing another example of the arrangement of the first sense position 61. FIG. [Figure 21] 13 is a diagram showing another example of the arrangement of the first sense position 61. FIG. [Figure 22] 13 is a diagram showing another example of the arrangement of the first sense position 61. FIG. [Figure 23] 13 is a diagram showing another example of connection of the sense wiring 11. FIG. [Figure 24] 3 is a diagram showing another example of a circuit provided on the semiconductor substrate 10. FIG. [Diagram 25] FIG. 2 is a diagram illustrating another example of the semiconductor device 100. [Figure 26] FIG. 2 is a diagram showing another configuration example of the semiconductor device 100. [Figure 27] 13 is a diagram showing the fluctuation of the first sense voltage Vsns1 before and after an increase in the resistance value Rsw of the upper electrode 60. FIG. [Figure 28] 13 is a diagram showing the fluctuation of the second sense voltage Vsns2 before and after an increase in the resistance value Rsw of the upper electrode 60. FIG. [Figure 29] 13 is a diagram showing the fluctuation of the differential voltage Vsnsd (=Vsns2−Vsns1) between the second sense voltage Vsns2 and the first sense voltage Vsns1 before and after an increase in the resistance value Rsw of the upper electrode 60. FIG. [Diagram 30] FIG. 2 is a diagram showing another configuration example of the semiconductor device 100. [Diagram 31] 13 is a diagram showing another example of connection of the sense wiring 11. FIG. [Diagram 32] FIG. 32 is a diagram showing an example of an equivalent circuit of the semiconductor device 100 described in FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0026] The present invention will be described below through embodiments of the invention, but the following embodiments do not limit the scope of the invention according to the claims. Furthermore, not all of the combinations of features described in the embodiments are necessarily essential to the solution of the invention.
[0027] In this specification, when expressions such as "same" and "identical" are used, in addition to the case where they are strictly the same, they may also include an error due to manufacturing variations, etc. The error is, for example, within ±5%. Furthermore, when expressions related to angles such as "perpendicular" and "parallel" are used, in addition to the case where they are strictly 90 degrees or 180 degrees, they may also include an error due to manufacturing variations, etc. The error is, for example, within ±5 degrees.
[0028] When expressions such as "upper", "lower", "upper", and "lower" are used in this specification, these directions indicate relative directions, for example, these directions do not indicate the direction of gravitational force, and do not indicate directions when the device is implemented.
[0029] 1 is a diagram showing an example of a semiconductor device 100 according to an embodiment of the present invention. The semiconductor device 100 supplies power to a load 200. The semiconductor device 100 of this example is a semiconductor chip formed on a single semiconductor substrate 10. A portion of the configuration of the semiconductor device 100 may be provided outside the semiconductor substrate 10.
[0030] The semiconductor device 100 of this embodiment is a semiconductor chip having an input terminal IN, an output terminal OUT, a high potential terminal Vcc, a low potential terminal GND, and a sense terminal SNS. The semiconductor device 100 may further have a status terminal ST.
[0031] The semiconductor device 100 includes a main element 12, a current sensing element 14, an output wiring 13, and a first sense wiring 11, which are provided on a semiconductor substrate 10. The semiconductor device 100 may further include a control unit 22, a sense resistor 20, an amplifier 16, and a MOSFET 18.
[0032] A predetermined high potential Vcc is applied to the high potential terminal Vcc. A low potential GND lower than the high potential Vcc is applied to the low potential terminal GND. In this example, the low potential GND is a ground potential. Each circuit of the semiconductor device 100 may receive power from a power supply connected to the high potential terminal Vcc.
[0033] The semiconductor device 100 operates in response to an input signal IN input to an input terminal IN, and supplies power to a load 200 connected to an output terminal OUT. The input signal IN in this example may be a signal that indicates, by a binary logical value, whether or not power is supplied to the load 200.
[0034] The main element 12 is provided between the high potential terminal Vcc and the output terminal OUT, and switches whether or not power is supplied from the high potential terminal Vcc to the output terminal OUT. The source terminal of the main element 12 and the output terminal OUT are connected by an output wiring 13. The output wiring 13 may include an aerial wiring such as a wire. The main element 12 in this example is a power semiconductor. The main element 12 is, for example, a power MOSFET, but may also be another power semiconductor such as an IGBT. The control unit 22 in this example switches the on / off state of the main element 12 according to the logical value of the input signal IN.
[0035] A sense current Isns flows through the current sensing element 14 according to the main current Iout flowing through the main element 12. The current sensing element 14 is provided in parallel with the main element 12 and is a power semiconductor having a similar structure to the main element 12. In the example of Fig. 1, the current sensing element 14 and the main element 12 are both MOSFETs. The control unit 22 synchronously transitions the main element 12 and the current sensing element 14 to an ON state and synchronously transitions them to an OFF state.
[0036] A sense current Isns flows through the current sensing element 14, which corresponds to a current obtained by multiplying the main current Iout by a predetermined sense ratio. The sense ratio is determined by the area ratio of the regions through which current flows in the current sensing element 14 and the main element 12, the on-resistance ratio of the current sensing element 14 and the main element 12, and the like. The sense current Isns is smaller than the main current Iout. In other words, the sense ratio is smaller than 1. For example, the sense current Isns may be 1 / 100 or less, or 1 / 1000 or less, of the main current Iout.
[0037] A sense resistor 20 is provided between the current sensing element 14 and the low potential terminal GND. A voltage drop occurs in the sense resistor 20, which is a sense voltage Vsns obtained by multiplying the sense current Isns by its resistance value. The sense current Isns can be calculated from the sense voltage Vsns and the resistance value of the sense resistor 20. The sense terminal SNS may output the sense voltage Vsns to the outside. Since the sense ratio between the sense current Isns and the current sensing element 14 is known, the main current Iout can be calculated from the sense current Isns. The resistance value of the sense resistor 20 may be variable or fixed.
[0038] The first sense wiring 11 is used to equalize the potential (source potential in this example) output by the main element 12 and the potential (source potential in this example) output by the current sensing element 14. This makes it possible to equalize the drain-source voltage Vdsm of the main element 12 and the drain-source voltage Vdss of the current sensing element 14, thereby suppressing fluctuations in the sense ratio due to fluctuations in the output voltage.
[0039] In this example, a MOSFET 18 is provided between the current sensing element 14 and the sense resistor 20. The amplifier 16 also adjusts the voltage applied to the gate terminal of the MOSFET 18 so that the voltage applied by the first sense wiring 11 (e.g., the source potential of the main element 12) and the source potential of the current sensing element 14 become the same. With this configuration, the potential output by the main element 12 (the source potential in this example) and the potential output by the current sensing element 14 (the source potential in this example) can be made the same.
[0040] The sense voltage Vsns is determined by the product of the resistance value Rsns of the sense resistor 20 and the sense current Isns as shown in the following equation. Vsns = Rsns × Isns The sense ratio SR is the ratio (Isns / Iout) of the sense current Isns to the output current Iout. If the on-resistance of the current sensing element 14 is Rons and the on-resistance of the main element 12 is Ronm, the respective currents are expressed by the following formulas. Isns=Vdss / Rons Iout=Vdsm / Ronm In this example, Vdsm=Vdss. Therefore, the sense ratio SR is given by equation (1). SR=Isns / Iout=Ronm / Rons...Equation (1)
[0041] The control unit 22 may output a status signal S indicating the internal status of the semiconductor device 100. The status signal S may be, for example, a signal indicating that an abnormality such as an overcurrent has been detected, or whether or not a load 200 is connected to the output terminal OUT. The semiconductor device 100 may include a MOSFET 34 that switches whether or not the status terminal ST and the low potential terminal GND are connected. The status signal S is applied to the gate terminal of the MOSFET 34. This allows a potential corresponding to the internal status of the semiconductor device 100 to be applied to the status terminal ST.
[0042] Diodes for protecting the internal circuit or external device of the semiconductor device 100 from overvoltage may be provided between the low potential terminal GND and each of the other terminals. In the example of FIG. 1, a diode 26 is provided between the input terminal IN and the low potential terminal GND, a diode 28 is provided between the status terminal ST and the low potential terminal GND, a diode 30 is provided between the sense terminal SNS and the low potential terminal GND, and a diode 32 is provided between the high potential terminal Vcc and the low potential terminal GND. A protection circuit 24 may also be provided between the high potential terminal Vcc and the gate terminal of the main element 12. The protection circuit 24 may include two diodes arranged in series in the opposite directions. The semiconductor device 100 may be provided with a current source 36 that flows a constant current from the input terminal IN to the low potential terminal GND.
[0043] 2 is a cross-sectional view showing an example of the main element 12. The current sensing element 14 may have a similar structure to the main element 12. The main element 12 of this example has a semiconductor substrate 10, a gate electrode 52, an insulating layer 54, an upper electrode 60, and a lower electrode 50. The upper electrode 60 of this example is a source electrode, and the lower electrode 50 is a drain electrode. In this specification, the axis parallel to the depth direction of the semiconductor substrate 10 is the Z axis, and two axes perpendicular to the Z axis are the X axis and the Y axis. The X axis and the Y axis are perpendicular to each other.
[0044] The gate electrode 52 is disposed above the semiconductor substrate 10. An insulating layer 54 is disposed between the gate electrode 52 and the semiconductor substrate 10. The upper electrode 60 is provided in contact with the upper surface of the semiconductor substrate 10. An insulating layer 54 is provided between the upper electrode 60 and the gate electrode 52. The lower electrode 50 is provided in contact with the lower surface of the semiconductor substrate 10.
[0045] The semiconductor substrate 10 is provided with an N-type drift region 42, a P-type base region 44, an N+ type source region 46, and an N+ type drain region 48. The base region 44 and the source region 46 are in contact with an upper electrode 60. The source region 46 and the drift region 42 are separated by the base region 44. On the upper surface of the semiconductor substrate 10, a gate electrode 52 is disposed above the base region 44 between the source region 46 and the drift region 42. When a predetermined on-voltage is applied to the gate electrode 52, the surface layer of the base region 44 between the source region 46 and the drift region 42 is inverted to an N-type region to form a channel. This causes the main element 12 to be in an on state. A drain region 48 is provided below the drift region 42. When the main element 12 is in an on state, an output current Iout flows through the lower electrode 50, the drain region 48, the drift region 42, the base region 44, the source region 46, and the upper electrode 60.
[0046] The on-resistance Ronm of the main element 12 is the resistance in the current path from the lower electrode 50 to the upper electrode 60. The resistance value in the upper electrode 60 is Rsw, the contact resistance between the upper electrode 60 and the source region 46 is Rcs, the resistance of the source region 46 is Rs, the resistance of the base region 44 (channel) is Rch, the resistance of the JFET region is Rj, the resistance of the drift region 42 is Rd, the resistance of the drain region 48 is Rsub, and the contact resistance between the drain region 48 and the lower electrode 50 is Rcd. The on-resistance Ronm of the main element 12 is given by equation (2). Ronm=Rsw+Rcs+Rs+Rch+Rj+Rd+Rsub+Rcd...Formula (2)
[0047] A relatively large current can flow through the main element 12. For example, in a load short-circuit mode in which the output terminal OUT is short-circuited to a ground potential or the like, a large current may flow through the main element 12. When a large current flows continuously through the main element 12, the resistance value Rsw of the top electrode 60 may change due to electromigration. Electromigration is a phenomenon in which metal ions in a metal electrode gradually move, causing a change in the shape of the metal electrode. If electromigration progresses, the resistance value of the top electrode 60 may become too large, and the main element 12 may be destroyed. For this reason, it is preferable to be able to detect signs of deterioration of the top electrode 60 due to electromigration.
[0048] As shown in formula (2), when the resistance Rsw of the top electrode 60 changes, the on-resistance Ronm changes. As shown in formula (1), when the on-resistance Ronm changes, the sense ratio SR changes. Therefore, by monitoring the change in the sense ratio SR, the change in the on-resistance Ronm can be detected, and signs of deterioration of the top electrode 60 can be detected.
[0049] In this example, it is preferable to make the ratio of the resistance value Rsw of the upper electrode 60 of the main element 12 in the on-resistance Ronm of the main element 12 different from the ratio of the resistance value Rsw of the upper electrode of the current sensing element 14 in the on-resistance Rons of the current sensing element 14. This makes it easier for a change in the on-resistance Ronm to appear as a change in the sense ratio SR. For example, even if the resistance value of the upper electrode of the current sensing element 14 changes in the same way, a change in the resistance value Rsw of the upper electrode 60 of the main element 12 is easier to appear as a change in the sense ratio SR. In this example, by adjusting the position at which the first sense wiring 11 is connected in the upper electrode 60 of the main element 12, deterioration of the upper electrode 60 is easier to appear as a change in the sense ratio SR.
[0050] Fig. 3 is a diagram showing an example of the arrangement of elements on the upper surface of the semiconductor device 100. Fig. 3 shows the main element 12, the current sensing element 14, and the circuit unit 15 arranged on the upper surface of the semiconductor substrate 10. The circuit unit 15 includes components other than the main element 12 and the current sensing element 14, such as the amplifier 16, the MOSFET 18, and the control unit 22 shown in Fig. 2.
[0051] The main element 12 has an upper surface electrode 60. The current sensing element 14 has an upper surface electrode 59. One or more output wirings 13 and a first sense wiring 11 are connected to the upper surface electrode 60. The output wirings 13 and the first sense wiring 11 are, for example, aerial wiring such as wires. The position on the upper surface electrode 60 where the output wiring 13 is connected is defined as an output position 71. The position on the upper surface electrode 60 where the first sense wiring 11 is connected is defined as a first sense position 61. In FIG. 3, the positions where the sense wiring 11 is connected to the upper surface electrode 60 are indicated by white circles, and other connection positions are indicated by black circles.
[0052] The first sense wiring 11 is a wiring for applying the potential at the first sense position 61 to the current sensing element 14. The first sense wiring 11 is connected to an amplifier 16 (see FIG. 1) included in a circuit unit 15. Depending on the arrangement of the first sense position 61 on the top electrode 60, the path length from the first sense wiring 11 to the output wiring 13 changes. As a result, the resistance value (corresponding to the resistance Rsw) of the path from the first sense wiring 11 to the output wiring 13 changes.
[0053] The wiring 17 and wiring 19, such as wires, are connected to the top electrode 59 of the current sensing element 14. The wiring 17 is connected to a MOSFET 18 (see FIG. 1) included in the circuit section 15. The wiring 19 is connected to an input terminal of an amplifier 16 included in the circuit section 15. The potential at the position on the top electrode 59 where the wiring 19 is connected is approximately equal to the potential at a first sense position 61 on the top electrode 60. The top electrode 59 is smaller than the top electrode 60. For this reason, even if the connection positions of the wiring 17 and wiring 19 on the top electrode 59 vary, the resistance value of the path from the position of the wiring 19 on the top electrode 59 to the connection position of the wiring 17 does not change much.
[0054] FIG. 4 is a diagram for explaining the change in resistance value of the path from the first sense position 61 to the output position 71 when the first sense position 61 is changed. The upper surface electrode 60 in this example is rectangular when viewed from above, but the upper surface electrode 60 may be square or may have another shape. Viewed from above means observing from a direction perpendicular to the upper surface of the semiconductor substrate 10. In this example, the upper surface electrode 60 is virtually divided into three equal regions (regions 101, 102, and 103) in the long side direction (Y-axis direction). The output position 71 is disposed near the end of the region 103 in the Y-axis direction. The region 101 is the region farthest from the region 103, and the region 102 is the region between the regions 101 and 102.
[0055] Consider a case where a first sense position 61 is provided in the center of any of the regions 101 to 103. The first sense position 61 provided in the region 101 is referred to as a first sense position 61-1, the first sense position 61 provided in the region 102 is referred to as a first sense position 61-2, and the first sense position 61 provided in the region 103 is referred to as a first sense position 61-3.
[0056] Rsw3 denotes the resistance of the path between the first sensing position 61-3 and the output position 71. Since the first sensing position 61-3 is disposed in the vicinity of the output position 71, the resistance value of the resistor Rsw3 is relatively small.
[0057] The resistance of the path between the first sense position 61-2 and the first sense position 61-3 is Rsw2. The resistance of the path between the first sense position 61-2 and the output position 71 is Rsw3+Rsw2.
[0058] The resistance of the path between the first sensing position 61-1 and the first sensing position 61-2 is Rsw1. The resistance of the path between the first sensing position 61-1 and the output position 71 is Rsw3+Rsw2+Rsw1.
[0059] 5 is a circuit diagram showing the resistance between the first sensing position 61-1 and the output position 71 when the first sensing position 61-1 is provided in the region 101. As described above, the resistance of the path between the first sensing position 61-1 and the output position 71 is Rsw3+Rsw2+Rsw1.
[0060] 6 is a circuit diagram showing the resistance between the first sensing position 61-2 and the output position 71 when the first sensing position 61-2 is provided in the region 102. As described above, the resistance of the path between the first sensing position 61-2 and the output position 71 is Rsw3+Rsw2.
[0061] 7 is a circuit diagram showing the resistance between the first sense position 61-3 and the output position 71 when the first sense position 61-3 is provided in the region 103. As described above, the resistance of the path between the first sense position 61-3 and the output position 71 is Rsw3. In this manner, the resistance value Rsw of the top electrode 60 can be adjusted by adjusting the first sense position 61 in the top electrode 60. As described above, it is preferable to arrange the first sense position 61 at a position where a change in the resistance value Rsw of the top electrode 60 is likely to appear as a change in the sense ratio SR.
[0062] Fig. 8 is a diagram showing an example of the drain-source voltage Vds in the main element 12 for each first sense position 61. As shown in Figs. 5 to 7, the voltage Vds of the main element 12 is the voltage between the drain terminal of the main element 12 and the first sense position 61. The drain-source voltage of the current sensing element 14 is controlled by the amplifier 16 or the like in accordance with the voltage Vds.
[0063] FIG. 8 shows characteristic values in an initial state before the resistance value of the upper electrode 60 of the semiconductor device 100 deteriorates. In this example, the on-resistance Ronm of the main element 12 is 75 mΩ, and the output current Iout is 1.5 A. FIG. 8 also shows the resistance value Rsw of the upper electrode 60 from each first sense position 61 to the output position 71. The resistance values Rsw for the first sense position 61-1, the first sense position 61-2, and the first sense position 61-3 were 7.7 mΩ, 7.1 mΩ, and 4.2 mΩ, respectively. At this time, the voltage Vds at the first sense position 61-1 was 95.3 mV, the voltage Vds at the first sense position 61-2 was 98.9 mV, and the voltage Vds at the first sense position 61-3 was 105.8 mV.
[0064] FIG. 9 is a diagram showing an example of the drain-source voltage Vds in the main element 12 for each first sense position 61 when the resistance value of the top electrode 60 increases. In this example, the on-resistance Ronm of the main element 12 increases to 85 mΩ. The output current Iout is 1.5 A, similar to the example of FIG. 8. The resistance values Rsw for the first sense position 61-1, the first sense position 61-2, and the first sense position 61-3 are 17.7 mΩ, 17.1 mΩ, and 9.2 mΩ, respectively. These are increases of 10 mΩ, 10 mΩ, and 5 mΩ, respectively, from the initial values shown in FIG. 8.
[0065] When the resistance value Rsw fluctuates, there also fluctuates the voltage Vds at each first sense position 61. In this example, the voltage Vds at the first sense position 61-1 was 89.4 mV, the voltage Vds at the first sense position 61-2 was 97.3 mV, and the voltage Vds at the first sense position 61-3 was 113.3 mV.
[0066] In the example where the first sense wiring 11 is connected to the first sense position 61-1, the voltage Vds of the main element 12 decreases as the resistance value of the top electrode 60 increases. In this case, the drain-source voltage of the current sensing element 14 also decreases, and the sense current Isns decreases. As a result, the sense voltage Vsns also decreases.
[0067] In the example in which the first sense wiring 11 is connected to the first sense position 61-2, as the resistance value of the top electrode 60 increases, the voltage Vds of the main element 12 decreases, similar to the example in which the first sense position 61-1 is used. However, the amount of decrease in the voltage Vds is smaller than in the example in which the first sense position 61-1 is used. Therefore, the amount of decrease in the sense current Isns and the sense voltage Vsns is also smaller than in the example in which the first sense position 61-1 is used.
[0068] In the example where the first sense wiring 11 is connected to the first sense position 61-3, the voltage Vds of the main element 12 increases with an increase in the resistance value of the top electrode 60. In this case, the drain-source voltage of the current sensing element 14 also increases, and the sense current Isns also increases. As a result, the sense voltage Vsns also increases.
[0069] FIG. 10 is a diagram showing the change in the sense voltage Vsns before and after an increase in the resistance value Rsw of the upper electrode 60. FIG. 10 shows the relationship between the output current Iout and the sense voltage Vsns when the first sense wiring 11 is connected to the first sense position 61-1. In this example, the main element 12 is repeatedly turned on and off at a high temperature for a long time to such an extent that the resistance value Rsw of the upper electrode 60 increases. In FIG. 10, the characteristic before the increase in the resistance value Rsw is shown by a dashed line, and the characteristic after the increase is shown by a solid line. As shown in FIG. 8 and FIG. 9, when the first sense wiring 11 is connected to the first sense position 61-1, the sense voltage Vsns decreases when the resistance value Rsw increases.
[0070] Fig. 11 is a diagram showing changes in the sense voltage Vsns before and after an increase in the resistance value Rsw of the top electrode 60. Fig. 11 shows the relationship between the output current Iout and the sense voltage Vsns when the first sense wiring 11 is connected to the first sense position 61-2. In Fig. 11, the sense voltage Vsns hardly changes before and after the increase in the resistance value Rsw.
[0071] Fig. 12 is a diagram showing changes in the sense voltage Vsns before and after an increase in the resistance value Rsw of the upper electrode 60. Fig. 12 shows the relationship between the output current Iout and the sense voltage Vsns when the first sense wiring 11 is connected to the first sense position 61-3. In Fig. 12, the characteristic before the increase in the resistance value Rsw is shown by a dashed line, and the characteristic after the increase is shown by a solid line. As shown in Figs. 8 and 9, when the first sense wiring 11 is connected to the first sense position 61-3, the sense voltage Vsns increases when the resistance value Rsw increases.
[0072] FIG. 13 is a diagram showing the change in the sense voltage Vsns before and after an increase in the resistance value Rsw of the upper electrode 60. FIG. 12 shows the relationship between the output current Iout and the sense voltage Vsns when the first sense wiring 11 is connected to the first sense position 61-4. The first sense position 61-4 is disposed closer to the output position 71 than the first sense position 61-3. In this example, the first sense position 61-4 is disposed side by side with the output position 71 in the X-axis direction. When the first sense wiring 11 is connected to the first sense position 61-4, the sense voltage Vsns increases as the resistance value Rsw increases. Since the first sense position 61-4 is disposed near the output position 71, the fluctuation in the sense voltage Vsns becomes even larger before and after the increase in the resistance value Rsw.
[0073] 14 is a diagram illustrating the relationship between the position Ymos (%) of the first sense position 61 and the fluctuation rate ΔVsns (%) of the sense voltage Vsns. The upper electrode 60 of this example has a pair of long sides 67 parallel to the Y axis and a pair of short sides 68 parallel to the X axis. The output position 71 is provided near one of the short sides 68. In the Y axis direction, the position where the output position 71 is provided is set to the +100% position, and the position of the short side 68 opposite the output position 71 is set to the -100% position. The center between the output position 71 and the short sides 68 is set to the 0% position.
[0074] In this example, the maximum value of the fluctuation in voltage Vds of main element 12 is set to ΔVdsm. As shown in Figures 10 to 13, when first sense position 61 is placed at a position where Ymos = +100%, the fluctuation in voltage Vds is maximum. The fluctuation ΔVds in voltage Vds of main element 12 is expressed by equation (3) using the position Ymos of first sense position 61. ΔVds = ΔVdsm × Ymos (3)
[0075] From the above-mentioned equation (1) etc., the sense voltage Vsns is given by equation (4). Vsns = Iout × Rsns × SR (4) Iout remains at a constant value with almost no fluctuation even if the resistance value Rsw of the main element 12 fluctuates. As described above, the sense ratio SR is the ratio Ronm / Rons of the on-resistance Ronm of the main element 12 to the on-resistance Rons of the current sense element 14. Since the current flowing through the current sense element 14 is very small compared to the current flowing through the main element 12, electromigration is unlikely to occur in the top electrode 59 of the current sense element 14. For this reason, the on-resistance Rons of the current sense element 14 hardly fluctuates. In addition, since the top electrode 59 of the current sense element 14 is very small, there is almost no fluctuation in the resistance value due to variations in the connection position of the wiring 19, etc.
[0076] Therefore, the sense voltage Vsns fluctuates according to the fluctuation ratio of the on-resistance Ronm of the main element 12. If the sense voltage before the fluctuation of the on-resistance Ronm is Vsns1 and the sense voltage after the fluctuation is Vsns2, then the following formula is obtained. Vsns1 = Iout × Rsns × SR Vsns2=Iout×ΔVds×Rsns×SR=Iout×ΔVdsm×Ymos×Rsns×SR
[0077] Since the output current Iout and the sense resistance Rsns are constant values, the fluctuation rate of the sense voltage ΔVsns=Vsns2 / Vsns1 is expressed by the following equation. ΔVsns = ΔVdsm × Ymos The larger the rate of change ΔVsns of the sense voltage, the easier it is to detect the change in the resistance value Rsw of the upper electrode 60. In the semiconductor device 100, it is preferable to adjust the first sense position 61 so that the rate of change ΔVsns becomes larger.
[0078] 15 is a diagram for explaining a first sense position 61 on the top surface electrode 60. In this example, the one or more output wirings 13 that has the shortest distance between the connection position to the top surface electrode 60 and the first sense position 61 is defined as a first proximate wiring 91. The position at which the first proximate wiring 91 is connected to the top surface electrode 60 is defined as a first proximate position 81.
[0079] In the top electrode 60, the distance from the first sense position 61 to the first proximity position 81 is defined as the first inter-wiring distance LW1. In addition, the maximum distance from the first proximity position 81 to the end of the top electrode 60 is defined as LM. A straight line connecting the first proximity position 81 and the first sense position 61 is defined as a straight line 65. The maximum distance LM may be the maximum distance from the first proximity position 81 to the end of the top electrode 60 in a direction parallel to the straight line 65.
[0080] When the top electrode 60 is rectangular, a distance LW1' between the first proximity position 81 and the first sense position 61 in a direction parallel to the long side 67 (the Y-axis direction in FIG. 15) may be used as the first inter-wiring distance LW1. Also, a maximum distance LM' between the first proximity position 81 and the end of the top electrode 60 in a direction parallel to the long side 67 may be used as the above-mentioned maximum distance LM.
[0081] In the top electrode 60, the first wiring distance LW1 from the first sense position 61 to the first proximity position 81 is different from half (LM / 2) of the maximum distance LM from the first proximity position 81 to the end of the top electrode 60. That is, the first sense position 61 is disposed at a position other than the center between the first proximity position 81 and the end of the top electrode 60. With this arrangement, as shown in FIG. 10 to FIG. 14, the fluctuation in the resistance value Rsw of the top electrode 60 appears as a fluctuation in the sense ratio SR (sense voltage Vsns). Therefore, the fluctuation in the resistance value Rsw of the top electrode 60 can be detected by detecting the fluctuation in the sense ratio SR (or the sense voltage Vsns). Since the fluctuation in the resistance value Rsw of the top electrode 60 can be detected early, the main element 12 can be prevented from being destroyed.
[0082] As described in FIG. 10 to FIG. 14, the sense ratio SR (or sense voltage Vsns) varies more greatly due to the variation in the resistance value Rsw of the upper electrode 60 as the position Ymos of the first sense position 61 moves away from the 0% position. The first wiring distance LW1 may be 0 or more and 1 / 4 or less of the maximum distance LM. That is, Ymos shown in FIG. 14 may be +100% or less, +50% or more. The first wiring distance LW1 may be 1 / 8 or less, 1 / 10 or less, or 1 / 20 or less of the maximum distance LM. That is, Ymos shown in FIG. 14 may be +75% or more, +80% or more, or +90% or more.
[0083] The first wiring distance LW1 may be 3 / 4 times or more and 1 time or less of the maximum distance LM. That is, Ymos shown in FIG. 14 may be -100% or more and -50% or less. The first wiring distance LW1 may be 7 / 8 times or more, 9 / 10 times or more, or 19 / 20 times or more of the maximum distance LM. That is, Ymos shown in FIG. 14 may be -75% or less, -80% or less, or -90% or less.
[0084] 16 is a diagram showing another arrangement example of the first sense positions 61. The first sense positions 61 in this example are aligned in a first direction parallel to the short side 68 of the top electrode 60. In this example, the fluctuation in the sense ratio SR (sense voltage Vsns) is as shown in FIG. 13. Therefore, it is possible to maximize the fluctuation in the sense ratio SR (sense voltage Vsns) due to the fluctuation in the resistance value Rsw of the top electrode 60, making it easier to detect the fluctuation in the resistance value Rsw of the top electrode 60.
[0085] 17 is a diagram showing another example of the arrangement of the first sense position 61. In this example, the top electrode 60 is virtually divided into a plurality of equal regions by a straight line 69 parallel to one of the sides of the top electrode 60. In FIG. 17, the top electrode 60 is divided into two equal regions by a straight line 69 parallel to a short side 68. The two equal regions of the top electrode 60 are referred to as a first region 111 and a second region 112.
[0086] In this example, the first sense position 61 is disposed in the first region 111, and the first proximity position 81 is disposed in the second region 112. This allows the fluctuation of the resistance value Rsw of the top electrode 60 to be detected from the fluctuation of the sense ratio SR. The top electrode 60 may be divided into more regions by a plurality of straight lines 69. For example, the top electrode 60 may be divided into N regions (N is an integer of 3 or more) in the Y-axis direction by a plurality of straight lines 69. N may be an integer of 4 or more, 5 or more, or 10 or more. In this case, too, the region where the first proximity position 81 is provided is defined as the second region 112, and the region where the first sense position 61 is disposed is defined as the first region 111. The first region 111 may be the region farthest from the second region 112 among the plurality of regions.
[0087] FIG. 18 is a diagram showing another arrangement example of the first sense position 61. In this example, the top electrode 60 is virtually divided by a straight line 69, as in the example of FIG. 17. In this example, both the first sense position 61 and the first proximity position 81 are arranged in the same second region 112. This makes it possible to detect a change in the resistance value Rsw of the top electrode 60 from a change in the sense ratio SR. The top electrode 60 may be divided into more regions by a plurality of straight lines 69. For example, the top electrode 60 may be divided into N regions (N is an integer of 3 or more) in the Y-axis direction by a plurality of straight lines 69. N may be an integer of 4 or more, an integer of 5 or more, or an integer of 10 or more. In this case, the first sense position 61 and the first proximity position 81 may be arranged in the same second region 112. The second region 112 may be an area arranged at the very end in the Y-axis direction, or may be an area arranged other than the end.
[0088] Fig. 19 is a diagram showing another example of the arrangement of the first sense position 61. In this example, the top electrode 60 is equally divided into a plurality of regions in the Y-axis direction by a straight line 69 parallel to a first side (e.g., short side 68) of the top electrode 60, and is equally divided into a plurality of regions in the X-axis direction by a straight line 65 parallel to a second side (e.g., long side 67) that is not parallel to the first side. In the example of Fig. 19, the top electrode 60 is equally divided into two in each of the X-axis and Y-axis directions.
[0089] In this example, the first sense position 61 is disposed in the first region 111, and the first proximity position 81 is disposed in the second region 112. The first region 111 and the second region 112 are regions disposed diagonally to each other in the top surface electrode 60. In other words, the first region 111 and the second region 112 are disposed point-symmetrically with respect to the center point 63 of the top surface electrode 60. This makes it possible to detect a fluctuation in the resistance value Rsw of the top surface electrode 60 from a fluctuation in the sense ratio SR.
[0090] The upper electrode 60 may be divided into more regions by a plurality of straight lines 69 and a plurality of straight lines 65. For example, the upper electrode 60 may be divided into N (N is an integer of 3 or more) in the Y-axis direction by a plurality of straight lines 69, and may be divided into M (M is an integer of 3 or more) in the X-axis direction by a plurality of straight lines 65. N and M may each be an integer of 4 or more, 5 or more, or 10 or more. N and M may be the same integer or different integers. In this case, the region where the first proximity position 81 is provided is defined as the second region 112, and the region where the first sense position 61 is disposed is defined as the first region 111. The first region 111 and the second region 112 may be regions disposed diagonally (point symmetrically). The first region 111 and the second region 112 may each be a region including any side of the upper electrode 60, or may be a region including any corner. This increases the distance between the first region 111 and the second region 112, making it easier to detect fluctuations in the resistance value Rsw of the upper electrode 60.
[0091] Fig. 20 is a diagram showing another arrangement example of the first sense position 61. In this example, the top electrode 60 is equally divided into a plurality of regions in the Y-axis direction (halved in Fig. 20) by a straight line 69 parallel to a first side (e.g., short side 68) of the top electrode 60, and is equally divided into a plurality of regions in the X-axis direction (halved in Fig. 20) by a straight line 65 parallel to a second side (e.g., long side 67) that is not parallel to the first side.
[0092] In this example, both the first sense position 61 and the first proximity position 81 are disposed in the same second region 112. This makes it possible to detect a fluctuation in the resistance value Rsw of the top electrode 60 from a fluctuation in the sense ratio SR.
[0093] The upper electrode 60 may be divided into more regions by a plurality of straight lines 69 and a plurality of straight lines 65. For example, the upper electrode 60 may be divided into N regions (N is an integer of 3 or more) in the Y-axis direction by a plurality of straight lines 69, and may be divided into M regions (M is an integer of 3 or more) in the X-axis direction by a plurality of straight lines 65. N and M may each be an integer of 4 or more, an integer of 5 or more, or an integer of 10 or more. N and M may be the same integer or different integers. In this case, the first proximity position 81 and the first sense position 61 may be provided in the same second region 112. The second regions 112 may each be a region including any side of the upper electrode 60, or may be a region including any corner.
[0094] 21 is a diagram showing another example of the arrangement of the first sense position 61. In this example, the top electrode 60 is virtually divided by a straight line 69 parallel to one of the sides of the top electrode 60. In FIG. 21, the top electrode 60 is equally divided into a plurality of regions (divided into two in FIG. 21) by the straight line 69 parallel to the short side 68. The two equally divided regions of the top electrode 60 are referred to as a first region 111 and a second region 112.
[0095] In this example, one or more output positions 71 are arranged in both the first region 111 and the second region 112. An output wiring 13 is connected to each output position 71. In this example, the number of output wirings 13 connected to the second region 112 (i.e., the number of output positions 71) is greater than the number of output wirings 13 connected to the first region 111 (i.e., the number of output positions 71).
[0096] The first sense position 61 is disposed in the first region 111. However, the relationship between the first sense position 61 and the first proximal position 81 is the same as any of the aspects described in this specification. The first sense position 61 may be disposed closer to the short sides 68 in the Y-axis direction than any of the output positions 71. In other words, the first sense position 61 may be disposed between any of the short sides 68 and the output position 71 closest to that short side 68 in the Y-axis direction. Even with this example, it is possible to detect a fluctuation in the resistance value Rsw of the top electrode 60 from a fluctuation in the sense ratio SR.
[0097] FIG. 22 is a diagram showing another arrangement example of the first sense position 61. In this example, the second wire 13-2 is the one having the second smallest distance L2 between the connection position to the top electrode 60 and the first sense position 61 among the multiple output wires 13. The distance between the output position 71-2 of the second wire 13-2 and the first sense position 61 is L2. The distance L2 is greater than the first wire-to-wire distance LW1. Even with such an arrangement, the variation in the resistance value Rsw of the top electrode 60 can be detected from the variation in the sense ratio SR. The distance L2 may be twice or more, three times or more, or five times or more, as large as the first wire-to-wire distance LW1. The greater the distance L2 is (i.e., the more the first sense position 61 is arranged offset), the easier it is to detect the variation in the resistance value Rsw of the top electrode 60 from the variation in the sense ratio SR.
[0098] In the Y-axis direction, the first sense position 61 may be disposed between the first proximity position 81 and the output position 71-2. The first proximity position 81, the first sense position 61, and the output position 71-2 may be disposed on the same straight line 65. The straight line 65 may pass through any part of each of the connection positions. The straight line 65 may pass through the center of each of the connection positions.
[0099] 23 is a diagram showing another connection example of the sense wiring 11. In this example, a first sense wiring 11-1 and a second sense wiring 11-2 are connected to an upper surface electrode 60. A position where the first sense wiring 11-1 is connected to the upper surface electrode 60 is a first sense position 61, and a position where the second sense wiring 11-2 is connected to the upper surface electrode 60 is a second sense position 62. The second sense wiring 11-2 is a wiring for applying a potential at the second sense position 62 to the current sensing element 14.
[0100] The distance between the second sense position 62 and the first proximity position 81 is defined as a second inter-wire distance LW2. The second inter-wire distance LW2 is different from the first inter-wire distance LW1. The second inter-wire distance LW2 may be two or more times, four or more times, or ten or more times the first inter-wire distance LW1.
[0101] The first inter-wire distance LW1 may be greater than half the maximum distance LM and equal to or less than 1 time the maximum distance LM. The second inter-wire distance LW2 may be less than half the maximum distance LM and equal to or greater than 0 times the maximum distance LM. With this arrangement, when the resistance value Rsw of the top electrode 60 increases, the voltage Vds at the first sense position 61 decreases and the voltage Vds at the second sense position 62 increases. Therefore, by comparing the fluctuation of the voltage Vds at the first sense position 61 with the fluctuation of the voltage Vds at the second sense position 62, the increase in the resistance value Rsw of the top electrode 60 can be detected with high accuracy. For example, when the voltage Vds at the first sense position 61 and the voltage Vds at the second sense position 62 both increase or decrease, it can be determined that the fluctuation in the voltage is not due to the fluctuation in the resistance value Rsw of the top electrode 60.
[0102] The first inter-wire distance LW1 may be 3 / 4 times or more, 7 / 8 times or more, 9 / 10 times or more, or 19 / 20 times or more of the maximum distance LM. The second inter-wire distance LW2 may be 1 / 4 or less, 1 / 8 times or less, 1 / 10 times or less, or 1 / 20 times or less of the maximum distance LM. By moving one of the first sense position 61 and the second sense position 62 closer to the first proximity position 81 and moving the other away from the first proximity position 81, the fluctuation in the resistance value Rsw of the upper surface electrode 60 can be detected with higher accuracy.
[0103] When the top electrode 60 is virtually divided equally into a plurality of regions (for example, into two equal parts) by a straight line 69 parallel to any one of the sides of the top electrode 60, the first sense position 61 and the second sense position 62 may be disposed in different regions. In this example, the first sense position 61 is disposed in the first region 111, and the first proximity position 81 is disposed in the second region 112. The top electrode 60 may be divided into more regions by the straight lines 69. For example, the top electrode 60 may be divided into N (N is an integer of 3 or more) in the Y-axis direction by the straight lines 69. N may be an integer of 4 or more, 5 or more, or 10 or more. One or more other regions may be sandwiched between the first region 111 in which the first sense position 61 is provided and the second region 112 in which the second sense position 62 is provided. The first region 111 and the second region 112 may each be a region including a short side 68.
[0104] The first sense position 61 may be provided in the first region 111 diagonally opposite to the second region 112 in which the first proximity position 81 is provided, similar to the first sense position 61 described in Fig. 19. The second sense position 62 may be provided in the same second region 112 as the first proximity position 81, similar to the first sense position 61 described in Fig. 20.
[0105] FIG. 24 is a diagram showing another example of a circuit provided on the semiconductor substrate 10. The semiconductor device 100 of this example includes a selection unit 93 in addition to the configuration described in FIG. 1 to FIG. 23. The selection unit 93 selects either the voltage at the first sense position 61 or the voltage at the second sense position 62 described in FIG. 23 and applies it to the current sensing element 14. The selection unit of this example selects either voltage and inputs it to the amplifier 16. In FIG. 24, the resistance value of the top surface electrode 60 from the first sense position 61 to the second sense position 62 is Rswa, and the resistance value of the top surface electrode 60 from the second sense position 62 to the first proximity position 81 is Rswb.
[0106] 1 may control the selection unit 93 to select one of the voltages. The selection unit 93 in this example has MOSFETs 95 that switch whether or not to connect the first sense position 61 and the second sense position 62 to the amplifier 16. The voltage at the sense position is input to the amplifier 16 by selectively turning on one of the MOSFETs 95.
[0107] During operation of the semiconductor device 100, the control unit 22 may select a preset one of the first sense position 61 and the second sense position 62 and connect it to the amplifier 16. When a change in the sense ratio SR (or the sense voltage Vsns) is detected, the control unit 22 may control the selection unit 93 to select the other one of the first sense position 61 and the second sense position 62. The control unit 22 may store an initial value of the sense ratio SR (or the sense voltage Vsns) for each of the first sense position 61 and the second sense position 62. As in the example of FIG. 10 and the example of FIG. 12 or FIG. 13, it is preferable that the first sense position 61 and the second sense position 62 are arranged so that the signs of the changes in the sense ratio SR (or the sense voltage Vsns) are different. Then, when the selection unit 93 switches the selected sense position, if the sign of the change in the sense ratio SR (or the sense voltage Vsns) is inverted, the control unit 22 may determine that the resistance value Rsw of the upper electrode 60 has changed.
[0108] By such control, the fluctuation in the resistance value Rsw of the top electrode 60 can be detected with high accuracy. The selection unit 93 may select the second sense position 62 when the semiconductor device 100 is in operation. As described in FIG. 10 to FIG. 13, the closer the sense position is to the first approach position 81, the more likely the sense ratio SR (or the sense voltage Vsns) is to fluctuate due to the fluctuation in the resistance value Rsw of the top electrode 60. For this reason, the fluctuation in the resistance value Rsw of the top electrode 60 can be detected earlier. Then, by switching to the first sense position 61 and measuring the sense ratio SR, it can be determined whether the fluctuation in the sense ratio SR is due to the fluctuation in the resistance value of the top electrode 60.
[0109] The semiconductor device 100 may have a current sensing element 14, a MOSFET 18, an amplifier 16, a sense resistor 20, and a sense terminal SNS instead of the selection unit 93, for each of the first sense position 61 and the second sense position 62. In this case, the sense ratios SR (or sense voltages Vsns) for the first sense position 61 and the second sense position 62 can be measured in parallel.
[0110] 25 is a diagram showing another example of the semiconductor device 100. The semiconductor device 100 of this example further includes at least a part of the sense ratio measurement section 180, the electrode evaluation section 182, and the initial value storage section 184. Each of the sense ratio measurement section 180, the electrode evaluation section 182, and the initial value storage section 184 may be provided on the semiconductor substrate 10, or may be provided outside the semiconductor substrate 10. The control section 22 may function as at least a part of the sense ratio measurement section 180, the electrode evaluation section 182, and the initial value storage section 184.
[0111] The sense ratio measuring section 180 measures a sense ratio SR indicating the ratio between the sense current Isns flowing through the current sensing element 14 and the output current Iout flowing through the output wiring 13. When the output current Iout is constant, the sense ratio measuring section 180 may measure the sense current Isns or the sense voltage Vsns as an index indicating the sense ratio SR. When the output current Iout is not constant, the sense ratio measuring section 180 may further measure the output current Iout. The sense ratio measuring section 180 may measure the sense ratio SR at set intervals, in response to an instruction from a user or the like, or constantly.
[0112] The electrode evaluation unit 182 evaluates the top electrode 60 of the main element 12 based on the sense ratio SR assumed by the sense ratio measurement unit 180. The electrode evaluation unit 182 may evaluate the top electrode 60 based on the deviation between the initial value of the sense ratio SR and the measured value. The electrode evaluation unit 182 may determine that the top electrode 60 has deteriorated when the deviation (e.g., ΔVsns) is equal to or greater than a reference value.
[0113] The initial value storage unit 184 stores an initial value of the sense ratio SR (or an index indicating the sense ratio SR). The initial value storage unit 184 may store a value measured by the sense ratio measurement unit 180 at the time of shipment of the semiconductor device 100, or may store a value set by a user, etc. The electrode evaluation unit 182 compares the initial value of the sense ratio SR with the measured value.
[0114] The control unit 22 shown in FIG. 1 may control the current flowing through the main element 12 based on the sense ratio SR measured by the sense ratio measurement unit 180. For example, the control unit 22 may reduce or cut off the current flowing through the main element 12 when the fluctuation of the sense ratio SR becomes larger than a predetermined reference value. This makes it possible to protect the main element 12. The control unit 22 may temporarily increase the output current Iout flowing through the main element 12 when the fluctuation of the sense ratio SR becomes larger than a predetermined reference value. The electrode evaluation unit 182 may evaluate the top electrode 60 based on the sense ratio SR measured by the sense ratio measurement unit 180 with the current flowing through the main element 12 increased. This allows the degradation of the top electrode 60 to be measured again when a sign of deterioration of the top electrode 60 is detected by increasing the output current Iout to make the fluctuation of the sense ratio SR more noticeable. When the measurement is completed with the current flowing through the main element 12 increased, the control unit 22 may restore the current flowing through the main element 12.
[0115] The control unit 22 may control the resistance value of the sense resistor 20. For example, when the fluctuation of the sense voltage Vsns exceeds a reference value, the control unit 22 may temporarily increase the resistance value of the sense resistor 20. By temporarily increasing the resistance value of the sense resistor 20, the fluctuation range of the sense voltage Vsns can be increased, and the amount of fluctuation of the sense voltage Vsns can be detected with high accuracy. When the measurement of the amount of fluctuation of the sense voltage Vsns is completed, the control unit 22 may return the resistance value of the sense resistor 20 to its original value. This makes it possible to improve the measurement accuracy of the sense voltage Vsns while suppressing an increase in power consumption. The sense resistor 20 may be an external resistor of the semiconductor device 100. In other words, the sense resistor 20 may be an external resistor.
[0116] Fig. 26 is a diagram showing another configuration example of the semiconductor device 100. Fig. 26 shows an example of an equivalent circuit of the semiconductor device 100 and a load 200. In the semiconductor device 100 in Fig. 26, configurations other than the main element 12, the current sensing element 14, the sense wiring 11, the amplifier 16, the MOSFET 18, the sense resistor 20, and each terminal are omitted.
[0117] In the semiconductor device 100 of this example, a first sense wiring 11-1 is connected to a first sense position 61, and a second sense wiring 11-2 is connected to a second sense position 62, similar to the example described in Fig. 23. The arrangement of the first sense position 61 and the second sense position 62 is similar to the example in Fig. 23. The first sense position 61 is arranged in a first region 111 (see Fig. 23), and the second sense position 62 is arranged in a second region 112 (see Fig. 23).
[0118] 26 shows main element 12a, main element 12c, resistor Rswa, and resistor Rswc as the structure of main element 12. Resistance Rswa in this example indicates the resistance from the first sense position 61 to the second sense position 62, and resistance Rswc in this example indicates the resistance from the second sense position 62 to the first proximity position 81. Furthermore, main element 12a indicates a portion of main element 12 in the vicinity of resistor Rswa, and main element 12c indicates a portion of main element 12 in the vicinity of resistor Rswc.
[0119] The semiconductor device 100 shown in Figures 1 to 25 includes one sense terminal SNS. The semiconductor device 100 of this example includes a first sense terminal SNS1 and a second sense terminal SNS2. The first sense terminal SNS1 outputs the potential of the first sense position 61 described in Figure 23 etc. to the outside of the semiconductor device 100. The second sense terminal SNS2 outputs the potential of the second sense position 62 described in Figure 23 etc. to the outside of the semiconductor device 100.
[0120] The semiconductor device 100 of this example includes an amplifier 16, a MOSFET 18, and a sense resistor 20 for each of the first sense terminal SNS1 and the second SNS terminal SNS2. The MOSFET 18-1 is connected between the source terminal of the current sensing element 14 and the ground potential GND. The sense resistor 20-1 is connected between the source terminal of the MOSFET 18-1 and the ground potential GND. The source terminal of the MOSFET 18-1 is connected to the first sense terminal SNS1. The MOSFET 18-2 is connected between the source terminal of the current sensing element 14 and the ground potential GND. The sense resistor 20-2 is connected between the source terminal of the MOSFET 18-2 and the ground potential GND. The source terminal of the MOSFET 18-2 is connected to the second sense terminal SNS2.
[0121] The amplifier 16-1 adjusts the voltage applied to the gate terminal of the MOSFET 18-1 so that the potential of the first sense wiring 11-1 and the drain potential of the MOSFET 18-1 are the same. With this configuration, the first sense voltage Vsns1 at the first sense position 61 is output from the first sense terminal SNS1. The amplifier 16-2 adjusts the voltage applied to the gate terminal of the MOSFET 18-1 so that the potential of the second sense wiring 11-2 and the drain potential of the MOSFET 18-2 are the same. With this configuration, the second sense voltage Vsns2 at the second sense position 62 is output from the second sense terminal SNS2.
[0122] The first sense voltage Vsns1 at the first sense terminal SNS1 changes in the same manner as the voltage at the first sense position 61-1 shown in Fig. 10 before and after an increase in the resistance value Rsw of the top electrode 60. In other words, when the resistance value Rsw increases, the first sense voltage Vsns1 decreases.
[0123] 12, before and after an increase in the resistance value Rsw of the top electrode 60. In other words, when the resistance value Rsw increases, the second sense voltage Vsns2 increases.
[0124] The semiconductor device 100 may further include the electrode evaluation unit 182 described in FIG. 25. The electrode evaluation unit 182 may be provided outside the semiconductor device 100. The electrode evaluation unit 182 in this example evaluates the top electrode 60 of the main element 12 based on the difference between the first sense voltage Vsns1 output by the first sense terminal SNS1 and the second sense voltage Vsns2 output by the second sense terminal SNS2. As described above, one of the first sense voltage Vsns1 and the second sense voltage Vsns2 increases and the other decreases in response to an increase in the resistance value Rsw of the top electrode 60. Therefore, by calculating the difference between them, the sum of the fluctuation of the first sense voltage Vsns1 and the fluctuation of the second sense voltage Vsns2 can be detected, and the detection sensitivity of the fluctuation of the sense voltage with respect to the increase in the resistance value Rsw can be improved.
[0125] The greater the distance between the first sense position 61 and the second sense position 62 (for example, LW1-LW2 in FIG. 23), the greater the resistance Rswa and the greater the difference between the first sense voltage Vsns1 and the second sense voltage Vsn2. The distance may be 3 / 4 times or more, 7 / 8 times or more, 9 / 10 times or more, or 19 / 20 times or more of the maximum distance LM (see FIG. 23).
[0126] The electrode evaluation unit 182 may evaluate the upper electrode 60 based on the deviation between the initial value of the difference and the measured value of the difference. When the deviation is equal to or greater than a reference value, the electrode evaluation unit 182 may determine that the upper electrode 60 has deteriorated.
[0127] The semiconductor device 100 may further include the initial value storage unit 184 described in FIG. 25. The initial value storage unit 184 may be provided outside the semiconductor device 100. The initial value storage unit 184 stores an initial value of the difference between the first sense voltage Vsns1 and the second sense voltage Vsns2. The initial value storage unit 184 may store a value measured at the time of shipment of the semiconductor device 100, or may store a value set by a user, etc. The electrode evaluation unit 182 may compare the initial value stored in the initial value storage unit 184 with the measured value.
[0128] Control unit 22 described in Fig. 1 and the like may control the current flowing through main element 12 based on the evaluation result in electrode evaluation unit 182. The operation of control unit 22 is similar to the example in Fig. 25. For example, control unit 22 may reduce or cut off the current flowing through main element 12 when the variation of the above-mentioned difference from the initial value becomes larger than a predetermined reference value. This makes it possible to protect main element 12.
[0129] Fig. 27 is a diagram showing the fluctuation of the first sense voltage Vsns1 before and after an increase in the resistance value Rsw of the top electrode 60. The upper graph in Fig. 27 shows the relationship between the output current Iout and the first sense voltage Vsns1 before and after an increase in the resistance value Rsw of the top electrode 60. The upper graph in Fig. 27 is similar to the graph in Fig. 10.
[0130] 27 is a graph showing the amount of change (first change voltage ΔVsns1) in the first sense voltage Vsns1 after the increase in the resistance value Rsw, relative to the first sense voltage Vsns1 before the increase in the resistance value Rsw. The negative values on the vertical axis in the graph indicate that the first sense voltage Vsns1 after the increase in the resistance value Rsw is lower than the first sense voltage Vsns1 before the increase in the resistance value Rsw.
[0131] Fig. 28 is a diagram showing the fluctuation of the second sense voltage Vsns2 before and after an increase in the resistance value Rsw of the top electrode 60. The upper graph in Fig. 28 shows the relationship between the output current Iout and the second sense voltage Vsns2 before and after an increase in the resistance value Rsw of the top electrode 60. The upper graph in Fig. 28 is similar to the graph in Fig. 12.
[0132] 28 is a graph showing the amount of change (second change voltage ΔVsns2) of the second sense voltage Vsns2 after the increase in the resistance value Rsw relative to the second sense voltage Vsns2 before the increase in the resistance value Rsw. The plus value on the vertical axis in the graph indicates that the second sense voltage Vsns2 after the increase in the resistance value Rsw is higher than the second sense voltage Vsns2 before the increase in the resistance value Rsw.
[0133] Fig. 29 is a diagram showing the fluctuation of the differential voltage Vsnsd (=Vsns2-Vsns1) between the second sense voltage Vsns2 and the first sense voltage Vsns1 before and after an increase in the resistance value Rsw of the top electrode 60. The upper graph in Fig. 29 shows the relationship between the output current Iout and the differential voltage Vsnsd before and after an increase in the resistance value Rsw of the top electrode 60.
[0134] The lower graph in FIG. 29 shows the amount of change (differential change voltage ΔVsnsd) in the differential voltage Vsnsd after the increase in the resistance value Rsw, relative to the differential voltage Vsnsd before the increase in the resistance value Rsw. The plus vertical axis in the graph indicates that the differential voltage Vsnsd after the increase in the resistance value Rsw is higher than the differential voltage Vsnsd before the increase in the resistance value Rsw. The graph shows the second change voltage ΔVsns2 shown in FIG. 28 with a dashed line. As shown in the graph, it can be seen that the differential voltage Vsnsd changes with a larger gain relative to the change in the resistance value Rsw. Therefore, the change in the resistance value Rsw can be detected with high sensitivity.
[0135] Fig. 30 is a diagram showing another configuration example of the semiconductor device 100. Fig. 30 shows an example of an equivalent circuit of the semiconductor device 100 and the load 200. In the semiconductor device 100 in Fig. 30, configurations other than the main element 12, the differential output section 77, the resistors 75 and 76, and the respective terminals are omitted. The structure of the main element 12 is similar to the example in Fig. 26.
[0136] 26, in the semiconductor device 100 of this example, a first sense wiring 11-1 is connected to a first sense position 61, and a second sense wiring 11-2 is connected to a second sense position 62. The arrangement of the first sense position 61 and the second sense position 62 is the same as in the example of FIG.
[0137] The differential output unit 77 outputs the difference between the potential at the first sense position 61 transmitted by the first sense wire 11-1 and the potential at the second sense position 62 transmitted by the second sense wire 11-2. The differential output unit 77 in this example is a differential amplifier circuit in which the first sense wire 11-1 is connected to a positive input terminal and the second sense wire 11-2 is connected to a negative input terminal.
[0138] Resistor 75 is connected between the output terminal and the negative input terminal of differential output unit 77. Resistor 76 is connected between the negative input terminal of differential output unit 77 and low potential terminal GND. Differential output unit 77 amplifies and outputs the difference between the potential at first sense position 61 and the potential at second sense position 62 with an amplification factor according to the resistance ratio of resistors 75 and 76. When resistor 75 has a resistance value R75 and resistor 76 has a resistance value R76, the amplification factor G of differential output unit 77 is expressed by the following equation. G=1+R76 / R75
[0139] The semiconductor device 100 of this example has a differential output terminal AMP. The differential output terminal AMP is connected to the output terminal of the differential output unit 77. Since the semiconductor device 100 of this example outputs the difference between the potential at the first sense position 61 and the potential at the second sense position 62, deterioration of the upper electrode 60 can be detected with high accuracy by monitoring the difference.
[0140] When the value of a current flowing through the main element 12 is not detected, the semiconductor device 100 does not need to include the current sensing element 14, the amplifier 16, the MOSFET 18, the sense resistor 20, and the sense terminal SNS. Although omitted in Fig. 30, when the value of a current flowing through the main element 12 is detected, the semiconductor device 100 may include the current sensing element 14, the amplifier 16, the MOSFET 18, the sense resistor 20, and the sense terminal SNS.
[0141] Fig. 31 is a diagram showing another connection example of the sense wiring 11. A first sense wiring 11-1, a second sense wiring 11-2, and a third sense wiring 11-3 are connected to the upper surface electrode 60 in this example. A first sense position 61 and a second sense position 62 where the first sense wiring 11-1 and the second sense wiring 11-2 are connected to the upper surface electrode 60 are similar to the example in Fig. 23. A position where the third sense wiring 11-3 is connected to the upper surface electrode 60 is defined as a third sense position 73. A distance between the third sense position 73 and the first proximity position 81 is defined as a third inter-wiring distance LW3.
[0142] The third sense position 73 is disposed between the first sense position 61 and the second sense position 62. The first sense position 61, the second sense position 62, and the third sense position 73 may or may not be aligned on a single straight line. The third sense position 73 may be disposed between the first sense position 61 and the second sense position 62 in the longitudinal direction of the upper electrode 60 (the Y-axis direction in FIG. 31 ).
[0143] The third sense position 73 may be arranged such that the position YMOS (see FIG. 14) is in the range of −10% to 10%. That is, the third sense position 73 may be arranged at approximately the center of the upper surface electrode 60. The third sense position 73 may be arranged such that the distance (LW1-LW3) to the first sense position 61 and the distance (LW3-LW2) to the second sense position 62 are approximately equal. The difference between the distance (LW1-LW3) and the distance (LW3-LW2) may be 10% or less of the distance (LW3-LW2). By arranging the third sense position 73 in this manner, the sense voltage Vsns3 at the third sense position 73 hardly fluctuates even if the resistance value Rsw of the upper surface electrode 60 fluctuates. Therefore, by detecting the third sense voltage Vsns3, the value of the current flowing through the main element 12 can be detected with high accuracy.
[0144] Fig. 32 is a diagram showing an example of an equivalent circuit of the semiconductor device 100 described in Fig. 31. The semiconductor device 100 of this example includes an amplifier 16-3, a MOSFET 18-3, a sense resistor 20-3, and a sense terminal SNS3 in addition to the configuration shown in Fig. 26. In Fig. 32, components denoted with the same reference numerals as those in Fig. 26 may have the same functions and configurations as the components shown in Fig. 26, unless otherwise specified.
[0145] The main element 12 in this example is shown by the main element 12a, the main element 12b, the main element 12c, the resistor Rswa, the resistor Rswb, and the resistor Rswc. The resistor Rswa in this example indicates the resistance from the first sense position 61 to the third sense position 73, the resistor Rswb indicates the resistance from the third sense position 73 to the second sense position 62, and the resistor Rswc in this example indicates the resistance from the second sense position 62 to the first proximal position 81. In addition, the main element 12a indicates a portion of the main element 12 in the vicinity of the resistor Rswa, the main element 12b indicates a portion of the main element 12 in the vicinity of the resistor Rswb, and the main element 12c indicates a portion of the main element 12 in the vicinity of the resistor Rswc.
[0146] The MOSFET 18-3 is connected between the source terminal of the current sensing element 14 and the ground potential GND. The sense resistor 20-3 is connected between the source terminal of the MOSFET 18-3 and the ground potential GND. The source terminal of the MOSFET 18-3 is connected to the third sense terminal SNS3.
[0147] The amplifier 16-3 adjusts the voltage applied to the gate terminal of the MOSFET 18-3 so that the potential of the third sense wiring 11-3 and the drain potential of the MOSFET 18-3 are the same. With this configuration, the third sense voltage Vsns3 at the third sense position 73 is output from the third sense terminal SNS3. In this example, the semiconductor device 100 may further include the electrode evaluation unit 182 described in FIG. 25. Also, instead of the amplifier 16-1, the MOSFET 18-1, the sense resistor 20-1, the sense terminal SNS1, the amplifier 16-2, the MOSFET 18-2, the sense resistor 20-2, and the sense terminal SNS2 shown in FIG. 32, the differential output unit 77, the resistor 75, the resistor 76, and the differential output terminal AMP shown in FIG. 30 may be provided.
[0148] Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments. It is clear to those skilled in the art that various modifications and improvements can be made to the above embodiments. It is clear from the description of the claims that such modifications and improvements can also be included in the technical scope of the present invention. [Explanation of symbols]
[0149] 10 semiconductor substrate, 11 sense wiring, 12 main element, 13 output wiring, 14 current sensing element, 15 circuit section, 16 amplifier, 17 wiring, 18 MOSFET, 19 wiring, 20 sense resistor, 22 control section, 24 protection circuit, 26, 28, 30, 32 diode, 34 MOSFET, 36 current source, 42 drift region, 44 base region, 46 source region, 48 drain region, 50 bottom electrode, 52 gate electrode, 54 insulating layer, 59, 60 top electrode , 61...first sense position, 62...second sense position, 63...center point, 65...straight line, 67...long side, 68...short side, 69...straight line, 71...output position, 73...third sense position, 75...resistance, 76...resistance, 77...differential output section, 81...first proximity position, 91...first proximity wiring, 93...selection section, 95...MOSFET, 100...semiconductor device, 101, 102, 103...area, 111...first area, 112...second area, 180...sense ratio measurement section, 182...electrode evaluation section, 184...initial value storage section, 200...load
Claims
1. A main element having an upper electrode; One or more output wirings connected to the top surface electrodes; a first sense wiring connected to a first sense position in the upper surface electrode and transmitting a potential at the first sense position; Equipped with the one or more output wirings include a first proximate wiring having a shortest distance between a connection position to the top electrode and the first sense position, the first proximity wiring is connected to a first proximity position of the upper surface electrode; In the upper surface electrode, a first wiring distance from the first sense position to the first proximity position is different from half the maximum distance from the first proximity position to an end of the upper surface electrode. Semiconductor device.
2. A current sensing element through which a current flows according to the current flowing through the main element, The first sense wiring applies a potential at the first sense position to the current sensing element. The semiconductor device according to claim 1 .
3. The first inter-wiring distance is equal to or greater than 0 times and equal to or less than ¼ times the maximum distance. The semiconductor device according to claim 2 .
4. The first wiring distance is 3 / 4 to 1 times the maximum distance. The semiconductor device according to claim 2 .
5. the upper electrode has a rectangular shape having a short side in a first direction and a long side in a second direction; The first sense position and the first proximity position are aligned in the first direction. The semiconductor device according to claim 2 .
6. The upper surface electrode is divided into a plurality of equal regions by a straight line parallel to any side of the upper surface electrode, the first sense position being disposed in a first region, and the first proximity position being disposed in a second region. The semiconductor device according to claim 2 .
7. When the upper surface electrode is equally divided into a plurality of regions by a straight line parallel to any side of the upper surface electrode, the first sense position and the first proximity position are disposed in the same region. The semiconductor device according to claim 2 .
8. When the upper surface electrode is equally divided into a plurality of regions by a straight line parallel to a first side of the upper surface electrode and the upper surface electrode is equally divided into a plurality of regions by a straight line parallel to a second side not parallel to the first side, the first sense position is disposed in a first region and the first proximity position is disposed in a second region diagonally provided to the first region. The semiconductor device according to claim 2 .
9. When the top electrode is equally divided into a plurality of regions by a straight line parallel to a first side of the top electrode and the top electrode is equally divided into a plurality of regions by a straight line parallel to a second side not parallel to the first side, the first sense position and the first proximity position are disposed in the same region. The semiconductor device according to claim 2 .
10. the one or more output wirings include a second wiring having a second shortest distance between a connection position to the top electrode and the first sense position, A distance between the connection position of the second wiring and the first sense position is greater than a distance between the first proximity position and the first sense position. The semiconductor device according to claim 2 .
11. a second sense wiring connected to a second sense position on the upper surface electrode for applying a potential at the second sense position to the current sensing element; In the upper surface electrode, a second inter-wiring distance from the second sense position to the first proximity position is different from the first inter-wiring distance. The semiconductor device according to claim 2 .
12. The upper surface electrode is divided into a plurality of equal regions by a straight line parallel to any side of the upper surface electrode, and the first sense position is disposed in a first region, and the second sense position is disposed in a second region. The semiconductor device according to claim 11.
13. a selection unit for selecting either the potential at the first sense position or the potential at the second sense position and applying the selected potential to the current sensing element. The semiconductor device according to claim 12.
14. a first sense terminal for outputting the potential at the first sense position to an outside of the semiconductor device; a second sense terminal for outputting the potential at the second sense position to the outside of the semiconductor device; The semiconductor device according to claim 12 , further comprising:
15. a third sense wiring connected to a third sense position between the first sense position and the second sense position in the upper surface electrode; a third sense terminal for outputting the potential at the third sense position to the outside of the semiconductor device; The semiconductor device according to claim 14 , further comprising:
16. a sense ratio measurement unit that measures a sense ratio indicating a ratio between a current flowing through the current sensing element and a current flowing through the output wiring; an electrode evaluation unit that evaluates the top electrode of the main element based on the sense ratio measured by the sense ratio measurement unit; The semiconductor device according to claim 2 , further comprising:
17. an initial value storage unit that stores an initial value of the sense ratio; The electrode evaluation unit compares the initial value of the sense ratio with a measured value. The semiconductor device according to claim 16.
18. a control unit that controls a current flowing through the main element based on the sense ratio measured by the sense ratio measurement unit. The semiconductor device according to claim 16.
19. a sense resistor disposed between the current sensing element and a reference potential; The resistance value of the sense resistor is variable. The semiconductor device according to claim 2 .
20. a second sense wiring connected to a second sense position on the upper surface electrode and transmitting a potential at the second sense position; a difference output section that outputs a difference between the potential at the first sense position and the potential at the second sense position; Further comprising: The upper surface electrode is divided into a plurality of equal regions by a straight line parallel to any side of the upper surface electrode, and the first sense position is disposed in a first region, and the second sense position is disposed in a second region. The semiconductor device according to claim 1 .
