Skip to content

Commit 2022ca8

Browse files
committed
Added comments
Signed-off-by: Jaehyun Kim <[email protected]>
1 parent ff84c48 commit 2022ca8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/dbSta/include/db_sta/dbNetwork.hh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,26 @@ class dbNetwork : public ConcreteNetwork
251251
Instance* instance(const Pin* pin) const override;
252252
Net* net(const Pin* pin) const override;
253253
void net(const Pin* pin, dbNet*& db_net, dbModNet*& db_modnet) const;
254+
255+
///
256+
/// Get a dbNet connected to the input pin.
257+
/// - If both dbNet and dbModNet are connected to the input pin,
258+
/// this function returns the dbNet.
259+
/// - NOTE: If only dbModNet is connected to the input pin, this
260+
/// function returns nullptr. If you need to get the dbNet corresponding to
261+
/// the dbModNet, use findFlatDbNet() instead.
262+
///
254263
dbNet* flatNet(const Pin* pin) const;
264+
265+
///
266+
/// Get a dbModNet connected to the input pin.
267+
/// - If both dbNet and dbModNet are connected to the input pin,
268+
/// this function returns the dbModNet.
269+
/// - If only dbNet is connected to the input pin, this function returns
270+
/// nullptr.
271+
///
255272
dbModNet* hierNet(const Pin* pin) const;
273+
256274
dbITerm* flatPin(const Pin* pin) const;
257275
dbModITerm* hierPin(const Pin* pin) const;
258276
dbBlock* getBlockOf(const Pin* pin) const;

0 commit comments

Comments
 (0)