Skip to main content

Updated 5 min readMixed-Signal

Mixed-signal verification guide

Mixed-signal verification in practice: Verilog-AMS and SystemVerilog real-number models, co-simulation engines, interface planning, coverage and regressions.

By the SkyCadEda engineering teamHow these notes are written

  • Mixed-Signal
  • Verification
  • Verilog-AMS
  • Co-Simulation
  • SoC Design
  • EDA

ShareLinkedInX

On this page

Mixed-signal verification checks the analog-digital boundary of a chip: that ADCs, PLLs, regulators and references behave correctly under digital control, and that digital logic reacts correctly to what they produce. In practice it means choosing an abstraction for each analog block (transistor netlist, Verilog-AMS model or real-number model), running them together with the RTL in a co-simulator, and checking the interface with measurements and assertions.

The speed gap that drives every decision

Digital teams verify with SystemVerilog and UVM (the Universal Verification Methodology, IEEE 1800.2), constrained-random stimulus and functional coverage, running very long regressions. Analog teams verify with transistor-level transient and corner simulation in Spectre, PrimeSim HSPICE or Eldo, which is orders of magnitude slower than RTL simulation. A full transistor-level SoC cannot run a firmware boot sequence in useful time, so most mixed-signal verification runs on models and saves transistor-level runs for the tests where analog detail decides the result.

A practical hierarchy uses three levels:

LevelAnalog viewTypical use
FastSystemVerilog or wreal real-number modelsControl loops, power-up and calibration sequences, register interfaces, nightly regressions
MixedVerilog-AMS models plus selected transistor-level blocksFocused interface checks, threshold and timing behaviour at one boundary
SignoffTransistor-level netlists (pre- or post-layout) for the blocks under testSettling, offset, supply sensitivity, startup; model correlation

Behavioural models in Verilog-AMS

Verilog-AMS is defined by the Accellera Verilog-AMS Language Reference Manual (version 2.4). It adds an analog block, electrical disciplines with potential and flow quantities, event functions such as cross and above, and filters such as transition that turn discrete values into continuous waveforms the solver can handle. A minimal comparator model:

`include "disciplines.vams"

module cmp (inp, inn, out);
  input inp, inn;
  output out;
  electrical inp, inn, out;
  parameter real vdd = 1.8;
  parameter real td  = 1n;    // decision delay
  parameter real tr  = 50p;   // output edge time
  integer state;

  analog begin
    @(initial_step) state = (V(inp) > V(inn));
    @(cross(V(inp) - V(inn), +1)) state = 1;
    @(cross(V(inp) - V(inn), -1)) state = 0;
    V(out) <+ transition(state * vdd, td, tr);
  end
endmodule

The cross events force the solver to place a timepoint at the crossing, and transition gives the output a finite edge so it does not create a discontinuity. Offset, hysteresis and supply dependence can be added as parameters once the regression needs them.

Real-number models in SystemVerilog

RNM represents an analog value as a real number that changes only at events, so it runs in the digital engine with no analog solver. Verilog-AMS provides wreal; SystemVerilog (IEEE 1800-2012 onward) provides real variables and user-defined nettypes with an optional resolution function, which make multi-driver nodes explicit:

// A real-valued net whose drivers are summed (e.g. currents into a node)
function automatic real res_sum (input real drivers[]);
  res_sum = 0.0;
  foreach (drivers[i]) res_sum += drivers[i];
endfunction

nettype real real_sum_net with res_sum;

Teams often use a struct nettype carrying more than one field (for example voltage and source resistance) so a resolution function can model loading. RNM does not capture drive strength, loading or settling unless the model includes them, which is why every model needs a correlation run against its transistor-level view.

Co-simulation engines

When part of the design stays electrical, the simulator runs an event-driven engine and an analog engine on one timeline and inserts connect modules wherever a digital net meets an electrical node. Examples:

  • Cadence: Spectre AMS Designer, Xcelium paired with a Spectre analog engine.
  • Synopsys: VCS paired with PrimeSim.
  • Siemens EDA: the Symphony mixed-signal platform.

The connect rules (logic thresholds, output resistance, supply reference, what happens to X and Z) decide whether the interface is modelled faithfully. The mechanics are covered in mixed-signal co-simulation basics.

Plan the interface before writing tests

Most mixed-signal bugs sit at the boundary, so the verification plan starts with an inventory of every signal that crosses it, including clocks, resets, supplies, references, bias controls, test modes and calibration buses:

FieldExample
DirectionAnalog to digital (comparator out), digital to analog (DAC code)
Units and legal range0 to 1.2 V; 10-bit code 0 to 1023
Thresholds and hysteresisHigh 0.7 VDD, low 0.3 VDD, behaviour in between
Timing referenceSampled on rising edge of adc_clk; settle within 20 ns
InitializationUnknown until bias_ok rises; monitors start after that event
Out-of-range and X/Z policyFlag an error, never treat an intermediate voltage as a valid logic level

The values above are examples; take them from the block specifications. A digital code driving an analog model also needs a documented transfer function, update timing, saturation and illegal-code behaviour.

Low-power sequences

Analog blocks respond to power-state changes with settling delays, startup sequences and bias ramp-up that the digital power controller must respect. Run power-up with analog monitoring to check that references and bias are within specification before the digital domain releases reset, and check power-down for floating nodes and disturbed shared bias. UPF power intent can be connected to supply-aware real-number models in some flows; check what your simulator supports before relying on it.

Coverage and checkers

Analog outputs cannot be checked for equality, so checkers compare a measured value against a window: final value within tolerance, settling within a time limit. Coverage then records which analog conditions were exercised, such as ADC code bins hit, PLL lock at each target frequency, regulator output levels under each load mode, and crosses of digital control states with analog conditions. Quantising each real value into integer bins for a SystemVerilog covergroup is enough for range coverage. Report tests that did not run or did not produce a measurement separately: unknown coverage is not zero coverage, and a missing measurement is not a pass.

Debugging and regressions

Isolate the failing domain first: is the analog output within specification, is the digital protocol correct, is the timing between domains violated? Then replace the model with the transistor-level view only in that region. Split regressions into a fast RNM suite that runs on every change and a deeper suite with transistor-level blocks on a slower cadence, fix seeds and solver settings so runs are reproducible, and keep model assumptions documented so reviewers can see which behaviours were never simulated at transistor level. The workflow for classifying failures is in mixed-signal regression triage.

Frequently asked questions

What is mixed-signal verification?

It checks that analog and digital blocks on the same chip work together: analog circuitry behaves correctly under digital control, digital logic responds correctly to analog outputs, and the interface holds across supply, temperature and process corners and through power-state changes.

What is the difference between Verilog-AMS and real-number modeling?

Verilog-AMS is an Accellera standard language with conservative electrical disciplines and an analog block solved by a SPICE-class engine, so it models voltages and currents on real nodes. Real-number modeling (RNM) passes real values through an event-driven simulator, using Verilog-AMS wreal or SystemVerilog real variables and nettypes. RNM runs close to digital speed but only models the behaviour you write into it.

What tools are used for mixed-signal co-simulation?

Cadence Spectre AMS Designer pairs Xcelium with a Spectre analog engine, Synopsys pairs VCS with PrimeSim, and Siemens EDA offers the Symphony platform. All of them translate between the event-driven and analog domains through connect modules at each boundary net.

When should a block be simulated at transistor level instead of with a model?

When the analog detail can change the pass or fail result, for example settling accuracy, comparator offset, supply sensitivity or a startup sequence. Interface and control-logic regressions can use behavioural models, provided each model has been checked against the transistor-level view.

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.