Back to Blog
Simulation

Multi-Domain Simulation: Why Splitting Analog and Digital Tools Is a Mistake

· Updated October 12, 2026
11 min read
Circuit board illustration split between flowing analog sine waves on one side and digital logic pulses on the other, merging at the centre

Here's a mistake I made early in my own engineering career, and one I still see students make constantly: treating 'analog' and 'digital' as two separate subjects that you learn in two separate courses, with two separate tools, and then somehow bolt together at the end. Real circuits don't work that way. The moment your microcontroller's GPIO pin drives a motor through a MOSFET, you have a digital signal controlling an analog load, and if your simulation tool can't model both at once, you're not simulating your circuit, you're simulating half of it and hoping the other half behaves.

This is the entire reason NevilLabs runs Multi-Domain Simulation instead of separate analog and digital simulators bolted together with a translation layer. Digital, analog, SPICE-level component behaviour, microcontroller firmware, and FEA-based mechanical stress — all evaluated as one connected system, with Newton-Raphson convergence handling the non-linear bits and proper transient analysis showing you what actually happens over time, not just at a snapshot.

What You Will Learn

  • Why analog and digital behaviour can't be accurately modelled as two separate simulations bolted together
  • How Newton-Raphson convergence solves the non-linear equations that show up whenever a diode, transistor, or MOSFET is in the circuit
  • What a Bode plot actually tells you about a circuit's frequency response, and why it matters even in a 'digital' design
  • The difference between DC operating point, AC small-signal, and transient analysis — and when each one lies to you if used alone
  • Why mixed-signal bugs (a digital control loop misbehaving because of an analog side effect) are some of the hardest bugs to catch without joint simulation
  • Where FEA-based mechanical stress modelling fits alongside electrical simulation for mechatronic systems

The Bug That Only Shows Up When You Simulate Both Domains Together

Picture a PWM-controlled motor driver. The digital side is simple: a microcontroller toggles a GPIO pin at a fixed frequency, adjusting duty cycle to control speed. Simulate just that digital signal and it looks perfect — a clean square wave, exactly the duty cycle you asked for. But that square wave is driving a MOSFET gate, and the MOSFET has parasitic gate capacitance (there's the messy detail nobody puts in the beginner explanation) that takes real time to charge and discharge. At high switching frequencies, that capacitance means your MOSFET spends part of every cycle in its linear region instead of fully on or fully off — which means it's dissipating real power as heat, not switching cleanly like the digital diagram suggests.

You cannot catch that with a digital simulator, because a digital simulator has no concept of gate capacitance, rise time, or power dissipation. You cannot catch it with an analog simulator alone either, because you need the actual digital switching pattern driving it, not an idealised sine wave. You need both domains evaluated together, in the same solver, at the same timestep. That's the entire argument for multi-domain simulation, and it's not an academic nicety — it's the difference between a design that works on the bench and one that quietly cooks itself.

Schematic of a MOSFET gate driver with an overlaid graph comparing the ideal square-wave gate signal against the real, rounded waveform caused by parasitic gate capacitance
The ideal digital signal (blue) versus what the gate capacitance actually produces (red). This gap is invisible to a digital-only simulator.

Bode Plots Aren't Just an Analog Thing

A lot of digitally-minded engineers dismiss Bode plots — magnitude and phase versus frequency — as 'analog stuff' that doesn't apply to their work. That's a mistake, because every feedback control loop, digital or otherwise, has a frequency response, and if that response has too much phase lag at the wrong frequency, the loop oscillates. A PID controller regulating motor speed, a switching power supply's feedback loop, a sensor's anti-aliasing filter — all of these are governed by the same frequency-domain behaviour a Bode plot reveals, whether or not there's a microcontroller in the loop.

Running an AC small-signal analysis and reading the resulting Bode plot tells you, before you build anything, whether your feedback loop has enough gain margin and phase margin to stay stable across its operating range. Skip this step and the failure mode is brutal: a control loop that works perfectly on the bench at room temperature and oscillates the moment a component value drifts with heat.

Transient Analysis: What Actually Happens Over Time

DC operating point analysis tells you the steady-state voltages once everything settles. AC analysis tells you the frequency response around that steady state. Neither tells you what happens in the messy in-between moments — the microsecond after power-on, the instant a relay closes, the transient spike when a motor's back-EMF hits the driver circuit. That's what transient analysis is for: stepping through time, timestep by timestep, solving the full non-linear system at each point with Newton-Raphson convergence.

This is also where the 'messy reality' caveat earns its keep. Newton-Raphson convergence isn't guaranteed to find a solution on every timestep — highly non-linear circuits (certain oscillators, circuits near a discontinuity like a diode's turn-on threshold) can genuinely fail to converge, and a solver has to fall back to smaller timesteps or different initial guesses. A simulator that hides this from you, that always just shows a clean result, either got lucky with an easy circuit or is quietly cutting corners on the harder ones.

