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-04-05 23:53:44 +02:00
|
|
|
#include "PortExtCap.hh"
|
2018-09-28 17:54:21 +02:00
|
|
|
|
|
|
|
|
namespace sta {
|
|
|
|
|
|
2023-01-19 19:23:45 +01:00
|
|
|
PortExtCap::PortExtCap(const Port *port) :
|
2018-09-28 17:54:21 +02:00
|
|
|
port_(port)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
2019-11-11 23:30:19 +01:00
|
|
|
PortExtCap::pinCap(const RiseFall *rf,
|
2018-09-28 17:54:21 +02:00
|
|
|
const MinMax *min_max,
|
|
|
|
|
// Return values.
|
|
|
|
|
float &cap,
|
|
|
|
|
bool &exists)
|
|
|
|
|
{
|
2019-11-11 23:30:19 +01:00
|
|
|
pin_cap_.value(rf, min_max, cap, exists);
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
PortExtCap::setPinCap(float cap,
|
2019-11-11 23:30:19 +01:00
|
|
|
const RiseFall *rf,
|
2018-09-28 17:54:21 +02:00
|
|
|
const MinMax *min_max)
|
|
|
|
|
{
|
2019-11-11 23:30:19 +01:00
|
|
|
pin_cap_.setValue(rf, min_max, cap);
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
2019-11-11 23:30:19 +01:00
|
|
|
PortExtCap::wireCap(const RiseFall *rf,
|
2018-09-28 17:54:21 +02:00
|
|
|
const MinMax *min_max,
|
|
|
|
|
// Return values.
|
|
|
|
|
float &cap,
|
|
|
|
|
bool &exists)
|
|
|
|
|
{
|
2019-11-11 23:30:19 +01:00
|
|
|
wire_cap_.value(rf, min_max, cap, exists);
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
PortExtCap::setWireCap(float cap,
|
2019-11-11 23:30:19 +01:00
|
|
|
const RiseFall *rf,
|
2018-09-28 17:54:21 +02:00
|
|
|
const MinMax *min_max)
|
|
|
|
|
{
|
2019-11-11 23:30:19 +01:00
|
|
|
wire_cap_.setValue(rf, min_max, cap);
|
2018-09-28 17:54:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
PortExtCap::setFanout(int fanout,
|
|
|
|
|
const MinMax *min_max)
|
|
|
|
|
{
|
|
|
|
|
fanout_.setValue(min_max, fanout);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
PortExtCap::fanout(const MinMax *min_max,
|
|
|
|
|
// Return values.
|
|
|
|
|
int &fanout,
|
|
|
|
|
bool &exists)
|
|
|
|
|
{
|
|
|
|
|
fanout_.value(min_max, fanout, exists);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace
|