aboutsummaryrefslogtreecommitdiff
path: root/icebox/icebox_chipdb.py
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-05-13 20:55:43 +0200
committerGitHub <noreply@github.com>2018-05-13 20:55:43 +0200
commit51ae9e64f0db16ce71e32113d96a40b8915b26e7 (patch)
treebbe706304d24b5d3e2f8adb4f3146f9868632620 /icebox/icebox_chipdb.py
parent1b22af089e2aa943daf569ad71f2261f7254ac7d (diff)
parentf967b53fe9be32fc7a169847287f227e705dbe52 (diff)
Merge pull request #139 from awygle/lm_icebox
Icebox support for ice40 LM
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 6ff7c46..6497ae2 100755
--- a/icebox/icebox_chipdb.py
+++ b/icebox/icebox_chipdb.py
@@ -19,6 +19,7 @@ import icebox
import getopt, sys, re
mode_384 = False
+mode_lm4k = False
mode_5k = False
mode_8k = False
@@ -34,11 +35,14 @@ Usage: icebox_chipdb [options] [bitmap.asc]
-8
create chipdb for 8k device
+
+ -4
+ create chipdb for lm4k device
""")
sys.exit(0)
try:
- opts, args = getopt.getopt(sys.argv[1:], "358")
+ opts, args = getopt.getopt(sys.argv[1:], "3584")
except:
usage()
@@ -49,6 +53,8 @@ for o, a in opts:
mode_5k = True
elif o == "-3":
mode_384 = True
+ elif o == "-4":
+ mode_lm4k = True
else:
usage()
@@ -59,6 +65,8 @@ elif mode_5k:
ic.setup_empty_5k()
elif mode_384:
ic.setup_empty_384()
+elif mode_lm4k:
+ ic.setup_empty_lm4k()
else:
ic.setup_empty_1k()