2018-09-28 17:54:21 +02:00
|
|
|
// OpenSTA, Static Timing Analyzer
|
2024-01-12 01:34:49 +01:00
|
|
|
// Copyright (c) 2024, Parallax Software, Inc.
|
2018-09-28 17:54:21 +02:00
|
|
|
//
|
|
|
|
|
// 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
|
2022-01-04 18:17:08 +01:00
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2018-09-28 17:54:21 +02:00
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU General Public License
|
2022-01-04 18:17:08 +01:00
|
|
|
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2018-09-28 17:54:21 +02:00
|
|
|
|
2020-02-16 01:13:16 +01:00
|
|
|
#pragma once
|
2018-09-28 17:54:21 +02:00
|
|
|
|
2023-11-19 18:04:45 +01:00
|
|
|
#include "ParallelDelayCalc.hh"
|
2018-09-28 17:54:21 +02:00
|
|
|
|
|
|
|
|
namespace sta {
|
|
|
|
|
|
|
|
|
|
// Liberty table model lumped capacitance arc delay calculator.
|
|
|
|
|
// Wire delays are zero.
|
2023-11-19 18:04:45 +01:00
|
|
|
class LumpedCapDelayCalc : public ParallelDelayCalc
|
2018-09-28 17:54:21 +02:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
LumpedCapDelayCalc(StaState *sta);
|
2023-03-24 23:15:57 +01:00
|
|
|
ArcDelayCalc *copy() override;
|
|
|
|
|
Parasitic *findParasitic(const Pin *drvr_pin,
|
|
|
|
|
const RiseFall *rf,
|
|
|
|
|
const DcalcAnalysisPt *dcalc_ap) override;
|
2024-01-28 05:34:38 +01:00
|
|
|
ReducedParasiticType reducedParasiticType() const override;
|
2024-01-07 21:44:04 +01:00
|
|
|
ArcDcalcResult inputPortDelay(const Pin *port_pin,
|
|
|
|
|
float in_slew,
|
|
|
|
|
const RiseFall *rf,
|
|
|
|
|
const Parasitic *parasitic,
|
|
|
|
|
const LoadPinIndexMap &load_pin_index_map,
|
|
|
|
|
const DcalcAnalysisPt *dcalc_ap) override;
|
|
|
|
|
ArcDcalcResult gateDelay(const Pin *drvr_pin,
|
|
|
|
|
const TimingArc *arc,
|
|
|
|
|
const Slew &in_slew,
|
|
|
|
|
float load_cap,
|
|
|
|
|
const Parasitic *parasitic,
|
|
|
|
|
const LoadPinIndexMap &load_pin_index_map,
|
|
|
|
|
const DcalcAnalysisPt *dcalc_ap) override;
|
|
|
|
|
string reportGateDelay(const Pin *drvr_pin,
|
|
|
|
|
const TimingArc *arc,
|
2023-03-24 23:15:57 +01:00
|
|
|
const Slew &in_slew,
|
|
|
|
|
float load_cap,
|
2024-01-07 21:44:04 +01:00
|
|
|
const Parasitic *parasitic,
|
|
|
|
|
const LoadPinIndexMap &load_pin_index_map,
|
2023-03-24 23:15:57 +01:00
|
|
|
const DcalcAnalysisPt *dcalc_ap,
|
|
|
|
|
int digits) override;
|
2018-09-28 17:54:21 +02:00
|
|
|
|
|
|
|
|
protected:
|
2024-01-07 21:44:04 +01:00
|
|
|
ArcDcalcResult makeResult(const LibertyLibrary *drvr_library,
|
|
|
|
|
const RiseFall *rf,
|
|
|
|
|
ArcDelay gate_delay,
|
|
|
|
|
Slew drvr_slew,
|
|
|
|
|
const LoadPinIndexMap &load_pin_index_map);
|
2018-09-28 17:54:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ArcDelayCalc *
|
|
|
|
|
makeLumpedCapDelayCalc(StaState *sta);
|
|
|
|
|
|
|
|
|
|
} // namespace
|