aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5
diff options
context:
space:
mode:
authorD. Shah <dave@ds0.me>2021-01-25 15:45:56 +0000
committerD. Shah <dave@ds0.me>2021-01-25 15:45:56 +0000
commitdc46d84c35d695748fa46fa6f27cd02ed0b05e03 (patch)
tree87c6fb5392646c3bf8dceb594a9c51ee221132e5 /ecp5
parent9b9628047c01a970cfe20f83f2b7129ed109440d (diff)
downloadnextpnr-dc46d84c35d695748fa46fa6f27cd02ed0b05e03.tar.gz
nextpnr-dc46d84c35d695748fa46fa6f27cd02ed0b05e03.tar.bz2
nextpnr-dc46d84c35d695748fa46fa6f27cd02ed0b05e03.zip
ecp5: Fix bottom clock tile renaming for tilegroups
Signed-off-by: D. Shah <dave@ds0.me>
Diffstat (limited to 'ecp5')
-rw-r--r--ecp5/bitstream.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc
index d668c8bc..eddbc129 100644
--- a/ecp5/bitstream.cc
+++ b/ecp5/bitstream.cc
@@ -471,6 +471,14 @@ void fix_tile_names(Context *ctx, ChipConfig &cc)
cc.tiles[xform.second].cunknowns.push_back(cunknown);
cc.tiles.erase(xform.first);
}
+ for (auto &tg : cc.tilegroups) {
+ for (auto &t : tg.tiles) {
+ if (boost::ends_with(t, "BMID_0H"))
+ t.back() = 'V';
+ else if (boost::ends_with(t, "BMID_2"))
+ t.push_back('V');
+ }
+ }
}
}