Skip to content

docs: avoid double negation - #3791

Merged
maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
Pinata-Consulting:docs-double-negation
Jan 14, 2026
Merged

maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
Pinata-Consulting:docs-double-negation

Conversation

@oharboe

@oharboe oharboe commented Jan 14, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe
oharboe requested review from Copilot and maliberty January 14, 2026 18:52

Copilot AI 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.

Pull request overview

This PR improves documentation clarity by replacing double-negative phrasing ("ignored if undefined") with clearer positive phrasing ("only used when used") in variable descriptions for CORE_ASPECT_RATIO and CORE_MARGIN.

Changes:

  • Rephrased documentation to avoid double negation in variable descriptions
  • Split multi-line descriptions into separate paragraphs for better readability

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
flow/scripts/variables.yaml Updated CORE_ASPECT_RATIO and CORE_MARGIN descriptions to use positive phrasing and added paragraph breaks
docs/user/FlowVariables.md Applied the same description changes to the generated documentation table

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread flow/scripts/variables.yaml Outdated
`CORE_UTILIZATION` is undefined.
The core aspect ratio (height / width).

This variable is only used when `CORE_UTILIZATION` is used.

Copilot AI Jan 14, 2026

Copy link

Choose a reason for hiding this comment

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

The phrasing 'only used when ... is used' creates awkward repetition. Consider rephrasing to 'This variable is only used when CORE_UTILIZATION is defined.' or 'This variable only applies when CORE_UTILIZATION is set.' to be more precise and natural.

Copilot uses AI. Check for mistakes.
Comment thread flow/scripts/variables.yaml Outdated
is undefined.
`{bottom top left right}`.

This variable is only used when `CORE_UTILIZATION` is used.

Copilot AI Jan 14, 2026

Copy link

Choose a reason for hiding this comment

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

The phrasing 'only used when ... is used' creates awkward repetition. Consider rephrasing to 'This variable is only used when CORE_UTILIZATION is defined.' or 'This variable only applies when CORE_UTILIZATION is set.' to be more precise and natural.

Copilot uses AI. Check for mistakes.
Comment thread docs/user/FlowVariables.md Outdated
Comment on lines +113 to +114
| <a name="CORE_ASPECT_RATIO"></a>CORE_ASPECT_RATIO| The core aspect ratio (height / width). This variable is only used when `CORE_UTILIZATION` is used.| 1.0|
| <a name="CORE_MARGIN"></a>CORE_MARGIN| The margin between the core area and die area, specified in microns. Allowed values are either one value for all margins or a set of four values, one for each margin. The order of the four values are: `{bottom top left right}`. This variable is only used when `CORE_UTILIZATION` is used.| 1.0|

Copilot AI Jan 14, 2026

Copy link

Choose a reason for hiding this comment

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

The phrasing 'only used when ... is used' creates awkward repetition. Consider rephrasing to 'This variable is only used when CORE_UTILIZATION is defined.' or 'This variable only applies when CORE_UTILIZATION is set.' to be more precise and natural.

Suggested change
| <a name="CORE_ASPECT_RATIO"></a>CORE_ASPECT_RATIO| The core aspect ratio (height / width). This variable is only used when `CORE_UTILIZATION` is used.| 1.0|
| <a name="CORE_MARGIN"></a>CORE_MARGIN| The margin between the core area and die area, specified in microns. Allowed values are either one value for all margins or a set of four values, one for each margin. The order of the four values are: `{bottom top left right}`. This variable is only used when `CORE_UTILIZATION` is used.| 1.0|
| <a name="CORE_ASPECT_RATIO"></a>CORE_ASPECT_RATIO| The core aspect ratio (height / width). This variable is only used when `CORE_UTILIZATION` is defined.| 1.0|
| <a name="CORE_MARGIN"></a>CORE_MARGIN| The margin between the core area and die area, specified in microns. Allowed values are either one value for all margins or a set of four values, one for each margin. The order of the four values are: `{bottom top left right}`. This variable is only used when `CORE_UTILIZATION` is defined.| 1.0|

Copilot uses AI. Check for mistakes.
Comment thread docs/user/FlowVariables.md Outdated
Comment on lines +113 to +114
| <a name="CORE_ASPECT_RATIO"></a>CORE_ASPECT_RATIO| The core aspect ratio (height / width). This variable is only used when `CORE_UTILIZATION` is used.| 1.0|
| <a name="CORE_MARGIN"></a>CORE_MARGIN| The margin between the core area and die area, specified in microns. Allowed values are either one value for all margins or a set of four values, one for each margin. The order of the four values are: `{bottom top left right}`. This variable is only used when `CORE_UTILIZATION` is used.| 1.0|

Copilot AI Jan 14, 2026

Copy link

Choose a reason for hiding this comment

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

The phrasing 'only used when ... is used' creates awkward repetition. Consider rephrasing to 'This variable is only used when CORE_UTILIZATION is defined.' or 'This variable only applies when CORE_UTILIZATION is set.' to be more precise and natural.

Suggested change
| <a name="CORE_ASPECT_RATIO"></a>CORE_ASPECT_RATIO| The core aspect ratio (height / width). This variable is only used when `CORE_UTILIZATION` is used.| 1.0|
| <a name="CORE_MARGIN"></a>CORE_MARGIN| The margin between the core area and die area, specified in microns. Allowed values are either one value for all margins or a set of four values, one for each margin. The order of the four values are: `{bottom top left right}`. This variable is only used when `CORE_UTILIZATION` is used.| 1.0|
| <a name="CORE_ASPECT_RATIO"></a>CORE_ASPECT_RATIO| The core aspect ratio (height / width). This variable is only used when `CORE_UTILIZATION` is defined.| 1.0|
| <a name="CORE_MARGIN"></a>CORE_MARGIN| The margin between the core area and die area, specified in microns. Allowed values are either one value for all margins or a set of four values, one for each margin. The order of the four values are: `{bottom top left right}`. This variable is only used when `CORE_UTILIZATION` is defined.| 1.0|

Copilot uses AI. Check for mistakes.
@maliberty

Copy link
Copy Markdown
Member

I agree with Gemini on this one

@oharboe

oharboe commented Jan 14, 2026

Copy link
Copy Markdown
Collaborator Author

I agree with Gemini on this one

I went over this with Gemini... :-)

"defined" is misleading, because we can have defined, but empty variables.

Alternatives?

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe

oharboe commented Jan 14, 2026

Copy link
Copy Markdown
Collaborator Author

@maliberty Better?

@maliberty
maliberty enabled auto-merge January 14, 2026 21:29
@maliberty
maliberty merged commit ef9ed0e into The-OpenROAD-Project:master Jan 14, 2026
5 checks passed
@oharboe
oharboe deleted the docs-double-negation branch January 18, 2026 05:46
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.

3 participants