daq2: Modified common spi module so that spi streaming is possible
- stop incrementing spi_count after the instruction cyclemain
parent
f6e64e42b0
commit
becc23a69b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue