فهرست منبع

Preserve candidate fairness while command contexts block fetching

codex 2 ماه پیش
والد
کامیت
71452edead
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      src/motor/motor_engine.v

+ 4 - 1
src/motor/motor_engine.v

@@ -691,7 +691,10 @@ module motor_engine #(
                     // wait at most AXIS_COUNT candidate clocks; the independent
                     // fast STEP/limit scan never waits for descriptor selection.
                     begin
-                        fx_round<=fx_round==AXIS_COUNT-1 ? 0 : fx_round+1'b1;
+                        if(!ctl_valid && qc_state==QC_IDLE && !qw_submit &&
+                            su_axis>=AXIS_COUNT && !startup_seek &&
+                            (cs_state==0 || cs_state==3 || seek_context))
+                            fx_round<=fx_round==AXIS_COUNT-1 ? 0 : fx_round+1'b1;
                         if (ax_load_ready[fx_candidate] && !ax_seg_load[fx_candidate] && !queue_paused_r[fx_candidate] && !ctl_valid &&
                             (cs_state==0 || (cs_state==3 && cs_start_mask[fx_candidate]) || (seek_context && cs_mask[fx_candidate])) && qc_state==QC_IDLE && !qw_submit &&
                             su_axis>=AXIS_COUNT && !startup_seek) begin