[Cryptech-Commits] [user/js/keywrap] branch master updated: Added explicit width specification for constant to silence truncation warning.

git at cryptech.is git at cryptech.is
Tue Jul 24 13:42:47 UTC 2018


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

joachim at secworks.se pushed a commit to branch master
in repository user/js/keywrap.

The following commit(s) were added to refs/heads/master by this push:
     new a2ce5e7  Added explicit width specification for constant to silence truncation warning.
a2ce5e7 is described below

commit a2ce5e75f234875566cf036d14256aca1adb77bb
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Tue Jul 24 15:41:44 2018 +0200

    Added explicit width specification for constant to silence truncation warning.
---
 src/rtl/keywrap_core.v | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/rtl/keywrap_core.v b/src/rtl/keywrap_core.v
index 1e8ac5b..8d8f101 100644
--- a/src/rtl/keywrap_core.v
+++ b/src/rtl/keywrap_core.v
@@ -280,7 +280,7 @@ module keywrap_core (
 
       if (block_ctr_set)
         begin
-          block_ctr_new = (rlen - 1);
+          block_ctr_new = (rlen - 1'h1);
           block_ctr_we  = 1'h1;
         end
 
@@ -458,7 +458,7 @@ module keywrap_core (
 
         CTRL_NEXT_WCHECK:
           begin
-            if (block_ctr_reg < (rlen - 1))
+            if (block_ctr_reg < (rlen - 1'h1))
               begin
                 block_ctr_inc         = 1'h1;
                 keywrap_core_ctrl_new = CTRL_NEXT_LOOP0;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list