From dd64ee4febfc55e75f465ac2fdb62b8584fe12dd Mon Sep 17 00:00:00 2001 From: Samuel Riedel Date: Thu, 15 Dec 2022 11:48:18 +0100 Subject: [PATCH] [hardware] Fix bug in the DMA's distributed midend --- CHANGELOG.md | 1 + hardware/deps/idma/src/midends/idma_distributed_midend.sv | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff475c6fe..75b11fcbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed - Fix type issue in `snitch_addr_demux` +- Fix a bug in the DMA's distributed midend ## 0.6.0 - 2023-01-09 diff --git a/hardware/deps/idma/src/midends/idma_distributed_midend.sv b/hardware/deps/idma/src/midends/idma_distributed_midend.sv index d27cad499..cfdcd5a7e 100644 --- a/hardware/deps/idma/src/midends/idma_distributed_midend.sv +++ b/hardware/deps/idma/src/midends/idma_distributed_midend.sv @@ -133,7 +133,7 @@ module idma_distributed_midend #( valid_o[i] = 1'b0; ready[i] = 1'b1; // Inject trans complete - if (valid) begin + if (valid[i]) begin tie_off_trans_complete_d[i] = 1'b1; end end else if (($unsigned(start_addr) >= i*DmaRegionWidth)) begin