aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-04-20 14:12:14 +0100
committerGitHub <noreply@github.com>2021-04-20 14:12:14 +0100
commit3fd1ee7757356660c7f440705553d345837eaed5 (patch)
tree6f1629f1f94bc12631d7abf0bde852e6471f71d2
parent95698827b876c5afa368ed8746d155d68a8b6bbf (diff)
parentd1548ed317d7ef6ad7e13f157c11bf83da79660c (diff)
downloadnextpnr-3fd1ee7757356660c7f440705553d345837eaed5.tar.gz
nextpnr-3fd1ee7757356660c7f440705553d345837eaed5.tar.bz2
nextpnr-3fd1ee7757356660c7f440705553d345837eaed5.zip
Merge pull request #683 from antmicro/interchange-allow-loc-keyword
interchange: allow LOC keyword in XDC files
-rw-r--r--fpga_interchange/arch_pack_io.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/fpga_interchange/arch_pack_io.cc b/fpga_interchange/arch_pack_io.cc
index 06cfa002..9322d028 100644
--- a/fpga_interchange/arch_pack_io.cc
+++ b/fpga_interchange/arch_pack_io.cc
@@ -189,8 +189,10 @@ void Arch::pack_ports()
auto iter = port_cell->attrs.find(id("PACKAGE_PIN"));
if (iter == port_cell->attrs.end()) {
- // FIXME: Relax this constraint
- log_error("Port '%s' is missing PACKAGE_PIN property\n", port_cell->name.c_str(getCtx()));
+ iter = port_cell->attrs.find(id("LOC"));
+ 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;