Skip to content

Commit

Permalink
stream_delay: Allow larger counts (#190)
Browse files Browse the repository at this point in the history
* stream_delay: Fix AXI delayer counter size

* stream_delay: Fix count_out width

Signed-off-by: Nils Wistoff <[email protected]>

---------

Signed-off-by: Nils Wistoff <[email protected]>
Co-authored-by: aottaviano <[email protected]>
  • Loading branch information
niwis and alex96295 authored Jun 9, 2023
1 parent 534340f commit 66b3934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stream_delay.sv
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module stream_delay #(
assign payload_o = payload_i;
end else begin : gen_delay

localparam int unsigned CounterBits = 4;
localparam int unsigned CounterBits = 32;

typedef enum logic [1:0] {
Idle, Valid, Ready
Expand All @@ -44,7 +44,7 @@ module stream_delay #(
state_e state_d, state_q;

logic load;
logic [3:0] count_out;
logic [CounterBits-1:0] count_out;
logic en;

logic [CounterBits-1:0] counter_load;
Expand Down

0 comments on commit 66b3934

Please sign in to comment.