Skip to content

Commit 79eb94e

Browse files
committed
Merge remote-tracking branch 'origin/master' into pad-imp
2 parents 6065db3 + 7e265db commit 79eb94e

File tree

16 files changed

+375
-28
lines changed

16 files changed

+375
-28
lines changed

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ OPENROAD_LIBRARY_DEPS = [
104104
"//src/upf:ui",
105105
"//src/utl",
106106
"//src/utl:ui",
107-
"@edu_berkeley_abc//:abc-lib",
107+
"//third-party/abc:abc-lib",
108108
":ord",
109109
] + select(
110110
{

WORKSPACE

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ http_archive(
2525
# This essentially reads as a TODO list of what needs to be upstreamed to BCR
2626
load("@rules_hdl//dependency_support/com_github_quantamhd_lemon:com_github_quantamhd_lemon.bzl", "com_github_quantamhd_lemon")
2727
load("@rules_hdl//dependency_support/com_github_westes_flex:com_github_westes_flex.bzl", "com_github_westes_flex")
28-
load("@rules_hdl//dependency_support/edu_berkeley_abc:edu_berkeley_abc.bzl", "edu_berkeley_abc")
2928
load("@rules_hdl//dependency_support/net_invisible_island_ncurses:net_invisible_island_ncurses.bzl", "net_invisible_island_ncurses")
3029
load("@rules_hdl//dependency_support/net_zlib:net_zlib.bzl", "net_zlib")
3130
load("@rules_hdl//dependency_support/org_gnu_bison:org_gnu_bison.bzl", "org_gnu_bison")
@@ -37,8 +36,6 @@ load("@rules_hdl//dependency_support/tk_tcl:tk_tcl.bzl", "tk_tcl")
3736
# Direct dependencies needed in Openroad
3837
com_github_quantamhd_lemon()
3938

40-
edu_berkeley_abc()
41-
4239
tk_tcl()
4340

4441
# Swig exists in BCR, but in a newer version where we need to test how to make

src/cgt/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ cc_library(
4040
"//src/odb",
4141
"//src/sta:opensta_lib",
4242
"//src/utl",
43+
"//third-party/abc:abc-lib",
4344
"@boost.stacktrace",
44-
"@edu_berkeley_abc//:abc-lib",
4545
"@tk_tcl//:tcl",
4646
],
4747
)

src/cut/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ cc_library(
3737
"//src/rsz",
3838
"//src/sta:opensta_lib",
3939
"//src/utl",
40+
"//third-party/abc:abc-lib",
4041
"@boost.bind",
4142
"@boost.config",
4243
"@boost.fusion",
4344
"@boost.lambda",
4445
"@boost.optional",
4546
"@boost.phoenix",
4647
"@boost.spirit",
47-
"@edu_berkeley_abc//:abc-lib",
4848
],
4949
)

src/cut/test/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ cc_test(
3737
"//src/sta:opensta_lib",
3838
"//src/tst",
3939
"//src/utl",
40-
"@edu_berkeley_abc//:abc-lib",
40+
"//third-party/abc:abc-lib",
4141
"@googletest//:gtest",
4242
"@googletest//:gtest_main",
4343
],

src/ifp/include/ifp/InitFloorplan.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class InitFloorplan
126126
int y_offset,
127127
int y_pitch,
128128
int first_last_pitch);
129+
void resetTracks() const;
129130

130131
odb::dbSite* findSite(const char* site_name);
131132

src/ifp/src/InitFloorplan.cc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ void InitFloorplan::makeDie(const odb::Rect& die)
186186
snapToMfgGrid(die.xMax()),
187187
snapToMfgGrid(die.yMax()));
188188
block_->setDieArea(die_area);
189+
190+
resetTracks();
189191
}
190192

191193
void InitFloorplan::makePolygonDie(const odb::Polygon& polygon)
@@ -214,6 +216,8 @@ void InitFloorplan::makePolygonDie(const odb::Polygon& polygon)
214216

215217
// Set the die area using the polygon
216218
block_->setDieArea(polygon);
219+
220+
resetTracks();
217221
}
218222

219223
void InitFloorplan::makePolygonRows(
@@ -977,6 +981,16 @@ void InitFloorplan::makeTracks()
977981
}
978982
}
979983

984+
void InitFloorplan::resetTracks() const
985+
{
986+
for (auto layer : block_->getDataBase()->getTech()->getLayers()) {
987+
auto grid = block_->findTrackGrid(layer);
988+
if (grid) {
989+
odb::dbTrackGrid::destroy(grid);
990+
}
991+
}
992+
}
993+
980994
void InitFloorplan::makeTracks(odb::dbTechLayer* layer,
981995
int x_offset,
982996
int x_pitch,

src/ifp/test/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ COMPULSORY_TESTS = [
1818
"init_floorplan8",
1919
"init_floorplan9",
2020
"init_floorplan10",
21+
"init_floorplan11",
2122
"init_floorplan_dbl_row",
2223
"init_floorplan_even_rows",
2324
"init_floorplan_flip_sites",

src/ifp/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ or_integration_tests(
1313
init_floorplan8
1414
init_floorplan9
1515
init_floorplan10
16+
init_floorplan11
1617
init_floorplan_dbl_row
1718
init_floorplan_even_rows
1819
init_floorplan_flip_sites

src/ifp/test/init_floorplan11.defok

Lines changed: 325 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)