2018-09-28 17:54:21 +02:00
|
|
|
// OpenSTA, Static Timing Analyzer
|
2025-01-22 02:54:33 +01:00
|
|
|
// Copyright (c) 2025, Parallax Software, Inc.
|
2018-09-28 17:54:21 +02:00
|
|
|
//
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2022-01-04 18:17:08 +01:00
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2018-09-28 17:54:21 +02:00
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
2022-01-04 18:17:08 +01:00
|
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2025-01-22 02:54:33 +01:00
|
|
|
//
|
|
|
|
|
// The origin of this software must not be misrepresented; you must not
|
|
|
|
|
// claim that you wrote the original software.
|
|
|
|
|
//
|
|
|
|
|
// Altered source versions must be plainly marked as such, and must not be
|
|
|
|
|
// misrepresented as being the original software.
|
|
|
|
|
//
|
|
|
|
|
// This notice may not be removed or altered from any source distribution.
|
2018-09-28 17:54:21 +02:00
|
|
|
|
2020-04-05 23:53:44 +02:00
|
|
|
#include "ClkInfo.hh"
|
2020-04-05 20:35:51 +02:00
|
|
|
|
2025-09-16 23:17:30 +02:00
|
|
|
#include <functional>
|
|
|
|
|
|
2025-09-16 22:53:16 +02:00
|
|
|
#include "Units.hh"
|
2020-04-05 23:53:44 +02:00
|
|
|
#include "Network.hh"
|
|
|
|
|
#include "Graph.hh"
|
|
|
|
|
#include "Sdc.hh"
|
|
|
|
|
#include "Corner.hh"
|
|
|
|
|
#include "Search.hh"
|
|
|
|
|
#include "Tag.hh"
|
|
|
|
|
#include "PathAnalysisPt.hh"
|
2018-09-28 17:54:21 +02:00
|
|
|
|
|
|
|
|
namespace sta {
|
|
|
|
|
|
2023-01-19 19:23:45 +01:00
|
|
|
ClkInfo::ClkInfo(const ClockEdge *clk_edge,
|
2018-09-28 17:54:21 +02:00
|
|
|
const Pin *clk_src,
|
|
|
|
|
bool is_propagated,
|
|
|
|
|
const Pin *gen_clk_src,
|
|
|
|
|
bool is_gen_clk_src_path,
|
2019-11-11 23:30:19 +01:00
|
|
|
const RiseFall *pulse_clk_sense,
|
2018-09-28 17:54:21 +02:00
|
|
|
Arrival insertion,
|
|
|
|
|
float latency,
|
|
|
|
|
ClockUncertainties *uncertainties,
|
|
|
|
|
PathAPIndex path_ap_index,
|
2025-09-17 00:30:16 +02:00
|
|
|
const Path *crpr_clk_path,
|
2018-09-28 17:54:21 +02:00
|
|
|
const StaState *sta) :
|
|
|
|
|
clk_edge_(clk_edge),
|
|
|
|
|
clk_src_(clk_src),
|
|
|
|
|
gen_clk_src_(gen_clk_src),
|
2025-03-27 02:21:03 +01:00
|
|
|
crpr_clk_path_(is_propagated ? crpr_clk_path : nullptr),
|
2018-09-28 17:54:21 +02:00
|
|
|
uncertainties_(uncertainties),
|
|
|
|
|
insertion_(insertion),
|
|
|
|
|
latency_(latency),
|
|
|
|
|
is_propagated_(is_propagated),
|
|
|
|
|
is_gen_clk_src_path_(is_gen_clk_src_path),
|
2025-09-16 22:53:16 +02:00
|
|
|
crpr_path_refs_filter_(crpr_clk_path ? crpr_clk_path->tag(sta)->isFilter() : false),
|
2019-03-13 01:25:53 +01:00
|
|
|
is_pulse_clk_(pulse_clk_sense != nullptr),
|
2018-09-28 17:54:21 +02:00
|
|
|
pulse_clk_sense_(pulse_clk_sense ? pulse_clk_sense->index() : 0),
|
|
|
|
|
path_ap_index_(path_ap_index)
|
|
|
|
|
{
|
|
|
|
|
findHash(sta);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ClkInfo::~ClkInfo()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
ClkInfo::findHash(const StaState *sta)
|
|
|
|
|
{
|
|
|
|
|
hash_ = hash_init_value;
|
|
|
|
|
if (clk_edge_)
|
|
|
|
|
hashIncr(hash_, clk_edge_->index());
|
|
|
|
|
|
|
|
|
|
const Network *network = sta->network();
|
|
|
|
|
if (clk_src_)
|
2019-11-11 17:38:25 +01:00
|
|
|
hashIncr(hash_, network->vertexId(clk_src_));
|
2018-09-28 17:54:21 +02:00
|
|
|
if (gen_clk_src_)
|
2019-11-11 17:38:25 +01:00
|
|
|
hashIncr(hash_, network->vertexId(gen_clk_src_));
|
2025-09-16 22:53:16 +02:00
|
|
|
if (crpr_clk_path_.isNull())
|
|
|
|
|
hashIncr(hash_, vertex_id_null);
|
|
|
|
|
else {
|
|
|
|
|
hashIncr(hash_, crpr_clk_path_.vertexId(sta));
|
|
|
|
|
hashIncr(hash_, crpr_clk_path_.tag(sta)->hash(false, sta));
|
|
|
|
|
}
|
2025-09-16 23:17:30 +02:00
|
|
|
|
|
|
|
|
std::hash<float> hash_float;
|
2018-09-28 17:54:21 +02:00
|
|
|
if (uncertainties_) {
|
|
|
|
|
float uncertainty;
|
|
|
|
|
bool exists;
|
|
|
|
|
uncertainties_->value(MinMax::min(), uncertainty, exists);
|
|
|
|
|
if (exists)
|
2025-09-16 23:17:30 +02:00
|
|
|
hashIncr(hash_, hash_float(uncertainty));
|
2018-09-28 17:54:21 +02:00
|
|
|
uncertainties_->value(MinMax::max(), uncertainty, exists);
|
|
|
|
|
if (exists)
|
2025-09-16 23:17:30 +02:00
|
|
|
hashIncr(hash_, hash_float(uncertainty));
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
2025-09-16 23:17:30 +02:00
|
|
|
hashIncr(hash_, hash_float(latency_));
|
|
|
|
|
hashIncr(hash_, hash_float(delayAsFloat(insertion_)));
|
2018-09-28 17:54:21 +02:00
|
|
|
hashIncr(hash_, is_propagated_);
|
|
|
|
|
hashIncr(hash_, is_gen_clk_src_path_);
|
|
|
|
|
hashIncr(hash_, is_pulse_clk_);
|
|
|
|
|
hashIncr(hash_, pulse_clk_sense_);
|
|
|
|
|
hashIncr(hash_, path_ap_index_);
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-11 17:38:25 +01:00
|
|
|
VertexId
|
2025-03-27 02:21:03 +01:00
|
|
|
ClkInfo::crprClkVertexId(const StaState *sta) const
|
2018-09-28 17:54:21 +02:00
|
|
|
{
|
2025-09-16 22:53:16 +02:00
|
|
|
return crpr_clk_path_.vertexId(sta);
|
2025-03-27 02:21:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Path *
|
|
|
|
|
ClkInfo::crprClkPath(const StaState *sta)
|
2025-09-16 22:53:16 +02:00
|
|
|
{
|
|
|
|
|
return Path::vertexPath(crpr_clk_path_, sta);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const Path *
|
|
|
|
|
ClkInfo::crprClkPath(const StaState *sta) const
|
2025-03-27 02:21:03 +01:00
|
|
|
{
|
2025-06-06 01:34:19 +02:00
|
|
|
if (crpr_clk_path_.isNull())
|
|
|
|
|
return nullptr;
|
|
|
|
|
else
|
|
|
|
|
return Path::vertexPath(crpr_clk_path_, sta);
|
2025-03-27 02:21:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const Path *
|
2025-09-16 22:53:16 +02:00
|
|
|
ClkInfo::crprClkPathRaw() const
|
2025-03-27 02:21:03 +01:00
|
|
|
{
|
2025-06-06 01:34:19 +02:00
|
|
|
if (crpr_clk_path_.isNull())
|
|
|
|
|
return nullptr;
|
|
|
|
|
else
|
2025-09-16 22:53:16 +02:00
|
|
|
return &crpr_clk_path_;
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
2025-04-24 19:57:18 +02:00
|
|
|
std::string
|
|
|
|
|
ClkInfo::to_string(const StaState *sta) const
|
2018-09-28 17:54:21 +02:00
|
|
|
{
|
|
|
|
|
Network *network = sta->network();
|
|
|
|
|
Corners *corners = sta->corners();
|
2025-04-12 01:59:48 +02:00
|
|
|
std::string result;
|
2018-09-28 17:54:21 +02:00
|
|
|
|
|
|
|
|
PathAnalysisPt *path_ap = corners->findPathAnalysisPt(path_ap_index_);
|
2025-03-31 00:27:53 +02:00
|
|
|
result += path_ap->pathMinMax()->to_string();
|
2023-03-26 15:34:36 +02:00
|
|
|
result += "/";
|
|
|
|
|
result += std::to_string(path_ap_index_);
|
|
|
|
|
|
2025-02-24 00:16:02 +01:00
|
|
|
result += " ";
|
2018-09-28 17:54:21 +02:00
|
|
|
if (clk_edge_)
|
2023-03-26 15:34:36 +02:00
|
|
|
result += clk_edge_->name();
|
2018-09-28 17:54:21 +02:00
|
|
|
else
|
2023-03-26 15:34:36 +02:00
|
|
|
result += "unclocked";
|
2018-09-28 17:54:21 +02:00
|
|
|
|
|
|
|
|
if (clk_src_) {
|
2023-03-26 15:34:36 +02:00
|
|
|
result += " clk_src ";
|
|
|
|
|
result += network->pathName(clk_src_);
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
2020-09-18 05:00:56 +02:00
|
|
|
if (!crpr_clk_path_.isNull()) {
|
|
|
|
|
const Pin *crpr_clk_pin = crpr_clk_path_.vertex(sta)->pin();
|
2025-09-16 22:53:16 +02:00
|
|
|
result += " crpr ";
|
2023-03-26 15:34:36 +02:00
|
|
|
result += network->pathName(crpr_clk_pin);
|
2025-09-29 18:48:57 +02:00
|
|
|
result += " ";
|
2025-09-16 22:53:16 +02:00
|
|
|
result += std::to_string(crpr_clk_path_.tag(sta)->index());
|
2025-09-29 18:48:57 +02:00
|
|
|
result += "/";
|
|
|
|
|
result += crpr_clk_path_.minMax(sta)->to_string();
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_gen_clk_src_path_)
|
2023-03-26 15:34:36 +02:00
|
|
|
result += " genclk";
|
2025-09-16 22:53:16 +02:00
|
|
|
if (gen_clk_src_) {
|
|
|
|
|
result += " ";
|
|
|
|
|
result += network->pathName(gen_clk_src_);
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-06 16:56:53 +01:00
|
|
|
if (delayGreater(insertion_, 0.0, sta)) {
|
2025-09-16 22:53:16 +02:00
|
|
|
result += " insert";
|
2025-11-06 16:56:53 +01:00
|
|
|
result += delayAsString(insertion_, sta);
|
2025-09-16 22:53:16 +02:00
|
|
|
}
|
2018-09-28 17:54:21 +02:00
|
|
|
|
2025-09-16 22:53:16 +02:00
|
|
|
if (uncertainties_) {
|
|
|
|
|
result += " uncertain ";
|
|
|
|
|
float uncertainty;
|
|
|
|
|
bool exists;
|
|
|
|
|
uncertainties_->value(MinMax::min(), uncertainty, exists);
|
|
|
|
|
if (exists)
|
|
|
|
|
result += sta->units()->timeUnit()->asString(uncertainty);
|
|
|
|
|
uncertainties_->value(MinMax::max(), uncertainty, exists);
|
|
|
|
|
if (exists) {
|
|
|
|
|
result += ":";
|
|
|
|
|
result += sta->units()->timeUnit()->asString(uncertainty);
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-04-24 19:57:18 +02:00
|
|
|
return result;
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
2023-01-19 19:23:45 +01:00
|
|
|
const Clock *
|
2018-09-28 17:54:21 +02:00
|
|
|
ClkInfo::clock() const
|
|
|
|
|
{
|
|
|
|
|
if (clk_edge_)
|
|
|
|
|
return clk_edge_->clock();
|
|
|
|
|
else
|
2019-03-13 01:25:53 +01:00
|
|
|
return nullptr;
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
2025-03-31 00:27:53 +02:00
|
|
|
const RiseFall *
|
2018-09-28 17:54:21 +02:00
|
|
|
ClkInfo::pulseClkSense() const
|
|
|
|
|
{
|
|
|
|
|
if (is_pulse_clk_)
|
2019-11-11 23:30:19 +01:00
|
|
|
return RiseFall::find(pulse_clk_sense_);
|
2018-09-28 17:54:21 +02:00
|
|
|
else
|
2019-03-13 01:25:53 +01:00
|
|
|
return nullptr;
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2019-08-08 23:13:02 +02:00
|
|
|
size_t
|
2020-09-26 01:16:18 +02:00
|
|
|
ClkInfoHash::operator()(const ClkInfo *clk_info) const
|
2018-09-28 17:54:21 +02:00
|
|
|
{
|
|
|
|
|
return clk_info->hash();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
ClkInfoEqual::ClkInfoEqual(const StaState *sta) :
|
|
|
|
|
sta_(sta)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
ClkInfoEqual::operator()(const ClkInfo *clk_info1,
|
2020-09-26 01:16:18 +02:00
|
|
|
const ClkInfo *clk_info2) const
|
2018-09-28 17:54:21 +02:00
|
|
|
{
|
2025-09-16 22:53:16 +02:00
|
|
|
return ClkInfo::equal(clk_info1, clk_info2, sta_);
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
2025-05-09 20:28:03 +02:00
|
|
|
bool
|
2025-09-16 22:53:16 +02:00
|
|
|
ClkInfo::equal(const ClkInfo *clk_info1,
|
|
|
|
|
const ClkInfo *clk_info2,
|
|
|
|
|
const StaState *sta)
|
2018-09-28 17:54:21 +02:00
|
|
|
{
|
2025-09-17 18:10:14 +02:00
|
|
|
return ClkInfo::cmp(clk_info1, clk_info2, sta) == 0;
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
ClkInfoLess::ClkInfoLess(const StaState *sta) :
|
|
|
|
|
sta_(sta)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
ClkInfoLess::operator()(const ClkInfo *clk_info1,
|
|
|
|
|
const ClkInfo *clk_info2) const
|
|
|
|
|
{
|
2025-09-16 22:53:16 +02:00
|
|
|
return ClkInfo::cmp(clk_info1, clk_info2, sta_) < 0;
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
2025-05-09 20:28:03 +02:00
|
|
|
int
|
2025-09-16 22:53:16 +02:00
|
|
|
ClkInfo::cmp(const ClkInfo *clk_info1,
|
|
|
|
|
const ClkInfo *clk_info2,
|
|
|
|
|
const StaState *sta)
|
2018-09-28 17:54:21 +02:00
|
|
|
{
|
2023-01-19 19:23:45 +01:00
|
|
|
const ClockEdge *clk_edge1 = clk_info1->clkEdge();
|
|
|
|
|
const ClockEdge *clk_edge2 = clk_info2->clkEdge();
|
2018-09-28 17:54:21 +02:00
|
|
|
int edge_index1 = clk_edge1 ? clk_edge1->index() : -1;
|
|
|
|
|
int edge_index2 = clk_edge2 ? clk_edge2->index() : -1;
|
|
|
|
|
if (edge_index1 < edge_index2)
|
|
|
|
|
return -1;
|
|
|
|
|
if (edge_index1 > edge_index2)
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
|
|
PathAPIndex path_ap_index1 = clk_info1->pathAPIndex();
|
|
|
|
|
PathAPIndex path_ap_index2 = clk_info2->pathAPIndex();
|
|
|
|
|
if (path_ap_index1 < path_ap_index2)
|
|
|
|
|
return -1;
|
|
|
|
|
if (path_ap_index1 > path_ap_index2)
|
|
|
|
|
return 1;
|
|
|
|
|
|
2025-09-14 20:43:59 +02:00
|
|
|
const Network *network = sta->network();
|
2018-09-28 17:54:21 +02:00
|
|
|
const Pin *clk_src1 = clk_info1->clkSrc();
|
|
|
|
|
const Pin *clk_src2 = clk_info2->clkSrc();
|
2025-09-14 20:43:59 +02:00
|
|
|
int clk_src_id1 = clk_src1 ? network->id(clk_src1) : -1;
|
|
|
|
|
int clk_src_id2 = clk_src2 ? network->id(clk_src2) : -1;
|
|
|
|
|
if (clk_src_id1 < clk_src_id2)
|
2018-09-28 17:54:21 +02:00
|
|
|
return -1;
|
2025-09-14 20:43:59 +02:00
|
|
|
if (clk_src_id1 > clk_src_id2)
|
2018-09-28 17:54:21 +02:00
|
|
|
return 1;
|
|
|
|
|
|
|
|
|
|
const Pin *gen_clk_src1 = clk_info1->genClkSrc();
|
|
|
|
|
const Pin *gen_clk_src2 = clk_info2->genClkSrc();
|
2025-09-14 20:43:59 +02:00
|
|
|
int gen_clk_src_id1 = gen_clk_src1 ? network->id(gen_clk_src1) : -1;
|
|
|
|
|
int gen_clk_src_id2 = gen_clk_src2 ? network->id(gen_clk_src2) : -1;
|
|
|
|
|
if (gen_clk_src_id1 < gen_clk_src_id2)
|
2018-09-28 17:54:21 +02:00
|
|
|
return -1;
|
2025-09-14 20:43:59 +02:00
|
|
|
if (gen_clk_src_id1 > gen_clk_src_id2)
|
2018-09-28 17:54:21 +02:00
|
|
|
return 1;
|
|
|
|
|
|
2025-04-10 23:16:00 +02:00
|
|
|
bool crpr_on = sta->crprActive();
|
2018-09-28 17:54:21 +02:00
|
|
|
if (crpr_on) {
|
2025-09-16 22:53:16 +02:00
|
|
|
const Path *crpr_path1 = clk_info1->crprClkPathRaw();
|
|
|
|
|
const Path *crpr_path2 = clk_info2->crprClkPathRaw();
|
2025-03-27 02:21:03 +01:00
|
|
|
int path_cmp = Path::cmp(crpr_path1, crpr_path2, sta);
|
2018-09-28 17:54:21 +02:00
|
|
|
if (path_cmp != 0)
|
|
|
|
|
return path_cmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const ClockUncertainties *uncertainties1 = clk_info1->uncertainties();
|
|
|
|
|
const ClockUncertainties *uncertainties2 = clk_info2->uncertainties();
|
2025-09-14 20:43:59 +02:00
|
|
|
if (uncertainties1 == nullptr && uncertainties2)
|
|
|
|
|
return -1;
|
|
|
|
|
if (uncertainties1 && uncertainties2 == nullptr)
|
|
|
|
|
return 1;
|
2025-09-16 22:53:16 +02:00
|
|
|
if (uncertainties1 && uncertainties2) {
|
|
|
|
|
int uncertain_cmp = ClockUncertainties::cmp(uncertainties1, uncertainties2);
|
|
|
|
|
if (uncertain_cmp != 0)
|
|
|
|
|
return uncertain_cmp;
|
|
|
|
|
}
|
2018-09-28 17:54:21 +02:00
|
|
|
const Arrival &insert1 = clk_info1->insertion();
|
|
|
|
|
const Arrival &insert2 = clk_info2->insertion();
|
2020-07-12 02:43:30 +02:00
|
|
|
if (delayLess(insert1, insert2, sta))
|
2018-09-28 17:54:21 +02:00
|
|
|
return -1;
|
2020-07-12 02:43:30 +02:00
|
|
|
if (delayGreater(insert1, insert2, sta))
|
2018-09-28 17:54:21 +02:00
|
|
|
return 1;
|
|
|
|
|
|
|
|
|
|
float latency1 = clk_info1->latency();
|
|
|
|
|
float latency2 = clk_info2->latency();
|
|
|
|
|
if (latency1 < latency2)
|
|
|
|
|
return -1;
|
|
|
|
|
if (latency1 > latency2)
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
|
|
bool is_propagated1 = clk_info1->isPropagated();
|
|
|
|
|
bool is_propagated2 = clk_info2->isPropagated();
|
|
|
|
|
if (!is_propagated1 && is_propagated2)
|
|
|
|
|
return -1;
|
|
|
|
|
if (is_propagated1 && !is_propagated2)
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
|
|
bool is_gen_clk_src_path1 = clk_info1->isGenClkSrcPath();
|
|
|
|
|
bool is_gen_clk_src_path2 = clk_info2->isGenClkSrcPath();
|
|
|
|
|
if (!is_gen_clk_src_path1 && is_gen_clk_src_path2)
|
|
|
|
|
return -1;
|
|
|
|
|
if (is_gen_clk_src_path1 && !is_gen_clk_src_path2)
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
|
|
bool is_pulse_clk1 = clk_info1->isPulseClk();
|
|
|
|
|
bool is_pulse_clk2 = clk_info2->isPulseClk();
|
|
|
|
|
if (!is_pulse_clk1 && is_pulse_clk2)
|
|
|
|
|
return -1;
|
|
|
|
|
if (is_pulse_clk1 && !is_pulse_clk2)
|
|
|
|
|
return 1;
|
|
|
|
|
|
2025-09-16 23:25:24 +02:00
|
|
|
int pulse_clk_sense_index1 = clk_info1->pulseClkSenseRfIndex();
|
|
|
|
|
int pulse_clk_sense_index2 = clk_info2->pulseClkSenseRfIndex();
|
2018-09-28 17:54:21 +02:00
|
|
|
if (pulse_clk_sense_index1 < pulse_clk_sense_index2)
|
|
|
|
|
return -1;
|
|
|
|
|
if (pulse_clk_sense_index1 > pulse_clk_sense_index2)
|
|
|
|
|
return 1;
|
|
|
|
|
else
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace
|