[Tool] Add warning when number of regions defined in fabric key is different than architecture
@@ -402,6 +402,16 @@ int build_top_module(ModuleManager& module_manager,
compact_routing_hierarchy);
} else {
VTR_ASSERT_SAFE(false == fabric_key.empty());
+ /* Give a warning message that the fabric key may overwrite existing region organization.
+ * Only applicable when number of regions defined in configuration protocol is different
+ * than the number of regions defined in the fabric key
+ */
+ if (size_t(config_protocol.num_regions()) != fabric_key.regions().size()) {
+ VTR_LOG_WARN("Fabric key will overwrite the region organization (='%ld') than architecture definition (=%d)!\n",
+ fabric_key.regions().size(),
+ config_protocol.num_regions());
+ }
+
status = load_top_module_memory_modules_from_fabric_key(module_manager, top_module,
fabric_key);
if (CMD_EXEC_FATAL_ERROR == status) {
