From e7d81913a48bffd970f7a92acc44eb36d9f996f7 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Thu, 18 Mar 2021 16:31:40 -0700 Subject: 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> --- docs/archapi.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs') diff --git a/docs/archapi.md b/docs/archapi.md index 3131ae64..d164e61c 100644 --- a/docs/archapi.md +++ b/docs/archapi.md @@ -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. -- cgit v1.2.3