-
Notifications
You must be signed in to change notification settings - Fork 602
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
@chiselName on a Module with a nested ChiselEnum results an error #1100
Comments
It seems the problem is that @chiselName will change
In the meantime, I think you could work around this by just rewriting your code to: object State extends ChiselEnum {
val x, y, z = Value
}
@chiselName
class MyModule extends MultiIOModule {
val state = RegInit(State.x)
// ...
} |
That sounds like a reasonable root-cause - the chiselName macro really mostly is a simple rewrite that adds a |
My plan was to change the |
Type of issue: bug report
Impact: unknown
Development Phase: request
Other information
Applying
@chiselName
annotation on aModule
with aChiselEnum
object results in compilation error.If the current behavior is a bug, please provide the steps to reproduce the problem:
Scala compile error:
Error: Value cannot be called without assigning to an enum val x, y, z = Value
What is the current behavior?
What is the expected behavior?
Please tell us about your environment:
3.0-SNAPSHOT
macOS
What is the use case for changing the behavior?
The text was updated successfully, but these errors were encountered: