README.md 1.6 KB

Formal Verification Layer

Formal targets cover independent safety properties for Prod2U P4 Normal v3:

  • complete STEP high/low phases unless DISABLE or watchdog performs a hard stop;
  • DIR changes only with STEP low, followed by a fresh setup interval;
  • force-motion JOG replacement uses the latest command at a complete low-tail boundary;
  • reported busy starts with the first emitted STEP and clears after the final low tail;
  • Version 1 motion is externally invariant to either limit input;
  • X/Y executor non-interference, peer overlap and shared-enable behavior;
  • same-cycle DISABLE/watchdog pin safety and expiry-over-refresh priority;
  • RX framing/payload integrity, continuous held-request intake and emergency DISABLE flush;
  • output-state invariants.

These properties prove digital STEP/DIR/EN and status behavior. They do not prove rotor motion, torque, mechanical coupling or physical endpoint arrival.

SymbiYosys/Yosys is the reference backend. Missing tools are blocked, while a missing property file or counterexample is a failure.

A passing formal receipt is reproducible evidence, not a bare PASS marker. It binds the current .sby SHA-256, every formal source SHA-256, declared and observed engines, the explicit solver, tool executable paths, versions and SHA-256, tool executable signatures, and the compiled assertion and cover IDs extracted from each task's generated design. The final verifier reopens and hashes those executables and generated design files, then replays the task's status, logfile, PASS and VCD artifacts. Cover tasks pass only when their reported hit IDs exactly match the compiled cover IDs.