Files
OpenSTA/include/sta/TableModel.hh
T

547 lines
19 KiB
C++
Raw Normal View History

2018-09-28 08:54:21 -07:00
// OpenSTA, Static Timing Analyzer
2026-03-10 13:21:17 -07:00
// Copyright (c) 2026, Parallax Software, Inc.
2018-09-28 08:54:21 -07: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 10:17:08 -07:00
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2018-09-28 08:54:21 -07:00
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
2022-01-04 10:17:08 -07:00
// along with this program. If not, see <https://www.gnu.org/licenses/>.
2025-01-21 18:54:33 -07:00
//
// The origin of this software must not be misrepresented; you must not
// claim that you wrote the original software.
//
// Altered source versions must be plainly marked as such, and must not be
// misrepresented as being the original software.
//
// This notice may not be removed or altered from any source distribution.
2018-09-28 08:54:21 -07:00
2020-02-15 17:13:16 -07:00
#pragma once
2018-09-28 08:54:21 -07:00
2026-02-04 18:33:04 -07:00
#include <array>
2022-06-25 16:31:18 -07:00
#include <memory>
2026-02-04 18:33:04 -07:00
#include <string>
2026-03-28 19:13:35 -07:00
#include <string_view>
2026-01-03 16:59:35 -08:00
#include <vector>
2022-06-25 16:31:18 -07:00
2020-04-05 14:53:44 -07:00
#include "LibertyClass.hh"
2026-04-15 09:38:10 -07:00
#include "MinMax.hh"
2020-04-05 14:53:44 -07:00
#include "TimingModel.hh"
2026-04-15 09:38:10 -07:00
#include "Transition.hh"
2026-03-13 14:06:35 -07:00
#include "Variables.hh"
2018-09-28 08:54:21 -07:00
namespace sta {
class Unit;
class Units;
class Report;
2026-03-13 14:06:35 -07:00
class TableModels;
2018-09-28 08:54:21 -07:00
class Table;
2026-02-04 18:33:04 -07:00
class TableModel;
class TableAxis;
2023-03-22 09:57:54 -07:00
class OutputWaveforms;
2023-02-08 09:23:24 -07:00
2026-01-03 16:59:35 -08:00
using FloatSeq = std::vector<float>;
2026-02-04 18:33:04 -07:00
using FloatTable = std::vector<FloatSeq>;
// Sequence of 1D tables (order 1).
using Table1Seq = std::vector<Table*>;
using Waveform = Table;
2026-02-27 16:57:08 -08:00
using TableModelsEarlyLate = std::array<TableModel*, EarlyLate::index_count>;
2018-09-28 08:54:21 -07:00
TableAxisVariable
2026-03-28 19:13:35 -07:00
stringTableAxisVariable(std::string_view variable);
std::string_view
2018-09-28 08:54:21 -07:00
tableVariableString(TableAxisVariable variable);
const Unit *
tableVariableUnit(TableAxisVariable variable,
2026-01-03 16:59:35 -08:00
const Units *units);
2018-09-28 08:54:21 -07:00
class GateTableModel : public GateTimingModel
{
public:
2023-11-19 10:04:45 -07:00
GateTableModel(LibertyCell *cell,
2026-03-13 14:06:35 -07:00
TableModels *delay_models,
TableModels *slew_models,
2023-02-08 09:23:24 -07:00
ReceiverModelPtr receiver_model,
2023-03-22 09:57:54 -07:00
OutputWaveforms *output_waveforms);
2026-02-27 16:57:08 -08:00
GateTableModel(LibertyCell *cell,
2026-03-13 14:06:35 -07:00
TableModels *delay_models,
TableModels *slew_models);
2023-11-19 10:04:45 -07:00
void gateDelay(const Pvt *pvt,
2023-03-24 15:15:57 -07:00
float in_slew,
float load_cap,
// Return values.
2026-03-13 14:06:35 -07:00
float &gate_delay,
float &drvr_slew) const override;
// Fill in pocv parameters in gate_delay, drvr_slew.
void gateDelayPocv(const Pvt *pvt,
float in_slew,
float load_cap,
const MinMax *min_max,
PocvMode pocv_mode,
// Return values.
ArcDelay &gate_delay,
Slew &drvr_slew) const override;
2025-05-22 09:25:56 -07:00
std::string reportGateDelay(const Pvt *pvt,
float in_slew,
float load_cap,
2026-03-13 14:06:35 -07:00
const MinMax *min_max,
PocvMode pocv_mode,
2025-05-22 09:25:56 -07:00
int digits) const override;
2023-11-19 10:04:45 -07:00
float driveResistance(const Pvt *pvt) const override;
2026-04-13 14:58:16 -07:00
void setIsScaled(bool is_scaled) override;
2018-09-28 08:54:21 -07:00
2026-03-13 14:06:35 -07:00
const TableModels *delayModels() const { return delay_models_.get(); }
const TableModel *delayModel() const;
const TableModels *slewModels() const { return slew_models_.get(); }
const TableModel *slewModel() const;
2023-12-13 14:41:59 -07:00
const ReceiverModel *receiverModel() const { return receiver_model_.get(); }
2026-02-04 18:33:04 -07:00
OutputWaveforms *outputWaveforms() const { return output_waveforms_.get(); }
2018-09-28 08:54:21 -07:00
// Check the axes before making the model.
// Return true if the model axes are supported.
2026-02-27 16:57:08 -08:00
static bool checkAxes(const TableModel *table);
2018-09-28 08:54:21 -07:00
protected:
2023-11-19 10:04:45 -07:00
void maxCapSlew(float in_slew,
2026-01-03 16:59:35 -08:00
const Pvt *pvt,
float &slew,
float &cap) const;
2023-12-12 15:32:30 -07:00
float axisValue(const TableAxis *axis,
2026-01-03 16:59:35 -08:00
float in_slew,
2026-04-13 14:58:16 -07:00
float load_cap,
2026-01-03 16:59:35 -08:00
float related_out_cap) const;
2023-11-19 10:04:45 -07:00
float findValue(const Pvt *pvt,
2026-01-03 16:59:35 -08:00
const TableModel *model,
float in_slew,
float load_cap,
float related_out_cap) const;
2026-03-28 19:13:35 -07:00
std::string reportTableLookup(std::string_view result_name,
2025-05-22 09:25:56 -07:00
const Pvt *pvt,
const TableModel *model,
float in_slew,
float load_cap,
float related_out_cap,
int digits) const;
2018-09-28 08:54:21 -07:00
void findAxisValues(const TableModel *model,
2026-01-03 16:59:35 -08:00
float in_slew,
float load_cap,
float related_out_cap,
// Return values.
float &axis_value1,
float &axis_value2,
float &axis_value3) const;
2023-12-12 15:32:30 -07:00
static bool checkAxis(const TableAxis *axis);
2018-09-28 08:54:21 -07:00
2026-03-13 14:06:35 -07:00
std::unique_ptr<TableModels> delay_models_;
std::unique_ptr<TableModels> slew_models_;
2023-02-08 09:23:24 -07:00
ReceiverModelPtr receiver_model_;
2026-02-04 18:33:04 -07:00
std::unique_ptr<OutputWaveforms> output_waveforms_;
2018-09-28 08:54:21 -07:00
};
class CheckTableModel : public CheckTimingModel
{
public:
2026-01-03 16:59:35 -08:00
CheckTableModel(LibertyCell *cell,
2026-03-13 14:06:35 -07:00
TableModels *check_models);
ArcDelay checkDelay(const Pvt *pvt,
float from_slew,
float to_slew,
float related_out_cap,
2026-03-13 14:06:35 -07:00
const MinMax *min_max,
PocvMode pocv_mode) const override;
2025-05-22 09:25:56 -07:00
std::string reportCheckDelay(const Pvt *pvt,
float from_slew,
2026-03-28 19:13:35 -07:00
std::string_view from_slew_annotation,
2025-05-22 09:25:56 -07:00
float to_slew,
float related_out_cap,
2026-03-13 14:06:35 -07:00
const MinMax *min_max,
PocvMode pocv_mode,
2025-05-22 09:25:56 -07:00
int digits) const override;
2026-03-13 14:06:35 -07:00
const TableModels *checkModels() const { return check_models_.get(); }
const TableModel *checkModel() const;
2026-04-13 14:58:16 -07:00
void setIsScaled(bool is_scaled) override;
2018-09-28 08:54:21 -07:00
// Check the axes before making the model.
// Return true if the model axes are supported.
2026-02-27 16:57:08 -08:00
static bool checkAxes(const TableModel *table);
2018-09-28 08:54:21 -07:00
protected:
2023-11-19 10:04:45 -07:00
float findValue(const Pvt *pvt,
2026-01-03 16:59:35 -08:00
const TableModel *model,
float from_slew,
float to_slew,
float related_out_cap) const;
2018-09-28 08:54:21 -07:00
void findAxisValues(float from_slew,
2026-01-03 16:59:35 -08:00
float to_slew,
float related_out_cap,
// Return values.
float &axis_value1,
float &axis_value2,
float &axis_value3) const;
2023-12-12 15:32:30 -07:00
float axisValue(const TableAxis *axis,
2026-04-13 14:58:16 -07:00
float from_slew,
float to_slew,
2026-01-03 16:59:35 -08:00
float related_out_cap) const;
2026-03-28 19:13:35 -07:00
std::string reportTableDelay(std::string_view result_name,
2025-05-22 09:25:56 -07:00
const Pvt *pvt,
const TableModel *model,
float from_slew,
2026-03-28 19:13:35 -07:00
std::string_view from_slew_annotation,
2025-05-22 09:25:56 -07:00
float to_slew,
float related_out_cap,
int digits) const;
2023-12-12 15:32:30 -07:00
static bool checkAxis(const TableAxis *axis);
2018-09-28 08:54:21 -07:00
2026-03-13 14:06:35 -07:00
std::unique_ptr<TableModels> check_models_;
2026-02-04 18:33:04 -07:00
};
class TableAxis
{
public:
TableAxis(TableAxisVariable variable,
FloatSeq &&values);
TableAxisVariable variable() const { return variable_; }
2026-03-28 19:13:35 -07:00
std::string_view variableString() const;
2026-02-04 18:33:04 -07:00
const Unit *unit(const Units *units);
size_t size() const { return values_.size(); }
bool inBounds(float value) const;
float axisValue(size_t index) const { return values_[index]; }
// Find the index for value such that axis[index] <= value < axis[index+1].
size_t findAxisIndex(float value) const;
void findAxisIndex(float value,
// Return values.
size_t &index,
bool &exists) const;
size_t findAxisClosestIndex(float value) const;
const FloatSeq &values() const { return values_; }
float min() const;
float max() const;
private:
TableAxisVariable variable_;
FloatSeq values_;
};
// 0, 1, 2, or 3 dimension float tables.
class Table
{
public:
Table();
explicit Table(float value);
Table(FloatSeq *values,
TableAxisPtr axis1);
Table(FloatSeq &&values,
TableAxisPtr axis1);
Table(FloatTable &&values,
TableAxisPtr axis1,
TableAxisPtr axis2);
Table(FloatTable &&values,
TableAxisPtr axis1,
TableAxisPtr axis2,
TableAxisPtr axis3);
2026-04-13 14:58:16 -07:00
Table(Table &&table) noexcept;
2026-02-04 18:33:04 -07:00
Table(const Table &table);
2026-04-13 14:58:16 -07:00
Table &operator=(Table &&table) noexcept;
2026-02-04 18:33:04 -07:00
2026-04-13 14:58:16 -07:00
void setIsScaled(bool is_scaled);
2026-02-04 18:33:04 -07:00
void setScaleFactorType(ScaleFactorType type);
int order() const { return order_; }
const TableAxis *axis1() const { return axis1_.get(); }
const TableAxis *axis2() const { return axis2_.get(); }
const TableAxis *axis3() const { return axis3_.get(); }
2026-04-13 14:58:16 -07:00
TableAxisPtr axis1ptr() const { return axis1_; }
TableAxisPtr axis2ptr() const { return axis2_; }
TableAxisPtr axis3ptr() const { return axis3_; }
2026-02-04 18:33:04 -07:00
float value(size_t axis_idx1,
size_t axis_idx2,
size_t axis_idx3) const;
// Single-index value (order 1 only).
float value(size_t index1) const;
// Two-index value (order 2 and 3).
float value(size_t axis_index1,
size_t axis_index2) const;
// Table interpolated lookup.
float findValue(float axis_value1,
float axis_value2,
float axis_value3) const;
// One-argument lookup (order 1).
void findValue(float axis_value1,
float &value,
bool &extrapolated) const;
float findValue(float axis_value1) const;
float findValueClip(float axis_value1) const;
// Table interpolated lookup with scale factor.
float findValue(const LibertyLibrary *library,
const LibertyCell *cell,
const Pvt *pvt,
float axis_value1,
float axis_value2,
float axis_value3) const;
2026-03-28 19:13:35 -07:00
std::string reportValue(std::string_view result_name,
2026-02-04 18:33:04 -07:00
const LibertyCell *cell,
const Pvt *pvt,
float value1,
2026-03-28 19:13:35 -07:00
std::string_view comment1,
2026-02-04 18:33:04 -07:00
float value2,
float value3,
const Unit *table_unit,
int digits) const;
void report(const Units *units,
Report *report) const;
// Order 1: pointer to value sequence (nullptr if not order 1).
FloatSeq *values() const;
// Order 2 and 3: pointer to value table (nullptr otherwise).
FloatTable *values3();
const FloatTable *values3() const;
private:
void clear();
2026-03-13 14:06:35 -07:00
float findValueOrder2(float axis_value1, float axis_value2) const;
float findValueOrder3(float axis_value1, float axis_value2, float axis_value3) const;
2026-03-28 19:13:35 -07:00
std::string reportValueOrder0(std::string_view result_name,
std::string_view comment1,
2026-02-04 18:33:04 -07:00
const Unit *table_unit,
int digits) const;
2026-03-28 19:13:35 -07:00
std::string reportValueOrder1(std::string_view result_name,
2026-02-04 18:33:04 -07:00
const LibertyCell *cell,
float value1,
2026-03-28 19:13:35 -07:00
std::string_view comment1,
2026-02-04 18:33:04 -07:00
float value2,
float value3,
const Unit *table_unit,
int digits) const;
2026-03-28 19:13:35 -07:00
std::string reportValueOrder2(std::string_view result_name,
2026-02-04 18:33:04 -07:00
const LibertyCell *cell,
float value1,
2026-03-28 19:13:35 -07:00
std::string_view comment1,
2026-02-04 18:33:04 -07:00
float value2,
float value3,
const Unit *table_unit,
int digits) const;
2026-03-28 19:13:35 -07:00
std::string reportValueOrder3(std::string_view result_name,
2026-02-04 18:33:04 -07:00
const LibertyCell *cell,
float value1,
2026-03-28 19:13:35 -07:00
std::string_view comment1,
2026-02-04 18:33:04 -07:00
float value2,
float value3,
const Unit *table_unit,
int digits) const;
int order_;
float value_; // order 0 only
FloatSeq values1_; // order 1 only
FloatTable values_table_; // order 2 and 3
TableAxisPtr axis1_;
TableAxisPtr axis2_;
TableAxisPtr axis3_;
2018-09-28 08:54:21 -07:00
};
// Wrapper class for Table to apply scale factors.
class TableModel
{
public:
2026-02-04 18:33:04 -07:00
TableModel();
2023-01-18 10:23:03 -07:00
TableModel(TablePtr table,
2022-06-06 20:57:09 -07:00
TableTemplate *tbl_template,
2026-01-03 16:59:35 -08:00
ScaleFactorType scale_factor_type,
const RiseFall *rf);
2018-09-28 08:54:21 -07:00
void setScaleFactorType(ScaleFactorType type);
int order() const;
2022-06-06 20:57:09 -07:00
TableTemplate *tblTemplate() const { return tbl_template_; }
2026-02-04 18:33:04 -07:00
const TablePtr &table() const { return table_; }
ScaleFactorType scaleFactorType() const;
int rfIndex() const { return rf_index_; }
2023-12-12 15:32:30 -07:00
const TableAxis *axis1() const;
const TableAxis *axis2() const;
const TableAxis *axis3() const;
2018-09-28 08:54:21 -07:00
void setIsScaled(bool is_scaled);
2022-06-06 20:57:09 -07:00
float value(size_t index1,
size_t index2,
size_t index3) const;
2018-09-28 08:54:21 -07:00
// Table interpolated lookup.
float findValue(float value1,
2026-01-03 16:59:35 -08:00
float value2,
float value3) const;
2018-09-28 08:54:21 -07:00
// Table interpolated lookup with scale factor.
2023-11-19 10:04:45 -07:00
float findValue(const LibertyCell *cell,
2026-01-03 16:59:35 -08:00
const Pvt *pvt,
float value1,
float value2,
float value3) const;
2026-03-28 19:13:35 -07:00
std::string reportValue(std::string_view result_name,
2025-05-22 09:25:56 -07:00
const LibertyCell *cell,
const Pvt *pvt,
float value1,
2026-03-28 19:13:35 -07:00
std::string_view comment1,
2025-05-22 09:25:56 -07:00
float value2,
float value3,
const Unit *table_unit,
int digits) const;
std::string report(const Units *units,
Report *report) const;
2018-09-28 08:54:21 -07:00
protected:
2023-11-19 10:04:45 -07:00
float scaleFactor(const LibertyCell *cell,
2026-01-03 16:59:35 -08:00
const Pvt *pvt) const;
2025-05-22 09:25:56 -07:00
std::string reportPvtScaleFactor(const LibertyCell *cell,
const Pvt *pvt,
int digits) const;
2018-09-28 08:54:21 -07:00
2023-01-18 10:23:03 -07:00
TablePtr table_;
2022-06-06 20:57:09 -07:00
TableTemplate *tbl_template_;
2019-03-12 17:25:53 -07:00
// ScaleFactorType gcc barfs if this is dcl'd.
unsigned scale_factor_type_:scale_factor_bits;
2023-03-07 17:03:26 -07:00
unsigned rf_index_:RiseFall::index_bit_count;
2018-09-28 08:54:21 -07:00
bool is_scaled_:1;
};
2026-03-13 14:06:35 -07:00
// cell/transition/check nldm/ocv/lvf models for one rise/fall edge.
class TableModels
{
public:
TableModels();
TableModels(TableModel *model);
~TableModels();
TableModel *model() const { return model_.get(); }
void setModel(TableModel *model);
TableModel *sigma(const EarlyLate *early_late) const;
void setSigma(TableModel *table,
const EarlyLate *early_late);
TableModel *meanShift() const { return mean_shift_.get(); }
void setMeanShift(TableModel *table);
TableModel *skewness() const { return skewness_.get(); }
void setSkewness(TableModel *table);
TableModel *stdDev() const { return std_dev_.get(); }
void setStdDev(TableModel *table);
protected:
std::unique_ptr<TableModel> model_;
// Note early/late can point to the same model.
std::array<TableModel*, EarlyLate::index_count> sigma_;
std::unique_ptr<TableModel> std_dev_;
std::unique_ptr<TableModel> mean_shift_;
std::unique_ptr<TableModel> skewness_;
};
2023-02-08 09:23:24 -07:00
////////////////////////////////////////////////////////////////
class ReceiverModel
{
public:
2026-02-04 18:33:04 -07:00
void setCapacitanceModel(TableModel table_model,
size_t segment,
2025-03-30 15:27:53 -07:00
const RiseFall *rf);
2026-02-27 16:57:08 -08:00
static bool checkAxes(const TableModel *table);
2023-02-08 09:23:24 -07:00
private:
2026-02-04 18:33:04 -07:00
std::vector<TableModel> capacitance_models_;
2023-02-08 09:23:24 -07:00
};
2023-03-22 09:57:54 -07:00
// Two dimensional (slew/cap) table of one dimensional time/current tables.
class OutputWaveforms
2023-02-08 09:23:24 -07:00
{
public:
2023-03-22 09:57:54 -07:00
OutputWaveforms(TableAxisPtr slew_axis,
TableAxisPtr cap_axis,
2023-03-30 18:52:43 -07:00
const RiseFall *rf,
2023-03-23 07:01:04 -07:00
Table1Seq &current_waveforms,
2026-02-04 18:33:04 -07:00
Table ref_times);
2023-03-22 09:57:54 -07:00
~OutputWaveforms();
2023-03-30 18:52:43 -07:00
const RiseFall *rf() const { return rf_; }
2023-12-13 14:41:59 -07:00
const TableAxis *slewAxis() const { return slew_axis_.get(); }
const TableAxis *capAxis() const { return cap_axis_.get(); }
2024-06-27 13:57:58 -07:00
// Make voltage wavefroms from liberty time/current values.
// Required before voltageTime, timeVoltage, voltageCurrent.
2024-07-31 16:36:24 -07:00
void ensureVoltageWaveforms(float vdd);
2023-05-24 16:52:29 -06:00
float timeCurrent(float slew,
float cap,
float time);
2023-12-31 14:05:58 -07:00
float timeVoltage(float slew,
float cap,
float time);
2024-06-27 13:57:58 -07:00
float voltageTime(float in_slew,
float load_cap,
float voltage);
2023-05-24 16:52:29 -06:00
float voltageCurrent(float slew,
float cap,
float volt);
2023-03-23 07:01:04 -07:00
float referenceTime(float slew);
2024-06-27 13:57:58 -07:00
float beginTime(float slew,
float cap);
float endTime(float slew,
float cap);
2023-12-13 14:41:59 -07:00
static bool checkAxes(const TableTemplate *tbl_template);
2023-02-08 09:23:24 -07:00
2026-02-04 18:33:04 -07:00
Table currentWaveform(float slew,
float cap);
2024-06-27 13:57:58 -07:00
// Waveform closest to slew/cap; no interpolation.
2026-02-04 18:33:04 -07:00
const Table *currentWaveformRaw(float slew,
float cap);
Table voltageWaveform(float in_slew,
float load_cap);
2024-06-27 13:57:58 -07:00
// Waveform closest to slew/cap; no interpolation.
2026-02-04 18:33:04 -07:00
const Table *voltageWaveformRaw(float slew,
float cap);
Table voltageCurrentWaveform(float slew,
float cap);
2024-06-27 13:57:58 -07:00
// V/I for last segment of min slew/max cap.
float finalResistance();
2023-02-08 09:23:24 -07:00
private:
2024-02-08 20:13:25 -07:00
void findVoltages(size_t wave_index,
float cap);
2023-12-31 14:05:58 -07:00
float waveformValue(float slew,
float cap,
float axis_value,
Table1Seq &waveforms);
2024-06-27 13:57:58 -07:00
float beginEndTime(float slew,
float cap,
bool begin);
double voltageTime1(double volt,
double dx1,
double dx2,
size_t wave_index00,
size_t wave_index01,
size_t wave_index10,
size_t wave_index11);
float voltageTime2(float volt,
2023-12-31 14:05:58 -07:00
size_t wave_index);
2023-03-23 07:01:04 -07:00
2023-02-08 09:23:24 -07:00
// Row.
2023-03-22 09:57:54 -07:00
TableAxisPtr slew_axis_;
2023-02-08 09:23:24 -07:00
// Column.
2023-03-22 09:57:54 -07:00
TableAxisPtr cap_axis_;
2023-03-30 18:52:43 -07:00
const RiseFall *rf_;
2026-02-04 18:33:04 -07:00
Table1Seq current_waveforms_; // from liberty (1D tables)
2023-12-31 14:05:58 -07:00
Table1Seq voltage_waveforms_;
2023-05-24 16:52:29 -06:00
Table1Seq voltage_currents_;
2026-02-04 18:33:04 -07:00
Table ref_times_;
2026-04-13 14:58:16 -07:00
float vdd_{0.0F};
2024-06-27 13:57:58 -07:00
static constexpr size_t voltage_waveform_step_count_ = 100;
2023-03-22 09:57:54 -07:00
};
class DriverWaveform
{
public:
2026-03-28 19:13:35 -07:00
DriverWaveform(std::string name,
2023-03-22 09:57:54 -07:00
TablePtr waveforms);
2026-03-28 19:13:35 -07:00
std::string_view name() const { return name_; }
2026-02-04 18:33:04 -07:00
Table waveform(float slew);
2023-03-22 09:57:54 -07:00
private:
2025-05-22 09:25:56 -07:00
std::string name_;
2023-03-22 09:57:54 -07:00
TablePtr waveforms_;
2023-02-08 09:23:24 -07:00
};
2026-04-13 14:58:16 -07:00
} // namespace sta