Choose Blocks to Model Semiconductor Devices
Simscape™ Electrical™ includes several blocks that can model the same type of semiconductor device. For example, the MOSFET (Ideal, Switching) and N-Channel MOSFET blocks both model an n-channel metal-oxide-semiconductor field-effect transistor (MOSFET). You must choose a block that has sufficient modeling detail for the engineering design questions that you need to answer. It is also important not to use more detail than you need, because higher-fidelity models slow down simulation and are more complex to parameterize. The right block to use therefore depends on the level of complexity that you need to meet your design goals. To choose a block with the correct level of complexity, you:
Determine the level of fidelity that you need.
Select the right block to model your semiconductor device at that level of fidelity.
Parameterize the block.
Determine the Fidelity Level
You choose between blocks that can model the same type of semiconductor device, but implement mathematical models with different levels of complexity.
Level 1 models — Ideal switching device models with no thermal model
Level 2 models — Ideal switching device models with tabulated switching losses and a thermal model
Level 3 models — Physics-based electrothermal models
Increasing modeling complexity restricts the design space that you can practically explore or optimize against. To develop your model with the right level of complexity, you need to use a different fidelity level depending on where you are in the design process. This table lists common design goals and the typical corresponding modeling assumptions at the three levels of fidelity. Use this table to determine the level of fidelity you need.
Fidelity Level | Goals | Modeling Assumptions |
---|---|---|
Level 1 |
|
|
Level 2 |
|
|
Level 3 |
|
|
Choose the Right Block for the Model
This table shows the blocks that you can use to represent different semiconductor device types at each level of fidelity. Use this table to select the right block to model your semiconductor device.
Device Type | Blocks | ||
---|---|---|---|
Level 1 | Level 2 | Level 3 | |
Diode |
|
|
|
Bipolar transistor | Not supported | Not supported | |
MOSFET |
|
| |
IGBT |
|
| |
Thyristor |
|
| |
GTO |
|
| Not supported |
JFET | Not supported | Not supported | |
Composite and complete converter circuits |
| Not supported | Not supported |
Note
When you use the Level 1 parameter settings for the Diode block, the block is equivalent to the Diode block in the Simscape Foundation Library.
You can use a Gate Driver or Half-Bridge Driver block to drive a semiconductor block at any level of fidelity. Some blocks that use Level 1 and Level 2 models, such as the MOSFET (Ideal, Switching) block, can use a physical signal port for the gate terminal which eliminates the need for an electrical model of the gate driver. Use an electrical port for the gate terminal to easily change the fidelity levels by changing the block that models the semiconductor device without having to change the gate driver.
Parameterize the Block
After you select the right block, you must parameterize it. Parameterization of semiconductor devices can be challenging, depending on what information the manufacturer provides. Datasheets are a good source for Level 1 and Level 2 models, but do not provide the full charge information you need for Level 3 models. For example, in the case of MOSFETs, you need to tabulate the gate-source charge in terms of gate-source voltage and drain-source voltage but datasheets often give the gate-source charge in terms of the gate-source voltage only.
You can pre-parameterize some blocks, for Level 1 or Level 2 models, using the Block Parameterization Manager. These parameter values represent components by specific suppliers and match the manufacturer datasheets. For more information about using pre-parameterized parts, the blocks that support this option, the manufactured components that you can model, and additional parameterization options, see List of Pre-Parameterized Components.
Some manufacturers provide XML files that store data you can use to parameterize Level
2 models. You can import these files into Simscape using the ee_importDeviceParameters
function. You can also transform a Level 3
model into an equivalent Level 2 model that is easier to interpret and runs faster using
the generateSemiconductorSwitchROM
function.
SPICE subcircuits usually provide a Level 3 model, but Simscape Electrical cannot use these subcircuits directly. If you have a SPICE subcircuit that you want to simulate in Simscape Electrical, choose one of these options:
Map the subcircuit to a table-based I-V and charge parameterization using the
ee.spice.semiconductorSubcircuit2lookup
function. This method is numerically more reliable and usually the better choice.Convert the subcircuit to an equivalent Simscape component using the
subcircuit2ssc
function or use the SPICE-Imported MOSFET block to model the devices that the block supports. This method can cause numerical simulation issues because the original netlist is usually optimized for a specific SPICE simulation engine.
See Also
generateSemiconductorSwitchROM
| ee_importDeviceParameters
| Semiconductors