Practical Applications

Multi-domain simulation isn't a NevilLabs-only concept — it's the standard expectation across serious electronics engineering, once a design gets complex enough to have real analog-digital interaction.

  • Power electronics design (motor drivers, switching supplies, battery management systems) fundamentally requires joint analog-digital simulation, because the entire function of the circuit is a digital control signal shaping an analog power flow (Mohan, Undeland & Robbins, Power Electronics).
  • Automotive electronic control units (ECUs) are validated with mixed-signal simulation before physical prototypes, because a firmware bug interacting badly with an analog sensor circuit is far cheaper to find in simulation than in a recalled vehicle.
  • Semiconductor design houses use SPICE-level transient simulation to validate chip-level analog-digital interfaces (ADCs, DACs, PLLs) before committing to a fabrication run costing millions of dollars (IEEE Design & Test, mixed-signal system validation).
  • Aerospace guidance and control systems rely on joint simulation of digital flight computers and the analog sensor/actuator hardware they drive, since a mismatch between the two domains in a control loop is a flight-safety issue, not just a bug (NASA Technical Reports Server).

Real Products Around Us

  • Every switch-mode power supply in your laptop charger runs a digital or analog feedback loop whose stability was validated with exactly this kind of Bode-plot analysis before it ever shipped.
  • Tesla's motor control inverters combine digital PWM switching with analog current sensing in a tightly coupled feedback loop — precisely the mixed-domain interaction this article describes.
  • Cadence's Virtuoso and Synopsys's HSPICE, long-established tools in chip design, exist specifically because analog and digital behaviour on a single silicon die cannot be simulated separately — the professional world settled this argument decades ago.
  • The Raspberry Pi's power management IC (PMIC) is a small mixed-signal system in its own right — digital control logic managing analog voltage regulation, validated the same way before it ever reached a board.
  • NevilLabs applies that same joint-domain principle in a browser tab: Multi-Domain Simulation solves Digital, Analog, SPICE, Microcontroller, and FEA together in one run, with Newton-Raphson convergence for the non-linear parts, Bode plots for frequency response, and full transient analysis — so the MOSFET gate-capacitance problem that opened this article is visible to a student on a laptop, not just to a team with a seat of enterprise EDA software.
If your simulator makes you choose between analog and digital, it isn't simplifying your problem — it's hiding half of it from you.

Simulate the Whole Circuit, Not Half of It

The reason I keep coming back to this point is that I've watched too many designs pass a partial simulation and fail on the bench for reasons that a joint analog-digital run would have caught in minutes. NevilLabs' Multi-Domain Simulation runs Digital, Analog, SPICE, Microcontroller, and FEA together, with Newton-Raphson convergence and full transient analysis under the hood, precisely so that the gap between 'it worked in simulation' and 'it worked on the bench' shrinks to something you can actually trust.

If you're currently juggling a digital simulator and a separate SPICE tool and manually reconciling the two, join the NevilLabs waitlist — I'd genuinely like to hear about the specific mixed-signal bugs you've had to chase down, because that's exactly the problem this engine exists to solve. Build it. Break it. Understand it.

References

  1. Mohan, N., Undeland, T. M., & Robbins, W. P. (2003). Power Electronics: Converters, Applications, and Design (3rd ed.). Wiley. (Covers switching-converter modelling and the coupling of digital control signals to analog power stages.)
  2. Lim, B. C., Jang, J.-E., Mao, J., Kim, J., & Horowitz, M. (2014). Digital Analog Design: Enabling Mixed-Signal System Validation. IEEE Design & Test, 32(1), 44–52. doi: 10.1109/MDAT.2014.2361718 (opens in a new tab)
  3. NASA Technical Reports Server. (2017). Guidance, navigation, and control simulation methods for launch vehicles. — https://ntrs.nasa.gov/ (opens in a new tab)
  4. Sedra, A. S., & Smith, K. C. (2020). Microelectronic Circuits (8th ed.). Oxford University Press.
  5. Razavi, B. (2016). Design of Analog CMOS Integrated Circuits (2nd ed.). McGraw-Hill Education.
  6. Ogata, K. (2009). Modern Control Engineering (5th ed.). Prentice Hall. (Covers Bode plot stability analysis in feedback systems.)

Start your first build with NevilLabs

Design a circuit, run the simulation, and see the physics behind it — in your browser. We're inviting early users in small batches.

Join the Waitlist