diff options
author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-06-22 17:38:38 -0700 |
---|---|---|
committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-06-22 17:38:38 -0700 |
commit | 58a6110be198089d784b5ad3e2ecb611182bd5ea (patch) | |
tree | 3f15bebbc4b95584c93ad0f3412b53b7f55c8d5e /icefuzz/make_prim.py | |
parent | ed8c4e8c034ffca4424f92fa683ff631c4205b50 (diff) | |
download | icestorm-58a6110be198089d784b5ad3e2ecb611182bd5ea.tar.gz icestorm-58a6110be198089d784b5ad3e2ecb611182bd5ea.tar.bz2 icestorm-58a6110be198089d784b5ad3e2ecb611182bd5ea.zip |
Add icefuzz support for the UP5K and rework underlying device specification for more flexibility.
Diffstat (limited to 'icefuzz/make_prim.py')
-rw-r--r-- | icefuzz/make_prim.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/icefuzz/make_prim.py b/icefuzz/make_prim.py index 8ced57e..77b5d9b 100644 --- a/icefuzz/make_prim.py +++ b/icefuzz/make_prim.py @@ -7,7 +7,7 @@ import os os.system("rm -rf work_prim") os.mkdir("work_prim") -w = 10 if os.getenv('ICE384PINS') else 24 +w = len(pins) // 4 for idx in range(num): with open("work_prim/prim_%02d.v" % idx, "w") as f: @@ -48,4 +48,3 @@ with open("work_prim/Makefile", "w") as f: for i in range(num): print("prim_%02d.bin:" % i, file=f) print("\t-bash ../icecube.sh prim_%02d > prim_%02d.log 2>&1 && rm -rf prim_%02d.tmp || tail prim_%02d.log" % (i, i, i, i), file=f) - |