소스 검색

fix(test): keep soak target transactions legal

root 3 달 전
부모
커밋
075d7d95c3
1개의 변경된 파일과 3개의 추가작업 그리고 1개의 파일을 삭제
  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)