[Cryptech-Commits] [user/js/keywrap] branch master updated: Adding wait state to allow access from memory to complete. Should be possible to optimize.

git at cryptech.is git at cryptech.is
Thu Jul 5 13:59:08 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 f4ac53a  Adding wait state to allow access from memory to complete. Should be possible to optimize.
f4ac53a is described below

commit f4ac53ac5e0885021fa7ae40f72a61846682ce41
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Thu Jul 5 15:58:51 2018 +0200

    Adding wait state to allow access from memory to complete. Should be possible to optimize.
---
 src/rtl/keywrap_core.v | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/rtl/keywrap_core.v b/src/rtl/keywrap_core.v
index a8e6d73..1f180c9 100644
--- a/src/rtl/keywrap_core.v
+++ b/src/rtl/keywrap_core.v
@@ -75,8 +75,8 @@ module keywrap_core (
   localparam CTRL_INIT_WAIT     = 4'h1;
   localparam CTRL_NEXT_WSTART   = 4'h2;
   localparam CTRL_NEXT_USTART   = 4'h3;
-  localparam CTRL_NEXT_LOOP     = 4'h4;
-  localparam CTRL_NEXT_WAIT0    = 4'h5;
+  localparam CTRL_NEXT_LOOP0    = 4'h4;
+  localparam CTRL_NEXT_LOOP     = 4'h5;
   localparam CTRL_NEXT_WAIT     = 4'h6;
   localparam CTRL_NEXT_UPDATE   = 4'h7;
   localparam CTRL_NEXT_WCHECK   = 4'h8;
@@ -405,7 +405,7 @@ module keywrap_core (
           begin
             block_ctr_rst         = 1'h1;
             iteration_ctr_rst     = 1'h1;
-            keywrap_core_ctrl_new = CTRL_NEXT_LOOP;
+            keywrap_core_ctrl_new = CTRL_NEXT_LOOP0;
             keywrap_core_ctrl_we  = 1'h1;
           end
 
@@ -414,21 +414,21 @@ module keywrap_core (
           begin
             block_ctr_set         = 1'h1;
             iteration_ctr_set     = 1'h1;
-            keywrap_core_ctrl_new = CTRL_NEXT_LOOP;
+            keywrap_core_ctrl_new = CTRL_NEXT_LOOP0;
             keywrap_core_ctrl_we  = 1'h1;
           end
 
 
-        CTRL_NEXT_LOOP:
+        CTRL_NEXT_LOOP0:
           begin
-            aes_next              = 1'h1;
-            keywrap_core_ctrl_new = CTRL_NEXT_WAIT;
+            keywrap_core_ctrl_new = CTRL_NEXT_LOOP;
             keywrap_core_ctrl_we  = 1'h1;
           end
 
 
-        CTRL_NEXT_WAIT0:
+        CTRL_NEXT_LOOP:
           begin
+            aes_next              = 1'h1;
             keywrap_core_ctrl_new = CTRL_NEXT_WAIT;
             keywrap_core_ctrl_we  = 1'h1;
           end
@@ -461,7 +461,7 @@ module keywrap_core (
             if (block_ctr_reg < rlen)
               begin
                 block_ctr_inc         = 1'h1;
-                keywrap_core_ctrl_new = CTRL_NEXT_LOOP;
+                keywrap_core_ctrl_new = CTRL_NEXT_LOOP0;
                 keywrap_core_ctrl_we  = 1'h1;
               end
 
@@ -469,7 +469,7 @@ module keywrap_core (
               begin
                 block_ctr_rst         = 1'h1;
                 iteration_ctr_inc     = 1'h1;
-                keywrap_core_ctrl_new = CTRL_NEXT_LOOP;
+                keywrap_core_ctrl_new = CTRL_NEXT_LOOP0;
                 keywrap_core_ctrl_we  = 1'h1;
               end
 

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


More information about the Commits mailing list