README.md 2.2 KB

Formal Verification Layer

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

  • only opcode 0x35 can start X/Y motion;
  • every valid JOG preserves the full 1..65535 step field and uses fixed 1000 step/s;
  • ACK is released only after the first STEP rise;
  • same-axis replacement immediately forces STEP low, discards old distance, and restarts the full DIR setup interval; the old pulse may be truncated;
  • reported busy, fault, and position-valid fields remain zero while current/target remain unknown;
  • motion is externally invariant to either limit input, DISABLE, and watchdog expiry;
  • the reserved-axis proof is named for what it checks; it is not a motor hard-stop proof;
  • X/Y executor non-interference, peer overlap and shared-enable behavior;
  • motor enable remains active; only reset, power loss, or reconfiguration stops motion;
  • DISABLE/watchdog still force non-motor outputs safe and preserve expiry-over-refresh priority;
  • RX framing/payload integrity and continuous held-request intake without an emergency DISABLE bypass;
  • the dedicated RX/core fast-JOG path remains independent of ordinary request admission and TX state, with a separate countdown oracle for replacement, exact nonzero u16 distance, and production 25,000/12,500-cycle timing;
  • 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.