Repository navigation
Conversation
|
Let me know if I should provide a test to trigger |
There was a problem hiding this comment.
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.
|
clang-tidy review says "All clean, LGTM! 👍" |
6862a20 to
3958ac0
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
|
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 |
3958ac0 to
b3a39ed
Compare
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>
b3a39ed to
5d292ee
Compare
@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. |
| 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; | ||
| } |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
@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 :)
There was a problem hiding this comment.
@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?
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
Impact
No
Verification
./etc/Build.sh).