Skip to content

Commit

Permalink
make_mesh.py fix for even pin-distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
hermitsoft committed Mar 9, 2017
1 parent f7334fc commit dacf221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icefuzz/make_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
for idx in range(num):
with open("work_mesh/mesh_%02d.v" % idx, "w") as f:
if os.getenv('ICE384PINS'):
print("module top(input [9:0] a, output [17:0] y);", file=f)
print("module top(input [13:0] a, output [13:0] y);", file=f)
else:
print("module top(input [39:0] a, output [39:0] y);", file=f)
print(" assign y = a;", file=f)
print("endmodule", file=f)
with open("work_mesh/mesh_%02d.pcf" % idx, "w") as f:
p = np.random.permutation(pins)
if os.getenv('ICE384PINS'): r = 18
if os.getenv('ICE384PINS'): r = 14
else: r = 40
for i in range(r):
print("set_io a[%d] %s" % (i, p[i]), file=f)
Expand Down

0 comments on commit dacf221

Please sign in to comment.