Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Mode enum #407
base: master
Are you sure you want to change the base?
Mode enum #407
Changes from 3 commits
0fbcfa5
cdad2aa
46b4868
bbf024e
10d94d0
ba8f207
c2d56e5
a82a9b6
397deb7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
As far as I'm aware, the modes we use are:
append
,prepend
are part of another part of Hammer and not part of this mode enum.Also, if we are going to create this enum, I think it may be good to also use them in some of the settings.
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.
We should change power straps to
generated
fromgenerate
if we're going to usegenerate
. I personally likegenerate
better, butgenerated
does keep all of the modes as adjectives, which also makes sense.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.
Yeah, maybe we can do that as a separate issue then?
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.
We can just tack it on to #397 .
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.
Hi Edward, thanks for your comment! I checked defaults.yml and it seems that pin place mode uses
generated
, and power straps mode usesgenerate
. Just to make sure, they are the same and we'll stick withgenerate
, right?Also, I'm not sure what it means to use the enum in the settings, could you explain a bit more?
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.
Hi Jingyi- let's use
generated
instead ofgenerate
. We'll change the power straps mode togenerate
.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.
Yeah, so John's comment above is alluding to that problem. I think the desired action is to use
generated
and just ignore the power straps mode for now.As for use, if you look in the code, right now it uses strings - the intention is to use this enum instead
hammer/src/hammer-vlsi/hammer_vlsi/hammer_tool.py
Line 896 in 8bcbc40