aboutsummaryrefslogtreecommitdiff
path: root/src/tb
diff options
context:
space:
mode:
Diffstat (limited to 'src/tb')
-rw-r--r--src/tb/tb_keywrap_mkmif.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tb/tb_keywrap_mkmif.v b/src/tb/tb_keywrap_mkmif.v
index b22be82..89e93c7 100644
--- a/src/tb/tb_keywrap_mkmif.v
+++ b/src/tb/tb_keywrap_mkmif.v
@@ -61,6 +61,7 @@ module tb_keywrap_mkmif();
integer show_spi;
integer show_dut_state;
integer show_mem_state;
+ integer show_mkm_state;
reg tb_clk;
reg tb_reset_n;
@@ -149,6 +150,14 @@ module tb_keywrap_mkmif();
$display("ready: 0x%01x ctrl_state: 0x%02x", dut.ready, dut.keywrap_mkmif_ctrl_reg);
$display();
end
+
+ if (show_mkm_state)
+ begin
+ $display("MKM control state:");
+ $display("ready: 0x%1x ctrl: 0x%1x", dut.mkm_ready, dut.mkm.mkmif_ctrl_reg);
+ $display();
+ end
+
if (show_mem_state)
begin
$display("Memory control state:");
@@ -208,6 +217,7 @@ module tb_keywrap_mkmif();
show_spi = 0;
show_dut_state = 1;
show_mem_state = 1;
+ show_mkm_state = 1;
tb_clk = 1'h0;
tb_reset_n = 1'h1;