Power Electronics + AI: An Agent Turns a GaN Datasheet Into a Validated SIMBA Model
A general-purpose AI coding agent read the public EPC2031 datasheet PDF, built a SIMBA device model, checked it against the datasheet and ran a 48 V double-pulse test through the SIMBA Python library, in 38 SIMBA runs. COSS within 2.1 % from 1 to 50 V, thermal impedance within 1.2 %, and four traps, each shown by a counter-test rather than by the agent.
Abstract
Can an AI agent turn a device datasheet into a simulation model, and tell you how far that model can be trusted? In this example, yes, but the trust came from the counter-tests, not from the agent. We gave a general-purpose AI coding agent the public datasheet of the EPC2031, a 60 V, 2.6 mΩ eGaN FET, and the public SIMBA Python library (version 2026.11.12). The agent read the vector curves of the PDF, built the tables of a SIMBA Detailed MOSFET (Datasheet) model and a Foster thermal network, re-measured the model in SIMBA like a curve tracer, then ran a double-pulse test at 48 V.
Against the datasheet curves it was built from, the model reproduces COSS within 2.1 % from 1 to 50 V, the output charge at 30 V within 1.2 % (47.4 nC for 48 nC typical), the junction-to-case thermal impedance within 1.2 % from 1 µs to 1 s, and gives an on-resistance of 2.20 mΩ at 30 A (2.0 mΩ typical, 2.6 mΩ maximum). It is less accurate where SIMBA's fitted channel equations cannot follow the datasheet: near the threshold, and on the output curve at VGS = 3 V (up to 23 % more current), a curve the model was not given.
In the double-pulse test (48 V, 30 A, 3 Ω gate resistor, 0.5 nH loop), the device turns off with 2.75 µJ, turns on with 4.30 µJ, and the drain voltage peaks at 55.8 V; the energies change by less than 0.3 % when the time step is divided by four, and the energy balance closes within 0.015 % of the dissipated energy.
The 38 SIMBA runs of the final study used less than 15 s of run time. The agent reused PDF-reading scripts it had written for this datasheet in an earlier session; with them, the first complete version of the study took 23 minutes of wall-clock time, from the copy of the PDF to its last simulation run. The useful part of the story is elsewhere: errors that would have gone straight into a report were caught by counter-tests, not by the agent's judgment.
1. The Problem: a Datasheet Is Not a Model
A GaN datasheet gives curves, not a netlist: output and transfer characteristics, capacitances against VDS, reverse conduction, thermal impedance. Turning them into a simulation model means digitizing a dozen curves, choosing table points, and checking that the simulator does what the curves say. It is tedious, easy to get slightly wrong, and not always checked end to end.
It is also exactly the kind of work people now hand to AI agents. The question for an engineer is not whether an agent can produce a model (it can), but how much of that model can be trusted, and what it takes to find out.
2. The Workflow: From PDF to SIMBA
Figure 1 – From PDF to validated model in eight steps. Steps 1 to 7 were run by one general-purpose AI coding agent through Python and the SIMBA Python library; step 8 is the review.
Reading the PDF without reading pixels. Datasheet plots are usually vector drawings. The agent parsed the drawing commands of pages 2 to 4 of the EPC2031 datasheet [1] (revised June 19, 2020), calibrated each axis on the plot's own grid lines and tick labels, and separated the curves by their colour. Fourteen curves came out in physical units, with no value read by eye.
Checking the reading against the datasheet tables. Curves and tables are independent parts of a datasheet, so one checks the other. At 30 V, the extracted curves give CISS = 1640 pF, COSS = 978 pF and CRSS = 34.3 pF (table: 1640, 980, 35 pF), QOSS = 47.3 nC (48 nC), and VSD = 1.82 V at 0.5 A (1.8 V). The first segment of the VGS = 5 V output curve gives 2.03 mΩ (2.0 mΩ typical).
Building the model. The SIMBA Detailed MOSFET (Datasheet) takes exactly what a datasheet gives [2]: one transfer curve, one output curve, CISS, COSS and CRSS against VDS, the internal gate resistance, and the reverse-conduction curve. SIMBA fits the parameters of its channel equations (threshold, transconductance, channel-length modulation) from the two curves. The agent filled every table from the extracted curves (transfer at VDS = 3 V up to 4.0 V, where the curve leaves the plot; output at VGS = 5 V; capacitances at 14 voltages from 0 to 60 V; RG = 0.4 Ω). The single-pulse junction-to-case curve was fitted with a Foster network (RthJC = 0.45 K/W, three significant cells, 32 µs to 3.2 ms), simulated in SIMBA as thermal resistors and capacitors.
3. The Result: the Model Against Its Datasheet
The agent then measured the SIMBA model the way a curve tracer would, with a fixed time step: slow voltage ramps for the static curves, a 30 V/µs drain ramp for COSS and CRSS (read every 0.1 V), a gate ramp for CISS, and a 1 W heat step for the thermal impedance. Nine runs, less than 1 s of run time.
Figure 2 – Where the model holds and where it does not. Black: datasheet curves extracted from the PDF. Blue: the SIMBA model, measured in SIMBA. The capacitances and output charge follow the datasheet within 3.6 %; the reverse conduction matches it at the table points and, interpolated linearly between them, stays within 32 mV of the curve (up to 27 % more current just above the knee, at 1.9 V); the Foster network follows the thermal impedance within 1.2 %. The fitted channel departs near the threshold, on the transfer curve it was given (15 A for 2 A at 2.0 V), and on the 3 V and 4 V output curves, which it was not given (up to 23 % and 12 %); even the given 5 V curve is 8 % low at 0.25 V.
| Quantity | Datasheet | SIMBA model | Difference |
|---|---|---|---|
| CISS at 30 V | 1640 pF (table) | 1640 pF | 0 % |
| COSS from 1 to 50 V | Figure 5b | max. deviation 2.1 % (0.4 % at the table voltages) | |
| CRSS from 1 to 50 V | Figure 5b | max. deviation 3.6 % (0.3 % at the table voltages) | |
| QOSS at 30 V | 48 nC typ. (table), 47.3 nC (curve) | 47.4 nC | −1.2 % vs table |
| EOSS at 48 V | 1.21 µJ (Figure 6) | 1.22 µJ | +0.3 % |
| RDS(on), VGS = 5 V, 30 A | 2.0 mΩ typ., 2.6 mΩ max. | 2.20 mΩ | +10 % vs typ. |
| Output current, VGS = 4 V, VDS = 2 V | 362 A | 390 A | +8 % |
| Output current, VGS = 3 V, VDS = 1 V | 105 A | 129 A | +23 % |
| Transfer current, VDS = 3 V, VGS = 2.0 V | 2.0 A | 15.1 A | near the threshold |
| ZthJC, 1 µs to 1 s (31 points) | Figure 12 | max. deviation 1.2 % |
What this says about the model, in this example:
- What the model takes directly as tables is reproduced at the table points and follows a linear interpolation between them: COSS within 2.1 % and CRSS within 3.6 % between the 14 table voltages, the output charge, and the reverse-conduction curve; the Foster network follows the thermal impedance within 1.2 %. These set the switching transitions and the transient junction temperature.
- The channel is an approximation. SIMBA fits one set of equations to two curves. It lands at 2.20 mΩ, 10 % above the typical value and below the maximum. Even the VGS = 5 V curve it was given is 8 % low at 0.25 V (110 A for 120 A), which is the 2.20 vs 2.03 mΩ. It stays within 2 % in saturation at VGS = 3 V (144 A for 147 A). Between the threshold and about 2.5 V, the fitted equations cannot follow the exponential foot of the GaN transfer curve: at VGS = 2.0 V the model conducts 15 A where the datasheet shows 2 A. The switching transitions cross this region, so this is the first place to look if model and measurement disagree.
- The agent also checked how much the on-resistance depends on its own choices for the transfer table (stopping it at 3.0 V or 4.0 V, or adding extrapolated points at 5 and 6 V): from 2.04 to 2.30 mΩ. The fitted value has to be measured in the simulator, not assumed from the table.
4. The Double-Pulse Test at 48 V
The double-pulse test switches the device under test (DUT) in a half-bridge, with an inductor across the upper device, which freewheels with its gate held at 0 V, the off-state voltage EPC recommends. The test starts with the device under test already on and no load current, so pulse 1 has no turn-on edge; pulse 1 builds the current, the device turns off at that current, then turns on again at almost the same current.
| Bench parameter | Value |
|---|---|
| Bus voltage, test current | 48 V, 30 A (also 10, 20, 40 A) |
| Load inductor | 10 µH (first pulse 6.25 µs) |
| Power-loop inductance and its high-frequency resistance | 0.5 nH, 20 mΩ (both assumed; 1, 5 and 50 mΩ also run) |
| Gate drive | 0 / 5 V, 1 ns edges, 3 Ω external gate resistor (2 and 4.7 Ω also run) |
| Devices | the same SIMBA model for the DUT and the freewheeling device |
| Time step setting | 12.5 ps (convergence study from 0.1 ns down to 3.125 ps) |
Figure 3 – Turn-off (left) and turn-on (right) at 30 A and 48 V. The drain voltage peaks at 55.8 V, below the 60 V rating; the ringing at about 250 MHz is the 0.5 nH loop with the output capacitance.
| Result at 48 V, 30 A | Value |
|---|---|
| Turn-off energy Eoff | 2.75 µJ |
| Turn-on energy Eon | 4.30 µJ |
| Peak drain voltage after turn-off | 55.8 V (59.3 V at 40 A) |
| dv/dt at turn-off / turn-on (10-90 %) | 7.1 / 9.3 V/ns |
| Reverse voltage of the freewheeling device at 29.9 A | 2.46 V (datasheet curve: 2.47 V) |
| On-resistance during pulse 1 | 2.20 mΩ |
Energies are integrals of vDS·iD of the DUT, from 10 % (turn-on) or 90 % (turn-off) of the gate voltage, to the point where vDS falls below 2 % of the bus (turn-on) or iD falls below 2 % of the current (turn-off). The gate voltage is taken at the device pins and iD is the drain terminal current, which includes the output-capacitance current. With a fixed 50 ns window after the driver edge instead, Eoff is 2.56 µJ (−7 %) and Eon 4.40 µJ (+2.5 %): compare switching energies only with the same definition.
Two things an engineer can read directly from these numbers:
- Almost half of Eoff is not a loss at turn-off. The model stores EOSS = 1.22 µJ in the DUT output capacitance at 48 V, 44 % of Eoff (1.34 µJ, 49 %, at the 51 V the DUT actually blocks after turn-off, since the loop-resistance drop and the freewheeling voltage add to the bus); that energy is dissipated in the channel at the next turn-on. Over one hard-switched cycle the DUT dissipates Eon + Eoff = 7.05 µJ, about 3.5 W at 500 kHz if every cycle switched 30 A at 48 V.
- The switching energies belong to the bench, not only to the device. With a 2 Ω gate resistor Eon falls to 2.99 µJ; with 4.7 Ω it rises to 6.12 µJ. EPC does not give switching energies for this device, and the switching energies a vendor measures belong to the vendor's test board. A model built from the datasheet lets you compute them for your own gate drive and layout, as for SiC MOSFET switching losses.
Checks. Dividing the time step by four (12.5 to 3.125 ps) changes Eon by 0.27 % and Eoff by 0.23 %. Over the whole test, the energy from the supply and the gate driver equals the energy of the two devices, the resistors and the inductors within 0.02 µJ, out of 154 µJ dissipated (0.015 %). The loop resistance assumption (1 to 50 mΩ) moves Eon and Eoff by less than 2 %. Between the pulses, the blocked DUT carries about 0.1 mA at 51 V, the leakage put in its table (0.1 mA typical in the datasheet).
5. Four Traps, and the Counter-Test That Caught Each One
One of these traps was known in advance and tested on purpose; the other three were real errors in the agent's first versions of the study. None produced an error message; each gave plausible numbers.
1. The first point of the reverse-conduction curve (tested on purpose). SIMBA treats the reverse-conduction table as a piecewise-linear characteristic between its points. A direct copy of the datasheet curve, starting at [0 V, 0 A] and followed by the first readable point (2.0 V, 1.9 A), creates a first segment that conducts 0.94 A at 1 V, where the GaN conducts nothing. The table used here keeps 1 µA at 1.6 V, then follows the curve.
Figure 4 – A naive reverse-conduction table and the one used. At 30 A the two give the same double-pulse result (Eon within 0.5 %); at 1.2 A the naive table freewheels at 1.33 V instead of 1.91 V (datasheet: 1.94 V), so at 1.2 A the freewheeling (dead-time) conduction loss would be about 30 % too low; at 3 A the two tables agree.
The 30 A double-pulse test does not see this error: the freewheeling current sits high on the curve. Only re-tracing the curve in the simulator (Figure 4) shows it.
2. A first time step that was too coarse. The first double-pulse runs used a 0.1 ns setting. On the final bench, that setting puts Eoff 2.5 % and Eon 1.6 % above the finest step, and the turn-on current differs from it by up to 9 A. At 12.5 ps, dividing the step by four changes the energies by less than 0.3 % and the waveforms by less than 0.1 V and 1.1 A. The check that catches this: compare several time steps, on the waveforms as well as on the energies, because the waveforms move more (9 A on the turn-on current against 2.5 % on the energies).
3. A bench that rang forever. With a 1 mΩ loop resistance, the 0.5 nH loop and the output capacitance rang with almost no decay for more than 40 ns (quality factor about 800), which no real board does. With 1 mΩ, Eon and Eoff moved by only about 1 % and the peak by 0.5 V, but the waveforms were not credible. The 20 mΩ used here stands for the high-frequency resistance of capacitors and copper; it is a bench assumption, and the 1 to 50 mΩ runs show what it changes.
4. A bug in the agent's own post-processing. The first energy balance was off by 0.37 % of the supply energy: about 20 µJ, almost three times Eon + Eoff of the device. The agent had computed the loop resistor loss with the supply current, while the loop sits in the freewheeling branch. Once fixed, the balance closes within 0.015 % of the dissipated energy. Without a balance, the wrong loss would simply have been reported.
What the agent did well: it was fast, it ran every check it was asked for, and every number in this article comes from a script that runs again.
6. Reproduce It With Python and SIMBA
Everything runs with the public SIMBA Python library (API documentation) [3]. The core of the model is a few lines; this snippet, with tables shortened, runs as printed with SIMBA 2026.11.12:
from aesim.simba import Design
design = Design()
q = design.Circuit.AddDevice("Detailed MOSFET (Datasheet)", 10, 10)
q.Rg.UserValue = "0.4"
q.VgsIdMatrix_Vds.UserValue = "3" # transfer curve at VDS = 3 V (Figure 2 of the datasheet)
q.VgsIdMatrix.UserValue = "[0 0; 1.4 0; 2 2.05; 2.5 36.8; 3 147.6; 3.5 278; 4 409]"
q.VdsIdMatrix_Vgs.UserValue = "5" # output curve at VGS = 5 V (Figure 1)
q.VdsIdMatrix.UserValue = "[0 0; 0.192 94.4; 0.409 189.2; 0.647 279.4; 0.909 363.2; 1.22 443.5]"
q.Coss.UserValue = "[0 2.31n; 10 1.81n; 20 1.30n; 30 0.978n; 40 0.845n; 60 0.781n]" # VDS (V), F
q.Ciss.UserValue = "[0 1.90n; 10 1.73n; 30 1.64n; 60 1.63n]"
q.Crss.UserValue = "[0 291p; 10 123p; 30 34.3p; 60 20.4p]"
# reverse conduction, VGS = 0 V: leakage point, then ~0 A until the knee, then the curve (Figure 8)
q.Vsd_Is_BodyDiodeMatrix.UserValue = "[-48 -1e-4; 0 0; 1.6 1e-6; 1.8 0.41; 2 1.88; 2.5 33.3; 3 132.9; 4 385.9]"
Simulating this device requires a SIMBA licence that includes detailed switch models; without it, the simulation stops with "Detailed switch model license not found".
The study itself (PDF extraction, tables, curve-tracer benches, double-pulse test, figures and the number check) is a set of short Python scripts, not published with this article; more examples of the same API are in the simba-python-examples repository, and a SiC double-pulse study built on the official SIMBA example is in Dead Time vs Current in a SiC Half-Bridge.
How the agent worked. A general-purpose AI coding agent, with a shell and Python, drove the public aesim.simba package directly; it did not use the SIMBA desktop interface. The PDF-reading scripts, including the figure frames and curve colours of this datasheet, came from an earlier session of the agent and were reused unchanged; the axis calibration was checked again on the grid lines. The 23 minutes run from the copy of the PDF into the study folder to the last of the 37 runs of the first complete version; they include the bench corrections and the post-processing fix above, but not the time spent beforehand reading the SIMBA documentation, nor the review. This study did not use SIMBA Assistant, the optional AI module of SIMBA. SIMBA Assistant offers agent workflows for SIMBA designs and Python scripts and PDF-based assistance for datasheets, and it includes the SIMBA MCP server, which makes SIMBA available to private, local LLMs and other tools. Whether it reproduces this workflow was not tested here.
7. Limitations
The method carries over to other devices; the numbers do not.
- One device and the typical curves at 25 °C. The Detailed MOSFET (Datasheet) model has no temperature dependence of its channel: the datasheet's RDS(on)(T) and 125 °C curves were extracted but not used.
- The Foster network describes junction to case only; the board, the heatsink and the interface are not modelled, and it is not coupled to the electrical model in this study (for a coupled study, see IGBT heatsink sizing under electro-thermal coupling).
- The bench is ideal outside the stated values: no common-source inductance, no gate-loop inductance, an ideal 48 V source, a lumped loop resistance chosen by assumption.
- The test was set up so that the device under test does not conduct in reverse with its gate on during the measured intervals; that mode (synchronous rectification) was not validated.
- Simulated switching energies are not measured ones. No hardware double-pulse measurement was compared here; the model's weakest region (near the threshold) is crossed during every transition.
- Datasheet curves are typical, and EPC does not give switching energies, so Eon and Eoff could only be checked for internal consistency (convergence, energy balance, EOSS), not against a reference.
Practical Rule
Practical rule Treat a datasheet-built model like a new instrument. Before trusting its switching energies: re-trace every table in the simulator against its datasheet curve, including curves you did not give the model; keep the reverse-conduction current near zero below the knee; converge the time step on the waveforms, not only on the energies; and close the energy balance. Driven through the SIMBA Python library, an AI agent runs these checks for you, and the simulations behind them take seconds.
8. Conclusion
An AI agent can go from a public PDF datasheet to a SIMBA device model and a converged double-pulse test in 23 minutes of wall-clock time, reusing PDF-reading scripts written earlier for this datasheet, with every number traceable to a script. For the EPC2031, the model reproduces the capacitances, output charge and thermal impedance within a few percent and the reverse conduction within about 30 mV, gives an on-resistance 10 % above typical, and is weakest near the threshold. What makes the result usable is not the speed: it is the counter-tests that exposed a naive reverse-conduction table, a time step that was too coarse, an unrealistic bench and a post-processing bug, each of which produced plausible numbers. Those checks were cheap because the agent drove SIMBA directly: it needed only the public SIMBA Python library (and a SIMBA licence that includes detailed switch models) to build every bench, run it and read the waveforms, and the 38 runs of the final study took less than 15 s of run time.
FAQ: AI, Datasheets and Power-Electronics Simulation
Which simulator can I use with AI for power electronics?
SIMBA can be driven by AI agents in two ways. Its public Python library lets any Python-capable agent build circuits, run simulations and read results; the optional SIMBA Assistant module adds an agent for SIMBA designs and scripts, PDF-based datasheet assistance and the SIMBA MCP server for private, local LLMs and other tools. In a SIMBA study of a 60 V GaN FET, a general-purpose AI coding agent (not SIMBA Assistant) built the model from the datasheet PDF and ran 38 simulations in under 15 s of run time.
Can AI build a power-electronics device model from a datasheet?
Yes, with checks. In a SIMBA study of the EPC2031 60 V GaN FET, a general-purpose AI coding agent extracted 14 vector curves from the public datasheet PDF and built a SIMBA Detailed MOSFET (Datasheet) model and a Foster thermal network. The model matched the datasheet COSS curve within 2.1 % and the thermal impedance within 1.2 %, and gave 2.20 mΩ for a 2.0 mΩ typical on-resistance. Counter-tests caught errors the agent first made, and confirmed that a reverse-conduction table that conducts below the knee distorts light-load results.
How accurate is a GaN model built from a datasheet in SIMBA?
In a SIMBA study of the EPC2031 GaN FET at 25 °C, a Detailed MOSFET (Datasheet) model built from the typical datasheet curves matched them within 2.1 % for COSS and 3.6 % for CRSS from 1 to 50 V and within 1.2 % for the output charge at 30 V, and gave 2.20 mΩ on-resistance (2.0 mΩ typical). Its fitted channel equations are least accurate near the threshold: 15 A at VGS = 2.0 V where the datasheet shows 2 A. Its switching energies were not compared with measurements.
What are the traps when converting datasheet curves into a simulation model?
In a SIMBA study of a 60 V GaN FET, several errors gave plausible numbers: a reverse-conduction table whose first segment conducted 0.94 A at 1 V, which lowered the freewheeling voltage at 1.2 A from 1.91 V to 1.33 V; a time step that was too coarse; an almost undamped test bench; and a loss computed with the wrong current. They were caught by re-tracing the curves in the simulator, comparing time steps on the waveforms and closing the energy balance.
What time step does a GaN double-pulse simulation need?
Check it on each circuit, on the waveforms as well as on the energies. In a SIMBA double-pulse study of a 60 V GaN FET at 48 V and 30 A with a 0.5 nH power loop, a 12.5 ps time-step setting gave switching energies within 0.3 % of a four times finer step and waveforms within 0.1 V and 1.1 A, while a 0.1 ns setting put the energies up to 2.5 % high and the turn-on current up to 9 A away.
Appendix: Switching Energies Against Current and Time Step
Figure A1 – (a) Eon and Eoff at 48 V from 10 to 40 A, with the COSS energy of the model at 48 V for reference. (b) Eon and Eoff at 30 A against the SIMBA time-step setting.
| Switched current | Eon | Eoff | Peak vDS after turn-off |
|---|---|---|---|
| 10 A | 2.73 µJ | 1.47 µJ | 52.6 V |
| 20 A | 3.52 µJ | 2.00 µJ | 55.1 V |
| 30 A | 4.30 µJ | 2.75 µJ | 55.8 V |
| 40 A | 5.10 µJ | 3.88 µJ | 59.3 V |
At 40 A the peak drain voltage reaches 59.3 V: with this loop and gate resistor, 40 A at 48 V leaves less than 1 V of margin to the 60 V rating.
References
- EPC, EPC2031 – Enhancement Mode Power Transistor, datasheet, revised June 19, 2020, PDF.
- SIMBA documentation, Detailed MOSFET (Datasheet) (model equations, parameter fitting with the DIRECT algorithm, body-diode table).
- SIMBA Python API documentation.
- SIMBA Assistant and the SIMBA MCP server.
About the Authors
This technical study was run by an AI coding agent of the SIMBA team: a general-purpose agent, not the SIMBA Assistant product, that drove the public SIMBA Python library 2026.11.12 (aesim.simba) through Python scripts. The main numbers were recomputed by a separate AI review agent, from the raw data and with independent SIMBA runs, and the article was reviewed by SIMBA Team.