improved realmath test bench

This commit is contained in:
Clifford Wolf 2014-06-14 20:38:40 +02:00
parent 149fe83a8d
commit 11d2add1b9
1 changed files with 4 additions and 1 deletions

View File

@ -63,7 +63,10 @@ for idx in range(100):
print(' input [7:0] i;')
print(' input [63:0] r, s;')
print(' begin')
print(' $display("%d: %b %b", i, r, s);')
print(' if (-3 < $signed(r-s) && $signed(r-s) < +3)')
print(' $display("%d: %b %b", i, r, s);')
print(' else')
print(' $display("%d: %b %b %s", i, r, s, r !== s ? "TRIG" : "");')
print(' end')
print('endtask')
print('initial begin #1;')