Skip to content

Commit d3242d0

Browse files
committed
Merge branch 'master' into nested_journal
2 parents 7519c30 + a8452f3 commit d3242d0

Some content is hidden

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

68 files changed

+3423
-330
lines changed

MODULE.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ bazel_dep(name = "bazel-orfs")
162162
# To bump version, run: bazelisk run @bazel-orfs//:bump
163163
git_override(
164164
module_name = "bazel-orfs",
165-
commit = "e2749923bad0203342d1041f8d01c3514d262402",
165+
commit = "c8fbabde2a4ecb9b34a9bfb2947bc370bd0d5ee0",
166166
remote = "https://github.com/The-OpenROAD-Project/bazel-orfs.git",
167167
)
168168

@@ -171,10 +171,10 @@ orfs = use_extension("@bazel-orfs//:extension.bzl", "orfs_repositories")
171171
# To bump version, run: bazelisk run @bazel-orfs//:bump
172172
orfs.default(
173173
# Official image https://hub.docker.com/r/openroad/orfs/tags
174-
image = "docker.io/openroad/orfs:v3.0-4119-gb2918bafb",
174+
image = "docker.io/openroad/orfs:v3.0-4123-g30da7ceff",
175175
# Use OpenROAD of this repo instead of from the docker image
176176
openroad = "//:openroad",
177-
sha256 = "6e3228200ec04904d2c912a551ba440d17a4ac1e05fad8ac2d7be35513bfeea4",
177+
sha256 = "974844d2c888227a07f4d6a4e1c7b969a61723f3ecb7eb72c5e1145d8d33a7d0",
178178
)
179179
use_repo(orfs, "com_github_nixos_patchelf_download")
180180
use_repo(orfs, "docker_orfs")

MODULE.bazel.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bazel/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ RUN apt-get -y update \
2929
python3 \
3030
python3-yaml \
3131
time
32+
33+
RUN groupadd -g 9000 user \
34+
&& useradd -u 9000 -g 9000 -m -s /bin/bash user
35+
USER user

src/OpenRoad.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#include "dft/MakeDft.hh"
3535
#include "dpl/MakeOpendp.h"
3636
#include "dpl/Opendp.h"
37+
#include "drt/MakeTritonRoute.h"
38+
#include "drt/TritonRoute.h"
3739
#include "dst/Distributed.h"
3840
#include "dst/MakeDistributed.h"
3941
#include "est/EstimateParasitics.h"
@@ -81,8 +83,6 @@
8183
#include "stt/MakeSteinerTreeBuilder.h"
8284
#include "tap/MakeTapcell.h"
8385
#include "tap/tapcell.h"
84-
#include "triton_route/MakeTritonRoute.h"
85-
#include "triton_route/TritonRoute.h"
8686
#include "upf/MakeUpf.h"
8787
#include "utl/CallBackHandler.h"
8888
#include "utl/Logger.h"

src/dpl/include/dpl/Opendp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class Opendp
147147

148148
using MasterByImplant = std::map<odb::dbTechLayer*, dbMasterSeq>;
149149

150-
using YCoordToGap = std::map<DbuY, std::vector<GapInfo*>>;
150+
using YCoordToGap = std::map<DbuY, std::vector<std::unique_ptr<GapInfo>>>;
151151

