LatestLibChar runs 100x faster in the cloud with IC Manage Holodeck (408) 647-6025sales@libtech.com
Library Technologies, Inc.IC Timing, Power, Yield and Reliability

How to verify a CCS library against SPICE

Short answer

Build a test bench for every timing arc of every cell, drive a distributed RC (DSPF) load with instances of the same cell as fanout, and compare the delay your static timing analyzer reports with the delay SPICE measures under the same conditions. Large deviations point to wrong entries, missing arcs or bad driver and receiver models.

Why current source models need their own test

Unlike previous generations of delay models, where the characterization model and the delay calculation model assumed the same lumped capacitance approximation, current source models are used with distributed loads. That makes it important to check model accuracy under distributed load conditions, not only at the characterization points.

This is usually done for isolated instances of clock drivers in a manual fashion, by comparing delay calculation to SPICE simulation. Doing it for every arc of every cell needs automation.

What usually goes wrong

ProblemTypical causeHow it shows up
Wrong timing valuesHand-made or template-based librariesSTA delay far from SPICE on some arcs
Missing timing arcsState-dependent arcs not identifiedArc absent from the library
Wrong input capacitanceManual measurement or wrong stateReceiver load error in the fanout
Slope or load range too narrowTables do not cover real conditionsDelay calculation accuracy compromised
Liberty and Verilog mismatchModels built separatelySDF back-annotation problems

The flow, step by step

  1. Recover the function. If the Liberty library came from elsewhere, Syn2acdl generates ACDL functional descriptions of the cells.
  2. Run functional tests first. If the SPICE netlist and the Liberty entry disagree, a timing comparison is meaningless.
  3. Build the test bench per arc. The cell drives a distributed RC network described in DSPF; the same set-up is written in Verilog for the timing analyzer and in SPICE.
  4. Compare and narrow down. Change fanout, RC loading or characterization set-up to find the source of a deviation.
makelib ccstests

The command carries out all intermediate steps for all corners and library cells.

FAQ

Does this only work for CCS?

No. The suite was designed for current source models like CCS and ECSM, and it also tests NLDM libraries for interpolation errors.

Can it check a library that was not built with SolutionWare?

Yes. Syn2acdl recovers ACDL descriptions from an existing Liberty library, so the functional and timing tests can run on it.

How long does it take?

The run time of CCSTEST is a small fraction of the characterization time.

Sources: CCSTEST product documentation; “Library Technologies, Inc. Announces CCSTEST Library Verification Suite for Current Source Models”, May 19, 2008.