From 66b3934d6478f255a668a8d6de026730c25f52c5 Mon Sep 17 00:00:00 2001 From: Nils Wistoff Date: Fri, 9 Jun 2023 15:52:21 +0200 Subject: [PATCH] stream_delay: Allow larger counts (#190) * stream_delay: Fix AXI delayer counter size * stream_delay: Fix count_out width Signed-off-by: Nils Wistoff --------- Signed-off-by: Nils Wistoff Co-authored-by: aottaviano --- src/stream_delay.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream_delay.sv b/src/stream_delay.sv index f7d134a7..9e701c1d 100644 --- a/src/stream_delay.sv +++ b/src/stream_delay.sv @@ -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 @@ -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;