We are not building SPICE as an isolated waveform generator. We are building the analog execution layer of the WIOWIZ verification platform.
Why an owned analog engine
A mixed-signal SoC is not purely digital with an analog appendix. Configuration, calibration, protocol control, interrupts, scoreboards, and coverage live in the digital verification environment. Continuous-time behavior lives in transmitters, receivers, data converters, oscillators, sensors, supplies, and clock-recovery loops. Verification loses the system interaction when those two sides run as unrelated jobs.
ngspice and Xyce are mature circuit simulators and valuable independent references for this work. We are not building WIOWIZ Native SPICE because those projects are inadequate, and we do not frame our engine as their replacement. We use them as external, file-based references where a comparison helps us test a specific result.
The reason for an owned engine is architectural. FSimX must be able to ask the analog solver to attempt a timestep, inspect a threshold crossing, roll back, settle digital and analog feedback at the same simulation time, and commit only an accepted state. The same session must expose results to scoreboards, assertions, coverage, diagnostics, and replay. That requires control of the analog state machine, not only access to a finished waveform.
The established mathematics we build on
The numerical foundations of circuit simulation are established engineering methods. Modified nodal analysis, Newton iteration, sparse factorization, continuation, and implicit time integration are not WIOWIZ inventions. Our work is to implement and own those stages, connect them through explicit contracts, preserve deterministic accepted state, and integrate them with the verification flow.
| Simulation stage | Established SPICE method | WIOWIZ implementation objective |
|---|---|---|
| Circuit formulation | Modified nodal analysis | Owned device stamps, charge terms, branch equations, model routing, and physical residual checks |
| Nonlinear solve | Newton-Raphson iteration | Deterministic recovery ladder with structured node, device, model, phase, and matrix context |
| Linear algebra | Sparse ordering and factorization | Cached symbolic structure, numeric refactorization, bounded fallback, and deterministic telemetry |
| Time integration | Backward Euler, trapezoidal, and BDF | Accepted and trial state separation suitable for LTE rejection and AMS rollback |
| Convergence recovery | Limiting, damping, source stepping, and GMIN stepping | Ordered native recovery attempts with recorded outcomes and a separate numerical acceptance gate |
| Compact models | Native equations or compiled model interfaces | Native critical devices plus an owned Verilog-A compiler and signed compiled-model admission |
| Digital interaction | Simulator-specific integration boundary | Direct FSimX coupling with D2A, A2D, trial, rollback, same-time settle, and commit |
| Verification result | Waveforms and measurements | Waveforms plus scoreboard decisions, assertions, coverage inputs, and classified evidence |
That table is the distinction we want to make. The mathematics belongs to the circuit-simulation field. The implementation, state ownership, diagnostics, and verification integration are the WIOWIZ engineering surface.
Capability and qualification are tracked separately. In this article, implemented means the code path exists in the native engine. Exercised means it has run in a named, bounded fixture. Numerically compared means a retained result was checked against an independent reference under a stated contract. Accuracy-qualified requires the relevant model and analysis to pass its authorized comparison campaign. Roadmap means direction, not a current capability.
| Capability | Current status | Evidence boundary |
|---|---|---|
| Sparse MNA, Newton iteration, and recovery ladder | Implemented; exercised on the named core, uPHY, and CIM studies | Two of five frozen core comparisons pass; the scale study retains sparse telemetry but only a one-node, one-time voltage check |
| Backward Euler, trapezoidal, and variable-step BDF2 | Implemented; exercised in bounded transient fixtures | Not broadly accuracy-qualified across mixed-domain workloads |
| Native devices and Verilog-A compiler with signed ABI v2 through v10 | Implemented; model status varies | PSP103T is bounded engineering execution, HICUM is bounded intake, and BSIM-CMG is compiler-census only |
| Four-state AMS events, delta cycles, crossing rollback, same-time settle, and commit | Implemented; exercised in bounded fixtures | Demonstrated on ideal closed loops and one recovered-clock uPHY, not full-SoC AMS qualification |
| FSimX and Native SPICE recovered-clock coupling | Demonstrated in one retained 120 ns experiment | Two coupled replicas are byte-identical; the three standalone analog engines are an engineering comparison, not parity |
| Selected transistor-level partitions inside a UVM SoC session | Roadmap | Architecture direction; not completed or qualified |
What WIOWIZ owns in every solver stage
The frontend parses SPICE syntax, resolves hierarchy and models, builds the circuit IR, and constructs the requested analysis. Unsupported syntax must fail explicitly rather than disappearing as a comment. Native devices and admitted compiled models enter the same matrix-independent evaluation boundary.
Devices stamp currents, charges, and derivatives into a modified nodal analysis system. R, C, L, independent sources, E/F/G/H controlled sources, mutual inductance, bounded switches, diode, MOS1, and the clean-room BSIM3 path form the native device core. Voltage-defined elements add branch-current unknowns and equations. Nonlinear devices contribute terminal residuals and Jacobians at the current Newton state.
Sparse assembly separates topology from changing numeric values. Fill-reducing ordering and symbolic analysis establish the factor structure once for a fixed graph; the symbolic result is cached and reused while Newton states and accepted timesteps change. Numeric refactorization works on that structure. In the completed tiled-SRAM scale sweep, the factor fill ratio stays near 1.14 and dense fallback remains zero through 170,240 MOS devices.
The nonlinear engine evaluates the physical residual, solves for a Newton update, applies convergence checks, and advances through a fixed recovery ladder when necessary: improved initial guess, device limiting, Newton damping, matrix scaling, source stepping, GMIN stepping, and pseudo-transient continuation. Recovery does not waive numerical acceptance.
Transient analysis keeps candidate state separate from immutable accepted history. Backward Euler is the conservative default; trapezoidal and variable-step BDF2 are also implemented with bounded LTE control, source breakpoints, rejected-step rollback, and bounded trapezoid-to-BDF2 ringing suppression. A rejected trial cannot publish model state or events.
The analysis layer includes native OP, DC, AC, transient, transfer, and pole-zero paths, with bounded noise, sensitivity, distortion, S-parameter, HB, PSS, PAC/PXF, and PNOISE foundations at different qualification depths. RF execution is real; broad authorized RF accuracy is still in progress.
The model path is also owned. Verilog-A source passes through WIOWIZ preprocessing, lexer, parser, source-located AST, semantic checks, deterministic IR, and forward automatic differentiation for analytic current, charge, and Jacobian terms on the supported surface. Build-time emission produces modules admitted through signed ABI v2 through v10 contracts. Compilation is not treated as accuracy qualification: PSP103T has bounded electrothermal engineering execution, HICUM has bounded intake without a foundry card or accuracy claim, and BSIM-CMG remains compiler-census only.
Why analog rollback changes AMS architecture
Consider an analog trial from 10.0 ns to 10.5 ns. A comparator threshold is crossed at 10.31 ns. Treating the analog engine as a command-line waveform producer is insufficient because the crossing may change digital control, which may immediately change an analog DAC or switch.
The coupled coordinator performs this sequence:
- Propose the analog trial from 10.0 ns to 10.5 ns.
- Detect and interpolate the comparator crossing at 10.31 ns.
- Reject the original 10.5 ns candidate state.
- Roll the analog solver back to the last accepted state.
- Advance precisely to the 10.31 ns crossing boundary.
- Schedule the corresponding digital event in FSimX.
- Drain every deterministic same-time delta cycle.
- Apply resulting DAC, held-source, switch, or control changes to the analog partition.
- Re-solve the same boundary until analog and digital feedback settles, then commit the accepted state.
- Continue toward the next digital event or analog trial limit.
The product-native AMS kernel uses four-state scalar and bus events ordered by (time, delta, sequence). It provides explicit resolved wires, transport and inertial delay, bounded combinational and sequential primitives, timing monitors, flash encoders, SAR controllers, and typed comparator, DAC, sample-and-hold, and resistor-switch bindings. Event, delta, crossing, boundary, and feedback-iteration limits fail closed.
FSimX and Native SPICE in one verification session
FSimX owns SystemVerilog scheduling, digital control, protocol behavior, and the verification environment. WIOWIZ Native SPICE owns the transistor partition, nonlinear solve, integration history, and analog crossing detection. The fsx-ams-2 boundary makes D2A controls, A2D observations, analog trials, rollback, accepted-state commit, and same-time settlement explicit.
The recovered-clock uPHY is the current concrete example. FSimX generates alternating training and PRBS-7 traffic, applies bounded coarse-frequency control, and scores recovered data. Eight digital-to-analog controls drive a 172-MOS-device transistor TX, channel, receiver, and clock-recovery path. Four observations return recovered clock, recovered data, loop-control voltage, and charge-pump state. Two coupled replicas produce byte-identical analog and digital records across a 120 ns run.
This is why owning both engines matters to us. A digital event can be traced through the boundary, analog solve, threshold decision, returned event, and scoreboard outcome without handing accepted-state ownership to an opaque orchestration layer.
From transistor decisions to UVM scoreboards
The target architecture is selected transistor-level analog partitions inside an otherwise digital SoC verification run. It is not transistor-level SPICE simulation of every device in a full SoC.
The intended flow is:
- A UVM sequence programs digital configuration registers and starts a transaction.
- RTL control, protocol, DMA, interrupts, and firmware-visible state execute in FSimX.
- Selected PHY, ADC, PLL, sensor, or power blocks cross into WIOWIZ Native SPICE at explicit D2A boundaries.
- Transistor-level analog state produces clock, comparator, lock, data, or monitor decisions.
- A2D boundaries return those decisions to RTL at deterministic event times.
- UVM scoreboards, assertions, functional coverage, and protocol checks observe the complete system behavior.
A future example could configure a PHY through its RTL register interface, send packets through the digital datapath, cross into a transistor TX/channel/RX/CDR partition, return recovered bits and clock to RTL, and score the transaction in UVM. That is the direction. The current evidence is a bounded uPHY demonstrator and bounded ideal closed-loop AMS fixtures, not full-SoC mixed-signal qualification.
What the current numbers demonstrate
The numbers span solver behavior, mixed-signal coordination, and circuit scale:
| Area | Current measured result | Boundary |
|---|---|---|
| uPHY line rate | 2.5 Gb/s | One bounded recovered-clock architecture |
| uPHY analog partition | 172 MOS devices | Local SG13G2-like BSIM3 wrapper, not an official foundry card |
| uPHY boundary | 8 D2A controls and 4 A2D/monitor returns | Explicit FSimX and Native SPICE partition |
| uPHY run | 120 ns, 64 training bits, 49 scored payload bits | Not BER, PVT, cold-start, or protocol qualification |
| uPHY replay | Two coupled replicas are byte-identical | Determinism of this retained experiment |
| Recovered periods | WIOWIZ 344.06 ps, ngspice 370.79 ps, Xyce 364.69 ps | Engineering comparison; not clock or waveform parity |
| Ideal SAR loop | All 4,097 ideal input codes exercised | Controller and ideal analog loop, not transistor ADC accuracy |
| CIM scale | 170,240 MOS devices | Regular tiled SG13G2 SRAM compute-in-memory macro |
| CIM memory | WIOWIZ 387,544 KiB; ngspice 1,684,220 KiB; Xyce 1,769,168 KiB | Peak RSS on the completed 170,240-device point |
| Sparse health | fill ratio approximately 1.14; zero dense fallback | Six completed larger scale points |
| Runtime at scale | WIOWIZ 12,098 s; ngspice 971.48 s; Xyce 602.03 s | Runtime is an open optimization problem |
| Core numerical anchors | AC error 0.04448; RC pole-zero error 2.78e-6 rad/s | Two named frozen cases within their pre-set tolerances |
| Recovery-memory promotion | at least 3 successes, 0 failures, enabled, non-high risk | A separate numerical acceptance gate still applies |
The memory result is the clearest current scale strength. The runtime gap is equally real. The uPHY result demonstrates deterministic coupling and system interaction, not cross-engine parity. The SAR result demonstrates the controller and ideal closed loop, not a transistor converter.
What still has to improve
The next engineering work is specific:
- Reduce model-evaluation runtime without sacrificing sparse memory behavior, accepted-state correctness, or deterministic replay.
- Broaden adaptive timestep, LTE weighting, and integration-method policy on real mixed-domain workloads.
- Extend structured diagnostics across more real circuit failures and validate solution-memory remedies on distinct real decks.
- Move compact models from compiler intake to signed execution and authorized ModelQA accuracy comparison.
- Repair and requalify the open RF S-parameter discrepancy before making a public RF accuracy claim.
- Extend AMS from ideal boundaries and one uPHY path to transistor-level ADC, PLL, PHY, sensor, and power partitions.
- Add broader timing, nonlinear same-time feedback, analog settling, charge storage, wider RTL structures, and stronger mixed-signal negative controls.
- Connect analog outcomes more directly to UVM scoreboards, assertions, coverage, and replay artifacts.
- Add silicon correlation only when measured data, licensed models, corners, and a frozen comparison contract are available.
Roadmap to SoC-level mixed-signal verification
The roadmap is to make analog simulation a selectable verification partition, not a separate downstream activity. A verification engineer should be able to keep the SoC, software-visible control, and UVM environment in FSimX while choosing which analog-critical blocks execute at transistor level in WIOWIZ Native SPICE.
The progression is staged: maintain the bounded uPHY evidence; close core solver and model gaps; qualify authorized compact models; extend comparator, DAC, sample-and-hold, switch, timing, and analog-settling behavior; qualify transistor ADC and PLL loops; connect their outcomes to full digital scoreboards and coverage; then expand to selected analog partitions in larger SoC verification environments.
We are building toward that flow. We have not completed it. The realistic objective is a full-SoC digital verification session with selected transistor-level analog partitions, not an impractical promise to solve an entire SoC transistor netlist in SPICE.
Scope
WIOWIZ Native SPICE is a working native engine with owned circuit formulation, sparse solving, nonlinear recovery, analyses, model compilation, diagnostics, and a bounded AMS kernel. Numerical comparison in the frozen five-case core set currently passes the named AC and pole-zero cases; hierarchical subcircuit parsing, sensitivity syntax, and VBIC coverage remain gaps in that campaign. Broad RF accuracy is open, and the held LNA result is not used here. AMS evidence is limited to named ideal fixtures and the recovered-clock demonstrator. The scale study is memory-strong and runtime-slow, with its voltage comparison limited to rbl0 at 5 ns. SoC-level mixed-signal verification is a roadmap direction, not a completed qualification. This is not silicon correlation or tapeout qualification.
Backing numbers
- Measured: 170,240 MOS devices, 387,544 KiB peak RSS, zero dense fallback
- Implemented, bounded fixtures: BE, trapezoidal, and variable-step BDF2
- Implemented, qualification varies: Verilog-A compiler and signed ABI v2 through v10
- Implemented, bounded fixtures: four-state AMS, rollback, same-time settle, commit
- Roadmap: selected transistor-level partitions in a UVM SoC session
Our Approach
We're building systems that think about specifications the way engineers do.
We build our own AI-driven EDA with an intelligence layer across it, on a mission to autonomize the RTL-to-GDSII flow.
Walk-in ones, walk-in zeros