Skip to content

Commit 2fe3ffe

Browse files
committed
library/spi_engine: fix execution module
It was missing the sdi_lane_mask register. That was not affecting execution because the only logic requiring this register is on the axi_spi_engine.v Signed-off-by: Carlos Souza <carlos.souza@analog.com>
1 parent c00eead commit 2fe3ffe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/spi_engine/spi_engine_execution/spi_engine_execution.v

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ module spi_engine_execution #(
126126
reg [7:0] word_length = DATA_WIDTH;
127127
reg [7:0] last_bit_count = DATA_WIDTH-1;
128128
reg [7:0] left_aligned = 8'b0;
129+
reg [7:0] sdi_lane_mask = ALL_ACTIVE_LANE_MASK;
129130
reg [7:0] sdo_lane_mask = ALL_ACTIVE_LANE_MASK;
130131

131132
reg cpha = DEFAULT_SPI_CFG[0];
@@ -279,6 +280,7 @@ module spi_engine_execution #(
279280
clk_div <= DEFAULT_CLK_DIV;
280281
word_length <= DATA_WIDTH;
281282
left_aligned <= 0;
283+
sdi_lane_mask <= ALL_ACTIVE_LANE_MASK;
282284
sdo_lane_mask <= ALL_ACTIVE_LANE_MASK;
283285
end else begin
284286
if (exec_write_cmd) begin
@@ -298,6 +300,9 @@ module spi_engine_execution #(
298300
// needed 1 cycle before transfer_active goes high
299301
left_aligned <= DATA_WIDTH - cmd[7:0];
300302
end
303+
REG_SDI_LANE_CONFIG : begin
304+
sdi_lane_mask <= cmd[7:0];
305+
end
301306
REG_SDO_LANE_CONFIG : begin
302307
//max number of spi lanes is 8
303308
sdo_lane_mask <= cmd[7:0];

0 commit comments

Comments
 (0)