Skip to content

Commit 52ff2a5

Browse files
committed
Merge branch 'master' of https://github.com/The-OpenROAD-Project/OpenROAD into grt_restore_guides
2 parents 5331261 + 034958a commit 52ff2a5

17 files changed

Lines changed: 50 additions & 74 deletions

File tree

‎MODULE.bazel‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,10 @@ bazel_dep(name = "googletest", version = "1.17.0.bcr.2", dev_dependency = True)
8989
bazel_dep(name = "qt-bazel")
9090
git_override(
9191
module_name = "qt-bazel",
92-
commit = "2b450c5d0b84e0a48e0e7797486e62d24f65c78b",
92+
commit = "970b93291b28ecb23f10abde796584ecbf904818",
9393
remote = "https://github.com/The-OpenROAD-Project/qt_bazel_prebuilts",
9494
)
9595

96-
# Updated dependencies of qt_bazel_prebuilts. Once the updated versions
97-
# have been added to qt_bazel_prebuilts, they can be removed here.
98-
# (But CAVE, right now that would result in cyclic dependencies with,
99-
# WORKSPACE so that also has to go first).
100-
bazel_dep(name = "harfbuzz", version = "11.0.1.bcr.1")
101-
bazel_dep(name = "glib", version = "2.82.2.bcr.8")
102-
10396
## Lock the compiler version and avoid any local compiler
10497
bazel_dep(name = "toolchains_llvm", version = "1.5.0")
10598

‎MODULE.bazel.lock‎

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

openroad/BUILD renamed to python/openroad/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ py_library(
1313
"odb.py",
1414
"utl.py",
1515
],
16-
imports = ["pypi"],
16+
imports = [".."],
1717
visibility = ["//visibility:public"],
1818
deps = [
1919
"//:ord_py",
File renamed without changes.
File renamed without changes.

‎src/gpl/src/AbstractGraphics.h‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,10 @@ class AbstractGraphics
9696

9797
void saveLabeledImage(std::string_view path,
9898
std::string_view label,
99-
bool select_buffers,
10099
std::string_view heatmap_control = "",
101100
int image_width_px = 500)
102101
{
103-
saveLabeledImageImpl(
104-
path, label, select_buffers, heatmap_control, image_width_px);
102+
saveLabeledImageImpl(path, label, heatmap_control, image_width_px);
105103
}
106104

107105
// Gui functions.
@@ -129,7 +127,6 @@ class AbstractGraphics
129127
= 0;
130128
virtual void saveLabeledImageImpl(std::string_view path,
131129
std::string_view label,
132-
bool select_buffers,
133130
std::string_view heatmap_control,
134131
int image_width_px)
135132
= 0;

‎src/gpl/src/graphicsImpl.cpp‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ namespace gpl {
3030
GraphicsImpl::GraphicsImpl(utl::Logger* logger)
3131
: HeatMapDataSource(logger, "gpl", "gpl"), logger_(logger), mode_(Mbff)
3232
{
33+
addDisplayControl(kDrawInstances, true);
3334
gui::Gui::get()->registerRenderer(this);
3435
}
3536

@@ -345,11 +346,13 @@ void GraphicsImpl::drawNesterov(gui::Painter& painter)
345346
}
346347

347348
// Draw the placeable objects
348-
painter.setPen(gui::Painter::kWhite);
349-
drawCells(nbc_->getGCells(), painter);
350-
for (size_t nb_idx = 0; nb_idx < nbVec_.size(); ++nb_idx) {
351-
const auto& nb = nbVec_[nb_idx];
352-
drawCells(nb->getGCells(), painter, nb_idx);
349+
if (checkDisplayControl(kDrawInstances)) {
350+
painter.setPen(gui::Painter::kWhite);
351+
drawCells(nbc_->getGCells(), painter);
352+
for (size_t nb_idx = 0; nb_idx < nbVec_.size(); ++nb_idx) {
353+
const auto& nb = nbVec_[nb_idx];
354+
drawCells(nb->getGCells(), painter, nb_idx);
355+
}
353356
}
354357

355358
// Create lighter versions of the region_colors_ with alpha 50
@@ -849,7 +852,6 @@ void GraphicsImpl::addFrameLabelImpl(const odb::Rect& bbox,
849852

850853
void GraphicsImpl::saveLabeledImageImpl(std::string_view path,
851854
std::string_view label,
852-
bool select_buffers,
853855
std::string_view heatmap_control,
854856
int image_width_px)
855857
{
@@ -861,10 +863,6 @@ void GraphicsImpl::saveLabeledImageImpl(std::string_view path,
861863
gui->setDisplayControlsVisible(std::string(heatmap_control), true);
862864
}
863865

864-
if (select_buffers) {
865-
gui->select("Inst", "", "Description", "Timing Repair Buffer", true, -1);
866-
}
867-
868866
static int label_id = 0;
869867
std::string label_name = fmt::format("auto_label_{}", label_id++);
870868

‎src/gpl/src/graphicsImpl.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ class GraphicsImpl : public gpl::AbstractGraphics,
7777

7878
void setDisplayControl(std::string_view name, bool value) override;
7979

80+
const char* getDisplayControlGroupName() override { return "GPL"; }
81+
8082
int gifStart(std::string_view path) override;
8183
void deleteLabel(std::string_view label_name) override;
8284
void gifEnd(int key) override;
@@ -90,7 +92,6 @@ class GraphicsImpl : public gpl::AbstractGraphics,
9092
int image_width_px) override;
9193
void saveLabeledImageImpl(std::string_view path,
9294
std::string_view label,
93-
bool select_buffers,
9495
std::string_view heatmap_control,
9596
int image_width_px) override;
9697
void gifAddFrameImpl(int key,
@@ -167,6 +168,7 @@ class GraphicsImpl : public gpl::AbstractGraphics,
167168
std::vector<std::shared_ptr<NesterovBase>> nbVec_;
168169
NesterovPlace* np_ = nullptr;
169170
static constexpr size_t kInvalidIndex = std::numeric_limits<size_t>::max();
171+
static constexpr const char* kDrawInstances = "Draw GPL Cells";
170172
size_t selected_ = kInvalidIndex;
171173
size_t nb_selected_index_ = kInvalidIndex;
172174
bool draw_bins_ = false;

‎src/gpl/src/graphicsNone.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class GraphicsNone : public AbstractGraphics
7070
}
7171
void saveLabeledImageImpl(std::string_view path,
7272
std::string_view label,
73-
bool select_buffers,
7473
std::string_view heatmap_control,
7574
int image_width_px) override
7675
{

0 commit comments

Comments
 (0)