spi_engine: In read only mode SDO line should stay in its default level

main
Istvan Csomortani 2019-01-11 15:02:02 +00:00 committed by István Csomortáni
parent 85bbf95c57
commit b81c8373e5
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ always @(posedge clk) begin
end
end
assign sdo = (inst_d1 == CMD_TRANSFER) ? data_shift[DATA_WIDTH] : SDO_DEFAULT;
assign sdo = ((inst_d1 == CMD_TRANSFER) && (sdo_enabled)) ? data_shift[DATA_WIDTH] : SDO_DEFAULT;
assign sdi_data = (NUM_OF_SDI == 1) ? data_shift[(DATA_WIDTH-1):0] :
(NUM_OF_SDI == 2) ? {data_shift_1[(DATA_WIDTH-1):0], data_shift[(DATA_WIDTH-1):0]} :