diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-06-16 15:21:08 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-06-16 15:21:08 +0200 |
commit | 88470283c995860c593bae03373a0b26408b0e94 (patch) | |
tree | 835fb04a6a2325684ed5314510fe54a13daae998 /tests/realmath | |
parent | 6c17d4f242ae2acb1581869b3ca904a0adbddc13 (diff) | |
download | yosys-88470283c995860c593bae03373a0b26408b0e94.tar.gz yosys-88470283c995860c593bae03373a0b26408b0e94.tar.bz2 yosys-88470283c995860c593bae03373a0b26408b0e94.zip |
Little steps in realmath test bench
Diffstat (limited to 'tests/realmath')
-rw-r--r-- | tests/realmath/.gitignore | 1 | ||||
-rw-r--r-- | tests/realmath/generate.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/realmath/.gitignore b/tests/realmath/.gitignore new file mode 100644 index 000000000..9c595a6fb --- /dev/null +++ b/tests/realmath/.gitignore @@ -0,0 +1 @@ +temp diff --git a/tests/realmath/generate.py b/tests/realmath/generate.py index 58cedf028..9e48755c5 100644 --- a/tests/realmath/generate.py +++ b/tests/realmath/generate.py @@ -44,8 +44,10 @@ for idx in range(100): print('module uut_%05d(output [63:0] %s);\n' % (idx, ', '.join(['y%02d' % i for i in range(100)]))) for i in range(30): print('localparam p%02d = %s;' % (i, random_expression())) + # print('localparam%s p%02d = %s;' % (random.choice(['', ' real', ' integer']), i, random_expression())) for i in range(30, 60): print('localparam p%02d = %s;' % (i, random_expression(maxparam = 30))) + # print('localparam%s p%02d = %s;' % (random.choice(['', ' real', ' integer']), i, random_expression(maxparam = 30))) for i in range(100): print('assign y%02d = 65536 * (%s);' % (i, random_expression(maxparam = 60))) print('endmodule') |