spi_engine: Fix CMD_FIFO_VALID generation

Because of the memory map interface mux, up_waddr_s and up_wreq_s should be
used, when cmd_fifo_in_valid is generated.
main
Istvan Csomortani 2017-04-12 14:17:35 +02:00 committed by Lars-Peter Clausen
parent 6d2b3bc1c7
commit 3f0633aadc
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ endgenerate
`define axi_spi_engine_check_watermark(x, n) \
(x[n] == 1'b1 || x[n-1:n-2] == 2'b11)
assign cmd_fifo_in_valid = up_wreq == 1'b1 && up_waddr == 8'h38;
assign cmd_fifo_in_valid = up_wreq_s == 1'b1 && up_waddr_s == 8'h38;
assign cmd_fifo_in_data = up_wdata_s[15:0];
assign cmd_fifo_almost_empty =
`axi_spi_engine_check_watermark(cmd_fifo_room, CMD_FIFO_ADDRESS_WIDTH);