diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-03-08 13:40:35 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2017-03-08 13:40:35 +0100 |
commit | 4a4be48c34b69bffe41abd14c0fda7b0f8684837 (patch) | |
tree | d375fefdde40024875239f8a2cfff76e25bfd910 /icebox/icebox_chipdb.py | |
parent | de563bdd958573837529d49bddc0dfa68c55fe75 (diff) | |
parent | 038bf76caae3840a91720af6b1fe832a0d73f7bb (diff) | |
download | icestorm-4a4be48c34b69bffe41abd14c0fda7b0f8684837.tar.gz icestorm-4a4be48c34b69bffe41abd14c0fda7b0f8684837.tar.bz2 icestorm-4a4be48c34b69bffe41abd14c0fda7b0f8684837.zip |
Merge branch 'hermitsoft'
Diffstat (limited to 'icebox/icebox_chipdb.py')
-rwxr-xr-x | icebox/icebox_chipdb.py | 10 |
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() |