diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-06-13 13:42:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 13:42:18 +0200 |
commit | 90d372511950ea784eb6dcb7d773d11f76ba0183 (patch) | |
tree | 22b95f0c3f08c2e9904b7ed29ef7fad9dd518d5e | |
parent | 15e98223f42bba8a88c1795151e2c40936d428ac (diff) | |
parent | 6c21817732f251f297f7fc8c0876e7cfe78284ca (diff) | |
download | icestorm-90d372511950ea784eb6dcb7d773d11f76ba0183.tar.gz icestorm-90d372511950ea784eb6dcb7d773d11f76ba0183.tar.bz2 icestorm-90d372511950ea784eb6dcb7d773d11f76ba0183.zip |
Merge pull request #156 from mithro/hlc-devices
icebox_hlc2asc: Accept device types such as HX1K
-rwxr-xr-x | icebox/icebox_hlc2asc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/icebox/icebox_hlc2asc.py b/icebox/icebox_hlc2asc.py index 54c9dc0..3888dd3 100755 --- a/icebox/icebox_hlc2asc.py +++ b/icebox/icebox_hlc2asc.py @@ -532,7 +532,9 @@ class Main: and len(fields[1]) >= 2 and fields[1][0] == '"' \ and fields[1][-1] == '"' \ and self.ic is None and self.device is None: - self.device = fields[1][1:-1] + self.device = fields[1][1:-1].lower() + if self.device.startswith('lp') or self.device.startswith('hx'): + self.device = self.device[2:] if self.device == '1k': self.ic = icebox.iceconfig() self.ic.setup_empty_1k() |