README.md 1.5 KB

Formal Contracts

The current formal targets are registered in config/prod2u_p4_verification_targets_v1.json.

Mode honesty (BMC vs prove)

SymbiYosys task names match the configured mode. Do not treat a task named prove as unbounded prove when the .sby uses mode bmc.

Target Tasks Actual sby mode
frame_command_contract bmc BMC (depth 96; wrapper has cover() but no cover task — low-mem)
frame_tx_contract bmc BMC (depth 64)
simple_frame_contract bmc, cover BMC + cover (cover depth 32)
startup_close_seek bmc, cover BMC + cover
runtime_limit_inertness bmc, cover BMC + cover
door_action_dispatcher_axis3 bmc, cover BMC + cover (motor-compat profile)
output_target_ram_contract prove prove
simple_motor_temperature_contract prove, cover prove + cover
pwm_scheduler_contract prove prove
host_watchdog_contract prove prove

The Phase 3 TX target is intentionally a bounded BMC at depth 64. It checks the real clock/reset boundary, 2-state input assumptions, byte-not-ready stability, and accepted-byte no-duplicate progression through the early frame stream. Full 33-byte completion is outside this bounded proof and remains covered by the RTL simulation benches.

They are offline checks. A solver error, timeout, unknown status, missing compiled-property evidence, or unhit required cover is not a pass. Receipts must record mode, depth, solver, and cover hits; BMC must never be reported as unbounded prove.