Skip to content

Commit de93f73

Browse files
committed
odb: fix naming in tmg_conn*.h
Signed-off-by: Matt Liberty <[email protected]>
1 parent 94ec13c commit de93f73

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

src/odb/src/db/tmg_conn.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ void tmg_conn::analyzeNet(dbNet* net)
13301330
relocateShorts();
13311331
treeReorder(noConvert);
13321332
}
1333-
net->setDisconnected(!_connected);
1333+
net->setDisconnected(!connected_);
13341334
net->setWireOrdered(true);
13351335
}
13361336

@@ -1422,7 +1422,7 @@ bool tmg_conn::checkConnected()
14221422

14231423
void tmg_conn::treeReorder(const bool no_convert)
14241424
{
1425-
_connected = true;
1425+
connected_ = true;
14261426
need_short_wire_id_ = false;
14271427
if (ptV_.empty()) {
14281428
return;
@@ -1442,7 +1442,7 @@ void tmg_conn::treeReorder(const bool no_convert)
14421442
for (tmg_rcterm& x : termV_) {
14431443
x.first_pt = nullptr;
14441444
if (x.pt == nullptr) {
1445-
_connected = false;
1445+
connected_ = false;
14461446
}
14471447
}
14481448

@@ -1531,7 +1531,7 @@ void tmg_conn::treeReorder(const bool no_convert)
15311531
last_term_index = j;
15321532
if (j < termV_.size()) {
15331533
// disconnected, start new path from another term
1534-
_connected = false;
1534+
connected_ = false;
15351535
last_id_ = -1;
15361536
tstackV_.push_back(x);
15371537
pt = x->pt;

src/odb/src/db/tmg_conn.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class tmg_conn
157157
void loadNet(dbNet* net);
158158
void loadWire(dbWire* wire);
159159
void loadSWire(dbNet* net);
160-
bool isConnected() { return _connected; }
160+
bool isConnected() { return connected_; }
161161
int ptDist(int fr, int to) const;
162162
const tmg_rcpt& pt(const int index) const { return ptV_[index]; }
163163
void checkConnOrdered();
@@ -225,7 +225,7 @@ class tmg_conn
225225
std::vector<tmg_rcshort> shortV_;
226226
dbNet* net_;
227227
bool hasSWire_;
228-
bool _connected;
228+
bool connected_;
229229
dbWireEncoder encoder_;
230230
dbWire* newWire_;
231231
dbTechNonDefaultRule* net_rule_;

src/odb/src/db/tmg_conn_g.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tmg_conn_graph::tmg_conn_graph()
2020
{
2121
ptNmax_ = 1024;
2222
shortNmax_ = 1024;
23-
_eNmax = 1024;
23+
eNmax_ = 1024;
2424
ptV_ = (tcg_pt*) safe_malloc(ptNmax_ * sizeof(tcg_pt));
2525
path_vis_ = (int*) safe_malloc(ptNmax_ * sizeof(int));
2626
eV_ = (tcg_edge*) safe_malloc(2UL * ptNmax_ * sizeof(tcg_edge));
@@ -49,13 +49,13 @@ void tmg_conn_graph::init(const int ptN, const int shortN)
4949
free(stackV_);
5050
stackV_ = (tcg_edge**) safe_malloc(shortNmax_ * sizeof(tcg_edge*));
5151
}
52-
if (4 * ptN + 2 * shortN > _eNmax) {
53-
_eNmax *= 2;
54-
if (4 * ptN + 2 * shortN > _eNmax) {
55-
_eNmax = 4 * ptN + 2 * shortN;
52+
if (4 * ptN + 2 * shortN > eNmax_) {
53+
eNmax_ *= 2;
54+
if (4 * ptN + 2 * shortN > eNmax_) {
55+
eNmax_ = 4 * ptN + 2 * shortN;
5656
}
5757
free(eV_);
58-
eV_ = (tcg_edge*) safe_malloc(_eNmax * sizeof(tcg_edge));
58+
eV_ = (tcg_edge*) safe_malloc(eNmax_ * sizeof(tcg_edge));
5959
}
6060
eN_ = 0;
6161
for (int j = 0; j < ptN; j++) {
@@ -693,7 +693,7 @@ void tmg_conn::checkVisited()
693693
tcg_pt* pgV = graph_->ptV_;
694694
for (int j = 0; j < ptV_.size(); j++) {
695695
if (!pgV[j].visited) {
696-
_connected = false;
696+
connected_ = false;
697697
break;
698698
}
699699
}

src/odb/src/db/tmg_conn_g.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class tmg_conn_graph
5959
tcg_edge* e_;
6060
int ptNmax_;
6161
int shortNmax_;
62-
int _eNmax;
62+
int eNmax_;
6363
tcg_edge* eV_;
6464
int eN_;
6565
};

src/odb/src/db/tmg_conn_w.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ void tmg_conn::checkConnOrdered()
1717
{
1818
std::unordered_set<dbITerm*> iterms;
1919
std::unordered_set<dbBTerm*> bterms;
20-
_connected = true;
20+
connected_ = true;
2121
dbWirePathItr pitr;
2222
pitr.begin(net_->getWire());
2323
dbWirePath path;
2424
bool first = true;
2525
while (pitr.getNextPath(path)) {
2626
if (!path.is_branch) {
2727
if (!path.iterm && !path.bterm) {
28-
_connected = false;
28+
connected_ = false;
2929
}
3030
if (first) {
3131
first = false;
@@ -38,13 +38,13 @@ void tmg_conn::checkConnOrdered()
3838
} else {
3939
if (path.iterm) {
4040
if (iterms.find(path.iterm) == iterms.end()) {
41-
_connected = false;
41+
connected_ = false;
4242
iterms.insert(path.iterm);
4343
}
4444
}
4545
if (path.bterm) {
4646
if (bterms.find(path.bterm) == bterms.end()) {
47-
_connected = false;
47+
connected_ = false;
4848
bterms.insert(path.bterm);
4949
}
5050
}
@@ -59,7 +59,7 @@ void tmg_conn::checkConnOrdered()
5959
}
6060
}
6161
}
62-
if (!_connected) {
62+
if (!connected_) {
6363
net_->setDisconnected(true);
6464
logger_->info(utl::ODB, 15, "disconnected net {}", net_->getName());
6565
}

0 commit comments

Comments
 (0)