From f7c9cd18767f30259a285c3fd20a0905bea2b2d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Thu, 17 Jan 2019 13:02:13 +0100 Subject: Added non-zero default timeout value in core. This fixes the keywrap problems by not automatically reset the key in the API. Enabled all testcases and disabled excessive debug outputs. --- src/rtl/keywrap_core.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/rtl') diff --git a/src/rtl/keywrap_core.v b/src/rtl/keywrap_core.v index b084363..0354475 100644 --- a/src/rtl/keywrap_core.v +++ b/src/rtl/keywrap_core.v @@ -91,6 +91,8 @@ module keywrap_core #(parameter MEM_BITS = 11) localparam CTRL_NEXT_FINALIZE = 4'ha; localparam CTRL_ZERO_WAIT = 4'hb; + localparam DEFAULT_TIMEOUT = 32'h0400_0000; + //---------------------------------------------------------------- // Registers and memories including control signals. @@ -222,7 +224,7 @@ module keywrap_core #(parameter MEM_BITS = 11) key_loaded_reg <= 1'h0; block_ctr_reg <= {(MEM_BITS - 1){1'h0}}; iteration_ctr_reg <= 3'h0; - key_timeout_ctr_reg <= 32'h0; + key_timeout_ctr_reg <= DEFAULT_TIMEOUT; keywrap_core_ctrl_reg <= CTRL_IDLE; end -- cgit v1.2.3