summaryrefslogtreecommitdiff
path: root/nandgame/comb_mem_tb.sv
diff options
context:
space:
mode:
Diffstat (limited to 'nandgame/comb_mem_tb.sv')
-rw-r--r--nandgame/comb_mem_tb.sv6
1 files changed, 6 insertions, 0 deletions
diff --git a/nandgame/comb_mem_tb.sv b/nandgame/comb_mem_tb.sv
index 6f8e226..f7211cc 100644
--- a/nandgame/comb_mem_tb.sv
+++ b/nandgame/comb_mem_tb.sv
@@ -37,6 +37,12 @@ always #10 tst_clk = ~tst_clk;
initial begin
repeat(3) @(posedge tst_clk);
+ tst_X = 16'h02;
+ tst_write_A = 1;
+ repeat(3) @(posedge tst_clk);
+ tst_write_A = 0;
+ repeat(3) @(posedge tst_clk);
+ tst_X = 16'h55;
tst_write_A = 1;
repeat(3) @(posedge tst_clk);
assert (tst_reg_A == 16'h55)