aboutsummaryrefslogtreecommitdiffstats
path: root/docs/archapi.md
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-08-14 17:16:14 +0200
committerClifford Wolf <clifford@clifford.at>2018-08-14 17:16:14 +0200
commit428f0b9ebaec7bd0cf86ecbc50d1edd3a7bf0c51 (patch)
treeae40077b034cb288b538d98e99da857c2be02dc7 /docs/archapi.md
parent2e02f2d6166c75b1fcec73d268e97e407071a372 (diff)
downloadnextpnr-428f0b9ebaec7bd0cf86ecbc50d1edd3a7bf0c51.tar.gz
nextpnr-428f0b9ebaec7bd0cf86ecbc50d1edd3a7bf0c51.tar.bz2
nextpnr-428f0b9ebaec7bd0cf86ecbc50d1edd3a7bf0c51.zip
Add Arch attrs API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'docs/archapi.md')
-rw-r--r--docs/archapi.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/archapi.md b/docs/archapi.md
index 473cdd2e..73443c15 100644
--- a/docs/archapi.md
+++ b/docs/archapi.md
@@ -151,6 +151,11 @@ Return a list of all bels on the device.
Return the type of a given bel.
+### const\_range\<std\:\:pair\<IdString, std::string\>\> getBelAttrs(BelId bel) const
+
+Return the attributes for that bel. Bel attributes are only informal. They are displayed by the GUI but are otherwise
+unused. An implementation may simply return an empty range.
+
### WireId getBelPinWire(BelId bel, IdString pin) const
Return the wire connected to the given bel pin.
@@ -180,6 +185,11 @@ Get the type of a wire. The wire type is purely informal and
isn't used by any of the core algorithms. Implementations may
simply return `IdString()`.
+### const\_range\<std\:\:pair\<IdString, std::string\>\> getWireAttrs(WireId wire) const
+
+Return the attributes for that wire. Wire attributes are only informal. They are displayed by the GUI but are otherwise
+unused. An implementation may simply return an empty range.
+
### uint32\_t getWireChecksum(WireId wire) const
Return a (preferably unique) number that represents this wire. This is used in design state checksum calculations.
@@ -242,6 +252,11 @@ Get the name for a pip. (Pip names must be unique.)
Get the type of a pip. Pip types are purely informal and
implementations may simply return `IdString()`.
+### const\_range\<std\:\:pair\<IdString, std::string\>\> getPipAttrs(PipId pip) const
+
+Return the attributes for that pip. Pip attributes are only informal. They are displayed by the GUI but are otherwise
+unused. An implementation may simply return an empty range.
+
### Loc getPipLocation(PipId pip) const
Get the X/Y/Z location of a given pip. Pip locations do not need to be unique, and in most cases they aren't. So