From 61aa5c5094021dc1e623812fd55c99ff0363b595 Mon Sep 17 00:00:00 2001 From: Elms Date: Thu, 19 Jul 2018 16:03:20 -0700 Subject: 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. --- icebox/icebox_hlc2asc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'icebox') 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]) -- cgit v1.2.3