Files
OpenSTA/dcalc/UnitDelayCalc.cc
James Cherry 03afb36d01 ArcDelayCalc api update for multiple drivers
commit a78442d7d6672bfcbea5f5007803ab27891b9eab
Author: James Cherry <cherry@parallaxsw.com>
Date:   Sun Jan 7 13:40:02 2024 -0700

    rm OutputWaveforms::currentVoltage

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 074e1c93d4957425c0f2a3afdfce8f0e06ff98a1
Author: James Cherry <cherry@parallaxsw.com>
Date:   Wed Dec 13 16:49:08 2023 -0700

    MultiDrvrNet remove instead of update

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 0f6deec2ffcbe85a1c473525b93f6a6514692181
Author: James Cherry <cherry@parallaxsw.com>
Date:   Wed Dec 13 16:43:24 2023 -0700

    MultiDrvrNet remove instead of update

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 2f5f48fe09bacd101d1e909f45e087ba8c620561
Author: James Cherry <cherry@parallaxsw.com>
Date:   Mon Dec 11 09:24:54 2023 -0700

    compile errors

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit e8fc4292e325f7ac10bd8e5d57b5a8111abb05ed
Author: James Cherry <cherry@parallaxsw.com>
Date:   Sat Dec 9 18:25:04 2023 -0700

    ArcDcalcWaveforms

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit be114b10adca194d80ac9529e8635c11ed9c1c32
Author: James Cherry <cherry@parallaxsw.com>
Date:   Sat Dec 9 11:34:59 2023 -0700

    GraphDelayCalc::findDriverArcDelays

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 7b71e137b088c1293e628e594dde6a8223927ee8
Author: James Cherry <cherry@parallaxsw.com>
Date:   Sat Dec 9 10:39:30 2023 -0700

    GraphDelayCalc::findDriverArcDelays

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit b13a791cd57c5b9f9b454b3cf22959fbe3b9667e
Author: James Cherry <cherry@parallaxsw.com>
Date:   Fri Dec 8 13:14:09 2023 -0700

    unused arg

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit abf90ca7c08fd349cfb68554bdeae5a9c3b91a23
Author: James Cherry <cherry@parallaxsw.com>
Date:   Fri Dec 8 13:12:52 2023 -0700

    unused arg

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 6bda70448ef133586594503d78b8838421f7a52d
Author: James Cherry <cherry@parallaxsw.com>
Date:   Fri Dec 8 13:10:04 2023 -0700

    gateDelay rm pvt arg

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 2f51ed07fa14f039a048c3a146ca1b017fb45f16
Author: James Cherry <cherry@parallaxsw.com>
Date:   Fri Dec 8 10:24:57 2023 -0700

    dcalc api

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 362950b9d9aa52f3c331c1007a6ee6a34140812e
Author: James Cherry <cherry@parallaxsw.com>
Date:   Wed Dec 6 17:00:45 2023 -0700

    ArcDcalcResult gateDelay

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 91f1307ac04752e00dfde42b34e84f66fdb60a57
Author: James Cherry <cherry@parallaxsw.com>
Date:   Mon Dec 4 17:22:40 2023 -0700

    ArcDcalcArg/Result

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 74d289e450edf54b1a9215b92c85b1d6a011820d
Author: James Cherry <cherry@parallaxsw.com>
Date:   Fri Dec 1 17:45:04 2023 -0700

    multi drvr init

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit c956838aba74c2f27280253f0452e0350bb05c33
Author: James Cherry <cherry@parallaxsw.com>
Date:   Fri Dec 1 12:10:23 2023 -0800

    arc dcalc api

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 5aa2c42833e5f68e901d4ac61d8bef426252e5ab
Author: James Cherry <cherry@parallaxsw.com>
Date:   Thu Nov 30 15:42:43 2023 -0800

    dcalc api

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 434327b7d80fdf8fe3410390c88b299b46e9139b
Author: James Cherry <cherry@parallaxsw.com>
Date:   Thu Nov 30 11:36:21 2023 -0800

    arc api

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 263e1dee49d7133653fbe0bad9b8243ba5259548
Author: James Cherry <cherry@parallaxsw.com>
Date:   Wed Nov 29 18:48:32 2023 -0800

    ArcDelayCalc api

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit a9f05513c09564d75cb377a5a89399a250ab5d6b
Author: James Cherry <cherry@parallaxsw.com>
Date:   Mon Nov 27 10:48:59 2023 -0800

    ArcDelayCalc api

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

