[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>
This commit is contained in:
Keith Rothman 2021-04-01 15:17:08 -07:00
parent 90aa1d3b7e
commit 9b82ded77b
2 changed files with 9 additions and 8 deletions

View File

@ -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) {

View File

@ -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 */