[Cryptech-Commits] [core/util/keywrap] 31/37: Updated display of states. We can now observe correct init of the memory.
git at cryptech.is
git at cryptech.is
Wed Apr 29 16:52:07 UTC 2020
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository core/util/keywrap.
commit f67001b76c6b6a7764bbea7fdec5d5d0e3ce9792
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Fri Nov 23 11:08:24 2018 +0100
Updated display of states. We can now observe correct init of the memory.
---
src/tb/tb_keywrap_mkmif.v | 16 +++++++++++-----
1 file 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
More information about the Commits
mailing list