summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok2026-01-10 17:02:56 +0100
committeruvok2026-01-10 20:34:37 +0100
commitf8b21cd577f6e25e696ca058c4a5da61414b7013 (patch)
tree9d79423863c9deca21bb45bc0306259e26f8d595
parente583d4747a1a37bd900dc49c7006bbb4c3ec2ab9 (diff)
comb_mem: Test when output occurs
-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)