Skip to content

Commit 5ca1833

Browse files
committed
cts: enable half-NDR for clock nets by default. Fix clock tree level list check.
Signed-off-by: Jonas Gava <[email protected]>
1 parent 9492685 commit 5ca1833

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cts/src/CtsOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ class CtsOptions : public odb::dbBlockCallBackObj
350350
std::string dummyload_prefix_ = "clkload";
351351
MasterCount dummy_count_;
352352
bool repairClockNets_ = false;
353-
NdrStrategy ndrStrategy_ = NdrStrategy::NONE;
353+
NdrStrategy ndrStrategy_ = NdrStrategy::HALF;
354354
};
355355

356356
} // namespace cts

src/cts/src/TritonCTS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ std::vector<int> TritonCTS::getAllClockTreeLevels(Clock& clockNet)
15821582
std::set<int> uniqueLevels;
15831583

15841584
clockNet.forEachSubNet([&](ClockSubNet& subNet) {
1585-
if (!subNet.isLeafLevel()) {
1585+
if (!subNet.isLeafLevel() && subNet.getTreeLevel() != -1) {
15861586
uniqueLevels.insert(subNet.getTreeLevel());
15871587
}
15881588
});

0 commit comments

Comments
 (0)