[OpenFPGA Tool] Bug fix in module manager due to configurable regions

This commit is contained in:
tangxifan 2020-09-28 19:08:19 -06:00
parent f93d46a870
commit 47f3c79927
1 changed files with 2 additions and 1 deletions

View File

@ -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(),