[Cryptech-Commits] [user/js/keywrap] branch integrate_mkmif updated: Updated display of states. We can now observe correct init of the memory.
git at cryptech.is
git at cryptech.is
Fri Nov 23 10:08:33 UTC 2018
This is an automated email from the git hooks/post-receive script.
joachim at secworks.se pushed a commit to branch integrate_mkmif
in repository user/js/keywrap.
The following commit(s) were added to refs/heads/integrate_mkmif by this push:
new f67001b Updated display of states. We can now observe correct init of the memory.
f67001b is described below
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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list