diff --git a/libopenfpga/libfabrickey/src/fabric_key.cpp b/libopenfpga/libfabrickey/src/fabric_key.cpp index f17f3deaa..500dec09a 100644 --- a/libopenfpga/libfabrickey/src/fabric_key.cpp +++ b/libopenfpga/libfabrickey/src/fabric_key.cpp @@ -91,6 +91,10 @@ std::vector FabricKey::wl_bank_data_ports(const FabricRegio void FabricKey::reserve_regions(const size_t& num_regions) { region_ids_.reserve(num_regions); region_key_ids_.reserve(num_regions); + bl_bank_ids_.reserve(num_regions); + bl_bank_data_ports_.reserve(num_regions); + wl_bank_ids_.reserve(num_regions); + wl_bank_data_ports_.reserve(num_regions); } FabricRegionId FabricKey::create_region() { @@ -98,6 +102,10 @@ FabricRegionId FabricKey::create_region() { FabricRegionId region = FabricRegionId(region_ids_.size()); region_ids_.push_back(region); region_key_ids_.emplace_back(); + bl_bank_ids_.emplace_back(); + bl_bank_data_ports_.emplace_back(); + wl_bank_ids_.emplace_back(); + wl_bank_data_ports_.emplace_back(); return region; }