From 47f3c799270238d906195f28aa0efaeefbfeabcf Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 28 Sep 2020 19:08:19 -0600 Subject: [PATCH] [OpenFPGA Tool] Bug fix in module manager due to configurable regions --- openfpga/src/fabric/module_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openfpga/src/fabric/module_manager.cpp b/openfpga/src/fabric/module_manager.cpp index 283a7a4d9..dd3c070fa 100644 --- a/openfpga/src/fabric/module_manager.cpp +++ b/openfpga/src/fabric/module_manager.cpp @@ -764,7 +764,8 @@ void ModuleManager::add_configurable_child_to_region(const ModuleId& parent_modu } /* If the child is already in another region, error out */ - if (config_region != configurable_child_regions_[parent_module][config_child_id]) { + if ( (true == valid_region_id(parent_module, configurable_child_regions_[parent_module][config_child_id])) + && (config_region != configurable_child_regions_[parent_module][config_child_id]) ) { VTR_LOGF_ERROR(__FILE__, __LINE__, "Try to add a configurable child '%s[%lu]' to region '%lu' which is already added to another region '%lu'!\n", module_name(child_module).c_str(),