aboutsummaryrefslogtreecommitdiffstats
path: root/icebox/icebox_chipdb.py
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-03-08 13:40:35 +0100
committerClifford Wolf <clifford@clifford.at>2017-03-08 13:40:35 +0100
commit4a4be48c34b69bffe41abd14c0fda7b0f8684837 (patch)
treed375fefdde40024875239f8a2cfff76e25bfd910 /icebox/icebox_chipdb.py
parentde563bdd958573837529d49bddc0dfa68c55fe75 (diff)
parent038bf76caae3840a91720af6b1fe832a0d73f7bb (diff)
downloadicestorm-4a4be48c34b69bffe41abd14c0fda7b0f8684837.tar.gz
icestorm-4a4be48c34b69bffe41abd14c0fda7b0f8684837.tar.bz2
icestorm-4a4be48c34b69bffe41abd14c0fda7b0f8684837.zip
Merge branch 'hermitsoft'
Diffstat (limited to 'icebox/icebox_chipdb.py')
-rwxr-xr-xicebox/icebox_chipdb.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/icebox/icebox_chipdb.py b/icebox/icebox_chipdb.py
index 157d3e1..299ce5c 100755
--- a/icebox/icebox_chipdb.py
+++ b/icebox/icebox_chipdb.py
@@ -18,31 +18,39 @@
import icebox
import getopt, sys, re
+mode_384 = False
mode_8k = False
def usage():
print("""
Usage: icebox_chipdb [options] [bitmap.asc]
+ -3
+ create chipdb for 384 device
+
-8
create chipdb for 8k device
""")
sys.exit(0)
try:
- opts, args = getopt.getopt(sys.argv[1:], "8")
+ opts, args = getopt.getopt(sys.argv[1:], "38")
except:
usage()
for o, a in opts:
if o == "-8":
mode_8k = True
+ elif o == "-3":
+ mode_384 = True
else:
usage()
ic = icebox.iceconfig()
if mode_8k:
ic.setup_empty_8k()
+elif mode_384:
+ ic.setup_empty_384()
else:
ic.setup_empty_1k()