From b405ef2a6bff1e0eb06b947df5cc87f8edb515f9 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Fri, 22 Oct 2021 15:45:18 -0700 Subject: [PATCH] InputDrive::driveCell init from/to_port return values Signed-off-by: James Cherry --- include/sta/InputDrive.hh | 1 + sdc/InputDrive.cc | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/sta/InputDrive.hh b/include/sta/InputDrive.hh index 286c12b7..606f09de 100644 --- a/include/sta/InputDrive.hh +++ b/include/sta/InputDrive.hh @@ -57,6 +57,7 @@ public: const MinMaxAll *min_max); void driveCell(const RiseFall *rf, const MinMax *min_max, + // Return values. LibertyCell *&cell, LibertyPort *&from_port, float *&from_slews, diff --git a/sdc/InputDrive.cc b/sdc/InputDrive.cc index 9bcbbdf8..c451d90b 100644 --- a/sdc/InputDrive.cc +++ b/sdc/InputDrive.cc @@ -108,6 +108,7 @@ InputDrive::setDriveCell(LibertyLibrary *library, void InputDrive::driveCell(const RiseFall *rf, const MinMax *min_max, + // Return values. LibertyCell *&cell, LibertyPort *&from_port, float *&from_slews, @@ -120,8 +121,12 @@ InputDrive::driveCell(const RiseFall *rf, from_slews = drive->fromSlews(); to_port = drive->toPort(); } - else + else { cell = nullptr; + from_port = nullptr; + from_slews = nullptr; + to_port = nullptr; + } } InputDriveCell *