[Cryptech-Commits] [core/util/keywrap] 09/37: Increased control state space to make room for read and write operations.

git at cryptech.is git at cryptech.is
Wed Apr 29 16:51:45 UTC 2020


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

paul at psgd.org pushed a commit to branch master
in repository core/util/keywrap.

commit 139b3e484d9d170c739498bc9de7ee8106af9c55
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Tue Sep 25 14:09:49 2018 +0200

    Increased control state space to make room for read and write operations.
---
 src/rtl/keywrap_core.v | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/src/rtl/keywrap_core.v b/src/rtl/keywrap_core.v
index 178cea1..5a05b63 100644
--- a/src/rtl/keywrap_core.v
+++ b/src/rtl/keywrap_core.v
@@ -81,21 +81,21 @@ module keywrap_core #(parameter MEM_BITS = 11)
   //----------------------------------------------------------------
   localparam MAX_ITERATIONS = 6 - 1;
 
-  localparam CTRL_IDLE          = 5'h0;
-  localparam CTRL_INIT_WAIT     = 5'h1;
-  localparam CTRL_NEXT_WSTART   = 5'h2;
-  localparam CTRL_NEXT_USTART   = 5'h3;
-  localparam CTRL_NEXT_LOOP0    = 5'h4;
-  localparam CTRL_NEXT_LOOP     = 5'h5;
-  localparam CTRL_NEXT_WAIT     = 5'h6;
-  localparam CTRL_NEXT_UPDATE   = 5'h7;
-  localparam CTRL_NEXT_WCHECK   = 5'h8;
-  localparam CTRL_NEXT_UCHECK   = 5'h9;
-  localparam CTRL_NEXT_FINALIZE = 5'ha;
-  localparam CTRL_READ_START    = 5'h10;
-  localparam CTRL_READ_END      = 5'h11;
-  localparam CTRL_WRITE_START   = 5'h18;
-  localparam CTRL_WRITE_END     = 5'h19;
+  localparam CTRL_IDLE          = 6'h0;
+  localparam CTRL_INIT_WAIT     = 6'h1;
+  localparam CTRL_NEXT_WSTART   = 6'h2;
+  localparam CTRL_NEXT_USTART   = 6'h3;
+  localparam CTRL_NEXT_LOOP0    = 6'h4;
+  localparam CTRL_NEXT_LOOP     = 6'h5;
+  localparam CTRL_NEXT_WAIT     = 6'h6;
+  localparam CTRL_NEXT_UPDATE   = 6'h7;
+  localparam CTRL_NEXT_WCHECK   = 6'h8;
+  localparam CTRL_NEXT_UCHECK   = 6'h9;
+  localparam CTRL_NEXT_FINALIZE = 6'ha;
+  localparam CTRL_READ_START    = 6'h10;
+  localparam CTRL_READ_END      = 6'h11;
+  localparam CTRL_WRITE_START   = 6'h18;
+  localparam CTRL_WRITE_END     = 6'h19;
 
   // API for mkm used by the core.
   localparam MKM_ADDR_CTRL        = 8'h08;
@@ -162,8 +162,8 @@ module keywrap_core #(parameter MEM_BITS = 11)
   reg [31 : 0]  mkm_status_new;
   reg           mkm_status_we;
 
-  reg [4 : 0]  keywrap_core_ctrl_reg;
-  reg [4 : 0]  keywrap_core_ctrl_new;
+  reg [5 : 0]  keywrap_core_ctrl_reg;
+  reg [5 : 0]  keywrap_core_ctrl_new;
   reg          keywrap_core_ctrl_we;
 
 



More information about the Commits mailing list