[Cryptech-Commits] [core/rng/trng] 01/01: Changed to Verilog 2001 part select for word extraction.

git at cryptech.is git at cryptech.is
Thu Mar 26 14:14:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

joachim at secworks.se pushed a commit to branch master
in repository core/rng/trng.

commit cf417534410b9c429941f0d22240dceb9b0ea7b0
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Thu Mar 26 15:14:30 2015 +0100

    Changed to Verilog 2001 part select for word extraction.
---
 src/rtl/trng_csprng_fifo.v | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)

diff --git a/src/rtl/trng_csprng_fifo.v b/src/rtl/trng_csprng_fifo.v
index adbc83a..70c0e1f 100644
--- a/src/rtl/trng_csprng_fifo.v
+++ b/src/rtl/trng_csprng_fifo.v
@@ -216,25 +216,7 @@ module trng_csprng_fifo(
       reg [511 : 0] fifo_rd_data;
 
       fifo_rd_data = fifo_mem[rd_ptr_reg];
-
-      case(mux_data_ptr_reg)
-        00: muxed_data = fifo_rd_data[031 : 000];
-        01: muxed_data = fifo_rd_data[063 : 032];
-        02: muxed_data = fifo_rd_data[095 : 064];
-        03: muxed_data = fifo_rd_data[127 : 096];
-        04: muxed_data = fifo_rd_data[159 : 128];
-        05: muxed_data = fifo_rd_data[191 : 160];
-        06: muxed_data = fifo_rd_data[223 : 192];
-        07: muxed_data = fifo_rd_data[255 : 224];
-        08: muxed_data = fifo_rd_data[287 : 256];
-        09: muxed_data = fifo_rd_data[319 : 288];
-        10: muxed_data = fifo_rd_data[351 : 320];
-        11: muxed_data = fifo_rd_data[383 : 352];
-        12: muxed_data = fifo_rd_data[415 : 384];
-        13: muxed_data = fifo_rd_data[447 : 416];
-        14: muxed_data = fifo_rd_data[479 : 448];
-        15: muxed_data = fifo_rd_data[511 : 480];
-      endcase // case (mux_data_ptr_reg)
+      muxed_data = fifo_rd_data[mux_data_ptr_reg * 32 +: 32];
     end // output_data_mux
 
 



More information about the Commits mailing list