Skip to content

Commit

Permalink
axi_demux: Fix case when MaxTrans is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelRiedel authored and andreaskurth committed Mar 6, 2020
1 parent 92355b3 commit 1461f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
This issue has been fixed by removing that dependency.
- `axi_lite_to_apb`: Fix the interface version (`axi_lite_to_apb_intf`) to match the changes from
version `0.15.0`.
- `axi_demux`: When `MaxTrans` was 1, the `IdCounterWidth` became 0. This has been fixed.


## 0.15.0 - 2020-02-28
Expand Down
2 changes: 1 addition & 1 deletion src/axi_demux.sv
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module axi_demux #(
input resp_t [NoMstPorts-1:0] mst_resps_i
);

localparam int unsigned IdCounterWidth = $clog2(MaxTrans);
localparam int unsigned IdCounterWidth = MaxTrans > 1 ? $clog2(MaxTrans) : 1;

//--------------------------------------
// Typedefs for the FIFOs / Queues
Expand Down

0 comments on commit 1461f40

Please sign in to comment.