Signed-off-by: James Cherry <cherry@parallaxsw.com>
2024-01-07 13:44:04 -07:00

145 lines
3.6 KiB
C++

// 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/>.
#include "UnitDelayCalc.hh"
#include "Units.hh"
namespace sta {
ArcDelayCalc *
makeUnitDelayCalc(StaState *sta)
{
return new UnitDelayCalc(sta);
}
UnitDelayCalc::UnitDelayCalc(StaState *sta) :
ArcDelayCalc(sta)
{
}
ArcDelayCalc *
UnitDelayCalc::copy()
{
return new UnitDelayCalc(this);
}
Parasitic *
UnitDelayCalc::findParasitic(const Pin *,
const RiseFall *,
const DcalcAnalysisPt *)
{
return nullptr;
}
ArcDcalcResult
UnitDelayCalc::inputPortDelay(const Pin *,
float,
const RiseFall *,
const Parasitic *,
const LoadPinIndexMap &load_pin_index_map,
const DcalcAnalysisPt *)
{
return unitDelayResult(load_pin_index_map);
}
ArcDcalcResult
UnitDelayCalc::gateDelay(const Pin *,
const TimingArc *,
const Slew &,
float,
const Parasitic *,
const LoadPinIndexMap &load_pin_index_map,
const DcalcAnalysisPt *)
{
return unitDelayResult(load_pin_index_map);
}
ArcDcalcResultSeq
UnitDelayCalc::gateDelays(ArcDcalcArgSeq &dcalc_args,
float,
const LoadPinIndexMap &load_pin_index_map,
const DcalcAnalysisPt *)
{
size_t drvr_count = dcalc_args.size();
ArcDcalcResultSeq dcalc_results(drvr_count);
for (size_t drvr_idx = 0; drvr_idx < drvr_count; drvr_idx++) {
ArcDcalcResult &dcalc_result = dcalc_results[drvr_idx];
dcalc_result = unitDelayResult(load_pin_index_map);
}
return dcalc_results;
}
ArcDcalcResult
UnitDelayCalc::unitDelayResult(const LoadPinIndexMap &load_pin_index_map)
{
size_t load_count = load_pin_index_map.size();
ArcDcalcResult dcalc_result(load_count);
dcalc_result.setGateDelay(units_->timeUnit()->scale());
dcalc_result.setDrvrSlew(0.0);
for (size_t load_idx = 0; load_idx < load_count; load_idx++) {
dcalc_result.setWireDelay(load_idx, 0.0);
dcalc_result.setLoadSlew(load_idx, 0.0);
}
return dcalc_result;
}
string
UnitDelayCalc::reportGateDelay(const Pin *,
const TimingArc *,
const Slew &,
float,
const Parasitic *,
const LoadPinIndexMap &,
const DcalcAnalysisPt *,
int)
{
string result("Delay = 1.0\n");
result += "Slew = 0.0\n";
return result;
}
ArcDelay
UnitDelayCalc::checkDelay(const Pin *,
const TimingArc *,
const Slew &,
const Slew &,
float,
const DcalcAnalysisPt *)
{
return units_->timeUnit()->scale();
}
string
UnitDelayCalc::reportCheckDelay(const Pin *,
const TimingArc *,
const Slew &,
const char *,
const Slew &,
float,
const DcalcAnalysisPt *,
int)
{
return "Check = 1.0\n";
}
void
UnitDelayCalc::finishDrvrPin()
{
}
} // namespace