From a3f303be2959f3142feacd6328e9dfdc960e09d6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= <joachim@secworks.se>
Date: Sat, 18 Jul 2015 11:36:24 +0200
Subject: Fixed replication sizes found during lintint.

---
 src/rtl/trng_csprng_fifo.v | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src')

diff --git a/src/rtl/trng_csprng_fifo.v b/src/rtl/trng_csprng_fifo.v
index e90d23d..e3fe4fb 100644
--- a/src/rtl/trng_csprng_fifo.v
+++ b/src/rtl/trng_csprng_fifo.v
@@ -149,8 +149,8 @@ module trng_csprng_fifo(
           fifo_mem[02]     <= {16{32'h00000000}};
           fifo_mem[03]     <= {16{32'h00000000}};
           mux_data_ptr_reg <= 4'h0;
-          rd_ptr_reg       <= {(FIFO_ADDR_BITS - 1){1'b0}};
-          wr_ptr_reg       <= {(FIFO_ADDR_BITS - 1){1'b0}};
+          rd_ptr_reg       <= {(FIFO_ADDR_BITS){1'b0}};
+          wr_ptr_reg       <= {(FIFO_ADDR_BITS){1'b0}};
           fifo_ctr_reg     <= {FIFO_ADDR_BITS{1'b0}};
           rnd_data_reg     <= 32'h00000000;
           rnd_syn_reg      <= 0;
@@ -296,7 +296,7 @@ module trng_csprng_fifo(
   //----------------------------------------------------------------
   always @*
     begin : fifo_ctr
-      fifo_ctr_new  = {FIFO_ADDR_BITS{1'b0}};
+      fifo_ctr_new  = {(FIFO_ADDR_BITS + 1){1'b0}};
       fifo_ctr_we   = 0;
       fifo_empty    = 0;
       fifo_full     = 0;
@@ -313,7 +313,7 @@ module trng_csprng_fifo(
 
       if (fifo_ctr_rst)
         begin
-          fifo_ctr_new  = {FIFO_ADDR_BITS{1'b0}};
+          fifo_ctr_new  = {(FIFO_ADDR_BITS + 1){1'b0}};
           fifo_ctr_we = 1;
         end
 
-- 
cgit v1.2.3