diff options
author | hermitsoft <hermisu@mail.com> | 2017-03-07 22:39:04 +0100 |
---|---|---|
committer | hermitsoft <hermisu@mail.com> | 2017-03-07 22:39:04 +0100 |
commit | f8934de8d55a1461fa7081967384e692b8b935bb (patch) | |
tree | 81a7b4621b7bd9cdb921867ac169c829c15d5af2 /icefuzz/make_fflogic.py | |
parent | 2ca9f929ac58e40c3918513bb9182ca0b929086e (diff) | |
download | icestorm-f8934de8d55a1461fa7081967384e692b8b935bb.tar.gz icestorm-f8934de8d55a1461fa7081967384e692b8b935bb.tar.bz2 icestorm-f8934de8d55a1461fa7081967384e692b8b935bb.zip |
icefuzz make_xxx.py files are ready for LP384.
Diffstat (limited to 'icefuzz/make_fflogic.py')
-rw-r--r-- | icefuzz/make_fflogic.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/icefuzz/make_fflogic.py b/icefuzz/make_fflogic.py index bcd7111..5eae704 100644 --- a/icefuzz/make_fflogic.py +++ b/icefuzz/make_fflogic.py @@ -37,8 +37,13 @@ def print_seq_op(dst, src1, src2, op, f): for idx in range(num): with open("work_fflogic/fflogic_%02d.v" % idx, "w") as f: - print("module top(input clk, rst, en, input [15:0] a, b, c, d, output [15:0] y, output z);", file=f) - print(" reg [15:0] p, q;", file=f) + if os.getenv('ICE384PINS'): + print("module top(input clk, rst, en, input [1:0] a, b, c, d, output [1:0] y, output z);", file=f) + print(" reg [1:0] p, q;", file=f) + else: + print("module top(input clk, rst, en, input [15:0] a, b, c, d, output [15:0] y, output z);", file=f) + print(" reg [15:0] p, q;", file=f) + print_seq_op("p", "a", "b", random_op(), f) print_seq_op("q", "c", "d", random_op(), f) print(" assign y = p %s q, z = clk ^ rst ^ en;" % random_op(), file=f) |