152152
friend class OpendpTest_IsPlaced_Test;
153153
friend class Graphics;
@@ -290,7 +290,7 @@ class Opendp
290290
void insertDecapInPos(odb::dbMaster* master,
291291
const DbuX& pos_x,
292292
const DbuY& pos_y);
293-
void insertDecapInRow(const std::vector<GapInfo*>& gaps,
293+
void insertDecapInRow(const std::vector<std::unique_ptr<GapInfo>>& gaps,
294294
DbuY gap_y,
295295
DbuX irdrop_x,
296296
DbuY irdrop_y,
@@ -333,7 +333,7 @@ class Opendp
333333
bool have_fillers_ = false;
334334

335335
// Decap placement.
336-
std::vector<DecapCell*> decap_masters_;
336+
std::vector<std::unique_ptr<DecapCell>> decap_masters_;
337337
int decap_count_ = 0;
338338
YCoordToGap gaps_;
339339

src/dpl/src/DecapPlacement.cpp

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include <algorithm>
55
#include <map>
6+
#include <memory>
67
#include <string>
78
#include <vector>
89

@@ -83,7 +84,8 @@ void Opendp::prepareDecapAndGaps()
8384
// Sort decaps cells in descending order
8485
std::sort(decap_masters_.begin(),
8586
decap_masters_.end(),
86-
[](const DecapCell* decap1, const DecapCell* decap2) {
87+
[](const std::unique_ptr<DecapCell>& decap1,
88+
const std::unique_ptr<DecapCell>& decap2) {
8789
return decap1->capacitance > decap2->capacitance;
8890
});
8991

@@ -92,11 +94,11 @@ void Opendp::prepareDecapAndGaps()
9294
int gaps_count = 0;
9395
// Sort each gap vector for X position
9496
for (auto& it : gaps_) {
95-
std::sort(it.second.begin(),
96-
it.second.end(),
97-
[](const GapInfo* gap1, const GapInfo* gap2) {
98-
return gap1->x < gap2->x;
99-
});
97+
std::sort(
98+
it.second.begin(),
99+
it.second.end(),
100+
[](const std::unique_ptr<GapInfo>& gap1,
101+
const std::unique_ptr<GapInfo>& gap2) { return gap1->x < gap2->x; });
100102
gaps_count += it.second.size();
101103
}
102104

@@ -166,19 +168,20 @@ void Opendp::insertDecapCells(const double target, IRDropByPoint& psm_ir_drops)
166168
total_cap);
167169
}
168170

169-
void Opendp::insertDecapInRow(const std::vector<GapInfo*>& gaps,
171+
void Opendp::insertDecapInRow(const std::vector<std::unique_ptr<GapInfo>>& gaps,
170172
const DbuY gap_y,
171173
const DbuX irdrop_x,
172174
const DbuY irdrop_y,
173175
double& total,
174176
const double& target)
175177
{
176178
// Find gap in same row and x near the ir drop
177-
auto find_gap = std::lower_bound(
178-
gaps.begin(),
179-
gaps.end(),
180-
irdrop_x,
181-
[](const GapInfo* elem, const DbuX& value) { return elem->x < value; });
179+
auto find_gap
180+
= std::lower_bound(gaps.begin(),
181+
gaps.end(),
182+
irdrop_x,
183+
[](const std::unique_ptr<GapInfo>& elem,
184+
const DbuX& value) { return elem->x < value; });
182185
// if this row has free gap with x <= xpoint <= x + width
183186
if (find_gap != gaps.end()
184187
&& ((*find_gap)->x + (*find_gap)->width) >= irdrop_x

src/dpl/src/Opendp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "dpl/OptMirror.h"
1919
#include "graphics/DplObserver.h"
2020
#include "infrastructure/Coordinates.h"
21+
#include "infrastructure/DecapObjects.h"
2122
#include "infrastructure/Grid.h"
2223
#include "infrastructure/Objects.h"
2324
#include "infrastructure/Padding.h"

src/drt/BUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ cc_library(
194194
"src/ta/FlexTA_rq.cpp",
195195
],
196196
hdrs = [
197-
"include/triton_route/TritonRoute.h",
197+
"include/drt/TritonRoute.h",
198198
],
199199
copts = [
200200
"-Isrc/drt/src",
@@ -225,7 +225,7 @@ cc_library(
225225
cc_library(
226226
name = "ui",
227227
srcs = [
228-
"include/triton_route/TritonRoute.h",
228+
"include/drt/TritonRoute.h",
229229
"src/AbstractGraphicsFactory.h",
230230
"src/GraphicsFactory.cpp",
231231
"src/GraphicsFactory.h",
@@ -256,7 +256,7 @@ cc_library(
256256
":tcl",
257257
],
258258
hdrs = [
259-
"include/triton_route/MakeTritonRoute.h",
259+
"include/drt/MakeTritonRoute.h",
260260
],
261261
copts = [
262262
"-Isrc/drt/src",
@@ -312,7 +312,7 @@ tcl_wrap_cc(
312312
python_wrap_cc(
313313
name = "swig-py",
314314
srcs = [
315-
"include/triton_route/TritonRoute.h",
315+
"include/drt/TritonRoute.h",
316316
"src/TritonRoute-py.i",
317317
"//:error_swig-py",
318318
],
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)