mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
Little steps in realmath test bench
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user