Browse Source

Исправлены ошибки переходов состояний автомата

ChStepan 5 tháng trước cách đây
mục cha
commit
9d7aa0fd33
1 tập tin đã thay đổi với 11 bổ sung3 xóa
  1. 11 3
      src/src/InterfaceArbiter/InterfaceArbiter.v

+ 11 - 3
src/src/InterfaceArbiter/InterfaceArbiter.v

@@ -238,10 +238,18 @@ module InterfaceArbiter
 		nextState = IDLE;
 		case(currState)
 		IDLE		:begin
-						if (ssCnt == 6)	begin
-							nextState = DEL;
+						if (spiMode) begin
+							if (ssCnt == 6)	begin
+								nextState = DEL;
+							end else begin
+								nextState = IDLE;
+							end
 						end	else begin
-							nextState = IDLE;
+							if (ssCnt == 24) begin
+								nextState = DEL;
+							end else begin
+								nextState = IDLE;
+							end
 						end
 					end