Skip to content

Commit

Permalink
i think I found it
Browse files Browse the repository at this point in the history
  • Loading branch information
faramire committed Apr 19, 2024
1 parent e2a8dbd commit 55c4e56
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/stopwatch_top.v
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,11 @@ module SPI_wrapper (
end // TRANSFER

WAIT: begin
if (send_reported == 1'b1 || ready_reported) begin
wait_count <= wait_count + 1'b1;
Cs <= 1;
end

if (wait_count == 4'b1111) begin
state <= TRANSFER;
Cs <= 1;
end else if (send_reported == 1'b1 || ready_reported) begin
wait_count <= wait_count + 1'b1;
end
end

Expand Down

0 comments on commit 55c4e56

Please sign in to comment.