From fa6f6a0c12093f829861772d4adaf75192914bb4 Mon Sep 17 00:00:00 2001 From: joeldushouyu Date: Sat, 6 Apr 2024 14:43:20 -0400 Subject: [PATCH] specific wire size on parameteR --- rtl/rptr_empty.v | 2 +- rtl/wptr_full.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl/rptr_empty.v b/rtl/rptr_empty.v index c95f125..9df5ff5 100644 --- a/rtl/rptr_empty.v +++ b/rtl/rptr_empty.v @@ -8,7 +8,7 @@ module rptr_empty #( parameter ADDRSIZE = 4, - parameter AREMPTYSIZE = 1 + parameter [ADDRSIZE:0]AREMPTYSIZE = 1 )( input wire rclk, input wire rrst_n, diff --git a/rtl/wptr_full.v b/rtl/wptr_full.v index 11158a0..287965d 100644 --- a/rtl/wptr_full.v +++ b/rtl/wptr_full.v @@ -8,7 +8,7 @@ module wptr_full #( parameter ADDRSIZE = 4, - parameter AWFULLSIZE = 1 + parameter [ADDRSIZE:0]AWFULLSIZE = 1 )( input wire wclk, input wire wrst_n,