From dc46d84c35d695748fa46fa6f27cd02ed0b05e03 Mon Sep 17 00:00:00 2001 From: "D. Shah" Date: Mon, 25 Jan 2021 15:45:56 +0000 Subject: ecp5: Fix bottom clock tile renaming for tilegroups Signed-off-by: D. Shah --- ecp5/bitstream.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ecp5') 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'); + } + } } } -- cgit v1.2.3