Merge pull request #176 from elmsfu/hlc2asc/lut_keyword_fix

icebox_hlc2asc: fix _lut_ keyword parsing
This commit is contained in:
Clifford Wolf 2018-07-20 15:05:46 +02:00 committed by GitHub
commit 4582202121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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])