Skip to content

Commit

Permalink
tb_axi_xbar: fix issue 51: localparam AxiIdWidthSlaves now dependent …
Browse files Browse the repository at this point in the history
…on the number of masters
  • Loading branch information
Wolfgang Rönninger committed Feb 17, 2020
1 parent 73d890e commit 829124f
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 @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed

### Fixed
- `tb_axi_xbar`: Fix for localparam `AxiIdWidthSlaves` to be dependent on the number of masters.


## 0.12.0 - 2020-02-14
Expand Down
2 changes: 1 addition & 1 deletion test/tb_axi_xbar.sv
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module tb_axi_xbar;
// axi configuration
localparam int unsigned AxiIdWidthMasters = 4;
localparam int unsigned AxiIdUsed = 3; // Has to be <= AxiIdWidthMasters
localparam int unsigned AxiIdWidthSlaves = AxiIdWidthMasters + $clog2(NoSlaves);
localparam int unsigned AxiIdWidthSlaves = AxiIdWidthMasters + $clog2(NoMasters);
localparam int unsigned AxiAddrWidth = 32; // Axi Address Width
localparam int unsigned AxiDataWidth = 64; // Axi Data Width
localparam int unsigned AxiStrbWidth = AxiDataWidth / 8;
Expand Down

0 comments on commit 829124f

Please sign in to comment.