cmakefile

This commit is contained in:
James Cherry 2019-03-24 23:04:20 -07:00
parent 37df007eca
commit e141c83b2e
4 changed files with 15 additions and 12 deletions

View File

@ -399,7 +399,6 @@ set(STA_TCL_FILES
dcalc/DelayCalc.tcl
parasitics/Parasitics.tcl
sdf/Sdf.tcl
tcl/Compatibility.tcl
verilog/Verilog.tcl
)

View File

@ -3151,14 +3151,14 @@ Sta::pathDcalcAnalysisPt(Path *path)
}
Vertex *
Sta::maxPathCountVertex() const
Sta::maxArrivalCountVertex() const
{
Vertex *max_vertex = nullptr;
VertexIndex max_count = 0;
VertexIterator vertex_iter(graph_);
while (vertex_iter.hasNext()) {
Vertex *vertex = vertex_iter.next();
VertexIndex count = vertexPathCount(vertex);
VertexIndex count = vertexArrivalCount(vertex);
if (count > max_count) {
max_count = count;
max_vertex = vertex;
@ -3168,19 +3168,23 @@ Sta::maxPathCountVertex() const
}
int
Sta::vertexPathCount(Vertex *vertex) const
Sta::vertexArrivalCount(Vertex *vertex) const
{
return search_->tagGroup(vertex)->arrivalCount();
auto tag_group = search_->tagGroup(vertex);
if (tag_group)
return tag_group->arrivalCount();
else
return 0;
}
int
Sta::pathCount() const
Sta::arrivalCount() const
{
int count = 0;
VertexIterator vertex_iter(graph_);
while (vertex_iter.hasNext()) {
Vertex *vertex = vertex_iter.next();
count += vertexPathCount(vertex);
count += vertexArrivalCount(vertex);
}
return count;
}

View File

@ -1026,9 +1026,9 @@ public:
TagIndex tagCount() const;
TagGroupIndex tagGroupCount() const;
int clkInfoCount() const;
int pathCount() const;
int vertexPathCount(Vertex *vertex) const;
Vertex *maxPathCountVertex() const;
int arrivalCount() const;
int vertexArrivalCount(Vertex *vertex) const;
Vertex *maxArrivalCountVertex() const;
LogicValue simLogicValue(const Pin *pin);
// Iterator for instances sorted by max driver pin slew.

View File

@ -5070,9 +5070,9 @@ clk_info_count()
}
int
path_count()
arrival_count()
{
return Sta::sta()->pathCount();
return Sta::sta()->arrivalCount();
}
void