Circuit-EM Co-Simulation
The Co-Simulation Workflow
| Phase | Tool Used | Action Performed | Compute Time |
|---|---|---|---|
| 1. Layout Design | Layout Editor | Draw copper traces, vias, and ground planes. | Manual |
| 2. Port Definition | Layout Editor | Place internal ports across gaps where components go. | Minutes |
| 3. Extraction | 2.5D or 3D EM Solver | Solve Maxwell's equations for the passive layout. | Hours |
| 4. Co-Simulation | Circuit Solver (Schematic) | Attach transistors to the EM block and tune/optimize. | Seconds |
When generating the EM block, every component gap becomes an internal port. An amplifier with an input port, output port, and 5 surface-mount capacitors requires a 7-port S-parameter matrix.
[S] = 7x7 Matrix (49 individual S-parameters)
This matrix maps exactly how much energy couples from Port 1 to Port 7 (cross-talk), how much reflects off the pad at Port 3 (parasitic capacitance), and how the ground via inductance affects Port 4. The circuit solver simply multiplies this massive passive matrix by the active transistor models.
Frequently Asked Questions
Why not just use a 3D EM solver for everything?
Because 3D EM solvers (like HFSS or CST) are passive. They do not know how a transistor compresses, how it generates harmonics, or how its bias voltage affects its impedance. Furthermore, if you want an optimizer to try 500 different capacitor values to find the best match, running a 4-hour 3D EM simulation 500 times would take months. Co-simulation allows the fast schematic solver to handle the components, achieving optimization in seconds.
What is an "Internal Port"?
In standard EM simulation, ports are placed at the edges of the board (like SMA connectors). For co-simulation, you must place 'internal ports' directly on the layout wherever a component will sit. These act as mathematical insertion points. The EM solver calculates the physics of the metal up to that point, and the schematic solver injects the component's physics into that exact physical location.
When does schematic-only design fail?
As frequencies rise above 1 GHz, components get physically closer together relative to the wavelength. In a schematic, two inductors placed side-by-side do not interact. On a real PCB, their magnetic fields couple together, creating a transformer. If you do not EM-extract the layout and run a co-simulation, your schematic will completely ignore this coupling and fail on the test bench.