Tag::tr_index_ -> rf_index_

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2023-06-01 19:28:32 -07:00
parent aeb602712b
commit 36fce30a30
4 changed files with 23 additions and 23 deletions

View File

@ -90,7 +90,7 @@ PathEnumed::transition(const StaState *sta) const
int
PathEnumed::trIndex(const StaState *sta) const
{
return tag(sta)->trIndex();
return tag(sta)->rfIndex();
}
PathAnalysisPt *

View File

@ -193,7 +193,7 @@ PathVertex::transition(const StaState *) const
int
PathVertex::rfIndex(const StaState *) const
{
return tag_->trIndex();
return tag_->rfIndex();
}
PathAnalysisPt *
@ -567,7 +567,7 @@ VertexPathIterator::findNext()
int arrival_index;
arrival_iter_.next(tag, arrival_index);
if ((rf_ == nullptr
|| tag->trIndex() == rf_->index())
|| tag->rfIndex() == rf_->index())
&& (path_ap_ == nullptr
|| tag->pathAPIndex() == path_ap_->index())
&& (min_max_ == nullptr

View File

@ -41,7 +41,7 @@ tagStateEqualCrpr(const Tag *tag1,
const Tag *tag2);
Tag::Tag(TagIndex index,
int tr_index,
int rf_index,
PathAPIndex path_ap_index,
ClkInfo *clk_info,
bool is_clk,
@ -59,7 +59,7 @@ Tag::Tag(TagIndex index,
is_loop_(false),
is_segment_start_(is_segment_start),
own_states_(own_states),
tr_index_(tr_index),
rf_index_(rf_index),
path_ap_index_(path_ap_index)
{
findHash();
@ -177,7 +177,7 @@ Tag::asString(bool report_index,
const RiseFall *
Tag::transition() const
{
return RiseFall::find(tr_index_);
return RiseFall::find(rf_index_);
}
PathAnalysisPt *
@ -247,7 +247,7 @@ Tag::findHash()
{
// Common to hash_ and match_hash_.
hash_ = hash_init_value;
hashIncr(hash_, tr_index_);
hashIncr(hash_, rf_index_);
hashIncr(hash_, path_ap_index_);
hashIncr(hash_, is_clk_);
hashIncr(hash_, is_segment_start_);
@ -297,11 +297,11 @@ tagCmp(const Tag *tag1,
return 0;
if (cmp_rf) {
int tr_index1 = tag1->trIndex();
int tr_index2 = tag2->trIndex();
if (tr_index1 < tr_index2)
int rf_index1 = tag1->rfIndex();
int rf_index2 = tag2->rfIndex();
if (rf_index1 < rf_index2)
return -1;
if (tr_index1 > tr_index2)
if (rf_index1 > rf_index2)
return 1;
}
@ -350,7 +350,7 @@ tagEqual(const Tag *tag1,
const Tag *tag2)
{
return tag1 == tag2
|| (tag1->trIndex() == tag2->trIndex()
|| (tag1->rfIndex() == tag2->rfIndex()
&& tag1->pathAPIndex() == tag2->pathAPIndex()
&& tag1->clkInfo() == tag2->clkInfo()
&& tag1->isClock() == tag2->isClock()
@ -404,7 +404,7 @@ tagMatch(const Tag *tag1,
const ClkInfo *clk_info2 = tag2->clkInfo();
return tag1 == tag2
|| (clk_info1->clkEdge() == clk_info2->clkEdge()
&& tag1->trIndex() == tag2->trIndex()
&& tag1->rfIndex() == tag2->rfIndex()
&& tag1->pathAPIndex() == tag2->pathAPIndex()
&& tag1->isClock() == tag2->isClock()
&& tag1->isSegmentStart() == tag2->isSegmentStart()
@ -424,11 +424,11 @@ tagMatchCmp(const Tag *tag1,
if (tag1 == tag2)
return 0;
int tr_index1 = tag1->trIndex();
int tr_index2 = tag2->trIndex();
if (tr_index1 < tr_index2)
int rf_index1 = tag1->rfIndex();
int rf_index2 = tag2->rfIndex();
if (rf_index1 < rf_index2)
return -1;
if (tr_index1 > tr_index2)
if (rf_index1 > rf_index2)
return 1;
PathAPIndex path_ap_index1 = tag1->pathAPIndex();
@ -491,7 +491,7 @@ tagMatchNoCrpr(const Tag *tag1,
const ClkInfo *clk_info2 = tag2->clkInfo();
return tag1 == tag2
|| (clk_info1->clkEdge() == clk_info2->clkEdge()
&& tag1->trIndex() == tag2->trIndex()
&& tag1->rfIndex() == tag2->rfIndex()
&& tag1->pathAPIndex() == tag2->pathAPIndex()
&& tag1->isClock() == tag2->isClock()
&& clk_info1->isGenClkSrcPath() == clk_info2->isGenClkSrcPath()
@ -506,7 +506,7 @@ tagMatchNoPathAp(const Tag *tag1,
const ClkInfo *clk_info2 = tag2->clkInfo();
return tag1 == tag2
|| (clk_info1->clkEdge() == clk_info2->clkEdge()
&& tag1->trIndex() == tag2->trIndex()
&& tag1->rfIndex() == tag2->rfIndex()
&& tag1->isClock() == tag2->isClock()
&& tag1->isSegmentStart() == tag2->isSegmentStart()
&& clk_info1->isGenClkSrcPath() == clk_info2->isGenClkSrcPath()
@ -521,7 +521,7 @@ tagMatchCrpr(const Tag *tag1,
const ClkInfo *clk_info2 = tag2->clkInfo();
return tag1 == tag2
|| (clk_info1->clkEdge() == clk_info2->clkEdge()
&& tag1->trIndex() == tag2->trIndex()
&& tag1->rfIndex() == tag2->rfIndex()
&& tag1->isClock() == tag2->isClock()
&& tag1->isSegmentStart() == tag2->isSegmentStart()
&& clk_info1->isGenClkSrcPath() == clk_info2->isGenClkSrcPath()

View File

@ -44,7 +44,7 @@ class Tag
{
public:
Tag(TagIndex index,
int tr_index,
int rf_index,
PathAPIndex path_ap_index,
ClkInfo *clk_info,
bool is_clk,
@ -63,7 +63,7 @@ public:
const ClockEdge *clkEdge() const;
const Clock *clock() const;
const Pin *clkSrc() const;
int trIndex() const { return tr_index_; }
int rfIndex() const { return rf_index_; }
const RiseFall *transition() const;
PathAnalysisPt *pathAnalysisPt(const StaState *sta) const;
PathAPIndex pathAPIndex() const { return path_ap_index_; }
@ -96,7 +96,7 @@ private:
bool is_segment_start_:1;
// Indicates that states_ is owned by the tag.
bool own_states_:1;
unsigned int tr_index_:RiseFall::index_bit_count;
unsigned int rf_index_:RiseFall::index_bit_count;
unsigned int path_ap_index_:path_ap_index_bit_count;
};