-
Notifications
You must be signed in to change notification settings - Fork 51
Support more useful properties #304
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
base: master
Are you sure you want to change the base?
Conversation
akashlevy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jjcherry56 ready for review again
| else if (property == "startpoint_clock"){ | ||
| const Clock *clk = end->path()->clock(sta_); | ||
| if (clk) | ||
| return PropertyValue(clk->name()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change it to the clock name? you can't get properties of a clock name like a clock object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The standard behavior of most EDA tools seems to be to return strings not objects when you request properties.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ideally we ensure that we are always returning strings when getting properties to be consistent with other tool behavior
| else if (property == "endpoint_clock") { | ||
| const Clock *clk = end->targetClk(sta_); | ||
| if (clk) | ||
| return PropertyValue(clk->name()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment above.
| else if (property == "endpoint_clock_pin") | ||
| return PropertyValue(end->targetClkPath()->pin(sta_)); | ||
| else if (property == "path_group") | ||
| return PropertyValue(sta_->search()->pathGroup(end)->name()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is plural now: pathGroups
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I'm not seeing the API for this. Can you double check?
|
@jjcherry56 fixed two of your comments and asked for clarification on the others |
Adding several useful properties onto STA objects for querying/filtering.