File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments