From 31ccc060dbd0ba6daa2eedb8911b40603b96a26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Sun, 9 Dec 2018 11:30:09 +0100 Subject: Adding support for SW to keep loaded key alive by reading status. Adding support for SW to trigger zeroisation of a loaded key. --- src/tb/tb_keywrap_core.v | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'src/tb') diff --git a/src/tb/tb_keywrap_core.v b/src/tb/tb_keywrap_core.v index 1212ad7..7f9c42d 100644 --- a/src/tb/tb_keywrap_core.v +++ b/src/tb/tb_keywrap_core.v @@ -69,6 +69,8 @@ module tb_keywrap_core(); wire tb_valid; wire tb_loaded; reg [31 : 0] tb_timeout; + reg tb_ping; + reg tb_zeroise; reg [(RLEN_BITS - 1) : 0] tb_rlen; reg [255 : 0] tb_key; reg tb_keylen; @@ -97,6 +99,8 @@ module tb_keywrap_core(); .loaded(tb_loaded), .timeout(tb_timeout), + .ping(tb_ping), + .zeroise(tb_zeroise), .rlen(tb_rlen), .key(tb_key), @@ -152,14 +156,17 @@ module tb_keywrap_core(); tb_clk = 0; tb_reset_n = 0; - tb_init = 0; - tb_next = 0; - tb_encdec = 0; + tb_init = 1'h0; + tb_next = 1'h0; + tb_encdec = 1'h0; tb_rlen = 13'h0; tb_key = 256'h0; - tb_keylen = 0; + tb_keylen = 1'h0; + tb_timeout = 32'hdeadbeef; + tb_ping = 1'h0; + tb_zeroise = 1'h0; tb_a_init = 64'h0; - tb_api_we = 0; + tb_api_we = 1'h0; tb_api_addr = 14'h0; tb_api_wr_data = 32'h0; -- cgit v1.2.3