aboutsummaryrefslogtreecommitdiffstats
path: root/icebox
diff options
context:
space:
mode:
authorElms <elms@freshred.net>2018-07-19 16:03:20 -0700
committerElms <elms@freshred.net>2018-07-19 16:03:20 -0700
commit61aa5c5094021dc1e623812fd55c99ff0363b595 (patch)
treefc0c0e23622357a589c051c3ba839f67b01374d0 /icebox
parente0eaaf5b910a2178f2cc09216b45dd0c53234d0d (diff)
downloadicestorm-61aa5c5094021dc1e623812fd55c99ff0363b595.tar.gz
icestorm-61aa5c5094021dc1e623812fd55c99ff0363b595.tar.bz2
icestorm-61aa5c5094021dc1e623812fd55c99ff0363b595.zip
icebox_hlc2asc: fix _lut_ keyword parsing
'self.lut_bits is None' was always false. The _lut_ keyword is used by asc2hlc, so when converting asc->hlc->asc the lut_bits were always all zeros.
Diffstat (limited to 'icebox')
-rwxr-xr-xicebox/icebox_hlc2asc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/icebox/icebox_hlc2asc.py b/icebox/icebox_hlc2asc.py
index f80678f..92da928 100755
--- a/icebox/icebox_hlc2asc.py
+++ b/icebox/icebox_hlc2asc.py
@@ -865,7 +865,7 @@ class LogicCell:
self.seq_bits = ['0'] * 4
def read(self, fields):
- if fields[0] == 'lut' and len(fields) == 2 and self.lut_bits is None:
+ if fields[0] == 'lut' and len(fields) == 2:
self.lut_bits = fields[1]
elif fields[0] == 'out' and len(fields) >= 3 and fields[1] == '=':
m = re.match("([0-9]+)'b([01]+)", fields[2])