Skip to content
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

Parsing Error for integer memories #110

Open
kwmartin opened this issue Sep 19, 2022 · 0 comments
Open

Parsing Error for integer memories #110

kwmartin opened this issue Sep 19, 2022 · 0 comments

Comments

@kwmartin
Copy link

The following code parses fine using iverilog and seems to run. However, it gets a syntax error for the declaration of array3 when using pyverilog to compile. Section 3.10.2 of the IEEE Verilog standard indicates that integer memories should be supported.
module fixedsize_array; //declaration of array’s reg array1[0:5]; //single dimension array reg array2[2:0][3:0]; //multi dimension array integer array3[5:0]; //single dimension array initial begin //array initialization array1[0] = 1; array2[0][1] = 0; array3[5] = 117; end endmodule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant