1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-05-04 15:15:34 +00:00

Add "checkPipAvailForNet" to Arch API.

This is important for distiguishing valid pseudo pips in the FPGA
interchange arch. This also avoids a double or triple lookup of
pip->net map.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman
2021-03-18 16:31:40 -07:00
parent 53ed6979a9
commit e7d81913a4
8 changed files with 30 additions and 16 deletions

View File

@@ -398,6 +398,13 @@ pip to a net.
*BaseArch default: returns `getBoundPipNet(pip) == nullptr`*
### bool checkPipAvailForNet(PipId pip, NetInfo *net) const
Returns true if the given pip is available to be bound to a net, or if the
pip is already bound to that net.
*BaseArch default: returns `getBoundPipNet(pip) == nullptr || getBoundPipNet(pip) == net`*
### NetInfo \*getBoundPipNet(PipId pip) const
Return the net this pip is bound to.