From 73470f403340ad97c434d291ff3c2844c1b89923 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Mon, 20 May 2024 15:48:00 -0700 Subject: [PATCH] reportClkSkew, reportClkLatency use ref for clks Signed-off-by: James Cherry --- include/sta/Sta.hh | 4 ++-- search/ClkLatency.cc | 4 ++-- search/ClkLatency.hh | 4 ++-- search/ClkSkew.cc | 3 ++- search/ClkSkew.hh | 2 +- search/Sta.cc | 4 ++-- tcl/StaTcl.i | 4 ++-- 7 files changed, 13 insertions(+), 12 deletions(-) diff --git a/include/sta/Sta.hh b/include/sta/Sta.hh index 5568ac3f..b5aadae3 100644 --- a/include/sta/Sta.hh +++ b/include/sta/Sta.hh @@ -911,7 +911,7 @@ public: void reportPath(Path *path); // Report clk skews for clks. - void reportClkSkew(ConstClockSeq clks, + void reportClkSkew(ConstClockSeq &clks, const Corner *corner, const SetupHold *setup_hold, bool include_internal_latency, @@ -919,7 +919,7 @@ public: float findWorstClkSkew(const SetupHold *setup_hold, bool include_internal_latency); - void reportClkLatency(ConstClockSeq clks, + void reportClkLatency(ConstClockSeq &clks, const Corner *corner, bool include_internal_latency, int digits); diff --git a/search/ClkLatency.cc b/search/ClkLatency.cc index 724cf20e..0e42b583 100644 --- a/search/ClkLatency.cc +++ b/search/ClkLatency.cc @@ -51,7 +51,7 @@ ClkLatency::findClkDelays(const Clock *clk, } void -ClkLatency::reportClkLatency(ConstClockSeq clks, +ClkLatency::reportClkLatency(ConstClockSeq &clks, const Corner *corner, bool include_internal_latency, int digits) @@ -134,7 +134,7 @@ ClkLatency::reportClkLatency(const Clock *clk, } ClkDelayMap -ClkLatency::findClkDelays(ConstClockSeq clks, +ClkLatency::findClkDelays(ConstClockSeq &clks, const Corner *corner, bool include_internal_latency) { diff --git a/search/ClkLatency.hh b/search/ClkLatency.hh index e7614c8b..d7c2470f 100644 --- a/search/ClkLatency.hh +++ b/search/ClkLatency.hh @@ -35,7 +35,7 @@ class ClkLatency : public StaState public: ClkLatency(StaState *sta); // Report clk latency for clks. - void reportClkLatency(ConstClockSeq clks, + void reportClkLatency(ConstClockSeq &clks, const Corner *corner, bool include_internal_latency, int digits); @@ -44,7 +44,7 @@ public: bool include_internal_latency); protected: - ClkDelayMap findClkDelays(ConstClockSeq clks, + ClkDelayMap findClkDelays(ConstClockSeq &clks, const Corner *corner, bool include_internal_latency); void reportClkLatency(const Clock *clk, diff --git a/search/ClkSkew.cc b/search/ClkSkew.cc index 1e47247e..d26d380e 100644 --- a/search/ClkSkew.cc +++ b/search/ClkSkew.cc @@ -72,6 +72,7 @@ private: }; ClkSkew::ClkSkew() : + include_internal_latency_(false), skew_(0.0) { } @@ -178,7 +179,7 @@ ClkSkews::ClkSkews(StaState *sta) : } void -ClkSkews::reportClkSkew(ConstClockSeq clks, +ClkSkews::reportClkSkew(ConstClockSeq &clks, const Corner *corner, const SetupHold *setup_hold, bool include_internal_latency, diff --git a/search/ClkSkew.hh b/search/ClkSkew.hh index 36f3b6eb..288584ff 100644 --- a/search/ClkSkew.hh +++ b/search/ClkSkew.hh @@ -36,7 +36,7 @@ class ClkSkews : public StaState public: ClkSkews(StaState *sta); // Report clk skews for clks. - void reportClkSkew(ConstClockSeq clks, + void reportClkSkew(ConstClockSeq &clks, const Corner *corner, const SetupHold *setup_hold, bool include_internal_latency, diff --git a/search/Sta.cc b/search/Sta.cc index 4c9bb754..36dfacab 100644 --- a/search/Sta.cc +++ b/search/Sta.cc @@ -2601,7 +2601,7 @@ Sta::updateTiming(bool full) //////////////////////////////////////////////////////////////// void -Sta::reportClkSkew(ConstClockSeq clks, +Sta::reportClkSkew(ConstClockSeq &clks, const Corner *corner, const SetupHold *setup_hold, bool include_internal_latency, @@ -2632,7 +2632,7 @@ Sta::clkSkewPreamble() //////////////////////////////////////////////////////////////// void -Sta::reportClkLatency(ConstClockSeq clks, +Sta::reportClkLatency(ConstClockSeq &clks, const Corner *corner, bool include_internal_latency, int digits) diff --git a/tcl/StaTcl.i b/tcl/StaTcl.i index e36af43f..cd1fbbbb 100644 --- a/tcl/StaTcl.i +++ b/tcl/StaTcl.i @@ -3037,7 +3037,7 @@ report_path_cmd(PathRef *path) //////////////////////////////////////////////////////////////// void -report_clk_skew(ConstClockSeq clks, +report_clk_skew(ConstClockSeq &clks, const Corner *corner, const SetupHold *setup_hold, bool include_internal_latency, @@ -3049,7 +3049,7 @@ report_clk_skew(ConstClockSeq clks, } void -report_clk_latency(ConstClockSeq clks, +report_clk_latency(ConstClockSeq &clks, const Corner *corner, bool include_internal_latency, int digits)