aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2018-11-17 10:18:45 +0100
committerSylvain Munaut <tnt@246tNt.com>2018-11-19 13:12:43 +0100
commit70e1fe423f663a3a02233e4f1c1f4f917d14c23c (patch)
tree227a0143f9244dfa39f24e57bd2e7cde09dcaeed /ice40
parent42fbb110fcea1ae05ba48433df86d6381715daeb (diff)
downloadnextpnr-70e1fe423f663a3a02233e4f1c1f4f917d14c23c.tar.gz
nextpnr-70e1fe423f663a3a02233e4f1c1f4f917d14c23c.tar.bz2
nextpnr-70e1fe423f663a3a02233e4f1c1f4f917d14c23c.zip
ice40/chipdb: Fix LOCKED keyword support to include all packages
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'ice40')
-rw-r--r--ice40/chipdb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ice40/chipdb.py b/ice40/chipdb.py
index 5b2f3e57..2009483f 100644
--- a/ice40/chipdb.py
+++ b/ice40/chipdb.py
@@ -692,7 +692,8 @@ with open(args.filename, "r") as f:
if mode[0] == "extra_cell":
if line[0] == "LOCKED":
- extra_cells[mode[1]].append((("LOCKED_" + line[1]), (0, 0, "LOCKED")))
+ for pkg in line[1:]:
+ extra_cells[mode[1]].append((("LOCKED_" + pkg), (0, 0, "LOCKED")))
else:
extra_cells[mode[1]].append((line[0], (int(line[1]), int(line[2]), line[3])))
continue