aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kowalewski <jkowalewski@antmicro.com>2021-04-20 14:35:15 +0200
committerJan Kowalewski <jkowalewski@antmicro.com>2021-04-20 14:35:15 +0200
commitd1548ed317d7ef6ad7e13f157c11bf83da79660c (patch)
treea6f7a1971094fc7184f091a0a550f504b2a19770
parent2912860c9788033a7501726e77bb4962b394280d (diff)
downloadnextpnr-d1548ed317d7ef6ad7e13f157c11bf83da79660c.tar.gz
nextpnr-d1548ed317d7ef6ad7e13f157c11bf83da79660c.tar.bz2
nextpnr-d1548ed317d7ef6ad7e13f157c11bf83da79660c.zip
interchange: allow LOC keyword in XDC files
Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
-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;