daq2: Modified common spi module so that spi streaming is possible

- stop incrementing spi_count after the instruction cycle
main
Adrian Costina 2016-03-01 17:25:58 +02:00
parent f6e64e42b0
commit becc23a69b
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ module daq2_spi (
spi_count <= 6'd0;
spi_rd_wr_n <= 1'd0;
end else begin
spi_count <= spi_count + 1'b1;
spi_count <= (spi_count < 6'h17) ? spi_count + 1'b1 : spi_count;
if (spi_count == 6'd0) begin
spi_rd_wr_n <= spi_mosi;
end