Add new Arch::isIOCell() API function
This commit is contained in:
parent
3f5c0373a5
commit
21cd1d7dd6
@ -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()
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
// -------------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user