aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch.cc
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2018-08-06 17:17:39 -0700
committerEddie Hung <eddieh@ece.ubc.ca>2018-08-06 17:17:39 -0700
commit6768a5c03e59e75ac20c666419b4e42cc16118e1 (patch)
tree46ef0184637fcb4299194cdcab25875c00958139 /ecp5/arch.cc
parentf3e46df7095582b23ffcd4726e1b33cd77df6ba0 (diff)
downloadnextpnr-6768a5c03e59e75ac20c666419b4e42cc16118e1.tar.gz
nextpnr-6768a5c03e59e75ac20c666419b4e42cc16118e1.tar.bz2
nextpnr-6768a5c03e59e75ac20c666419b4e42cc16118e1.zip
Add Arch::isIOCell() to ecp5 and generic
Diffstat (limited to 'ecp5/arch.cc')
-rw-r--r--ecp5/arch.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index d2d62241..4a3e8ef3 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -500,6 +500,12 @@ IdString Arch::getPortClock(const CellInfo *cell, IdString port) const { return
bool Arch::isClockPort(const CellInfo *cell, IdString port) const { return false; }
+bool Arch::isIOCell(const CellInfo *cell) const
+{
+ return cell->type == id("TRELLIS_IO");
+}
+
+
std::vector<std::pair<std::string, std::string>> Arch::getTilesAtLocation(int row, int col)
{
std::vector<std::pair<std::string, std::string>> ret;