From 21cd1d7dd6c1d033c933006a96b5eebfef220a9d Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Mon, 6 Aug 2018 12:11:47 -0700 Subject: Add new Arch::isIOCell() API function --- ice40/arch.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ice40/arch.cc') 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() { -- cgit v1.2.3