Skip to content

Commit

Permalink
add TB warning about out of spec CTS to make sure it happens 1x
Browse files Browse the repository at this point in the history
  • Loading branch information
sameer committed May 21, 2020
1 parent 46d98ce commit 697aa10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/top_tb/top_tb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ begin
assert(header[23:8] === 16'd0) else $fatal("Clock regen HB1, HB2 should be X: %b, %b", header[23:16], header[15:8]);
assert(sub[0] == sub[1] && sub[1] == sub[2] && sub[2] == sub[3]) else $fatal("Clock regen subpackets are different");
assert(N == 128*48000/1000) else $fatal("Incorrect N: %d should be %d", N, 128*48000/1000);
if (CTS == 24939)
$warning("CTS is out of spec, this should only happen once while warming up at the beginning of the testbench.");
assert(CTS == 25200 || CTS == 25199 || CTS == 24939) else $fatal("Incorrect CTS, should hover around 25200: %d", CTS);
end
8'h02: begin
Expand Down

0 comments on commit 697aa10

Please sign in to comment.