From 0846857a7e8ac4bef959ecf09ee5fa3ffc24991f Mon Sep 17 00:00:00 2001 From: uvok Date: Fri, 26 Dec 2025 18:13:54 +0100 Subject: Make sense to s2p test bench --- ser_to_par.tb.v | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'ser_to_par.tb.v') diff --git a/ser_to_par.tb.v b/ser_to_par.tb.v index c86edfa..a613c2e 100644 --- a/ser_to_par.tb.v +++ b/ser_to_par.tb.v @@ -29,7 +29,20 @@ end always #10 clk_i = ~clk_i; initial begin - #400 + #37 + + // start data + dat_i <= 1'b0; + #20 + + // - 1 clk cycle, 1 bit later: + dat_i <= 1'b1; + + #140 + // - 7 clk cycle, 7 bits later: + assert (dat_o == 8'hfe) + + #20 $finish(); end -- cgit v1.2.3