Bladeren bron

tests: align frame_tx formal depth expectation with sby

Co-authored-by: Cursor <cursoragent@cursor.com>
root 3 maanden geleden
bovenliggende
commit
6f32493bc4
2 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 1 1
      tests/formal/README.md
  2. 3 2
      tests/unit/test_phase3_formal_contract.py

+ 1 - 1
tests/formal/README.md

@@ -10,6 +10,6 @@ The current formal targets are registered in `config/prod2u_p4_verification_targ
 - `pwm_scheduler_contract`
 - `host_watchdog_contract`
 
-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.
+The Phase 3 TX target is intentionally a bounded BMC at depth 96. 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.

+ 3 - 2
tests/unit/test_phase3_formal_contract.py

@@ -130,10 +130,11 @@ class Phase3FormalContractTests(unittest.TestCase):
     def test_frame_tx_wrapper_checks_accepted_byte_progression_without_duplicates(self):
         sby = _read("tests/formal/frame_tx_contract.sby")
         self.assertIn("mode bmc", sby)
-        # Depth may be tuned for memory; require a real BMC bound, not a vacuous stub.
+        # BMC depth raised to 96 (from Phase-3's older 64) so accepted-byte progression
+        # coverage is stronger; keep expectation aligned with frame_tx_contract.sby.
         depth_match = re.search(r"(?m)^depth\s+(\d+)\s*$", sby)
         self.assertIsNotNone(depth_match, "frame_tx_contract.sby missing depth")
-        self.assertGreaterEqual(int(depth_match.group(1)), 32)
+        self.assertEqual(int(depth_match.group(1)), 96)
         source = _read("tests/formal/frame_tx_contract_formal.v")
         for marker in (
             "accepted_byte_count",