-
Notifications
You must be signed in to change notification settings - Fork 615
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
Strip Object and Outer Class from desiredName #1194
Conversation
33334bc
to
d298740
Compare
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.
This looks good to me and it makes sense.
Only question is: Does this count as an API change?
It's an API change only if we count changes to generated FIRRTL (in any form) as an API change. I think that could go either way. |
I would definitely count changed Verilog module names as API changes since that's a pretty important API |
I agree with you about the API change, but I'd argue that counting on Verilog names is wrong due to problems with composition (the name can change depending on the namespace even with We probably need some way of failing to elaborate if a desired name isn't successfully set as I don't think there's a mechanism to guarantee a name. |
@jackkoenig: What's the merge policy for this? Would this need to run through additional regressions given the fact that it's changing Verilog name generation? Also, @jackkoenig: this should enable us to use custom |
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.
LGTM. Can override if needed...?
Signed-off-by: Schuyler Eldridge <[email protected]>
* Add spec for Analog type and attach statement * Describe role of attaches in partial connection algorithm * Change references that describe ground types where appropriate * Closes #1194 * Fix typo
This implements the fix proposed in #1166.
In effect, this strips package names, object names, and outer classes from inner classes when computing the
desiredName
. This mirrors the behavior of what I thinkdesiredName
is supposed to be, i.e., behaving likegetSimpleName
.An effect of this is that naming behaves much better in the REPL.
Related issue: Fixes #1166
Type of change: other enhancement
Impact: API modification
Development Phase: implementation