aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2016-08-23 16:33:29 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2016-08-23 16:33:29 +0200
commit2098f48acca4a77154ea30194698f96b329d031a (patch)
tree99834de10e7f24e67aeee1ea7e6051c102c11f80 /src
parent2130132e85e41aecd35f88efef410f79c7a66246 (diff)
Writing test data into the core regs.
Diffstat (limited to 'src')
-rw-r--r--src/tb/tb_sha3.v18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/tb/tb_sha3.v b/src/tb/tb_sha3.v
index 95fe048..06f6546 100644
--- a/src/tb/tb_sha3.v
+++ b/src/tb/tb_sha3.v
@@ -111,7 +111,6 @@ module tb_sha3();
begin
$display("State of the DUT");
$display("----------------");
- $display("");
$display("st[00] = 0x%016x, st[01] = 0x%016x", dut.st[00], dut.st[01]);
$display("st[02] = 0x%016x, st[03] = 0x%016x", dut.st[02], dut.st[03]);
$display("st[04] = 0x%016x, st[05] = 0x%016x", dut.st[04], dut.st[05]);
@@ -217,8 +216,23 @@ module tb_sha3();
// zero data input.
//----------------------------------------------------------------
task simple_test;
- begin
+ reg [7 : 0] i;
+
+ begin : stest;
+
+ dump_state();
+
+ for (i = 0 ; i < 64 ; i = i + 1)
+ begin
+ tb_write_data = {i, i, i, i};
+ tb_address = i[6 : 0];
+ tb_we = 1;
+ #(CLK_PERIOD);
+ tb_we = 0;
+ end
+
dump_state();
+
end
endtask // simple_test