Skip to content

Commit 7715cdb

Browse files
committed
Merge remote-tracking branch 'origin' into cts_improve_automatic_clustering
Signed-off-by: luis201420 <[email protected]>
2 parents f96dfe2 + b57cfc6 commit 7715cdb

Some content is hidden

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

44 files changed

+3616
-68
lines changed

.github/workflows/github-actions-clang-tidy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
build_dir: "./build"
2222
cmake_command: cmake . -B build
2323
config_file: ".clang-tidy"
24-
exclude: "*/codeGenerator/templates/*,*/third-party/*,*/test/orfs/*"
24+
exclude: "*/codeGenerator/templates/*,third-party/*,test/orfs/*"
2525
split_workflow: true
2626
apt_packages: libomp-15-dev,libfl-dev,libyaml-cpp-dev
2727
- uses: The-OpenROAD-Project/clang-tidy-review/upload@master

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 = "06be7f48c85f3e66e4a79205a68ae2170be88273",
165+
commit = "60f7488a0480dc8f17aba1d28da18f0b3e777f73",
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-4230-g26b521c49",
174+
image = "docker.io/openroad/orfs:v3.0-4324-g16e8a645e",
175175
# Use OpenROAD of this repo instead of from the docker image
176176
openroad = "//:openroad",
177-
sha256 = "8fc7ac130828053d7f0a9ad93ae8e3a74e9b24be6e76f9900f809ff93a80d005",
177+
sha256 = "675813db8a9fbfd08bc86e40675c2a376fc3461b59cbf22d96a2f1905dbb4519",
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.

include/ord/OpenRoad.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ class OpenRoad
225225
void read3Dbv(const std::string& filename);
226226
void read3Dbx(const std::string& filename);
227227
void write3Dbv(const std::string& filename);
228+
void write3Dbx(const std::string& filename);
228229
void read3DBloxBMap(const std::string& filename);
229230

230231
void readDb(std::istream& stream);

src/OpenRoad.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,11 @@ void OpenRoad::write3Dbv(const std::string& filename)
507507
odb::ThreeDBlox writer(logger_, db_, sta_);
508508
writer.writeDbv(filename, db_->getChip());
509509
}
510+
void OpenRoad::write3Dbx(const std::string& filename)
511+
{
512+
odb::ThreeDBlox writer(logger_, db_, sta_);
513+
writer.writeDbx(filename, db_->getChip());
514+
}
510515
void OpenRoad::readDb(const char* filename, bool hierarchy)
511516
{
512517
try {

src/OpenRoad.i

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,13 @@ write_3dbv_cmd(const char *filename)
383383
ord->write3Dbv(filename);
384384
}
385385

386+
void
387+
write_3dbx_cmd(const char *filename)
388+
{
389+
OpenRoad *ord = getOpenRoad();
390+
ord->write3Dbx(filename);
391+
}
392+
386393
void
387394
read_db_cmd(const char *filename, bool hierarchy)
388395
{

src/OpenRoad.tcl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,13 @@ proc write_3dbv { args } {
191191
ord::write_3dbv_cmd $filename
192192
}
193193

194+
proc write_3dbx { args } {
195+
sta::parse_key_args "write_3dbx" args keys {} flags {}
196+
sta::check_argc_eq1 "write_3dbx" $args
197+
set filename [file nativename [lindex $args 0]]
198+
ord::write_3dbx_cmd $filename
199+
}
200+
194201
sta::define_cmd_args "read_3dbx" {filename}
195202

196203
proc read_3dbx { args } {

src/gpl/src/graphicsImpl.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -856,15 +856,16 @@ void GraphicsImpl::saveLabeledImageImpl(std::string_view path,
856856

857857
void GraphicsImpl::gifStart(std::string_view path)
858858
{
859-
gui::Gui::get()->gifStart(std::string(path));
859+
gif_key_ = gui::Gui::get()->gifStart(std::string(path));
860860
}
861861

862862
void GraphicsImpl::gifAddFrameImpl(const odb::Rect& region,
863863
int width_px,
864864
double dbu_per_pixel,
865865
std::optional<int> delay)
866866
{
867-
gui::Gui::get()->gifAddFrame(region, width_px, dbu_per_pixel, delay);
867+
gui::Gui::get()->gifAddFrame(
868+
gif_key_, region, width_px, dbu_per_pixel, delay);
868869
}
869870

870871
void GraphicsImpl::deleteLabel(std::string_view label_name)
@@ -874,7 +875,7 @@ void GraphicsImpl::deleteLabel(std::string_view label_name)
874875

875876
void GraphicsImpl::gifEnd()
876877
{
877-
gui::Gui::get()->gifEnd();
878+
gui::Gui::get()->gifEnd(gif_key_);
878879
}
879880

880881
} // namespace gpl

src/gpl/src/graphicsImpl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ class GraphicsImpl : public gpl::AbstractGraphics,
173173
gui::Chart* density_chart_{nullptr};
174174
gui::Chart* phi_chart_{nullptr};
175175
gui::Chart* stepLength_chart_{nullptr};
176-
bool debug_on_ = false;
176+
bool debug_on_{false};
177+
int gif_key_{0};
177178

178179
void initHeatmap();
179180
void drawNesterov(gui::Painter& painter);

src/gui/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,19 @@ save_histogram_image
165165

166166
This command can be used to generate an animated gif.
167167

168+
When used with -start this command returns an integer key that can be
169+
used to distinguish files if multiple are generated. That key can be
170+
provided when using -add or -end. If only a single file is being used
171+
the key can be ignored.
172+
168173
```tcl
169174
save_animated_gif
170175
-start|-add|-end
171176
[-resolution microns_per_pixel]
172177
[-area {x0 y0 x1 y1}]
173178
[-width width]
174179
[-delay delay]
180+
[-key key]
175181
[filename]
176182
```
177183

@@ -187,6 +193,7 @@ save_animated_gif
187193
| `-resolution`| resolution in microns per pixel to use when saving the image, default will match what the GUI has selected.|
188194
| `-width`| width of the output image in pixels, default will be computed from the resolution. Cannot be used with ``-resolution``.|
189195
| `-delay`| delay between frames in the GIF.|
196+
| `-key`| used to distinguish multiple GIF files (returned by -add).|
190197

191198
### Select Objects
192199

0 commit comments

Comments
 (0)