Skip to content

drt: use odb layer range instead of own options to define layers#7909

Merged
eder-matheus merged 18 commits into
The-OpenROAD-Project:masterfrom
eder-matheus:drt_layer_range
Jul 30, 2025
Merged

drt: use odb layer range instead of own options to define layers#7909
eder-matheus merged 18 commits into
The-OpenROAD-Project:masterfrom
eder-matheus:drt_layer_range

Conversation

@eder-matheus

Copy link
Copy Markdown
Member

Fixes #7858.

I've decided to remove the outdated options, but I can revert it and make them deprecated if it's preferable.

Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
@eder-matheus eder-matheus requested review from maliberty and osamahammad21 and removed request for maliberty July 28, 2025 17:18
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@maliberty

Copy link
Copy Markdown
Member

@osamahammad21 please handle the review

@maliberty maliberty removed their request for review July 28, 2025 17:41

@osamahammad21 osamahammad21 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me. I prefer having them deprecated with an error so that the user knows this is not the way we set the routing layer range anymore and update their script. Just temporarily until all flows are updated. This change should be in a separate commit that could be reverted in the future.

While I was looking at the set_routing_layers command under odb I found that it calls a command in grt. Is there an actual dependency on GRT or could we just make it pure odb?

proc define_layer_range { layers } {
set layer_range [grt::parse_layer_range "-layers" $layers]
lassign $layer_range min_layer max_layer
grt::check_routing_layer $min_layer
grt::check_routing_layer $max_layer

@eder-matheus

Copy link
Copy Markdown
Member Author

While I was looking at the set_routing_layers command under odb I found that it calls a command in grt. Is there an actual dependency on GRT or could we just make it pure odb?

I don't think we have a real dependency with GRT. I can update the command in another PR to make it pure ODB.

@osamahammad21

Copy link
Copy Markdown
Member

While I was looking at the set_routing_layers command under odb I found that it calls a command in grt. Is there an actual dependency on GRT or could we just make it pure odb?

I don't think we have a real dependency with GRT. I can update the command in another PR to make it pure ODB.

Great, then we will handle this in a separate PR. I will change my review to "Request changes" until the deprecation is added.

@osamahammad21 osamahammad21 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deprecation

Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>

@osamahammad21 osamahammad21 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll leave fixing the format and merging to you.

@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@oharboe

oharboe commented Jul 30, 2025

Copy link
Copy Markdown
Collaborator

#7921

Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Comment thread src/drt/src/TritonRoute.tcl Outdated
set rhost $keys(-remote_host)
} else {
utl::error DRT 506 "-remote_host is required for distributed routing."
utl::warn DRT 506 "-remote_host is required for distributed routing."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel build is breaking because of this error, since ORFS still uses these options. I'll turn them back into a error after updating ORFS (The-OpenROAD-Project/OpenROAD-flow-scripts#3362)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reverts commit bd9b7d9.

Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@eder-matheus eder-matheus merged commit 13839d9 into The-OpenROAD-Project:master Jul 30, 2025
11 checks passed
@eder-matheus eder-matheus deleted the drt_layer_range branch July 31, 2025 16:52
donn pushed a commit to librelane/librelane that referenced this pull request Jan 18, 2026
This PR updates OpenROAD to include some important bug fixes and
improvements.

API breakages in OpenROAD are:

- a number of procs were moved from `rsz` into the new `est`
- drt doesn't define its own layer range anymore:
The-OpenROAD-Project/OpenROAD#7909
- `random` in `place_pins` has been removed

---------

Signed-off-by: Leo Moser <leomoser99@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make set_routing_layers command control both grt and drt

4 participants