projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
149fe83
)
improved realmath test bench
author
Clifford Wolf
<clifford@clifford.at>
Sat, 14 Jun 2014 18:38:40 +0000
(20:38 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Sat, 14 Jun 2014 19:00:51 +0000
(21:00 +0200)
tests/realmath/generate.py
patch
|
blob
|
history
diff --git
a/tests/realmath/generate.py
b/tests/realmath/generate.py
index f280e1c3d32576691d5de1b981c59ede43735df5..af7648b8796c63cf665b1bccde2c959efd1d5ece 100644
(file)
--- a/
tests/realmath/generate.py
+++ b/
tests/realmath/generate.py
@@
-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;')