mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-04 08:43:04 +02:00
use std::format squash
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
// OpenSTA, Static Timing Analyzer
|
||||
// Copyright (c) 2026, Parallax Software, Inc.
|
||||
//
|
||||
//
|
||||
// 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
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
//
|
||||
//
|
||||
// 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.
|
||||
|
||||
#include "ReportParasiticAnnotation.hh"
|
||||
@@ -65,8 +65,8 @@ reportParasiticAnnotation(Parasitics *parasitics,
|
||||
const Scene *scene,
|
||||
StaState *sta)
|
||||
{
|
||||
ReportParasiticAnnotation report_annotation(parasitics, report_unannotated,
|
||||
scene, sta);
|
||||
ReportParasiticAnnotation report_annotation(parasitics, report_unannotated, scene,
|
||||
sta);
|
||||
report_annotation.report();
|
||||
}
|
||||
|
||||
@@ -92,25 +92,26 @@ ReportParasiticAnnotation::report()
|
||||
void
|
||||
ReportParasiticAnnotation::reportAnnotationCounts()
|
||||
{
|
||||
report_->reportLine("Found %zu unannotated drivers.", unannotated_.size());
|
||||
report_->report("Found {} unannotated drivers.", unannotated_.size());
|
||||
if (report_unannotated_) {
|
||||
sort(unannotated_, PinPathNameLess(network_));
|
||||
for (const Pin *drvr_pin : unannotated_)
|
||||
report_->reportLine(" %s", network_->pathName(drvr_pin));
|
||||
report_->report(" {}", network_->pathName(drvr_pin));
|
||||
}
|
||||
|
||||
report_->reportLine("Found %zu partially unannotated drivers.",
|
||||
partially_annotated_.size());
|
||||
report_->report("Found {} partially unannotated drivers.",
|
||||
partially_annotated_.size());
|
||||
if (report_unannotated_) {
|
||||
sort(partially_annotated_, PinPathNameLess(network_));
|
||||
for (const Pin *drvr_pin : partially_annotated_) {
|
||||
report_->reportLine(" %s", network_->pathName(drvr_pin));
|
||||
report_->report(" {}", network_->pathName(drvr_pin));
|
||||
|
||||
Parasitic *parasitic = parasitics_->findParasiticNetwork(drvr_pin);
|
||||
if (parasitic) {
|
||||
PinSet unannotated_loads = parasitics_->unannotatedLoads(parasitic, drvr_pin);
|
||||
PinSet unannotated_loads =
|
||||
parasitics_->unannotatedLoads(parasitic, drvr_pin);
|
||||
for (const Pin *load_pin : unannotated_loads)
|
||||
report_->reportLine(" %s", network_->pathName(load_pin));
|
||||
report_->report(" {}", network_->pathName(load_pin));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -124,21 +125,20 @@ ReportParasiticAnnotation::findCounts()
|
||||
Vertex *vertex = vertex_iter.next();
|
||||
Pin *pin = vertex->pin();
|
||||
PortDirection *dir = network_->direction(pin);
|
||||
if (vertex->isDriver(network_)
|
||||
&& !dir->isInternal()) {
|
||||
if (vertex->isDriver(network_) && !dir->isInternal()) {
|
||||
Parasitic *parasitic = parasitics_->findParasiticNetwork(pin);
|
||||
if (parasitic == nullptr)
|
||||
parasitic = arc_delay_calc_->findParasitic(pin, RiseFall::rise(),
|
||||
scene_, min_max_);
|
||||
parasitic =
|
||||
arc_delay_calc_->findParasitic(pin, RiseFall::rise(), scene_, min_max_);
|
||||
if (parasitic) {
|
||||
PinSet unannotated_loads = parasitics_->unannotatedLoads(parasitic, pin);
|
||||
if (unannotated_loads.size() > 0)
|
||||
partially_annotated_.push_back(pin);
|
||||
}
|
||||
else
|
||||
else
|
||||
unannotated_.push_back(pin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace sta
|
||||
|
||||
Reference in New Issue
Block a user