aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch.h
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-23 19:15:59 +0200
committerDavid Shah <davey1576@gmail.com>2018-07-23 19:15:59 +0200
commit730e56e3ddf4959c061211eacf1180170b0c4b1b (patch)
tree85e799401db7b832393b0c02f719d2949633a0a8 /ecp5/arch.h
parentbaa673f9edcd03a9a0e7be39a69e6223425edd5f (diff)
downloadnextpnr-730e56e3ddf4959c061211eacf1180170b0c4b1b.tar.gz
nextpnr-730e56e3ddf4959c061211eacf1180170b0c4b1b.tar.bz2
nextpnr-730e56e3ddf4959c061211eacf1180170b0c4b1b.zip
ecp5: Add some more PIO helper functions
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ecp5/arch.h')
-rw-r--r--ecp5/arch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ecp5/arch.h b/ecp5/arch.h
index b3ef5195..ce2b90c3 100644
--- a/ecp5/arch.h
+++ b/ecp5/arch.h
@@ -733,6 +733,10 @@ struct Arch : BaseCtx
BelId getPackagePinBel(const std::string &pin) const;
std::string getBelPackagePin(BelId bel) const;
+ int getPioBelBank(BelId bel) const;
+ // For getting GCLK, PLL, Vref, etc, pins
+ std::string getPioFunctionName(BelId bel) const;
+ BelId getPioByFunctionName(const std::string &name) const;
PortType getBelPinType(BelId bel, PortPin pin) const;