Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent treatment of flag variables #1935

Open
povik opened this issue Apr 11, 2024 · 2 comments
Open

Consistent treatment of flag variables #1935

povik opened this issue Apr 11, 2024 · 2 comments

Comments

@povik
Copy link

povik commented Apr 11, 2024

Description

There are a number of variables to turn things on/off, as documented on the "flow variables" page: https://openroad-flow-scripts.readthedocs.io/en/latest/user/FlowVariables.html

As far as I can tell those variables don't have consistent interpretation, for some variables they must be set to 1 for the documented effect (e.g. SKIP_CTS_REPAIR_TIMING), for other variables the existence of the variable is all that matters, the value is ignored (e.g. EQUIVALENCE_CHECK).

Suggested Solution

The obvious suggestion is to have a helper to check flags which would be used throughout the Tcl code; I have no idea if there's a fitting place to define one.

Additional Context

No response

@maliberty
Copy link
Member

I agree things have gotten somewhat inconsistent.

I believe all steps start with load.tcl so that could be a place to put the utility (I see append_env_var is there which seems like a utility). You could also create a utility.tcl and source it from load.tcl to make a cleaner separation.

Are you interested in resolving this?

@povik
Copy link
Author

povik commented Apr 12, 2024

Are you interested in resolving this?

Yes! If I get to it I will make the change.

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

No branches or pull requests

2 participants