aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/bitstream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ecp5/bitstream.cc')
-rw-r--r--ecp5/bitstream.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc
index 5af051c7..b19bd1c6 100644
--- a/ecp5/bitstream.cc
+++ b/ecp5/bitstream.cc
@@ -426,7 +426,8 @@ void fix_tile_names(Context *ctx, ChipConfig &cc)
auto cibdcu = tile.first.find("CIB_DCU");
if (cibdcu != std::string::npos) {
// Add the V
- newname.insert(cibdcu, 1, 'V');
+ if (newname.at(cibdcu - 1) != 'V')
+ newname.insert(cibdcu, 1, 'V');
tiletype_xform[tile.first] = newname;
} else if (tile.first.substr(tile.first.size() - 7) == "BMID_0H") {
newname.back() = 'V';