summaryrefslogtreecommitdiff
path: root/nandgame
diff options
context:
space:
mode:
authoruvok2026-01-10 17:02:56 +0100
committeruvok2026-01-11 11:59:49 +0100
commitc76e9186ba19207c0f1c6386972ac9b0db93083d (patch)
tree59964dd0fe2e79628985267fcae0502f7256f452 /nandgame
parent87a1ee53f783045d461dd80764895a6ee2b00390 (diff)
comb_mem: Test when output occurs
Diffstat (limited to 'nandgame')
-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)