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.
This commit is contained in:
Elms 2018-07-19 16:03:20 -07:00
parent e0eaaf5b91
commit 61aa5c5094
1 changed files with 1 additions and 1 deletions

View File

@ -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])