forked from The-OpenROAD-Project/OpenSTA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSdfReader.hh
80 lines (73 loc) · 2.67 KB
/
SdfReader.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// OpenSTA, Static Timing Analyzer
// Copyright (c) 2019, 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/>.
#ifndef STA_READ_SDF_H
#define STA_READ_SDF_H
namespace sta {
class Report;
class MinMax;
class Network;
class Graph;
class Corner;
// 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
// sdf file. Pass 0 (nullptr) to specify no path.
//
// 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
#endif