Skip to content

Commit

Permalink
axi_isolate: Add comment for counter width
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Rönninger authored and andreaskurth committed Mar 23, 2020
1 parent d8441b3 commit 0037d41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/axi_isolate.sv
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ module axi_isolate #(
input logic isolate_i, // isolate master port from slave port
output logic isolated_o // master port is isolated from slave port
);
localparam int unsigned CounterWidth = $clog2(NoPending + 32'd1) + 32'd1; // for atop injection
// plus 1 in clog for accouning no open transaction, plus one bit for atomic inhection
localparam int unsigned CounterWidth = $clog2(NoPending + 32'd1) + 32'd1;
typedef logic [CounterWidth-1:0] cnt_t;

enum logic [1:0] {
Expand Down

0 comments on commit 0037d41

Please sign in to comment.