Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FPV_SSH_HOSTNoOptional SSH offload host to a Linux host you configure yourself; unused unless a tool is called with target="testhost".testhost
FPV_REMOTE_ENVNoOptional SSH offload remote environment file; unused unless a tool is called with target="testhost".~/fv-tools/env.sh
FPV_REMOTE_TMPNoOptional SSH offload remote temporary directory; unused unless a tool is called with target="testhost"./tmp/ai4fpv_jobs
FPV_MAX_WORKERSNoParallel workers for per-property proofs and background jobs. Default: max(1, min(4, cpu_count // 2)).
FPV_OSS_CAD_DIRNoOSS CAD Suite root. Default: auto-detected via `yosys` on PATH, then D:\oss-cad, C:\oss-cad, C:\oss-cad-suite, %USERPROFILE%\oss-cad-suite. If set, it must be right: a wrong value is reported, not silently replaced.
FPV_DEFAULT_TIMEOUTNoDefault solver timeout in seconds.600

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

AI4FPV: Deterministic RTL Formal Verification MCP Server built on OSS CAD Suite (Yosys/Slang, SymbiYosys, ABC, Bitwuzla/Boolector/Yices/Z3/Pono). Follow the rtl-fpv-workflow skill: analyze COI first, run cover before BMC, use per-property ABC PDR before monolithic prove, inspect CEX traces via fv_inspect_cex, and gate sign-off with mutation checks and semantic bridging.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
fv_env_checkA

Check local OSS CAD Suite tools (yosys, slang plugin, sby, abc, solvers) and versions. Set check_remote=True ONLY when explicitly requested to probe remote SSH testhost.

fv_list_modelsA

List the built-in formal models installed with this edition: stand-in models for vendor IP modules and primitive libraries for netlist SEC. An edition may have none; the result then says so. Optional category filter; the unfiltered result lists the categories that exist.

fv_analyze_designB

Elaborate RTL + formal harness to inspect state complexity (FF/memory leaderboard), inventory asserts/assumes/covers, detect missing/blackbox modules, and warn on Yosys-vs-Synplify-vs-Questa silent semantic-divergence hazards. aux_files (.mem/.hex/.dat ROM tables read by $readmemh/$readmemb) are staged into the working directory without being passed to the HDL frontend.

fv_run_sbyA

Run a SymbiYosys (SBY) job in an isolated workspace with reliable process-tree timeout. Supports either an existing .sby file OR declarative files+top+aux_files+probes+cutpoints. aux_files (.mem/.hex/.dat ROM tables) are staged into [files] without being passed to read_slang. target='local' runs with the local OSS CAD Suite; target='testhost' offloads over SSH and cleans remote temp dirs.

Long runs: MCP clients abort a call that stays silent for about 30 minutes. For anything that may exceed ~20 minutes pass background=True: the call returns a job_id immediately; poll it with fv_job_status (which reports the BMC step reached so far) and stop it with fv_job_cancel. The server executes simultaneous calls in parallel, but a client may send the calls of one message one at a time; background jobs (up to max_local_workers) overlap regardless. Cancelling a blocking call from the client kills its solver processes.

Reading the result: status is what the engines found. A task declared with expect fail (a reachability check) ends with status="FAIL" when it SUCCEEDS; expectation_met and status_note say whether the outcome is the one the task asked for. TIMEOUT / UNKNOWN / CANCELLED are not passes.

skip=N (bmc/cover) skips assertion checks for the first N steps; extra_options adds raw lines to the generated [options] section. keep_traces=False also disables VCD writing (vcd off). log_tail is condensed to log_lines lines; non-PASS runs save the full log to log_file. Probe wires named in probes/post_mem_probes are kept automatically (no (* keep *) needed); undriven wires that are NOT bound are reported in warnings.

fv_job_statusA

Poll a background job started with fv_run_sby(background=True). While running it returns state='RUNNING' with the deepest BMC step / PDR frame reached so far; once finished it returns state='DONE' plus the complete fv_run_sby result under result. wait_sec (max 900) blocks up to that long for completion, so one call can replace many polls. Omit job_id to list all jobs of this server session.

fv_job_cancelA

Cancel a background job: kills its whole process tree (sby, yosys-smtbmc, solvers). The job then finishes with status='CANCELLED'; fv_job_status still returns the step it reached.

fv_prove_per_propertyB

Elaborate ONCE into a folded AIGER (+ optional BTOR) model, then prove every assertion independently in parallel using ABC (cone -O k -R 1; scleanup; pdr). For any assertion that returns UNDECIDED or TIMEOUT, automatically retries that single assertion via fallback_engines (default when omitted: ["abc dprove", "pono ic3bits"]; pass [] to disable). Each result has property (the label, or a generated name such as $18 for an unlabelled assertion) and src (file:line). src is null only when the frontend recorded no location: slang does this for assertions produced by a macro; use frontend="yosys_sv" to locate those.

fv_inspect_cexA

Parse an SBY counterexample VCD (trace.vcd or trace_induct.vcd) into a compact Markdown table with step-0 and final-step state summaries and induction-vs-BMC triage guidance.

One row per clock cycle (SBY's half-cycle clock-low rows are dropped). Columns follow the order of signals; every pattern you list is shown (max_signals only caps the default selection) and patterns that match nothing are reported in unmatched_patterns. A pattern is tried as an exact name / hierarchical suffix first and only then as a regex. Solver-internal _witness_ signals are hidden unless include_witness=True. changes_only=True omits rows identical to the previous one. Use start_step/end_step to zoom into a window when omitted_steps is reported, and aliases={"pattern": "short_name"} to rename columns.

fv_run_sec_rtlA

Run RTL-vs-RTL Sequential Equivalence Checking (SEC). method='auto' (default) directly runs a reset/warmup-aware miter + ABC dprove proof (supporting multi-clock, multi-reset, and valid-qualified outputs without relying on signal names); pass method='equiv' explicitly to opt in to Yosys structural equiv_induct, or use 'miter_dprove' with a custom miter for latency-shifted edits. When keep_traces=True and NOT_EQUIVALENT, automatically dumps a readable CEX VCD for fv_inspect_cex.

fv_run_sec_netlistB

Run RTL-vs-Synplify (.vm) netlist SEC. Automatically audits netlist primitives against the built-in primitive models (when this edition has them, see fv_list_models) plus extra_prim_files, converts Synplify INIT*/INJECT string attributes (prep_vm), parses the .vm gate netlist via Yosys native Verilog (never read_slang), and proves sequential equivalence. Pass extra_prim_files for gate-only primitive models or shared_stub_files to inject a shared hard-macro/IP boundary stub into BOTH gold and gate.

fv_check_mutationB

Mutation quality gate to expose vacuous or overly weak formal properties.

  • strategy='targeted': inject explicit mutations (mutations list) and assert every one FAILs.

  • strategy='random': sample num_mutations Yosys mutations on target_module and report detection rate plus source lines of escaped mutants.

fv_export_yosys_netlistC

Export Yosys-interpreted Verilog netlist for QuestaSim semantic-bridging simulation. Set splitnets=True when exporting for EBMC to work around bit-wise vector assignment bugs.

fv_generate_reportA

Generate a standardized Formal Verification Sign-off Markdown report. Pass run_ids (returned by fv_run_sby / fv_prove_per_property / fv_run_sec_* / fv_check_mutation) so the results table, input file SHA-256 hashes, cover depth, and mutation summary are filled in by the server from its own records of those runs instead of being typed by the caller. Limits of that binding: the records live only in this server process (gone after a restart, so the report cannot be re-checked later), the returned Markdown is plain text that can be edited afterwards, and only the runs you list appear — list EVERY run on the same inputs, including failed ones. It makes an honest report easy; it does not make a dishonest one impossible. Pass property_sources (e.g. {"a_no_overflow": "spec:FIFO-REQ-01", "h_cnt_bound": "impl"}) to separately track specification-anchored vs implementation-derived properties. Pass evidence_dir ONLY if you explicitly want to archive JSON snapshots & traces to disk (default None leaves zero local log files). cleanup_temp_traces defaults to False so report generation never silently deletes counterexample evidence.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 13 tools

Disambiguation4/5

The 13 tools mostly map to clearly distinct actions (environment check, model listing, design analysis, job management, report generation). The family of proving tools (fv_run_sby, fv_prove_per_property, fv_run_sec_rtl, fv_run_sec_netlist, fv_check_mutation) has some conceptual overlap in 'run a proof,' but descriptions make the boundaries reasonably clear (general SBY vs per-assertion ABC vs RTL/RTL SEC vs RTL/netlist SEC vs mutation).

Naming Consistency4/5

All tools share a consistent fv_ prefix and snake_case, which is strong. Minor inconsistency exists between verb-first names (fv_run_sby, fv_prove_per_property, fv_generate_report) and noun-first names (fv_env_check, fv_job_status, fv_job_cancel), but the pattern is still readable.

Tool Count5/5

13 tools is well within the ideal 3-15 range and each tool earns its place in a formal verification flow. No redundant entries; job status/cancel are a natural pair supporting the background-run capability.

Completeness4/5

The surface covers the full flow: environment, models, analysis, multiple proof engines (BMC/PDR, per-property, SEC RTL/netlist), mutation, counterexample inspection, netlist export, job control, and sign-off reporting. Minor gaps remain, such as no dedicated cover/coverage-depth command or a way to list past runs for re-reporting, but agents can work around these via fv_run_sby and fv_job_status.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues