Skip to content

Commit 55eff80

Browse files
committed
Add fucntion isTransOn(tran_t t)
Returns true if a transistor is ON
1 parent 8096aed commit 55eff80

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ClassNetlist.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ class ClassNetlist
6565

6666
const QString netInfo(net_t net); // Returns basic net information as string
6767
const QString transInfo(tran_t t); // Returns basic transistor information as string
68+
bool isTransOn(tran_t t) // Returns true if a transistor is ON
69+
{ return (t < MAX_TRANS) && m_transdefs[t].id && m_transdefs[t].on; }
6870
Logic *getLogicTree(net_t net); // Returns the bipartite tree describing the logic connections of a net
6971
void optimizeLogicTree(Logic **llr); // Optimizes, in place, logic tree by coalescing suitable nodes
7072
QString equation(net_t net); // Returns a string describing the logic connections of a net

0 commit comments

Comments
 (0)