Merge pull request #683 from antmicro/interchange-allow-loc-keyword

interchange: allow LOC keyword in XDC files
This commit is contained in:
gatecat 2021-04-20 14:12:14 +01:00 committed by GitHub
commit 3fd1ee7757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,8 +189,10 @@ void Arch::pack_ports()
auto iter = port_cell->attrs.find(id("PACKAGE_PIN")); auto iter = port_cell->attrs.find(id("PACKAGE_PIN"));
if (iter == port_cell->attrs.end()) { if (iter == port_cell->attrs.end()) {
// FIXME: Relax this constraint iter = port_cell->attrs.find(id("LOC"));
log_error("Port '%s' is missing PACKAGE_PIN property\n", port_cell->name.c_str(getCtx())); if (iter == port_cell->attrs.end()) {
log_error("Port '%s' is missing PACKAGE_PIN or LOC property\n", port_cell->name.c_str(getCtx()));
}
} }
// std::unordered_map<IdString, std::unordered_map<IdString, BelId>> package_pin_bels; // std::unordered_map<IdString, std::unordered_map<IdString, BelId>> package_pin_bels;