diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-09-25 14:09:49 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-09-25 14:09:49 +0200 |
commit | 139b3e484d9d170c739498bc9de7ee8106af9c55 (patch) | |
tree | 4b2a82af44973e378ae63ca845b333f2a9a5a048 /src/rtl/keywrap_core.v | |
parent | 384b029659d9205b32b2d9707c2fa24c554d0b27 (diff) |
Increased control state space to make room for read and write operations.
Diffstat (limited to 'src/rtl/keywrap_core.v')
-rw-r--r-- | src/rtl/keywrap_core.v | 34 |
1 files 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; |