Support lm4k in icebox_chipdb.py.

This commit is contained in:
Andrew Wygle 2018-05-12 12:19:58 -07:00
parent 9c11606f1d
commit 2d571cb728
2 changed files with 10 additions and 2 deletions

View File

@ -4840,7 +4840,7 @@ pinloc_db = {
( "B2", 7, 21, 1),
( "B4", 15, 21, 0),
( "B6", 18, 21, 0),
( "B7", 23, 21, 0),
( "B7", 23, 21, 1),
( "C1", 4, 21, 0),
( "C3", 9, 21, 0),
( "C4", 19, 21, 0),

View File

@ -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()