From becc23a69b8679cbba5bbd4a3680f1c41cc57a1e Mon Sep 17 00:00:00 2001 From: Adrian Costina Date: Tue, 1 Mar 2016 17:25:58 +0200 Subject: [PATCH] daq2: Modified common spi module so that spi streaming is possible - stop incrementing spi_count after the instruction cycle --- projects/daq2/common/daq2_spi.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/daq2/common/daq2_spi.v b/projects/daq2/common/daq2_spi.v index c2e2bb4b9..b04c2581c 100644 --- a/projects/daq2/common/daq2_spi.v +++ b/projects/daq2/common/daq2_spi.v @@ -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