diff options
| author | uvok | 2025-12-26 18:13:54 +0100 |
|---|---|---|
| committer | uvok | 2025-12-26 18:13:54 +0100 |
| commit | 0846857a7e8ac4bef959ecf09ee5fa3ffc24991f (patch) | |
| tree | 8e4053a113483e5fe927ef573c2fe2ae2e50d228 | |
| parent | d9231c6ba16b73b5ecbee7e70ef9037ccedd80e8 (diff) | |
Make sense to s2p test bench
| -rw-r--r-- | ser_to_par.tb.v | 15 |
1 files changed, 14 insertions, 1 deletions
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 |
