-
Notifications
You must be signed in to change notification settings - Fork 542
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
Systemverilog array assignment support #562
Comments
The error message was written before the compiler supported SystemVerilog. Traditional Verilog only allows you to assign to individual words in an array, which is what the error message is hinting at. We should output a "sorry" message when compiling SystemVerilog. And the original message would be clearer if it put quote marks around the variable name. It might not be too hard to support this functionality. We could use the same approach used to implement foreach statements, which the compiler converts into traditional for loops during elaboration. |
…562). This is valid SystemVerilog, but not something we support yet.
For now I've just improved the error message. |
I'm not sure if this is a bug or a feature request, but I have the following code:
or
both of which give the following error:
As far as I can tell, this is valid verilog and is accepted by verilator (at least in lint mode, I haven't tested a full compilation). This would be really useful to have implemented in my opinion, and even if that's not a lot of work it might be nice with a more clear error message. Reading the source code for where that error message is defined, it looks like it's talking about something else.
I'd be happy to look into supporting this construct if desired, though I might need some guideance to know where to look
The text was updated successfully, but these errors were encountered: