Skip to content

Commit

Permalink
Fix naming convention for package parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ricted98 committed Jun 17, 2024
1 parent fbaabcf commit 06180ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ace_ccu_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ for (genvar i = 0; i < Cfg.NoSlvPorts; i++)

ccu_ctrl #(
.DcacheLineWidth ( Cfg.DcacheLineWidth ),
.DCacheIndexWidth( Cfg.DCacheIndexWidth ),
.DcacheIndexWidth( Cfg.DcacheIndexWidth ),
.AxiDataWidth ( Cfg.AxiDataWidth ),
.AxiAddrWidth ( Cfg.AxiAddrWidth ),
.NoMstPorts ( Cfg.NoSlvPorts ),
Expand Down
2 changes: 1 addition & 1 deletion src/ace_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ package ace_pkg;
int unsigned AxiDataWidth;
int unsigned AxiUserWidth;
int unsigned DcacheLineWidth;
int unsigned DCacheIndexWidth;
int unsigned DcacheIndexWidth;
} ccu_cfg_t;

// transaction type
Expand Down
4 changes: 2 additions & 2 deletions src/ccu_ctrl.sv
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
module ccu_ctrl import ccu_ctrl_pkg::*; import axi_pkg::*;
#(
parameter int unsigned DcacheLineWidth = 0,
parameter int unsigned DCacheIndexWidth = 0,
parameter int unsigned DcacheIndexWidth = 0,
parameter int unsigned AxiDataWidth = 0,
parameter int unsigned AxiAddrWidth = 0,
parameter int unsigned NoMstPorts = 4,
Expand Down Expand Up @@ -56,7 +56,7 @@ localparam int unsigned DCacheByteOffset = $clog2(DcacheLineWidth/8);
localparam int unsigned MstIdxBits = $clog2(NoMstPorts);

localparam int unsigned IdQueueDataWidth = CollisionOnSetOnly ?
DCacheIndexWidth :
DcacheIndexWidth :
AxiAddrWidth - DCacheByteOffset;

typedef logic [IdQueueDataWidth-1:0] id_queue_data_t;
Expand Down

0 comments on commit 06180ec

Please sign in to comment.