README.md 2.8 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. Round-9 door-percent critical harnesses are bounded BMC/cover with scaled parameters; receipts must record depth and assumptions. BMC is never reported as unbounded mathematical proof.

Target Tasks Actual sby mode DUT
frame_command_contract bmc BMC command stack
frame_tx_contract bmc BMC (depth 64) frame_tx
simple_frame_contract bmc, cover BMC + cover frame_rx
simple_motor_temperature_contract bmc, cover BMC + cover door_percent_planner (half-up)
output_target_ram_contract prove prove RAM
pwm_scheduler_contract prove prove PWM
host_watchdog_contract prove prove host_watchdog
door_percent_planner bmc, cover BMC + cover planner half-up result
door_axis_cal bmc, cover BMC + cover door_axis_controller (scaled)
runtime_limit_hard_stop bmc, cover BMC + cover prod2u_runtime_step_limit_gate (top gate)
alt_config_limit_normalize bmc, cover BMC + cover supplemental polarity shell
door_axis_watchdog_drain bmc, cover BMC + cover door_axis_controller
door_axis_motion_contract bmc, cover BMC + cover door_axis_controller DIR/stop
door_motion_status_snapshot bmc, cover BMC + cover door_motion_controller + frame_tx
command_startup_commit bmc, cover BMC + cover command_controller

Critical behavior proofs must instantiate production RTL. Vacuous shells that assume the conclusion then assert it, or hand-copied combo without the shared gate module, do not count as critical proof.

alt_config_limit_normalize remains supplemental for polarity config coverage and is not a substitute for the production gate harness.

Lane C stop semantics encode the ACTUAL RTL behavior truncate_current_high_pulse_immediately_after_synchronized_limit via prod2u_runtime_step_limit_gate (also instantiated by top).

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.

Round-9 BMC status (door-percent)

Bounded BMC PASS on: runtime_limit_hard_stop, door_percent_planner, door_axis_cal, command_startup_commit, door_axis_watchdog, door_axis_watchdog_drain, door_axis_motion_contract, door_motion_status_snapshot. Receipt: receipts/prod2u_formal_door_percent_round9_bmc.json.