Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

Commit 6b056c5

Browse files
committed
fix exit: stop loop when dut is exit
1 parent def7a2d commit 6b056c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

emu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def run_delta(delta):
158158
return runc
159159
run_ins = 0
160160
for _ in range(batch_count):
161-
if not reach_max_time:
161+
if not reach_max_time and not xspdb.api_dut_is_step_exit():
162162
run_ins += run_delta(batch_size)
163163
else:
164164
break
@@ -308,7 +308,7 @@ def run_cycle_deta(delta):
308308
return runc
309309
run_cycles = 0
310310
for _ in range(cycle_batch_count):
311-
if not cycle_reach_max_time:
311+
if not cycle_reach_max_time and not xspdb.api_dut_is_step_exit():
312312
run_cycles += run_cycle_deta(cycle_batch_size)
313313
else:
314314
break

0 commit comments

Comments
 (0)