Updated 4 min readMixed-Signal Verification
Mixed-signal co-simulation basics
How analog and digital engines share one timeline in co-simulation: synchronization, Verilog-AMS connect modules and rules, testbench setup, convergence.
By the SkyCadEda engineering teamHow these notes are written
On this page
Mixed-signal co-simulation runs an event-driven digital engine and a continuous-time analog engine together on one timeline. Wherever a digital net meets an electrical node, the simulator inserts a connect module that converts logic values to voltages or voltages to logic values. Getting those conversions and the synchronization between the engines right is most of the work.
Why the boundary needs both engines at once
A data converter feeding a digital filter, a PLL clocking a processor, or a regulator controlled by a state machine can each pass when simulated alone and fail when connected. The failures live at the boundary: a capture near a clock edge, a settling transient that violates a sampling window, a converter code that oscillates when feedback crosses the interface. Co-simulation lets one testbench apply a digital stimulus and check a continuous node, or the reverse. Each of the three large EDA vendors sells such a mixed-signal simulator, for example Cadence Spectre AMS Designer (Xcelium paired with a Spectre engine) and the Siemens Symphony platform.
How the engines synchronize
The digital engine evaluates processes only when signals change. The analog engine solves the circuit equations on an adaptive timestep, iterating to convergence at each timepoint. The simulator exchanges values between them at synchronization points: when a digital event drives an analog node, the analog engine must place a timepoint at that event; when an analog voltage crosses a threshold that a digital receiver watches, the digital engine gets an event at the crossing time. Between those points each engine advances on its own, so the digital side is not forced to evaluate at every small analog step. The conversion itself happens in the connect modules at each boundary net.
Know what happens to a digital pulse shorter than the analog engine can resolve with your settings, and to an analog signal that hovers near a threshold. Depending on configuration it may be filtered, stretched or turned into X. When a test depends on boundary timing, such as a comparator deciding on a slow ramp, tighten the analog accuracy settings and compare against the default run.
Connect modules and connect rules
A connect module from logic to electrical needs a supply reference, output levels, rise and fall times and an output resistance per logic state, including what Z means (a high resistance, not 0 V). One from electrical to logic needs high and low thresholds and a policy for the region in between: hold the previous value, go to X after a delay, or flag an error. Connect rules tell the elaborator which modules to insert for which discipline pair and with which parameters. In Verilog-AMS the structure looks like this; the module names and parameters here stand for your project's own connect modules or the ones shipped with your simulator:
connectrules rules_1v8;
connect l2e_1v8 #(.vsup(1.8)) input logic, output electrical;
connect e2l_1v8 #(.vsup(1.8), .vthi(1.2), .vtlo(0.6)) input electrical, output logic;
endconnectrulesCadence ships a library of built-in connect modules and rule sets for common supply voltages; Synopsys and Siemens have their own equivalents. Whichever you use, read the parameters the elaborator actually applied (ask the simulator to report the inserted modules) and check them against the receiver and driver specifications. Designs with several supply domains need supply-aware connect modules or separate rules per domain, otherwise a 3.3 V interface gets 1.8 V thresholds without any warning.
Structuring the testbench
- Keep digital stimulus, checkers and scoreboards in the event-driven domain; keep analog sources, loads and probes in the analog netlist.
- Use real-number models (Verilog-AMS
wreal, or SystemVerilogrealand user-defined nettypes) for analog blocks whose transistor detail does not affect the test. - Make cross-domain checks automatic: measure the analog value at a defined digital event and compare it with a window, instead of inspecting waveforms by hand.
- Define reset and startup explicitly. Analog blocks need time to reach an operating point before digital logic may rely on them.
- Archive the simulator options, analog accuracy settings and connect rules with the results. A waveform cannot be reproduced without them.
Debugging convergence and timestep failures
Co-simulation adds failure modes that neither domain shows alone. An ideal digital driver switching instantly into a stiff analog load can stop the solver from converging. Ideal switches and high-gain behavioral blocks can shrink the timestep until the run looks hung. Behavioral sources with hard corners force repeated step reduction. Give connect modules and behavioral outputs finite rise times, isolate the boundary by driving the analog side from simple sources and the digital side from behavioral models, then recombine until the failure returns. Add small conductances to ground on floating nodes where needed, but fix the specific node instead of loosening tolerances globally. The timestep history near the failure usually points at the offending element.
Before calling a block verified
- The inserted connect modules match the intended logic levels, supply and drive, and X/Z handling is deliberate.
- Boundary-sensitive tests were rerun with tighter analog accuracy at least once and agree.
- Behavioral models used in regression were compared with the transistor-level view and the differences are understood.
- Reset, startup and shutdown cross the interface in a defined order with no analog node floating while logic is live.
- Tests that finish with convergence warnings fail instead of passing.
Planning, modelling choices and coverage for the whole flow are in the mixed-signal verification guide.
Frequently asked questions
What is the difference between co-simulation and simulation with behavioral models?
Co-simulation runs a continuous-time analog engine and an event-driven digital engine together on a shared timeline. Behavioral modeling is an abstraction choice inside either engine: you can co-simulate transistor-level blocks or behavioral ones. Most mixed-signal regressions combine both, with behavioral analog blocks next to detailed digital logic.
Why do connect modules matter so much in mixed-signal simulation?
Connect modules convert logic values to voltages and voltages back to logic values, including thresholds, hysteresis, output resistance, supply reference and the treatment of X and Z. If they do not match the real interface, every check downstream measures the wrong thing, so review the connect rules the simulator applies instead of trusting the defaults.
When should a mixed-signal regression use transistor-level simulation instead of behavioral models?
Use transistor level when the analog detail can change the outcome, such as settling accuracy, comparator offset or supply-sensitive thresholds. Use behavioral blocks for regressions that only exercise digital logic across the interface, and validate each behavioral model against the transistor view at least at nominal conditions.
Related reading
- noteMixed-signal verification guide
- noteMixed-signal regression triage
- noteCompute Farm Scheduling for EDA
More engineering notes
Working through a problem like this?
Tell us about your flow: the tools, the PDK, what is failing and when it needs to be clean.