Update repack_design_constraints.cpp

This commit is contained in:
Yitian4Debug 2023-12-05 09:17:29 -08:00 committed by GitHub
parent d0958fc017
commit 0e243d1c05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 38 deletions

View File

@ -56,17 +56,6 @@ std::string RepackDesignConstraints::net(
return repack_design_constraint_nets_[repack_design_constraint_id];
}
std::set<std::string> RepackDesignConstraints::ignore_net_on_pin(
const std::string& net_name) const {
std::map<std::string, std::set<std::string>>::const_iterator it =
ignore_net_pin_map_.find(net_name);
if (it != ignore_net_pin_map_.end()) {
return it->second;
} else {
return std::set<std::string>();
}
}
std::string RepackDesignConstraints::find_constrained_pin_net(
const std::string& pb_type, const openfpga::BasicPort& pin) const {
std::string constrained_net_name;
@ -151,33 +140,6 @@ void RepackDesignConstraints::set_net(
repack_design_constraint_nets_[repack_design_constraint_id] = net;
}
void RepackDesignConstraints::set_ignore_net_pin_map_(
const std::string& net_name, const std::string pin_ctx) {
/* Extract the pb_type name and port name */
openfpga::StringToken pin_tokenizer(pin_ctx);
std::vector<std::string> pin_info = pin_tokenizer.split('.');
/* Expect two contents, otherwise error out */
if (pin_info.size() != 2) {
std::string err_msg =
std::string("Invalid content '") + pin_ctx +
std::string("' to skip, expect <pb_type_name>.<pin>\n");
VTR_LOG_ERROR(err_msg.c_str());
VTR_ASSERT(pin_info.size() == 2);
return;
}
std::string pb_type_name = pin_info[0];
openfpga::PortParser port_parser(pin_info[1]);
openfpga::BasicPort curr_port = port_parser.port();
if (!curr_port.is_valid()) {
std::string err_msg =
std::string("Invalid pin definition '") + pin_ctx +
std::string("', expect <pb_type_name>.<pin_name>[int:int]\n");
VTR_LOG_ERROR(err_msg.c_str());
VTR_ASSERT(curr_port.is_valid());
return;
}
ignore_net_pin_map_[net_name].insert(pin_ctx);
}
/************************************************************************
* Internal invalidators/validators
***********************************************************************/