aboutsummaryrefslogtreecommitdiff
path: root/src/tb
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-12-09 11:30:09 +0100
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-12-09 11:30:09 +0100
commit31ccc060dbd0ba6daa2eedb8911b40603b96a26f (patch)
tree465b6e56c52570a267201c02d93461eb8ec0bebd /src/tb
parent2841e92b6bf076365c6401e08b249105fccc7b84 (diff)
Adding support for SW to keep loaded key alive by reading status. Adding support for SW to trigger zeroisation of a loaded key.
Diffstat (limited to 'src/tb')
-rw-r--r--src/tb/tb_keywrap_core.v17
1 files changed, 12 insertions, 5 deletions
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;