OpenSTA/sdf/SdfReader.hh

82 lines
2.7 KiB
C++
Raw Normal View History

2018-09-28 17:54:21 +02:00
// OpenSTA, Static Timing Analyzer
2020-03-07 03:50:37 +01:00
// Copyright (c) 2020, 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
// 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/>.
2020-02-16 01:13:16 +01:00
#pragma once
2018-09-28 17:54:21 +02:00
2020-04-05 23:53:44 +02:00
#include "SdcClass.hh"
2020-04-05 20:35:51 +02:00
2018-09-28 17:54:21 +02:00
namespace sta {
class Report;
class MinMax;
class Network;
class Graph;
class Corner;
2020-04-05 20:35:51 +02:00
class StaState;
2018-09-28 17:54:21 +02:00
// Sdf index is:
// sdf_min = 0
// sdf_typ = 1
// sdf_max = 2
//
// If unescaped_dividers is true, path names in the SDF do not have to
// escape hierarchy dividers when the path name is escaped. For
// example, the escaped Verilog instance name "\inst1/inst2 " can be
// referenced as "inst1/inst2". The correct SDF name is
// "inst1\/inst2", since the divider does not represent a change in
// hierarchy in this case.
//
// If incremental_only is true non-incremental annoatations are ignored.
//
// path is a hierararchial path prefix for instances and pins in the
2019-03-13 01:25:53 +01:00
// sdf file. Pass 0 (nullptr) to specify no path.
2018-09-28 17:54:21 +02:00
//
// The cond_use option is used when the SDF file contains conditional
// delays and the library does not have conditional delay arcs. If
// cond_use is min, the minimum of all conditional delays is used. If
// cond_use is max, the maximum of all conditional delays is used. If
// cond_use is min_max and min_max operating conditions are in use, the
// minimum of the conditional delay values is used for minimum operating
// conditions and the maximum of the conditional delay values is used for
// maximum operating conditions.
// Read sdf_index value from sdf triples.
bool
readSdfSingle(const char *filename,
const char *path,
Corner *corner,
int sdf_index,
AnalysisType analysis_type,
bool unescaped_dividers,
bool incremental_only,
MinMaxAll *cond_use,
StaState *sta);
// Read sdf_min_index and sdf_max_index values from sdf triples.
bool
readSdfMinMax(const char *filename,
const char *path,
Corner *corner,
int sdf_min_index,
int sdf_max_index,
AnalysisType analysis_type,
bool unescaped_dividers,
bool incremental_only,
MinMaxAll *cond_use,
StaState *sta);
} // namespace