aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/arch.cc
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2018-08-06 12:11:47 -0700
committerEddie Hung <eddieh@ece.ubc.ca>2018-08-06 12:11:47 -0700
commit21cd1d7dd6c1d033c933006a96b5eebfef220a9d (patch)
tree39fb005022956dff891bfadd192721acb4c59f8e /ice40/arch.cc
parent3f5c0373a5eb77cf4cd40f1d280452bfbe6f42f8 (diff)
downloadnextpnr-21cd1d7dd6c1d033c933006a96b5eebfef220a9d.tar.gz
nextpnr-21cd1d7dd6c1d033c933006a96b5eebfef220a9d.tar.bz2
nextpnr-21cd1d7dd6c1d033c933006a96b5eebfef220a9d.zip
Add new Arch::isIOCell() API function
Diffstat (limited to 'ice40/arch.cc')
-rw-r--r--ice40/arch.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ice40/arch.cc b/ice40/arch.cc
index 1e7a383b..b142ae8b 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -898,6 +898,11 @@ bool Arch::isGlobalNet(const NetInfo *net) const
return net->driver.cell != nullptr && net->driver.port == id_glb_buf_out;
}
+bool Arch::isIOCell(const CellInfo *cell) const
+{
+ return cell->type == id_sb_io;
+}
+
// Assign arch arg info
void Arch::assignArchInfo()
{