[Cryptech-Commits] [core/rng/rosc_entropy] 01/01: Added a simple parameterized zero extension to squash warnings in ISE and Verilator.

git at cryptech.is git at cryptech.is
Mon Apr 13 12:46:27 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/rosc_entropy.

commit 0cf0f4d3ce999a386715116d5a8bfea0aa050e93
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Mon Apr 13 14:46:30 2015 +0200

    Added a simple parameterized zero extension to squash warnings in ISE and Verilator.
---
 src/rtl/rosc.v | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rtl/rosc.v b/src/rtl/rosc.v
index 522cac6..59ce3b2 100644
--- a/src/rtl/rosc.v
+++ b/src/rtl/rosc.v
@@ -97,7 +97,7 @@ module rosc #(parameter WIDTH = 2)
       reg             cin;
 
       cin = ~sum[WIDTH];
-      sum = opa + opb + cin;
+      sum = opa + opb + {{(WIDTH - 1){1'b0}}, cin};
       dout_new = sum[WIDTH];
     end
 endmodule // rosc



More information about the Commits mailing list