Ophidian
 All Classes Namespaces Functions
design_constraints.h
1 /*
2  * Copyright 2016 Ophidian
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
10 
11  http://www.apache.org/licenses/LICENSE-2.0
12 
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
19  */
20 
21 #ifndef SRC_TIMING_DESIGN_CONSTRAINTS_H_
22 #define SRC_TIMING_DESIGN_CONSTRAINTS_H_
23 
24 #include <vector>
25 #include <string>
26 
27 #include "../netlist/netlist.h"
28 
29 namespace ophidian {
30 namespace timing {
31 
33  std::string port_name;
34  std::string lib_cell;
35  std::string pin_name;
36  double slew_fall;
37  double slew_rise;
38 };
39 
41  double delay;
42  std::string clock;
43  std::string port_name;
44 };
45 
46 struct dc_clock {
47  std::string name;
48  double period;
49  std::string port_name;
50 };
51 
53  double delay;
54  std::string clock;
55  std::string port_name;
56 };
57 
59  double pin_load;
60  std::string port_name;
61 };
62 
64  dc_clock clock;
65  std::vector<dc_input_delays> input_delays;
66  std::vector<dc_driving_cell> input_drivers;
67  std::vector<dc_output_delay> output_delays;
68  std::vector<dc_output_load> output_loads;
69 };
70 
72  design_constraints m_dc;
73 public:
76  const design_constraints dc() const {
77  return m_dc;
78  }
79 };
80 
81 } /* namespace timing */
82 } /* namespace ophidian */
83 
84 #endif /* SRC_TIMING_DESIGN_CONSTRAINTS_H_ */
Definition: design_constraints.h:58
Definition: design_constraints.h:40
Definition: design_constraints.h:71
Definition: design_constraints.h:63
Definition: design_constraints.h:46
Definition: design_constraints.h:52
Netlist class.
Definition: netlist.h:41
Definition: design_constraints.h:32