From 85bbf95c57d8f22d07c7128abcfa750221875461 Mon Sep 17 00:00:00 2001 From: Istvan Csomortani Date: Tue, 30 Oct 2018 14:37:43 +0000 Subject: [PATCH] spi_engine/offload: SDI_READY should be asserted while offload is inactive --- library/spi_engine/spi_engine_offload/spi_engine_offload.v | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/spi_engine/spi_engine_offload/spi_engine_offload.v b/library/spi_engine/spi_engine_offload/spi_engine_offload.v index 03391d405..ee7fa311e 100644 --- a/library/spi_engine/spi_engine_offload/spi_engine_offload.v +++ b/library/spi_engine/spi_engine_offload/spi_engine_offload.v @@ -100,7 +100,11 @@ assign sdo_data_valid = spi_active; assign sync_ready = 1'b1; assign offload_sdi_valid = sdi_data_valid; -assign sdi_data_ready = offload_sdi_ready; + +// we don't want to block the SDI interface after disabling the module +// so just assert the SDI_READY if the sink module (DMA) is disabled +assign sdi_data_ready = (spi_enable) ? offload_sdi_ready : 1'b1; + assign offload_sdi_data = sdi_data; assign cmd = cmd_mem[spi_cmd_rd_addr];