Skip to content

Commit

Permalink
another attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
faramire committed Apr 19, 2024
1 parent 6fcc797 commit e2a8dbd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/stopwatch_top.v
Original file line number Diff line number Diff line change
Expand Up @@ -425,14 +425,13 @@ module SPI_wrapper (
end // TRANSFER

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

if (wait_count == 4'b1111) begin
state <= TRANSFER;
end
end

Expand Down

0 comments on commit e2a8dbd

Please sign in to comment.