aboutsummaryrefslogtreecommitdiffstats
path: root/icefuzz/make_gbio2.py
diff options
context:
space:
mode:
Diffstat (limited to 'icefuzz/make_gbio2.py')
-rw-r--r--icefuzz/make_gbio2.py6
1 files changed, 5 insertions, 1 deletions
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)