Skip to content

drt: suppress DRT-0349 warning on PDKs without CUTCLASS support - #10174

Closed
dnltz wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
dnltz:WIP/dnltz/suppress-drt-0349
Closed

dnltz wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
dnltz:WIP/dnltz/suppress-drt-0349

Conversation

@dnltz

@dnltz dnltz commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Summary

LEF58_ENCLOSURE rules without a CUTCLASS are skipped regardless, but the warning was firing unconditionally. On PDKs that define no cut classes at all, the warning is expected and not actionable. Guard it so it only fires when the layer actually has cut class rules defined.

Type of Change

  • Bug fix

Impact

No

Verification

  • I have verified that the local build succeeds (./etc/Build.sh).
  • I have run the relevant tests and they pass.
  • My code follows the repository's formatting guidelines.
  • I have signed my commits (DCO).

@dnltz

dnltz commented Apr 17, 2026

Copy link
Copy Markdown
Contributor Author

Let me know if I should provide a test to trigger DRT-0349.

@maliberty
maliberty requested a review from osamahammad21 April 17, 2026 15:27

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the io::Parser::setCutLayerProperties function in src/drt/src/io/io.cpp to suppress the DRT-0349 warning regarding unsupported LEF58_ENCLOSURE without a CUTCLASS when no cut class rules are defined for the layer. Multiple test expectation files have been updated to reflect the removal of these warnings from the output. I have no feedback to provide as there were no review comments to evaluate.

@github-actions

Copy link
Copy Markdown
Contributor

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

@dnltz
dnltz force-pushed the WIP/dnltz/suppress-drt-0349 branch from 6862a20 to 3958ac0 Compare April 17, 2026 16:34
@github-actions

Copy link
Copy Markdown
Contributor

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

@osamahammad21

Copy link
Copy Markdown
Member

These warnings are important for tracking which rules are skipped or unsupported by DRT in a given run, especially when bringing up a new technology or PDK. If the warning is too noisy for a specific flow, it can be suppressed with suppress_warning

@dnltz
dnltz force-pushed the WIP/dnltz/suppress-drt-0349 branch from 3958ac0 to b3a39ed Compare June 6, 2026 10:19
@dnltz
dnltz requested review from a team as code owners June 6, 2026 10:19
@dnltz
dnltz requested a review from eder-matheus June 6, 2026 10:19
dnltz added 2 commits June 6, 2026 12:22
LEF58_ENCLOSURE rules without a CUTCLASS are skipped regardless, but
the warning was firing unconditionally. On PDKs that define no cut
classes at all, the warning is expected and not actionable. Guard it
so it only fires when the layer actually has cut class rules defined.

Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
DRT-0349 is now suppressed when LEF58_ENCLOSURE and CUTCLASS are
not defined in a layer.

Add an extre test case to trigger DRT-0349.

Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
@dnltz
dnltz force-pushed the WIP/dnltz/suppress-drt-0349 branch from b3a39ed to 5d292ee Compare June 6, 2026 10:39
@dnltz

dnltz commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

These warnings are important for tracking which rules are skipped or unsupported by DRT in a given run, especially when bringing up a new technology or PDK. If the warning is too noisy for a specific flow, it can be suppressed with suppress_warning

@osamahammad21 Currently, this warning gets fired when both properties (LEF58_ENCLUSE and CUTCLASS) are missing for a layer. It's just generating noise without any purpose with PDKs like sky130, gf180 or IHP. Moreover, the warning is wrong in this case because it's communicates LEF58_ENCLOSURE is actually present - which is wrong.

I added an extra test case to trigger this warning when LEF58_ENCLOSURE is present, but CUTCLASS is missing. Still same behavior as before.

Comment thread src/drt/src/io/io.cpp
Comment on lines 2129 to 2139
if (!rule->isCutClassValid()) {
logger_->warn(DRT,
349,
"LEF58_ENCLOSURE with no CUTCLASS is not supported. "
"Skipping for layer {}",
layer->getName());
if (!layer->getTechLayerCutClassRules().empty()) {
logger_->warn(DRT,
349,
"LEF58_ENCLOSURE without CUTCLASS qualifier is not "
"supported on layer {} which defines CUTCLASS rules; "
"skipping this rule.",
layer->getName());
}
continue;
}

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.

These warnings are important for tracking which rules are skipped or unsupported by DRT in a given run, especially when bringing up a new technology or PDK. If the warning is too noisy for a specific flow, it can be suppressed with suppress_warning

@osamahammad21 Currently, this warning gets fired when both properties (LEF58_ENCLUSE and CUTCLASS) are missing for a layer. It's just generating noise without any purpose with PDKs like sky130, gf180 or IHP. Moreover, the warning is wrong in this case because it's communicates LEF58_ENCLOSURE is actually present - which is wrong.

I added an extra test case to trigger this warning when LEF58_ENCLOSURE is present, but CUTCLASS is missing. Still same behavior as before.

@dnltz My main concern is with the logic here. In the case where LEF58_ENCLOSURE is present but CUTCLASS is missing (even if the layer doesn't define cutclasses), DRT silently skips the enclosure rule without informing the user.

The purpose of this warning is not to report a PDK issue. It is to make it clear that DRT does not currently support/apply that rule, which is important information when debugging a routing issue or bringing up a new technology.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@osamahammad21 thank you for your feedback. I already had a pull-request open to suppress this warning in OpenROAD. It feels a little odd to disable this for all open source PDKs right now, but that's fine :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@maliberty should I re-open The-OpenROAD-Project/OpenROAD-flow-scripts#3919 and suppress this warning for IHP? Should I also extend this PR to do the same for GF180 and SKY130?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants