aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tb/tb_keywrap_mkmif.v16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/tb/tb_keywrap_mkmif.v b/src/tb/tb_keywrap_mkmif.v
index 55305ff..b22be82 100644
--- a/src/tb/tb_keywrap_mkmif.v
+++ b/src/tb/tb_keywrap_mkmif.v
@@ -143,21 +143,27 @@ module tb_keywrap_mkmif();
if (show_dut_state)
begin
+ $display("DUT control state:");
$display("init: 0x%01x read: 0x%01x write: 0x%01x key_status: 0x%01x",
dut.init, dut.read, dut.write, dut.key_status);
$display("ready: 0x%01x ctrl_state: 0x%02x", dut.ready, dut.keywrap_mkmif_ctrl_reg);
+ $display();
end
-
if (show_mem_state)
begin
- $display("BitCounter: %08d InstRegister: 0x%01x AddrRegister: 0x%02x",
- mem.BitCounter, mem.InstRegister, mem.AddrRegister);
- $display("DataShifterI: 0x%02x DataShifterO: 0x%01x",
- mem.DataShifterI, mem.DataShifterO);
+ $display("Memory control state:");
+ $display("Hold: 0x%1x BitCounter: 0x%04x", mem.Hold, mem.BitCounter);
+ $display("DataShifterI: 0x%02x DataShifterO: 0x%1x", mem.DataShifterI, mem.DataShifterO);
+ $display("InstRegister: 0x%1x AddrRegister: 0x%02x", mem.InstRegister, mem.AddrRegister);
+ $display("OpMode0: 0x%1x OpMode1: 0x%1x", mem.OpMode0, mem.OpMode1);
+ $display("InstructionREAD: 0x%1x InstructionRDSR: 0x%1x", mem.InstructionREAD, mem.InstructionRDSR);
+ $display("InstructionWRSR: 0x%1x InstructionWRITE: 0x%1x", mem.InstructionWRSR, mem.InstructionWRITE);
+ $display();
end
if (show_spi)
begin
+ $display("SPI interface state:");
$display("spi_clk: 0x%01x, spi_cs_n: 0x%01x, spi_do: 0x%01x, spi_di: 0x%01x",
tb_mkm_spi_sclk, tb_mkm_spi_cs_n, tb_mkm_spi_do, tb_mkm_spi_di);
end