Main Content

Parameterize the Lookup Table-Based MOSFET from SPICE

This example shows how to use the SPICE simulation results of a metal–oxide–semiconductor field-effect transistor (MOSFET) to set the parameter values of an N-Channel MOSFET (Lookup table-based) in Simscape™. Then, it compares the N-Channel MOSFET characteristics in Simscape with the SPICE netlist simulation results.

Open the N-Channel MOSFET (Lookup Table-Based) Model

Open the MOSFET Subcircuit

The subcircuit contains a SPICE model of an N-Channel power transistor. To open it, in the MATLAB command window, enter edit IAUC100N04S6L014.cir.

Create a Transfer Characteristic Netlist

You can create a SPICE netlist that specifies the target operating range for the subcircuit. The IAUC100N04S6L014_idvgs.net netlist simulates the transfer characteristic with drain-source voltage list.

* Transfer characteristic of MOSFET IAUC100N04S6L014
.opt DampInductors=0 Thev_Induc=1 Gfarad=0 Gfloat=0 reltol=1e-05 abstol=1e-05 vntol= 1e-05 Gmin=0 cshunt=0 cshuntintern=0 gshunt=0 topologycheck=0

X1 dut1 dut2 dut3 dut4 dut5 IAUC100N04S6L014
V1 dut1 0 2
V2 dut2 0 pwl(0 0 20 4.5)
V3 dut3 0 0
V5 dut5 0 27
.step V1 list 2 5 8 11 14
.tran 1m 20
.lib IAUC100N04S6L014.cir
.end

Set Lookup Table Parameters for Transfer Characteristic

To obtain the required MOSFET transfer characteristics, run the simulation in SPICE. The ee_mosfet_tabulated_setparam script uses the simulation results stored in the IAUC100N04S6L014_idvgs1.raw raw-files to set the parameter values for the N-Channel MOSFET (Lookup Table-Based).

Compare Transfer Characteristic

The plot below compares the transfer characteristic of the N-Channel MOSFET (Lookup table-based) with the SPICE subcircuit simulation results.

Create an Output Characteristic Netlist

To parameterize an N-Channel MOSFET (Lookup table-based), you can also use an output characteristic SPICE data. The IAUC100N04S6L014_idvds.net netlist simulates the transfer characteristic with gate-source voltage list.

* Output characteristic of MOSFET IAUC100N04S6L014
.opt DampInductors=0 Thev_Induc=1 Gfarad=0 Gfloat=0 reltol=1e-05 abstol=1e-05 vntol= 1e-05 Gmin=0 cshunt=0 cshuntintern=0 gshunt=0 topologycheck=0

X1 dut1 dut2 dut3 dut4 dut5 IAUC100N04S6L014
V1 dut1 0 pwl(0 0 20 15)
V2 dut2 0 2
V3 dut3 0 0
V5 dut5 0 27
.step V2 1 4 0.5
.tran 2m 20
.lib IAUC100N04S6L014.cir
.end

Set Lookup Table Parameters for Output Characteristic

The IAUC100N04S6L014_idvds1.raw raw file stores the output characteristics simulated in SPICE. You can change the raw file path and plot type in Define Conditon or by using the set_param function.

Compare Output Characteristic

The plot below compares the output characteristic of the N-Channel MOSFET (Lookup table-based) with the SPICE subcircuit simulation results.