rm GraphDelayCalc1
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
7845105f4f
commit
042f1f84d1
|
|
@ -69,7 +69,6 @@ set(STA_SOURCE
|
||||||
dcalc/DmpCeff.cc
|
dcalc/DmpCeff.cc
|
||||||
dcalc/DmpDelayCalc.cc
|
dcalc/DmpDelayCalc.cc
|
||||||
dcalc/GraphDelayCalc.cc
|
dcalc/GraphDelayCalc.cc
|
||||||
dcalc/GraphDelayCalc1.cc
|
|
||||||
dcalc/LumpedCapDelayCalc.cc
|
dcalc/LumpedCapDelayCalc.cc
|
||||||
dcalc/NetCaps.cc
|
dcalc/NetCaps.cc
|
||||||
dcalc/RCDelayCalc.cc
|
dcalc/RCDelayCalc.cc
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -1,236 +0,0 @@
|
||||||
// OpenSTA, Static Timing Analyzer
|
|
||||||
// Copyright (c) 2023, 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/>.
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <mutex>
|
|
||||||
|
|
||||||
#include "Delay.hh"
|
|
||||||
#include "GraphDelayCalc.hh"
|
|
||||||
|
|
||||||
namespace sta {
|
|
||||||
|
|
||||||
class MultiDrvrNet;
|
|
||||||
class FindVertexDelays;
|
|
||||||
class Corner;
|
|
||||||
|
|
||||||
typedef Map<const Vertex*, MultiDrvrNet*> MultiDrvrNetMap;
|
|
||||||
|
|
||||||
// This class traverses the graph calling the arc delay calculator and
|
|
||||||
// annotating delays on graph edges.
|
|
||||||
class GraphDelayCalc1 : public GraphDelayCalc
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
GraphDelayCalc1(StaState *sta);
|
|
||||||
virtual ~GraphDelayCalc1();
|
|
||||||
virtual void copyState(const StaState *sta);
|
|
||||||
virtual void delaysInvalid();
|
|
||||||
virtual void delayInvalid(Vertex *vertex);
|
|
||||||
virtual void delayInvalid(const Pin *pin);
|
|
||||||
virtual void deleteVertexBefore(Vertex *vertex);
|
|
||||||
virtual void clear();
|
|
||||||
virtual void findDelays(Level level);
|
|
||||||
virtual void findDelays(Vertex *drvr_vertex);
|
|
||||||
virtual string reportDelayCalc(Edge *edge,
|
|
||||||
TimingArc *arc,
|
|
||||||
const Corner *corner,
|
|
||||||
const MinMax *min_max,
|
|
||||||
int digits);
|
|
||||||
virtual float incrementalDelayTolerance();
|
|
||||||
virtual void setIncrementalDelayTolerance(float tol);
|
|
||||||
virtual void setObserver(DelayCalcObserver *observer);
|
|
||||||
// Load pin_cap + wire_cap.
|
|
||||||
virtual float loadCap(const Pin *drvr_pin,
|
|
||||||
const RiseFall *drvr_rf,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap) const;
|
|
||||||
virtual float loadCap(const Pin *drvr_pin,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap) const;
|
|
||||||
virtual void loadCap(const Pin *drvr_pin,
|
|
||||||
const Parasitic *drvr_parasitic,
|
|
||||||
const RiseFall *rf,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap,
|
|
||||||
// Return values.
|
|
||||||
float &pin_cap,
|
|
||||||
float &wire_cap) const;
|
|
||||||
virtual float loadCap(const Pin *drvr_pin,
|
|
||||||
const Parasitic *drvr_parasitic,
|
|
||||||
const RiseFall *rf,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap) const;
|
|
||||||
virtual void netCaps(const Pin *drvr_pin,
|
|
||||||
const RiseFall *rf,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap,
|
|
||||||
// Return values.
|
|
||||||
float &pin_cap,
|
|
||||||
float &wire_cap,
|
|
||||||
float &fanout,
|
|
||||||
bool &has_set_load) const;
|
|
||||||
float ceff(Edge *edge,
|
|
||||||
TimingArc *arc,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void seedInvalidDelays();
|
|
||||||
void ensureMultiDrvrNetsFound();
|
|
||||||
void makeMultiDrvrNet(PinSet &drvr_pins);
|
|
||||||
void initSlew(Vertex *vertex);
|
|
||||||
void seedRootSlew(Vertex *vertex,
|
|
||||||
ArcDelayCalc *arc_delay_calc);
|
|
||||||
void seedRootSlews();
|
|
||||||
void seedDrvrSlew(Vertex *vertex,
|
|
||||||
ArcDelayCalc *arc_delay_calc);
|
|
||||||
void seedNoDrvrSlew(Vertex *drvr_vertex,
|
|
||||||
const Pin *drvr_pin,
|
|
||||||
const RiseFall *rf,
|
|
||||||
DcalcAnalysisPt *dcalc_ap,
|
|
||||||
ArcDelayCalc *arc_delay_calc);
|
|
||||||
void seedNoDrvrCellSlew(Vertex *drvr_vertex,
|
|
||||||
const Pin *drvr_pin,
|
|
||||||
const RiseFall *rf,
|
|
||||||
InputDrive *drive,
|
|
||||||
DcalcAnalysisPt *dcalc_ap,
|
|
||||||
ArcDelayCalc *arc_delay_calc);
|
|
||||||
void seedLoadSlew(Vertex *vertex);
|
|
||||||
void setInputPortWireDelays(Vertex *vertex);
|
|
||||||
void findInputDriverDelay(const LibertyCell *drvr_cell,
|
|
||||||
const Pin *drvr_pin,
|
|
||||||
Vertex *drvr_vertex,
|
|
||||||
const RiseFall *rf,
|
|
||||||
const LibertyPort *from_port,
|
|
||||||
float *from_slews,
|
|
||||||
const LibertyPort *to_port,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap);
|
|
||||||
LibertyPort *driveCellDefaultFromPort(const LibertyCell *cell,
|
|
||||||
const LibertyPort *to_port);
|
|
||||||
int findPortIndex(const LibertyCell *cell,
|
|
||||||
const LibertyPort *port);
|
|
||||||
void findInputArcDelay(const LibertyCell *drvr_cell,
|
|
||||||
const Pin *drvr_pin,
|
|
||||||
Vertex *drvr_vertex,
|
|
||||||
const TimingArc *arc,
|
|
||||||
float from_slew,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap);
|
|
||||||
bool findDriverDelays(Vertex *drvr_vertex,
|
|
||||||
ArcDelayCalc *arc_delay_calc);
|
|
||||||
bool findDriverDelays1(Vertex *drvr_vertex,
|
|
||||||
bool init_load_slews,
|
|
||||||
MultiDrvrNet *multi_drvr,
|
|
||||||
ArcDelayCalc *arc_delay_calc);
|
|
||||||
bool findDriverEdgeDelays(LibertyCell *drvr_cell,
|
|
||||||
Instance *drvr_inst,
|
|
||||||
const Pin *drvr_pin,
|
|
||||||
Vertex *drvr_vertex,
|
|
||||||
MultiDrvrNet *multi_drvr,
|
|
||||||
Edge *edge,
|
|
||||||
ArcDelayCalc *arc_delay_calc);
|
|
||||||
void initWireDelays(Vertex *drvr_vertex,
|
|
||||||
bool init_load_slews);
|
|
||||||
void initRootSlews(Vertex *vertex);
|
|
||||||
void zeroSlewAndWireDelays(Vertex *drvr_vertex);
|
|
||||||
void findVertexDelay(Vertex *vertex,
|
|
||||||
ArcDelayCalc *arc_delay_calc,
|
|
||||||
bool propagate);
|
|
||||||
void enqueueTimingChecksEdges(Vertex *vertex);
|
|
||||||
bool findArcDelay(LibertyCell *drvr_cell,
|
|
||||||
const Pin *drvr_pin,
|
|
||||||
Vertex *drvr_vertex,
|
|
||||||
MultiDrvrNet *multi_drvr,
|
|
||||||
TimingArc *arc,
|
|
||||||
Parasitic *drvr_parasitic,
|
|
||||||
float related_out_cap,
|
|
||||||
Vertex *from_vertex,
|
|
||||||
Edge *edge,
|
|
||||||
const Pvt *pvt,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap,
|
|
||||||
ArcDelayCalc *arc_delay_calc);
|
|
||||||
void annotateLoadDelays(Vertex *drvr_vertex,
|
|
||||||
const RiseFall *drvr_rf,
|
|
||||||
const ArcDelay &extra_delay,
|
|
||||||
bool merge,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap,
|
|
||||||
ArcDelayCalc *arc_delay_calc);
|
|
||||||
void findLatchEdgeDelays(Edge *edge);
|
|
||||||
void findCheckEdgeDelays(Edge *edge,
|
|
||||||
ArcDelayCalc *arc_delay_calc);
|
|
||||||
void findMultiDrvrGateDelay(MultiDrvrNet *multi_drvr,
|
|
||||||
const RiseFall *drvr_rf,
|
|
||||||
const Pvt *pvt,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap,
|
|
||||||
ArcDelayCalc *arc_delay_calc,
|
|
||||||
// Return values.
|
|
||||||
ArcDelay ¶llel_delay,
|
|
||||||
Slew ¶llel_slew);
|
|
||||||
void parallelGateDelay(MultiDrvrNet *multi_drvr,
|
|
||||||
LibertyCell *drvr_cell,
|
|
||||||
const Pin *drvr_pin,
|
|
||||||
TimingArc *arc,
|
|
||||||
const Pvt *pvt,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap,
|
|
||||||
const Slew from_slew,
|
|
||||||
Parasitic *drvr_parasitic,
|
|
||||||
float related_out_cap,
|
|
||||||
ArcDelayCalc *arc_delay_calc,
|
|
||||||
// Return values.
|
|
||||||
ArcDelay &gate_delay,
|
|
||||||
Slew &gate_slew);
|
|
||||||
void deleteMultiDrvrNets();
|
|
||||||
Slew edgeFromSlew(const Vertex *from_vertex,
|
|
||||||
const RiseFall *from_rf,
|
|
||||||
const Edge *edge,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap);
|
|
||||||
Slew checkEdgeClkSlew(const Vertex *from_vertex,
|
|
||||||
const RiseFall *from_rf,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap);
|
|
||||||
bool bidirectDrvrSlewFromLoad(const Vertex *vertex) const;
|
|
||||||
MultiDrvrNet *multiDrvrNet(const Vertex *drvr_vertex) const;
|
|
||||||
void loadCap(const Parasitic *drvr_parasitic,
|
|
||||||
bool has_set_load,
|
|
||||||
// Return values.
|
|
||||||
float &pin_cap,
|
|
||||||
float &wire_cap) const;
|
|
||||||
float loadCap(const Pin *drvr_pin,
|
|
||||||
MultiDrvrNet *multi_drvr,
|
|
||||||
const Parasitic *drvr_parasitic,
|
|
||||||
const RiseFall *rf,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap) const;
|
|
||||||
|
|
||||||
// Observer for edge delay changes.
|
|
||||||
DelayCalcObserver *observer_;
|
|
||||||
bool delays_seeded_;
|
|
||||||
bool incremental_;
|
|
||||||
bool delays_exist_;
|
|
||||||
// Vertices with invalid -to delays.
|
|
||||||
VertexSet *invalid_delays_;
|
|
||||||
// Timing check edges with invalid delays.
|
|
||||||
EdgeSet invalid_check_edges_;
|
|
||||||
// Latch D->Q edges with invalid delays.
|
|
||||||
EdgeSet invalid_latch_edges_;
|
|
||||||
// shared by invalid_check_edges_ and invalid_latch_edges_
|
|
||||||
std::mutex invalid_edge_lock_;
|
|
||||||
SearchPred *search_pred_;
|
|
||||||
SearchPred *search_non_latch_pred_;
|
|
||||||
SearchPred *clk_pred_;
|
|
||||||
BfsFwdIterator *iter_;
|
|
||||||
MultiDrvrNetMap multi_drvr_net_map_;
|
|
||||||
bool multi_drvr_nets_found_;
|
|
||||||
// Percentage (0.0:1.0) change in delay that causes downstream
|
|
||||||
// delays to be recomputed during incremental delay calculation.
|
|
||||||
float incremental_delay_tolerance_;
|
|
||||||
|
|
||||||
friend class FindVertexDelays;
|
|
||||||
friend class MultiDrvrNet;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace
|
|
||||||
|
|
@ -16,46 +16,44 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include "Map.hh"
|
||||||
|
#include "NetworkClass.hh"
|
||||||
#include "GraphClass.hh"
|
#include "GraphClass.hh"
|
||||||
|
#include "SearchClass.hh"
|
||||||
#include "DcalcAnalysisPt.hh"
|
#include "DcalcAnalysisPt.hh"
|
||||||
#include "StaState.hh"
|
#include "StaState.hh"
|
||||||
|
#include "Delay.hh"
|
||||||
|
|
||||||
namespace sta {
|
namespace sta {
|
||||||
|
|
||||||
using std::string;
|
|
||||||
|
|
||||||
class BfsFwdIterator;
|
|
||||||
class SearchPred;
|
|
||||||
class DelayCalcObserver;
|
class DelayCalcObserver;
|
||||||
class Parasitic;
|
class MultiDrvrNet;
|
||||||
class Corner;
|
class FindVertexDelays;
|
||||||
|
|
||||||
// Base class for graph delay calculator.
|
typedef Map<const Vertex*, MultiDrvrNet*> MultiDrvrNetMap;
|
||||||
// This class annotates the arc delays and slews on the graph by calling
|
|
||||||
// the timing arc delay calculation primitive through an implementation
|
// This class traverses the graph calling the arc delay calculator and
|
||||||
// of the ArcDelayCalc abstract class.
|
// annotating delays on graph edges.
|
||||||
// This class does not traverse the graph or call an arc delay
|
|
||||||
// calculator. Use it with applications that use an external delay
|
|
||||||
// calculator and annotate all edge delays.
|
|
||||||
class GraphDelayCalc : public StaState
|
class GraphDelayCalc : public StaState
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit GraphDelayCalc(StaState *sta);
|
GraphDelayCalc(StaState *sta);
|
||||||
virtual ~GraphDelayCalc() {}
|
virtual ~GraphDelayCalc();
|
||||||
// Find arc delays and vertex slews thru level.
|
virtual void copyState(const StaState *sta);
|
||||||
virtual void findDelays(Level /* level */) {};
|
// Set the observer for edge delay changes.
|
||||||
// Find and annotate drvr_vertex gate and load delays/slews.
|
virtual void setObserver(DelayCalcObserver *observer);
|
||||||
virtual void findDelays(Vertex * /* drvr_vertex */) {};
|
|
||||||
// Invalidate all delays/slews.
|
// Invalidate all delays/slews.
|
||||||
virtual void delaysInvalid() {};
|
virtual void delaysInvalid();
|
||||||
// Invalidate vertex and downstream delays/slews.
|
// Invalidate vertex and downstream delays/slews.
|
||||||
virtual void delayInvalid(Vertex * /* vertex */) {};
|
virtual void delayInvalid(Vertex *vertex);
|
||||||
virtual void delayInvalid(const Pin * /* pin */) {};
|
virtual void delayInvalid(const Pin *pin);
|
||||||
virtual void deleteVertexBefore(Vertex * /* vertex */) {};
|
virtual void deleteVertexBefore(Vertex *vertex);
|
||||||
// Reset to virgin state.
|
// Reset to virgin state.
|
||||||
virtual void clear() {}
|
virtual void clear();
|
||||||
|
// Find arc delays and vertex slews thru level.
|
||||||
|
virtual void findDelays(Level level);
|
||||||
|
// Find and annotate drvr_vertex gate and load delays/slews.
|
||||||
|
virtual void findDelays(Vertex *drvr_vertex);
|
||||||
// Returned string is owned by the caller.
|
// Returned string is owned by the caller.
|
||||||
virtual string reportDelayCalc(Edge *edge,
|
virtual string reportDelayCalc(Edge *edge,
|
||||||
TimingArc *arc,
|
TimingArc *arc,
|
||||||
|
|
@ -65,9 +63,14 @@ public:
|
||||||
// Percentage (0.0:1.0) change in delay that causes downstream
|
// Percentage (0.0:1.0) change in delay that causes downstream
|
||||||
// delays to be recomputed during incremental delay calculation.
|
// delays to be recomputed during incremental delay calculation.
|
||||||
virtual float incrementalDelayTolerance();
|
virtual float incrementalDelayTolerance();
|
||||||
virtual void setIncrementalDelayTolerance(float /* tol */) {}
|
virtual void setIncrementalDelayTolerance(float tol);
|
||||||
// Set the observer for edge delay changes.
|
// Load pin_cap + wire_cap.
|
||||||
virtual void setObserver(DelayCalcObserver *observer);
|
virtual float loadCap(const Pin *drvr_pin,
|
||||||
|
const RiseFall *drvr_rf,
|
||||||
|
const DcalcAnalysisPt *dcalc_ap) const;
|
||||||
|
// Load pin_cap + wire_cap including parasitic min/max for rise/fall.
|
||||||
|
virtual float loadCap(const Pin *drvr_pin,
|
||||||
|
const DcalcAnalysisPt *dcalc_ap) const;
|
||||||
// pin_cap = net pin capacitances + port external pin capacitance,
|
// pin_cap = net pin capacitances + port external pin capacitance,
|
||||||
// wire_cap = annotated net capacitance + port external wire capacitance.
|
// wire_cap = annotated net capacitance + port external wire capacitance.
|
||||||
virtual void loadCap(const Pin *drvr_pin,
|
virtual void loadCap(const Pin *drvr_pin,
|
||||||
|
|
@ -78,13 +81,6 @@ public:
|
||||||
float &pin_cap,
|
float &pin_cap,
|
||||||
float &wire_cap) const;
|
float &wire_cap) const;
|
||||||
// Load pin_cap + wire_cap including parasitic.
|
// Load pin_cap + wire_cap including parasitic.
|
||||||
virtual float loadCap(const Pin *drvr_pin,
|
|
||||||
const RiseFall *to_rf,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap) const;
|
|
||||||
// Load pin_cap + wire_cap including parasitic min/max for rise/fall.
|
|
||||||
virtual float loadCap(const Pin *drvr_pin,
|
|
||||||
const DcalcAnalysisPt *dcalc_ap) const;
|
|
||||||
// Load pin_cap + wire_cap.
|
|
||||||
virtual float loadCap(const Pin *drvr_pin,
|
virtual float loadCap(const Pin *drvr_pin,
|
||||||
const Parasitic *drvr_parasitic,
|
const Parasitic *drvr_parasitic,
|
||||||
const RiseFall *rf,
|
const RiseFall *rf,
|
||||||
|
|
@ -97,9 +93,9 @@ public:
|
||||||
float &wire_cap,
|
float &wire_cap,
|
||||||
float &fanout,
|
float &fanout,
|
||||||
bool &has_set_load) const;
|
bool &has_set_load) const;
|
||||||
virtual float ceff(Edge *edge,
|
float ceff(Edge *edge,
|
||||||
TimingArc *arc,
|
TimingArc *arc,
|
||||||
const DcalcAnalysisPt *dcalc_ap);
|
const DcalcAnalysisPt *dcalc_ap);
|
||||||
// Precedence:
|
// Precedence:
|
||||||
// SDF annotation
|
// SDF annotation
|
||||||
// Liberty library
|
// Liberty library
|
||||||
|
|
@ -118,6 +114,157 @@ public:
|
||||||
// Return values.
|
// Return values.
|
||||||
float &min_period,
|
float &min_period,
|
||||||
bool &exists);
|
bool &exists);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void seedInvalidDelays();
|
||||||
|
void ensureMultiDrvrNetsFound();
|
||||||
|
void makeMultiDrvrNet(PinSet &drvr_pins);
|
||||||
|
void initSlew(Vertex *vertex);
|
||||||
|
void seedRootSlew(Vertex *vertex,
|
||||||
|
ArcDelayCalc *arc_delay_calc);
|
||||||
|
void seedRootSlews();
|
||||||
|
void seedDrvrSlew(Vertex *vertex,
|
||||||
|
ArcDelayCalc *arc_delay_calc);
|
||||||
|
void seedNoDrvrSlew(Vertex *drvr_vertex,
|
||||||
|
const Pin *drvr_pin,
|
||||||
|
const RiseFall *rf,
|
||||||
|
DcalcAnalysisPt *dcalc_ap,
|
||||||
|
ArcDelayCalc *arc_delay_calc);
|
||||||
|
void seedNoDrvrCellSlew(Vertex *drvr_vertex,
|
||||||
|
const Pin *drvr_pin,
|
||||||
|
const RiseFall *rf,
|
||||||
|
InputDrive *drive,
|
||||||
|
DcalcAnalysisPt *dcalc_ap,
|
||||||
|
ArcDelayCalc *arc_delay_calc);
|
||||||
|
void seedLoadSlew(Vertex *vertex);
|
||||||
|
void setInputPortWireDelays(Vertex *vertex);
|
||||||
|
void findInputDriverDelay(const LibertyCell *drvr_cell,
|
||||||
|
const Pin *drvr_pin,
|
||||||
|
Vertex *drvr_vertex,
|
||||||
|
const RiseFall *rf,
|
||||||
|
const LibertyPort *from_port,
|
||||||
|
float *from_slews,
|
||||||
|
const LibertyPort *to_port,
|
||||||
|
const DcalcAnalysisPt *dcalc_ap);
|
||||||
|
LibertyPort *driveCellDefaultFromPort(const LibertyCell *cell,
|
||||||
|
const LibertyPort *to_port);
|
||||||
|
int findPortIndex(const LibertyCell *cell,
|
||||||
|
const LibertyPort *port);
|
||||||
|
void findInputArcDelay(const LibertyCell *drvr_cell,
|
||||||
|
const Pin *drvr_pin,
|
||||||
|
Vertex *drvr_vertex,
|
||||||
|
const TimingArc *arc,
|
||||||
|
float from_slew,
|
||||||
|
const DcalcAnalysisPt *dcalc_ap);
|
||||||
|
bool findDriverDelays(Vertex *drvr_vertex,
|
||||||
|
ArcDelayCalc *arc_delay_calc);
|
||||||
|
bool findDriverDelays1(Vertex *drvr_vertex,
|
||||||
|
bool init_load_slews,
|
||||||
|
MultiDrvrNet *multi_drvr,
|
||||||
|
ArcDelayCalc *arc_delay_calc);
|
||||||
|
bool findDriverEdgeDelays(LibertyCell *drvr_cell,
|
||||||
|
Instance *drvr_inst,
|
||||||
|
const Pin *drvr_pin,
|
||||||
|
Vertex *drvr_vertex,
|
||||||
|
MultiDrvrNet *multi_drvr,
|
||||||
|
Edge *edge,
|
||||||
|
ArcDelayCalc *arc_delay_calc);
|
||||||
|
void initWireDelays(Vertex *drvr_vertex,
|
||||||
|
bool init_load_slews);
|
||||||
|
void initRootSlews(Vertex *vertex);
|
||||||
|
void zeroSlewAndWireDelays(Vertex *drvr_vertex);
|
||||||
|
void findVertexDelay(Vertex *vertex,
|
||||||
|
ArcDelayCalc *arc_delay_calc,
|
||||||
|
bool propagate);
|
||||||
|
void enqueueTimingChecksEdges(Vertex *vertex);
|
||||||
|
bool findArcDelay(LibertyCell *drvr_cell,
|
||||||
|
const Pin *drvr_pin,
|
||||||
|
Vertex *drvr_vertex,
|
||||||
|
MultiDrvrNet *multi_drvr,
|
||||||
|
TimingArc *arc,
|
||||||
|
Parasitic *drvr_parasitic,
|
||||||
|
float related_out_cap,
|
||||||
|
Vertex *from_vertex,
|
||||||
|
Edge *edge,
|
||||||
|
const Pvt *pvt,
|
||||||
|
const DcalcAnalysisPt *dcalc_ap,
|
||||||
|
ArcDelayCalc *arc_delay_calc);
|
||||||
|
void annotateLoadDelays(Vertex *drvr_vertex,
|
||||||
|
const RiseFall *drvr_rf,
|
||||||
|
const ArcDelay &extra_delay,
|
||||||
|
bool merge,
|
||||||
|
const DcalcAnalysisPt *dcalc_ap,
|
||||||
|
ArcDelayCalc *arc_delay_calc);
|
||||||
|
void findLatchEdgeDelays(Edge *edge);
|
||||||
|
void findCheckEdgeDelays(Edge *edge,
|
||||||
|
ArcDelayCalc *arc_delay_calc);
|
||||||
|
void findMultiDrvrGateDelay(MultiDrvrNet *multi_drvr,
|
||||||
|
const RiseFall *drvr_rf,
|
||||||
|
const Pvt *pvt,
|
||||||
|
const DcalcAnalysisPt *dcalc_ap,
|
||||||
|
ArcDelayCalc *arc_delay_calc,
|
||||||
|
// Return values.
|
||||||
|
ArcDelay ¶llel_delay,
|
||||||
|
Slew ¶llel_slew);
|
||||||
|
void parallelGateDelay(MultiDrvrNet *multi_drvr,
|
||||||
|
LibertyCell *drvr_cell,
|
||||||
|
const Pin *drvr_pin,
|
||||||
|
TimingArc *arc,
|
||||||
|
const Pvt *pvt,
|
||||||
|
const DcalcAnalysisPt *dcalc_ap,
|
||||||
|
const Slew from_slew,
|
||||||
|
Parasitic *drvr_parasitic,
|
||||||
|
float related_out_cap,
|
||||||
|
ArcDelayCalc *arc_delay_calc,
|
||||||
|
// Return values.
|
||||||
|
ArcDelay &gate_delay,
|
||||||
|
Slew &gate_slew);
|
||||||
|
void deleteMultiDrvrNets();
|
||||||
|
Slew edgeFromSlew(const Vertex *from_vertex,
|
||||||
|
const RiseFall *from_rf,
|
||||||
|
const Edge *edge,
|
||||||
|
const DcalcAnalysisPt *dcalc_ap);
|
||||||
|
Slew checkEdgeClkSlew(const Vertex *from_vertex,
|
||||||
|
const RiseFall *from_rf,
|
||||||
|
const DcalcAnalysisPt *dcalc_ap);
|
||||||
|
bool bidirectDrvrSlewFromLoad(const Vertex *vertex) const;
|
||||||
|
MultiDrvrNet *multiDrvrNet(const Vertex *drvr_vertex) const;
|
||||||
|
void loadCap(const Parasitic *drvr_parasitic,
|
||||||
|
bool has_set_load,
|
||||||
|
// Return values.
|
||||||
|
float &pin_cap,
|
||||||
|
float &wire_cap) const;
|
||||||
|
float loadCap(const Pin *drvr_pin,
|
||||||
|
MultiDrvrNet *multi_drvr,
|
||||||
|
const Parasitic *drvr_parasitic,
|
||||||
|
const RiseFall *rf,
|
||||||
|
const DcalcAnalysisPt *dcalc_ap) const;
|
||||||
|
|
||||||
|
// Observer for edge delay changes.
|
||||||
|
DelayCalcObserver *observer_;
|
||||||
|
bool delays_seeded_;
|
||||||
|
bool incremental_;
|
||||||
|
bool delays_exist_;
|
||||||
|
// Vertices with invalid -to delays.
|
||||||
|
VertexSet *invalid_delays_;
|
||||||
|
// Timing check edges with invalid delays.
|
||||||
|
EdgeSet invalid_check_edges_;
|
||||||
|
// Latch D->Q edges with invalid delays.
|
||||||
|
EdgeSet invalid_latch_edges_;
|
||||||
|
// shared by invalid_check_edges_ and invalid_latch_edges_
|
||||||
|
std::mutex invalid_edge_lock_;
|
||||||
|
SearchPred *search_pred_;
|
||||||
|
SearchPred *search_non_latch_pred_;
|
||||||
|
SearchPred *clk_pred_;
|
||||||
|
BfsFwdIterator *iter_;
|
||||||
|
MultiDrvrNetMap multi_drvr_net_map_;
|
||||||
|
bool multi_drvr_nets_found_;
|
||||||
|
// Percentage (0.0:1.0) change in delay that causes downstream
|
||||||
|
// delays to be recomputed during incremental delay calculation.
|
||||||
|
float incremental_delay_tolerance_;
|
||||||
|
|
||||||
|
friend class FindVertexDelays;
|
||||||
|
friend class MultiDrvrNet;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Abstract base class for edge delay change observer.
|
// Abstract base class for edge delay change observer.
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,8 @@ class MinPulseWidthCheck;
|
||||||
class MinPeriodCheck;
|
class MinPeriodCheck;
|
||||||
class MaxSkewCheck;
|
class MaxSkewCheck;
|
||||||
class CharPtrLess;
|
class CharPtrLess;
|
||||||
|
class SearchPred;
|
||||||
|
class BfsFwdIterator;
|
||||||
|
|
||||||
// Tag compare using tag matching (tagMatch) critera.
|
// Tag compare using tag matching (tagMatch) critera.
|
||||||
class TagMatchLess
|
class TagMatchLess
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
#include "PortDirection.hh"
|
#include "PortDirection.hh"
|
||||||
#include "Corner.hh"
|
#include "Corner.hh"
|
||||||
#include "DcalcAnalysisPt.hh"
|
#include "DcalcAnalysisPt.hh"
|
||||||
#include "dcalc/GraphDelayCalc1.hh"
|
#include "GraphDelayCalc.hh"
|
||||||
#include "Sdc.hh"
|
#include "Sdc.hh"
|
||||||
#include "StaState.hh"
|
#include "StaState.hh"
|
||||||
#include "Graph.hh"
|
#include "Graph.hh"
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
#include "parasitics/ReportParasiticAnnotation.hh"
|
#include "parasitics/ReportParasiticAnnotation.hh"
|
||||||
#include "DelayCalc.hh"
|
#include "DelayCalc.hh"
|
||||||
#include "ArcDelayCalc.hh"
|
#include "ArcDelayCalc.hh"
|
||||||
#include "dcalc/GraphDelayCalc1.hh"
|
#include "GraphDelayCalc.hh"
|
||||||
#include "sdf/SdfWriter.hh"
|
#include "sdf/SdfWriter.hh"
|
||||||
#include "Levelize.hh"
|
#include "Levelize.hh"
|
||||||
#include "Sim.hh"
|
#include "Sim.hh"
|
||||||
|
|
@ -414,7 +414,7 @@ Sta::makeArcDelayCalc()
|
||||||
void
|
void
|
||||||
Sta::makeGraphDelayCalc()
|
Sta::makeGraphDelayCalc()
|
||||||
{
|
{
|
||||||
graph_delay_calc_ = new GraphDelayCalc1(this);
|
graph_delay_calc_ = new GraphDelayCalc(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue