diff options
author | Andrew Wygle <awygle@gmail.com> | 2018-05-12 12:19:58 -0700 |
---|---|---|
committer | Andrew Wygle <awygle@gmail.com> | 2018-05-13 10:58:22 -0700 |
commit | 2d571cb728247c56e248f8e94a03637b0e9737a9 (patch) | |
tree | 968079b2bdb33fb2d014ce0ca2e1025925b7194e | |
parent | 9c11606f1d43991744c4707c7f01d53f20ddde4a (diff) | |
download | icestorm-2d571cb728247c56e248f8e94a03637b0e9737a9.tar.gz icestorm-2d571cb728247c56e248f8e94a03637b0e9737a9.tar.bz2 icestorm-2d571cb728247c56e248f8e94a03637b0e9737a9.zip |
Support lm4k in icebox_chipdb.py.
-rw-r--r-- | icebox/icebox.py | 2 | ||||
-rwxr-xr-x | icebox/icebox_chipdb.py | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/icebox/icebox.py b/icebox/icebox.py index 35ce69e..069dd3d 100644 --- a/icebox/icebox.py +++ b/icebox/icebox.py @@ -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), diff --git a/icebox/icebox_chipdb.py b/icebox/icebox_chipdb.py index fc25403..c817b13 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() |