NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Verifying nonlinear analog and mixed-signal circuits with inputs

Chuchu Fan, Yu Meng, Jürgen Maier, Ezio Bartocci, Sayan Mitra, Ulrich Schmid

Introduction

Formal verification—the process of mathematically proving that a system will never enter an unsafe or undesired state—is a cornerstone of reliable systems engineering. However, applying these techniques to nonlinear hybrid systems, such as analog and mixed-signal (AMS) circuits, remains a significant challenge. These circuits often exhibit complex, high-dimensional nonlinear behaviors that are sensitive to both initial conditions and external inputs.

Researchers have recently introduced a novel simulation-driven algorithm designed to handle these complexities. By refining how external inputs are treated during sensitivity analysis, the new approach allows for the verification of sophisticated CMOS models and the detection of metastable states that previously caused verification tools to fail.

The Challenge of External Inputs

A common technique in formal verification is simulation-driven verification. This involves simulating a system from a set of initial points and then "bloating" those trajectories by a factor that accounts for the system's sensitivity to initial conditions. The resulting "reachtube" represents an over-approximation of all possible system behaviors.

The primary hurdle has been the inclusion of external inputs, such as clock signals or data pulses. Traditionally, researchers "closed" the system by treating the input as an additional state variable. However, because inputs often involve sharp transitions (like a rising edge), this approach makes sensitivity analysis extremely conservative. The resulting bloated reachability set often becomes so large it is practically useless—a phenomenon known as "wrapping" or "explosion."

Figure 1: An illustration of the 'sensitivity explosion' or 'blow up' phenomenon, where the over-approximation of a circuit's state (x1) reaches physically impossible levels, indicating a loss of precision or a metastable state.

Methodology: Fixed-Input Sensitivity

The core innovation of this research is a technique for computing discrepancy functions specifically for "open" systems. A discrepancy function measures how much two neighboring trajectories can diverge over time.

Fixed-Input Analysis

The researchers' key insight is that if the input signal is treated as a fixed, known function rather than an uncertain state variable, the divergence between trajectories depends solely on the system's Jacobian with respect to its internal states. By bounding the largest eigenvalue of the symmetric part of this state Jacobian, they can calculate a precise, time-varying bloating factor ((\gamma)).

Implementation in C2E2

This methodology was integrated into the C2E2 verification tool. The tool operates by:

  1. Simulating a numerical trace of the circuit.
  2. Computing local sensitivity based on the fixed-input Jacobian.
  3. "Bloating" the trace into a reachtube.
  4. Checking if this tube intersects any defined "unsafe" regions.

Modeling Complexity and Metastability

The researchers evaluated their method using two distinct modeling paradigms for transistors:

  • Hybrid Modeling: Transistors are modeled as switching between discrete modes (off, linear, and saturation).
  • Uniform Modeling: Transistors are described by a single, massive, smooth nonlinear ODE containing hundreds of logarithmic and exponential terms to cover all operating regions.

This approach proved particularly effective for analyzing metastability—a state where a circuit becomes "stuck" between logical 0 and 1. The paper rigorously connects the recovery time from metastability to the sensitivity ((\gamma)) of the underlying differential equations, providing a formal framework for analyzing timing failures in digital logic.

Key Results and Performance

The proposed method demonstrated significant improvements in both speed and robustness over existing tools like Flow and CORA*.

  • Efficiency: For a standard cardiac oscillator benchmark, the C2E2 implementation completed safety verification in just 0.1 seconds, whereas Flow took nearly 6 seconds and CORA* required over 200 seconds for a simplified version.
  • Robustness: While tools like dReach often failed on complex CMOS models due to numerical errors (e.g., "division by zero"), C2E2 successfully verified these models even when using high-dimensional "Uniform" transistor equations.
Figure 6: Verification results for a CMOS inverter. The plots show the input (Vin) and output (Vout) signals over time, with the colored regions representing the precisely computed reachtubes that prove the circuit's safety.

Conclusion and Future Directions

By decoupling input uncertainty from state sensitivity, this research provides a path forward for verifying the complex nonlinear components found in modern mixed-signal chips. While challenges remain—such as handling "stiff" ODEs and generalizing the algorithm to handle sets of possible input signals—this work represents a major step toward the automated formal sign-off of analog hardware.

Summary updated

BibTeX
@inproceedings{fan2018verifying,
  author = {Chuchu Fan and Yu Meng and Jürgen Maier and Ezio Bartocci and Sayan Mitra and Ulrich Schmid},
  title = {{Verifying nonlinear analog and mixed-signal circuits with inputs}},
  booktitle = {ADHS},
  year = {2018},
  doi = {10.1016/j.ifacol.2018.08.041},
}
Figure