Add new Arch::isIOCell() API function

This commit is contained in:
Eddie Hung 2018-08-06 12:11:47 -07:00
parent 3f5c0373a5
commit 21cd1d7dd6
2 changed files with 7 additions and 0 deletions

View File

@ -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()
{

View File

@ -794,6 +794,8 @@ struct Arch : BaseCtx
bool isClockPort(const CellInfo *cell, IdString port) const;
// Return true if a port is a net
bool isGlobalNet(const NetInfo *net) const;
// Return true if a cell is an IO
bool isIOCell(const CellInfo *cell) const;
// -------------------------------------------------