Skip to content

Conversation

@akashlevy
Copy link
Contributor

Adding several useful properties onto STA objects for querying/filtering.

Copy link
Contributor Author

@akashlevy akashlevy left a 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());
Copy link
Collaborator

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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());
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor Author

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());
Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will fix

Copy link
Contributor Author

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?

@akashlevy
Copy link
Contributor Author

@jjcherry56 fixed two of your comments and asked for clarification on the others

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.

4 participants