aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/bitstream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ecp5/bitstream.cc')
-rw-r--r--ecp5/bitstream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecp5/bitstream.cc b/ecp5/bitstream.cc
index 04bbc24f..f4f175bb 100644
--- a/ecp5/bitstream.cc
+++ b/ecp5/bitstream.cc
@@ -187,7 +187,7 @@ void write_bitstream(Context *ctx, std::string base_config_file, std::string tex
for (const auto &tile : empty_chip.tiles) {
std::string type = tile.second->info.type;
if (type.find("BANKREF") != std::string::npos && type != "BANKREF8") {
- cc.tiles[type].add_enum("BANK.VCCIO", "3V3");
+ cc.tiles[tile.first].add_enum("BANK.VCCIO", "3V3");
}
}