From f8b21cd577f6e25e696ca058c4a5da61414b7013 Mon Sep 17 00:00:00 2001 From: uvok Date: Sat, 10 Jan 2026 17:02:56 +0100 Subject: comb_mem: Test when output occurs --- nandgame/comb_mem_tb.sv | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3