diff options
author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-06-23 22:53:54 -0700 |
---|---|---|
committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-06-23 22:53:54 -0700 |
commit | a25c8679ac37df5219e1d7a8cdd932288cd596b1 (patch) | |
tree | 1b6a0bc0c5b1dd39e210429a934918cb6b4c44a1 /icefuzz/database.py | |
parent | 2a7139115c08af847a5e9d19be3229dd627f4be9 (diff) | |
download | icestorm-a25c8679ac37df5219e1d7a8cdd932288cd596b1.tar.gz icestorm-a25c8679ac37df5219e1d7a8cdd932288cd596b1.tar.bz2 icestorm-a25c8679ac37df5219e1d7a8cdd932288cd596b1.zip |
More work figuring out values in icebox.py
Diffstat (limited to 'icefuzz/database.py')
-rw-r--r-- | icefuzz/database.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/icefuzz/database.py b/icefuzz/database.py index 979b92b..50a28fc 100644 --- a/icefuzz/database.py +++ b/icefuzz/database.py @@ -138,11 +138,11 @@ with open("database_ramt.txt", "w") as f: for entry in read_database("bitdata_ramt.txt", "ramt"): print("\t".join(entry), file=f) -if device_class in ["5k", "8k"]: +for device_class in ["5k", "8k"]: with open("database_ramb_%s.txt" % (device_class, ), "w") as f: for entry in read_database("bitdata_ramb_%s.txt" % (device_class, ), "ramb_" + device_class): print("\t".join(entry), file=f) - with open("database_ramt_8k.txt", "w") as f: + with open("database_ramt_%s.txt" % (device_class, ), "w") as f: for entry in read_database("bitdata_ramt_%s.txt" % (device_class, ), "ramt_" + device_class): print("\t".join(entry), file=f) |