summaryrefslogtreecommitdiff
path: root/tests/realmath
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-06-21 21:43:04 +0200
committerClifford Wolf <clifford@clifford.at>2014-06-21 21:43:04 +0200
commit3345fa0bab5d343a9cd5a9dde6486e4e876fe8da (patch)
treea7fa7692b53d7bdb40c4a56f216cbc13f5c62113 /tests/realmath
parent65b2e9c0645c30d84a9d9be148430fd76d3e5f05 (diff)
Little steps in realmath test bench
Diffstat (limited to 'tests/realmath')
-rw-r--r--tests/realmath/generate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/realmath/generate.py b/tests/realmath/generate.py
index 53015381..972021dc 100644
--- a/tests/realmath/generate.py
+++ b/tests/realmath/generate.py
@@ -43,12 +43,12 @@ for idx in range(100):
with file('temp/uut_%05d.v' % idx, 'w') as f, redirect_stdout(f):
print('module uut_%05d(output [63:0] %s);\n' % (idx, ', '.join(['y%02d' % i for i in range(100)])))
for i in range(30):
- if idx < 10 or True:
+ if idx < 10:
print('localparam p%02d = %s;' % (i, random_expression()))
else:
print('localparam%s p%02d = %s;' % (random.choice(['', ' real', ' integer']), i, random_expression()))
for i in range(30, 60):
- if idx < 10 or True:
+ if idx < 10:
print('localparam p%02d = %s;' % (i, random_expression(maxparam = 30)))
else:
print('localparam%s p%02d = %s;' % (random.choice(['', ' real', ' integer']), i, random_expression(maxparam = 30)))