Explorar el Código

fix(test): keep soak target transactions legal

root hace 3 meses
padre
commit
075d7d95c3
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      tests/cocotb/test_6400_v1_soak.py

+ 3 - 1
tests/cocotb/test_6400_v1_soak.py

@@ -185,7 +185,9 @@ async def test_accelerated_randomized_system_soak(dut):
             counters["bmc_random"] += 1
         elif action == 1:
             port = "rs232" if iteration & 1 else "ttl"
-            target = rng.choice((58, 63, 70, 75))
+            # SET_TARGET accepts only 0 or 20..70. Keep this positive path
+            # entirely legal; invalid-target silent drops are covered by L4.
+            target = rng.choice((58, 63, 67, 70))
             await wait_host_idle(dut)
             await set_target(dut, port, target)
             await wait_host_idle(dut)