-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
parameter array of strings causes an syntax error #101
Comments
According to Formal syntax of LRM,
|
I changed the code to the following
And the parse does work. But the only way I discovered this problem was by using sv-parse. Every other SystemVerilog tool that I am aware:. Vivado, Questa, Quartus, even Verible (another FOSS tool) parse this code just fine. |
For example, Synopsys Formality outputs syntax error to this code. |
I can appreciate the value of finding code that is not strictly compliant with the LRM. Sometimes I think that HDL tool vendors do not do the developer community any favors by allowing code that is non-compliant. |
$ svinst test.sv
files:
parse failed: "test.sv"
test.sv:72:42
|
72 | localparam string TESTED_VERSIONS[] =
| ^
The syntax is maybe a little weird, but perfectly legal. This code compiles on a commercial tool.
The text was updated successfully, but these errors were encountered: