← Back to SAVER overview

SAVER icon

Documentation

Set up and run SAVER

Configure local tooling and remote formal verification access, launch batch runs, and inspect scoped evidence.

Local Host Linux · Conda · Python 3.11+ Agent CLI Authenticated codex Remote EDA JasperGold (FPV / C2RTL / SEC) System Tools SSH · Yosys · bwrap · C99 cc
Workflow summary: inputs, artifacts, and architecture

SAVER takes a specification and suspect RTL, generates complementary formal checks, attributes counterexamples, and gates candidate repairs. Temporal SystemVerilog Assertions (FPV) verify control and protocol obligations, while executable C reference models (C2RTL) verify numerical datapath behavior. When a check fails, SAVER uses specification requirements, signal dependencies, and waveform traces to separate RTL defects from generated-checker defects before patching.

SAVER End-to-End Architecture
Architecture from specification and suspect RTL through case bootstrap, complementary property-based and reference-model-based verification, counterexample attribution, RTL patch validation, iterative refinement, and final evaluation.

Reviewed specification obligations guide complementary FPV and C2RTL checks; counterexample attribution, regression checks, and differential SEC gate refinement before final evaluation.

Artifact stageWhat it contains
InputsOriginal specification, active RTL, and the resolved design configuration for the selected benchmark entry.
Verification artifactsReviewed obligations, generated SVA assertions, numerical contracts, C reference models, and RTL bindings.
Investigation & repairCounterexample waveform receipts, attribution records, candidate RTL patches, and differential SEC reviews.
ResultsScoped proof outcomes (proven, CEX, U), remaining verification gaps, and separate held-out evaluation.

Passing generated checks establishes their stated obligations under their active assumptions; it does not prove that every requirement in the document was captured. Individual check states describe formal outcomes, whereas a completed receipt describes workflow delivery.

Execution model

SAVER runs with local orchestration, remote licensed EDA execution, and a remote-only benchmark store. Once your environment is configured, launch the batch runner directly—no separate demo setup or local benchmark copy is required.

Orchestration

Local Linux host

Runs the batch launcher and configured model sessions; prepares checks, inspects evidence, and validates C/Python models in isolated local sandboxes.

Formal Engine

Remote EDA host

Executes licensed JasperGold formal verification (FPV), RTL/C equivalence checks (C2RTL), differential SEC, and remote waveform queries.

Data Store

Remote benchmark root

Stores indexed specifications, original RTL, merged active RTL, and held-out evaluation references in the category/design layout.

For each task, the launcher resolves design_key through the bundled design index and transfers only the selected specification, its referenced images, and merged active RTL into the local case workspace, then stages EDA jobs remotely and retrieves their results.

Golden RTL and mutation truth stay strictly outside the discovery and repair loop. Separate remote benchmark operations access them only for FPV input qualification and terminal evaluation; oracle findings are never supplied to the active loop.

Prepare the environment

Run all local setup commands from the repository root.

Local dependencies and model access

Prepare a Linux machine with Conda, Python 3.11+, and an authenticated codex executable that supports native specialist dispatch and project permission profiles.

Local shell · create Conda environment
conda env create \
  -p ./FPV/.conda/envs/assertAgent \
  -f FPV/AssertAgent/environment.yml
source FPV/AssertAgent/env.sh
python -m pip install jsonschema
python -m pip check

The Conda environment installs PyYAML, PySlang, Paramiko, and pylibfst. Install the following system utilities required by your active branches:

System toolPurpose
OpenSSH (ssh, scp)Connect to the remote EDA host and transfer allowed case inputs and job results.
YosysFPV structural elaboration checks.
Bubblewrap (bwrap)Sandbox isolation for executable C2RTL validation tools.
C99 compiler (cc) with ASan & UBSanCompile and sanitize generated C reference models.
Poppler (pdftotext, pdftoppm)Extract text and figures from PDF specifications.
CBMC (optional)Provide bounded model-checking evidence for C assertions when installed.

Model configuration: Authenticate Codex with an account that has access to the models declared in FPV/.codex/agents/batch-parent.toml, C2RTL/.codex/agents/batch-parent.toml, and each branch's .codex/agents/ specialist configs. The launcher flags --model and --reasoning-effort override the root session only; no separate model API integration is needed.

Project config: Enable repository configuration loading in your environment. In FPV/.codex/config.toml, replace the remote-host placeholder and adapt installation-specific runtime paths while preserving the defined role access boundaries.

Remote EDA host requirements

Ensure the remote Linux EDA server provides:

  • JasperGold & licenses: FPV, C2RTL, and SEC apps/licenses for your selected branches, with jg available in the login shell.
  • Python 3.11+: Both ASSERTLLM2_REMOTE_PYTHON and the default login python3 (invoked directly by C2RTL) must include pylibfst==0.2.1, jsonschema, and PyYAML.
  • Waveform converters: An FSDB-to-FST converter (at <remote-job-directory>/.tools/fsdb2fst or on PATH) with matching FsdbReader runtime (set VERDI_HOME if required), plus vcd2fst for VCD waveforms.
  • Benchmark & scratch space: The benchmark arranged in the indexed <category>/<design> directory layout and a writable remote EDA job directory.

During terminal evaluation, SAVER automatically mirrors code and closed case artifacts to the same absolute checkout path used locally; ensure the remote user has write permission to create or update that path (no manual staging command is needed).

Configure remote execution

Source FPV/AssertAgent/env.sh first, then export your remote values. Re-sourcing env.sh resets these variables back to placeholders. All directory and interpreter paths below must be absolute paths on the remote host.

Local shell · remote EDA host variables
export ASSERTLLM2_REMOTE_HOST="<eda-host>"
export ASSERTLLM2_REMOTE_USER="<eda-user>"
export ASSERTLLM2_REMOTE_ROOT="<absolute-remote-job-directory>"
export ASSERTLLM2_REMOTE_DESIGNS_ROOT="<absolute-remote-benchmark-directory>"
export ASSERTLLM2_REMOTE_PYTHON="<absolute-remote-python-executable>"
export ASSERTLLM2_REMOTE_JG=1

export C2RTL_EDA_HOST="$ASSERTLLM2_REMOTE_HOST"
export C2RTL_EDA_USER="$ASSERTLLM2_REMOTE_USER"
export C2RTL_EDA_ROOT="$ASSERTLLM2_REMOTE_ROOT"
export C2RTL_REMOTE_DESIGNS_ROOT="$ASSERTLLM2_REMOTE_DESIGNS_ROOT"
export C2RTL_DISPATCH_EDA=1
export C2RTL_DESIGN_SOURCE=remote
  • Benchmark root path: ASSERTLLM2_REMOTE_DESIGNS_ROOT must point to the parent directory containing category folders (such as COMMUNICATION_CONTROLLER/), not an individual design directory. Leave ASSERTLLM2_DESIGNS_ROOT at its default index-mapping value.
  • Shared C2RTL endpoints: C2RTL falls back to the ASSERTLLM2_REMOTE_* variables, and the exports above make the shared configuration explicit.
  • SSH authentication: Prefer SSH keys or an SSH agent for unattended runs. For password-backed servers, point ASSERTLLM2_REMOTE_PASSWORD_FILE (and optionally C2RTL_REMOTE_PASSWORD_FILE) to private local files outside the repository.

Start a run

Copy the sample task manifest, select the entries available on your remote host, and start the batch launcher from the repository root:

Local shell · launch selected tasks
cp batch_cases.json cases.json
# Edit cases.json: retain the tasks you intend to run and choose fresh case_name values.
python run_codex_batch.py --cases-file cases.json

The supplied manifest lists 25 designs with paired FPV and C2RTL tasks (choose only designs present on your remote host; index membership alone does not guarantee remote availability). Each task entry specifies:

FieldMeaning
branchFPV for temporal property verification or C2RTL for executable reference-model verification.
design_keyExact design identifier from AssertLLM2/configs/assertllm2_design_configs.json.
case_nameFresh local workspace name starting with a letter (letters, digits, underscores). Sibling branches sharing a name must target the same design.

Startup automatically handles input transfer, branch setup, specialist dispatch, verification, repair gating, and terminal delivery in list order—do not invoke separate bootstrap scripts first.

Dry-run inspection and resuming

Preview the resolved execution plan without starting model sessions or EDA jobs, or resume an interrupted batch with the same manifest and progress file:

Local shell · preview plan or resume run
# Inspect the launch plan without starting jobs
python run_codex_batch.py --cases-file cases.json --show-plan

# Resume recorded root sessions and skip completed tasks
python run_codex_batch.py --cases-file cases.json --resume

After an abrupt interruption, reconcile any still-running session before resuming. Run python run_codex_batch.py --help to view all CLI options.

View progress and results

The launcher streams task status and root summaries to stdout. To inspect structured progress from a second terminal at the repository root:

Local shell · inspect progress receipt
python -m json.tool cases.progress.json

Progress files default to <cases-file-stem>.progress.json unless overridden with --progress-file. Case workspaces are created under <case_name>/<branch>/:

Workspace pathWhat to inspect
cases.progress.jsonPer-task launcher status, attempt counts, and completion receipts.
<case_name>/<branch>/orchestration/launcher/attempt_NNN/events.jsonlLive root-session events (stderr.log in the same directory captures launcher errors).
<case_name>/FPV/iterations/iter_NN/reports/report.mdPer-assertion FPV proof outcomes and links to iteration evidence.
<case_name>/C2RTL/status.json & completion.jsonNumerical workflow progress, completion class, and remaining obligations.
<case_name>/C2RTL/report.mdC2RTL checks, attributed findings, candidate repairs, and scoped verification outcomes.
<case_name>/FPV/iterations/final_evaluation/ & <case_name>/C2RTL/Eval/Separate held-out terminal benchmark evaluation.

Always interpret results alongside their RTL version, configuration, assumptions, and proof scope. A completed receipt indicates workflow artifact delivery—it does not imply that every property was proven or that every defect was repaired.

Repository links & references