aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-04-01 15:17:08 -0700
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-04-06 10:42:05 -0700
commit9b82ded77ba80726acb9b846bdbc7d7b1e963ec6 (patch)
tree795a82420037b724a0e4f0babd621fc5b6851269 /fpga_interchange
parent90aa1d3b7e822d60aa2437e6939651e55f02ffc4 (diff)
downloadnextpnr-9b82ded77ba80726acb9b846bdbc7d7b1e963ec6.tar.gz
nextpnr-9b82ded77ba80726acb9b846bdbc7d7b1e963ec6.tar.bz2
nextpnr-9b82ded77ba80726acb9b846bdbc7d7b1e963ec6.zip
[interchange] Fix missing inline methods in site_arch.impl.h
getBelPinWire and getBelPinType are marked as always inline, but were not defined in a header. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'fpga_interchange')
-rw-r--r--fpga_interchange/site_arch.cc8
-rw-r--r--fpga_interchange/site_arch.impl.h9
2 files changed, 9 insertions, 8 deletions
diff --git a/fpga_interchange/site_arch.cc b/fpga_interchange/site_arch.cc
index 9cf7fa0c..cdb627ca 100644
--- a/fpga_interchange/site_arch.cc
+++ b/fpga_interchange/site_arch.cc
@@ -271,14 +271,6 @@ SiteArch::SiteArch(const SiteInformation *site_info) : ctx(site_info->ctx), site
}
}
-SiteWire SiteArch::getBelPinWire(BelId bel, IdString pin) const
-{
- WireId wire = ctx->getBelPinWire(bel, pin);
- return SiteWire::make(site_info, wire);
-}
-
-PortType SiteArch::getBelPinType(BelId bel, IdString pin) const { return ctx->getBelPinType(bel, pin); }
-
const char *SiteArch::nameOfWire(const SiteWire &wire) const
{
switch (wire.type) {
diff --git a/fpga_interchange/site_arch.impl.h b/fpga_interchange/site_arch.impl.h
index a471b690..3b9d282b 100644
--- a/fpga_interchange/site_arch.impl.h
+++ b/fpga_interchange/site_arch.impl.h
@@ -314,6 +314,15 @@ inline PhysicalNetlist::PhysNetlist::NetType SiteArch::prefered_constant_net_typ
}
}
+inline SiteWire SiteArch::getBelPinWire(BelId bel, IdString pin) const
+{
+ WireId wire = ctx->getBelPinWire(bel, pin);
+ return SiteWire::make(site_info, wire);
+}
+
+inline PortType SiteArch::getBelPinType(BelId bel, IdString pin) const { return ctx->getBelPinType(bel, pin); }
+
+
NEXTPNR_NAMESPACE_END
#endif /* SITE_ARCH_H */