From 314628ffd32855a6a6e6cd71e02173db7180448c Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 11 Mar 2017 11:16:23 +0100 Subject: Disable propagation of LP384 ieren bits into iceboxdb.py --- icefuzz/database.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/icefuzz/database.py b/icefuzz/database.py index ec2074a..e32b771 100644 --- a/icefuzz/database.py +++ b/icefuzz/database.py @@ -31,7 +31,14 @@ def read_database(filename, tile_type): if line[3] == "wire_gbuf/in": line[3] = "fabout" raw_db.append((bit, (line[0], line[1], line[3]))) elif line[0] == "IoCtrl": - raw_db.append((bit, (line[0], re.sub(r"^.*?_", "", line[1]).replace("_en", "")))) + line[1] = re.sub(r"^.*?_", "", line[1]).replace("_en", "") + # LP384 chips have reversed IE_0/IE_1 and REN_0/REN_1 bit assignments + # we simply use the assignments for 1k/8k for all chips and fix it in ieren_db + if bit == "B6[3]" and line == ['IoCtrl', 'IE_0']: continue + if bit == "B9[3]" and line == ['IoCtrl', 'IE_1']: continue + if bit == "B1[3]" and line == ['IoCtrl', 'REN_0']: continue + if bit == "B6[2]" and line == ['IoCtrl', 'REN_1']: continue + raw_db.append((bit, (line[0], line[1]))) elif line[0] in ("IOB_0", "IOB_1"): if line[1] != "IO": raw_db.append((bit, (line[0], line[1]))) -- cgit v1.2.3