From 92d3ea0e58f6f3a080d1b44e3d456ffd80590237 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 16 Jan 2016 16:17:56 +0100 Subject: icefuzz improvements, refuzz timings --- icefuzz/make_gbio2.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'icefuzz/make_gbio2.py') diff --git a/icefuzz/make_gbio2.py b/icefuzz/make_gbio2.py index 6cb6339..90832b3 100644 --- a/icefuzz/make_gbio2.py +++ b/icefuzz/make_gbio2.py @@ -7,6 +7,9 @@ import os os.system("rm -rf work_gbio2") os.mkdir("work_gbio2") +for p in gpins: + if p in pins: pins.remove(p) + for idx in range(num): with open("work_gbio2/gbio2_%02d.v" % idx, "w") as f: glbs = np.random.permutation(list(range(8))) @@ -64,8 +67,9 @@ for idx in range(num): ), file=f) with open("work_gbio2/gbio2_%02d.pcf" % idx, "w") as f: p = np.random.permutation(pins) + g = np.random.permutation(gpins) for i in range(8): - print("set_io pin[%d] %s" % (i, p[i]), file=f) + print("set_io pin[%d] %s" % (i, g[i]), file=f) print("set_io din_0[%d] %s" % (i, p[8+i]), file=f) print("set_io din_1[%d] %s" % (i, p[2*8+i]), file=f) print("set_io globals[%d] %s" % (i, p[3*8+i]), file=f) -- cgit v1.2.3