Skip to content

Commit

Permalink
fix transfer_done condition for non-echo_sclk cases
Browse files Browse the repository at this point in the history
Signed-off-by: Laez Barbosa <laez.barbosa@analog.com>
  • Loading branch information
LBFFilho committed Dec 12, 2024
1 parent 8d2c41a commit d533c4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ module spi_engine_execution #(
if (ECHO_SCLK) begin
transfer_done <= echo_last_bit && last_transfer;
end else begin
transfer_done <= (wait_for_io && io_ready1 && last_transfer) || (!wait_for_io && transfer_active && end_of_word && (last_transfer || !io_ready2)); // same conditions that make (!transfer_active && !wait_for_io)
transfer_done <= (wait_for_io && io_ready1 && last_transfer) || (!wait_for_io && transfer_active && end_of_word && last_transfer ); // same conditions that make (!transfer_active && !wait_for_io)
end
end
end
Expand Down

0 comments on commit d533c4b

Please sign in to comment.