[core] fixed a bug where regex breaks
This commit is contained in:
parent
f63ea06c4e
commit
79970719b4
|
@ -444,7 +444,7 @@ int write_fabric_pin_physical_location_template(
|
|||
std::string module_name("*"); /* Use a wildcard for everything */
|
||||
CommandOptionId opt_module = cmd.option("module");
|
||||
if (true == cmd_context.option_enable(cmd, opt_module)) {
|
||||
module_name = cmd_context.option_value(cmd, opt_module).empty();
|
||||
module_name = cmd_context.option_value(cmd, opt_module);
|
||||
}
|
||||
|
||||
/* Write hierarchy to a file */
|
||||
|
|
|
@ -102,7 +102,7 @@ static int write_xml_fabric_module_pin_phy_loc(
|
|||
}
|
||||
cnt++;
|
||||
}
|
||||
VTR_LOGV(verbose, "Output '%lu' ports with physical sides for module '%s'\n",
|
||||
VTR_LOGV(verbose, "Output %lu ports with physical sides for module '%s'\n",
|
||||
cnt, module_manager.module_name(curr_module).c_str());
|
||||
|
||||
/* Print a tail */
|
||||
|
@ -154,7 +154,7 @@ int write_xml_fabric_pin_physical_location(const char* fname,
|
|||
if (!std::regex_match(curr_module_name, wildcard_regex)) {
|
||||
continue;
|
||||
}
|
||||
VTR_LOGV(verbose, "Output pin physical location of module '%s'.\n", curr_module_name.c_str());
|
||||
VTR_LOGV(verbose, "Outputted pin physical location of module '%s'.\n", curr_module_name.c_str());
|
||||
/* Write the pin physical location for this module */
|
||||
int err_code = write_xml_fabric_module_pin_phy_loc(
|
||||
fp, module_manager, curr_module, show_invalid_side, verbose);
|
||||
|
|
Loading…
Reference in New Issue