We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1789c9c commit 63a7bf3Copy full SHA for 63a7bf3
src/gpl/src/placerBase.cpp
@@ -830,15 +830,9 @@ void PlacerBaseCommon::init()
830
831
// Extending instances by average pin density.
832
auto count_signal_pins = [](const Instance& inst) -> int {
833
- int pin_count = 0;
834
- for (odb::dbITerm* iterm : inst.dbInst()->getITerms()) {
835
- odb::dbSigType sig_type = iterm->getSigType();
836
- if (sig_type != odb::dbSigType::POWER
837
- && sig_type != odb::dbSigType::GROUND) {
838
- ++pin_count;
839
- }
840
841
- return pin_count;
+ return std::ranges::count_if(
+ inst.dbInst()->getITerms(),
+ [](odb::dbITerm* iterm) { return !iterm->getSigType().isSupply(); });
842
};
843
844
int total_signal_pins = 0;
0 commit comments