aboutsummaryrefslogtreecommitdiff
path: root/src/tb
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-09-18 09:54:20 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-09-18 09:54:20 +0200
commit00fd27b23e578f5c92d856951645805be5dbab1a (patch)
tree09e41a1a36dc06fb0e27a0e00b80ec36b5bddbb6 /src/tb
parentf20979faa37d4f272fcce51af18b829027778614 (diff)
Moved the mkmif instance into the core itself. Added API to read the key if DEBUG is set.
Diffstat (limited to 'src/tb')
-rw-r--r--src/tb/tb_keywrap_core.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tb/tb_keywrap_core.v b/src/tb/tb_keywrap_core.v
index 17c8f30..358b512 100644
--- a/src/tb/tb_keywrap_core.v
+++ b/src/tb/tb_keywrap_core.v
@@ -77,6 +77,11 @@ module tb_keywrap_core();
reg [31 : 0] tb_api_wr_data;
wire [31 : 0] tb_api_rd_data;
+ wire tb_mkm_spi_sclk;
+ wire tb_mkm_spi_cs_n;
+ reg tb_mkm_spi_do;
+ wire tb_mkm_spi_di;
+
//----------------------------------------------------------------
// Device Under Test.
@@ -86,6 +91,11 @@ module tb_keywrap_core();
.clk(tb_clk),
.reset_n(tb_reset_n),
+ .mkm_spi_sclk(tb_mkm_spi_sclk),
+ .mkm_spi_cs_n(tb_mkm_spi_cs_n),
+ .mkm_spi_do(tb_mkm_spi_do),
+ .mkm_spi_di(tb_mkm_spi_di),
+
.init(tb_init),
.next(tb_next),
.encdec(tb_encdec),