Skip to content

Commit 8547985

Browse files
committed
Merge branch 'master' of https://github.com/The-OpenROAD-Project/OpenROAD into est_via_res
Signed-off-by: Eder Monteiro <[email protected]>
2 parents fce4500 + dd2d7f7 commit 8547985

File tree

381 files changed

+76463
-960
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

381 files changed

+76463
-960
lines changed

.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Checks: >
88
-clang-analyzer-cplusplus.NewDeleteLeaks,
99
-clang-analyzer-optin.performance.Padding,
1010
readability-*,
11-
-readability-identifier-naming
11+
-readability-identifier-naming,
1212
-readability-braces-around-statements,
1313
-readability-convert-member-functions-to-static,
1414
-readability-function-cognitive-complexity,

BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ config_setting(
4949

5050
OPENROAD_LIBRARY_DEPS = [
5151
":openroad_version",
52-
":ord",
5352
"//src/ant",
5453
"//src/ant:ui",
5554
"//src/cgt",
@@ -106,6 +105,7 @@ OPENROAD_LIBRARY_DEPS = [
106105
"//src/utl",
107106
"//src/utl:ui",
108107
"@edu_berkeley_abc//:abc-lib",
108+
":ord",
109109
] + select(
110110
{
111111
":platform_cli": ["//src/gui"],
@@ -187,11 +187,11 @@ cc_library(
187187
"include",
188188
],
189189
visibility = ["//visibility:public"],
190-
deps = OPENROAD_LIBRARY_DEPS + [
190+
deps = [
191191
"//src/sta:opensta_lib",
192192
"@boost.stacktrace",
193193
"@tk_tcl//:tcl",
194-
],
194+
] + OPENROAD_LIBRARY_DEPS,
195195
)
196196

197197
cc_library(

etc/DependencyInstaller.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ _versionCompare() {
1212
}
1313

1414
_equivalenceDeps() {
15-
yosysVersion=v0.57
15+
yosysVersion=v0.58
1616

1717
# yosys
1818
yosysPrefix=${PREFIX:-"/usr/local"}

src/OpenRoad.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,13 +485,13 @@ void OpenRoad::writeCdl(const char* out_filename,
485485

486486
void OpenRoad::read3Dbv(const std::string& filename)
487487
{
488-
odb::ThreeDBlox parser(logger_, db_);
488+
odb::ThreeDBlox parser(logger_, db_, sta_);
489489
parser.readDbv(filename);
490490
}
491491

492492
void OpenRoad::read3Dbx(const std::string& filename)
493493
{
494-
odb::ThreeDBlox parser(logger_, db_);
494+
odb::ThreeDBlox parser(logger_, db_, sta_);
495495
parser.readDbx(filename);
496496
}
497497

src/cts/src/TritonCTS.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <cassert>
88
#include <cctype>
99
#include <cmath>
10+
#include <cstdio>
1011
#include <cstring>
1112
#include <ctime>
1213
#include <fstream>

src/cts/test/BUILD

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ MANUAL_TESTS = [
5353
"cts_readme_msgs_check",
5454
]
5555

56+
# TODO: Enable once difference between bazel and ctest is resolved.
57+
MANUAL_FOR_BAZEL_TESTS = [
58+
"array",
59+
"array_ins_delay",
60+
"array_no_blockages",
61+
"array_repair_clock_nets",
62+
"gated_clock4",
63+
"simple_test_hier",
64+
]
65+
5666
ALL_TESTS = COMPULSORY_TESTS + MANUAL_TESTS
5767

5868
filegroup(
@@ -175,7 +185,8 @@ filegroup(
175185
regression_test(
176186
name = test_name,
177187
data = [":" + test_name + "_resources"],
178-
tags = [] if test_name in COMPULSORY_TESTS else ["manual"],
188+
tags = ["manual"] if test_name in MANUAL_TESTS or
189+
test_name in MANUAL_FOR_BAZEL_TESTS else [],
179190
visibility = ["//visibility:public"],
180191
)
181192
for test_name in ALL_TESTS

src/dbSta/BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,9 @@ cc_library(
143143

144144
tcl_encode(
145145
name = "tcl",
146-
srcs = [
146+
srcs = ["//src/sta:tcl_scripts"] + [
147147
"src/dbReadVerilog.tcl",
148148
"src/dbSta.tcl",
149-
"//src/sta:tcl_scripts",
150149
],
151150
char_array_name = "dbSta_tcl_inits",
152151
namespace = "sta",

src/dpl/include/dpl/Opendp.h

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,10 @@ namespace dpl {
2929

3030
using utl::Logger;
3131

32-
using odb::dbBlock;
3332
using odb::dbDatabase;
34-
using odb::dbInst;
3533
using odb::dbMaster;
3634
using odb::dbMasterType;
3735
using odb::dbTechLayer;
38-
using odb::Point;
3936

4037
class Node;
4138
class Group;
@@ -93,8 +90,8 @@ class Opendp
9390
Opendp(const Opendp&) = delete;
9491
Opendp& operator=(const Opendp&) = delete;
9592

96-
void legalCellPos(dbInst* db_inst); // call from rsz
97-
void initMacrosAndGrid(); // call from rsz
93+
void legalCellPos(odb::dbInst* db_inst); // call from rsz
94+
void initMacrosAndGrid(); // call from rsz
9895

9996
// legalize/report
10097
// max_displacment is in sites. use zero for defaults.
@@ -105,15 +102,15 @@ class Opendp
105102

106103
void setPaddingGlobal(int left, int right);
107104
void setPadding(dbMaster* master, int left, int right);
108-
void setPadding(dbInst* inst, int left, int right);
105+
void setPadding(odb::dbInst* inst, int left, int right);
109106
void setDebug(std::unique_ptr<dpl::DplObserver>& observer);
110107

111108
// Global padding.
112109
int padGlobalLeft() const;
113110
int padGlobalRight() const;
114111
// Find instance/master/global padding value for an instance.
115-
int padLeft(dbInst* inst) const;
116-
int padRight(dbInst* inst) const;
112+
int padLeft(odb::dbInst* inst) const;
113+
int padRight(odb::dbInst* inst) const;
117114

118115
void checkPlacement(bool verbose, const std::string& report_file_name = "");
119116
void fillerPlacement(const dbMasterSeq& filler_masters,
@@ -127,10 +124,11 @@ class Opendp
127124
void insertDecapCells(double target, IRDropByPoint& psm_ir_drops);
128125

129126
// Get the instance adjacent to the left or right of a given instance
130-
dbInst* getAdjacentInstance(dbInst* inst, bool left) const;
127+
odb::dbInst* getAdjacentInstance(odb::dbInst* inst, bool left) const;
131128

132129
// Find a cluster of instances that are touching each other
133-
std::vector<dbInst*> getAdjacentInstancesCluster(dbInst* inst) const;
130+
std::vector<odb::dbInst*> getAdjacentInstancesCluster(
131+
odb::dbInst* inst) const;
134132
Padding* getPadding() { return padding_.get(); }
135133
void improvePlacement(int seed,
136134
int max_displacement_x,
@@ -160,14 +158,14 @@ class Opendp
160158
friend class Graphics;
161159
void findDisplacementStats();
162160
DbuPt pointOffMacro(const Node& cell);
163-
void convertDbToCell(dbInst* db_inst, Node& cell);
161+
void convertDbToCell(odb::dbInst* db_inst, Node& cell);
164162
// Return error count.
165163
void saveViolations(const std::vector<Node*>& failures,
166164
odb::dbMarkerCategory* category,
167165
const std::string& violation_type = "") const;
168166
void importDb();
169167
void importClear();
170-
odb::Rect getBbox(dbInst* inst);
168+
odb::Rect getBbox(odb::dbInst* inst);
171169
void createNetwork();
172170
void createArchitecture();
173171
void setUpPlacementGroups();
@@ -312,7 +310,7 @@ class Opendp
312310

313311
Logger* logger_ = nullptr;
314312
dbDatabase* db_ = nullptr;
315-
dbBlock* block_ = nullptr;
313+
odb::dbBlock* block_ = nullptr;
316314
odb::Rect core_;
317315

318316
std::unique_ptr<Architecture> arch_; // Information about rows, etc.

src/dpl/include/dpl/OptMirror.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class Logger;
1616

1717
namespace dpl {
1818

19-
using odb::dbInst;
2019
using odb::dbNet;
2120

2221
using utl::Logger;
@@ -53,15 +52,15 @@ class OptimizeMirroring
5352
void run();
5453

5554
private:
56-
int mirrorCandidates(std::vector<dbInst*>& mirror_candidates);
55+
int mirrorCandidates(std::vector<odb::dbInst*>& mirror_candidates);
5756
void findNetBoxes();
58-
std::vector<dbInst*> findMirrorCandidates(NetBoxes& net_boxes);
57+
std::vector<odb::dbInst*> findMirrorCandidates(NetBoxes& net_boxes);
5958

60-
void updateNetBoxes(dbInst* inst);
61-
void saveNetBoxes(dbInst* inst);
62-
void restoreNetBoxes(dbInst* inst);
59+
void updateNetBoxes(odb::dbInst* inst);
60+
void saveNetBoxes(odb::dbInst* inst);
61+
void restoreNetBoxes(odb::dbInst* inst);
6362

64-
int64_t hpwl(dbInst* inst); // Sum of ITerm hpwl's.
63+
int64_t hpwl(odb::dbInst* inst); // Sum of ITerm hpwl's.
6564

6665
Logger* logger_ = nullptr;
6766
odb::dbDatabase* db_ = nullptr;

src/dpl/src/DecapPlacement.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,13 @@ void Opendp::insertDecapInPos(dbMaster* master,
205205
{
206206
// insert decap inst
207207
std::string inst_name = "DECAP_" + to_string(decap_count_);
208-
dbInst* inst = dbInst::create(block_,
209-
master,
210-
inst_name.c_str(),
211-
/* physical_only */ true);
208+
odb::dbInst* inst = odb::dbInst::create(block_,
209+
master,
210+
inst_name.c_str(),
211+
/* physical_only */ true);
212212
const GridX grid_x = grid_->gridX(pos_x - core_.xMin());
213213
const GridY grid_y = grid_->gridSnapDownY(pos_y - core_.yMin());
214-
const dbOrientType orient
214+
const odb::dbOrientType orient
215215
= grid_->getSiteOrientation(grid_x, grid_y, master->getSite()).value();
216216
inst->setOrient(orient);
217217
inst->setLocation(pos_x.v, pos_y.v);

0 commit comments

Comments
 (0)