This example shows how to generate a Simscape reduced-order model (ROM) of a SPICE-defined IGBT by using the generateSemiconductorSubcircuitROM
function. The function runs the necessary simulations using LTspice or SIMetrix software.
Define Input Arguments
Define the input arguments for the generateSemiconductorSubcircuitROM
function based on the SPICE simulation tool and operating system.
Define the name of the library that contains the subcircuit to simulate.
Define the name of the SPICE subcircuit inside the library file.
Define the SPICE software used during the simulation. By default, the function uses SIMetrix.
Define the path of the executable of the SPICE tool used during simulation. The default value is C:\Program Files\SIMetrix910\bin64\Sim.exe
. If you are not using a Windows operating system, or if the path is not the default specified before, this argument is needed.
Define the folder for the generated netlists and SPICE outputs.
Define the vector of terminal orders. The values of this vector define the ports of the semiconductor device to which each node of the SPICE subcircuit connects. For example, observe the definition of the .SUBCKT IKW15N120T2_L1 C G E PARAMS: TJ= {TEMP}
subcircuit in the library file. The subcircuit defines the nodes for the drain, gate, source, junction temperature, and case temperatures at the positions 1, 2, 3, 4, and 5, respectively. The generateSemiconductorSubcircuitROM
function requires you to use the number 1 for the drain, 2 for the gate, 3 for the source, 4 for the base, 5 for the junction temperature, and 0 for no connection. To obtain a ROM, you do not need the case temperature and you cannot assign the junction temperature for this IGBT device. Use this vector of terminal orders for this IGBT.
Define the device type. In this example, the device is an IGBT.
Define the on-state gate-source voltage. To decide the value of this argument, look at the manufacturer datasheet. The function assigns the value of this argument to the IGBT gate node. The value of this argument must be within the datasheet limits and greater than the threshold voltage. For an IGBT, the source is called emitter. The threshold voltage of an IKW15N120T2 IGBT
is equal to 6.4 V and the maximum operational gate-source voltage is equal to 20 V. You can find the threshold voltage value in the Gate-emitter threshold voltage parameter in the Electrical Characteristic table, and the gate-source voltage value in the Gate-emitter voltage parameter of the Maximum Ratings table. Specify a value of 10 V for the on-state gate-source voltage.
Define the off-state gate-source voltage. This argument must be less than the threshold voltage and greater than the minimum allowed voltage. By default, this value is equal to 0.
Define the constant current for threshold voltage. The function uses this current value to obtain the switch threshold voltage by measuring the gate voltage at which a constant drain current is first observed. This current is typically very small. The datasheet specifies a value of 0.6 mA. You can find this information in the Conditions column of the Gate-emitter threshold voltage parameter in the Electrical Characteristic table.
Define the on-state gate resistance. The datasheet specifies a value of 41.8 ohms. You can find this information in the conditions from Figure 1 of the datasheet.
Define the off-state gate resistance. The manufacturer datasheet does not specify a value for this argument. Specify the same value as the on-state gate resistance.
Define the temperature point at which the device is tabulated. You must specify the values of this argument within the manufacturer operating ranges. In this example, you cannot parameterize the device over the temperature because the input terminals do not include the junction temperature. Specify values close to 27 °C, which is the default value for LTspice.
Define the on-state current breakpoints for the tabulated I-V curve. This argument specifies the currents at which the function tabulates the device. The values of this argument must be less than the maximum datasheet values, which you can find in the DC collector current parameter of the Maximum Ratings table.
Define the on-state current breakpoints for switching losses. These breakpoints must be equal to the breakpoints for the tabulated I-V curve.
Define the off-state voltage breakpoints for switching losses. These values define the voltage breakpoints at which the function tabulates the device diode. The values of this argument must be less than the maximum values.
Define the leakage inductance and stray capacitance of test circuit. The datasheet specifies the leakage inductance of 315 nH and stray capacitance of 34 pF. You can find the information in the Conditions column of the IGBT Characteristic table.
Generate ROM
If you have a supported SPICE simulation tool installed, generate the ROM.
Using:
DeviceType = IGBT
Terminals = [1;2;3]
OnStateGateSourceVoltage = 10
OffStateGateSourceVoltage = 0
ConstantCurrentForThresholdVoltage = 0.0006
OnStateGateResistance = 41.8
OffStateGateResistance = 41.8
Temperatures = [25;30]
OnStateCurrentsForIV = [5;15;30]
OnStateCurrentsForLoss = [5;15;30]
OffStateVoltagesForLoss = [10;210;410;610]
MaximumSwitchingFrequency = 100000
TestCircuitLeakageInductance = 3.15e-07
TestCircuitStrayCapacitance = 3.4e-11
Reltol = 0.001
Abstol = 1e-12
Vntol = 1e-06
Gmin = 1e-12
Cshunt = 0
Extracting switch IV curve ...
Using existing netlist SPICENetlists\IKW15N120T2_L1_Vth_I0A0006_T25.net to extract threshold voltage
Running netlist SPICENetlists\IKW15N120T2_L1_Vth_I0A0006_T25.net to extract threshold voltage in SPICE tool LTspice
Using existing netlist SPICENetlists\IKW15N120T2_L1_SwitchIV_Vg10_I30.net to extract switch current-voltage table
Running netlist SPICENetlists\IKW15N120T2_L1_SwitchIV_Vg10_I30.net to extract switch current-voltage table in SPICE tool LTspice
Using existing netlist SPICENetlists\IKW15N120T2_L1_Goff_T25.net to extract off-conductance
Running netlist SPICENetlists\IKW15N120T2_L1_Goff_T25.net to extract off-conductance in SPICE tool LTspice
Extracting diode IV curve ...
Using existing netlist SPICENetlists\IKW15N120T2_L1_DiodeIV.net to extract the diode current-voltage table.
Running netlist SPICENetlists\IKW15N120T2_L1_DiodeIV.net to extract diode current-voltage table in SPICE tool LTspice
Extracting switching loss lookup tables ...
Using existing netlist SPICENetlists\IKW15N120T2_L1_Loss_V10_T25.net to extract losses
Using existing netlist SPICENetlists\IKW15N120T2_L1_Loss_V210_T25.net to extract losses
Using existing netlist SPICENetlists\IKW15N120T2_L1_Loss_V410_T25.net to extract losses
Using existing netlist SPICENetlists\IKW15N120T2_L1_Loss_V610_T25.net to extract losses
Using existing netlist SPICENetlists\IKW15N120T2_L1_Loss_V10_T30.net to extract losses
Using existing netlist SPICENetlists\IKW15N120T2_L1_Loss_V210_T30.net to extract losses
Using existing netlist SPICENetlists\IKW15N120T2_L1_Loss_V410_T30.net to extract losses
Using existing netlist SPICENetlists\IKW15N120T2_L1_Loss_V610_T30.net to extract losses
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V10_T25.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V210_T25.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V410_T25.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V610_T25.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V10_T30.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V210_T30.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V410_T30.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V610_T30.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V10_T25.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V210_T25.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V410_T25.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V610_T25.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V10_T30.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V210_T30.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V410_T30.net to extract losses in SPICE tool LTspice.
Running netlist SPICENetlists\IKW15N120T2_L1_Loss_V610_T30.net to extract losses in SPICE tool LTspice.
References
[1] Infineon. “IKW15N120T2. TrenchStop® 2nd generation Series.” Accessed Jan 9, 2024. https://www.infineon.com/dgdl/Infineon-IKW15N120T2-DataSheet-v02_02-EN.pdf?fileId=db3a304412b407950112b426d2d43acd.