Skip to content

Commit 4ffcf2f

Browse files
committed
grt: add is_clk_ to grt::Net class
Signed-off-by: Eder Monteiro <[email protected]>
1 parent 393f4ff commit 4ffcf2f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/grt/src/GlobalRouter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3770,6 +3770,7 @@ std::vector<Net*> GlobalRouter::findNets(bool init_clock_nets)
37703770
if (net) {
37713771
bool is_non_leaf_clock = isNonLeafClock(net->getDbNet());
37723772
if (is_non_leaf_clock) {
3773+
net->setIsClockNet(true);
37733774
clk_nets.push_back(net);
37743775
}
37753776
}

src/grt/src/Net.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Net::Net(odb::dbNet* net, bool has_wires)
2323
has_wires_(has_wires),
2424
merged_net_(nullptr),
2525
is_merged_net_(false),
26-
is_dirty_net_(false)
26+
is_dirty_net_(false),
27+
is_clk_(false)
2728
{
2829
}
2930

src/grt/src/Net.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ class Net
5858
bool isMergedNet() const { return is_merged_net_; }
5959
void setDirtyNet(bool is_dirty_net) { is_dirty_net_ = is_dirty_net; }
6060
bool isDirtyNet() const { return is_dirty_net_; }
61+
void setIsClockNet(bool is_clk) { is_clk_ = is_clk; }
62+
bool isClockNet() const { return is_clk_; }
6163

6264
private:
6365
int getNumBTermsAboveMaxLayer(odb::dbTechLayer* max_routing_layer);
@@ -71,6 +73,7 @@ class Net
7173
odb::dbNet* merged_net_;
7274
bool is_merged_net_;
7375
bool is_dirty_net_;
76+
bool is_clk_;
7477
};
7578

7679
} // namespace grt

0 commit comments

Comments
 (0)