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 #297

Closed
miquelt9 opened this issue Dec 2, 2024 · 2 comments
Closed

Parsing error #297

miquelt9 opened this issue Dec 2, 2024 · 2 comments

Comments

@miquelt9
Copy link

miquelt9 commented Dec 2, 2024

Hi!

I have tried to convert the following file into verilog:

module bus_transfer_invert(in, invert, out);
    parameter N=8;
    input [N-1:0] in;
    input invert;
    output [N-1:0] out;
    
    xor X[N-1:0] (out, in, invert);
endmodule

It returns the following error:
program_x.v:7:10: Parse error: unexpected token '[' (Sym_brack_l)

However Icarus Verilog seems to be fine with it.
For more context, my goal is to read it in Yosys for then formal equivalence checking, and I have already tried the synlig plugin but it doesn't work. Any suggestions are kindly accepted.

@zachjs
Copy link
Owner

zachjs commented Dec 12, 2024

Thank you for filing this issue! I've added support for gate arrays and multidimensional gate arrays in 12618d5. Please let me know if it works for you!

@miquelt9
Copy link
Author

Thank you Zachary, it did work for me.
I have found that my problem is related however to Yosys (where an issue has been opened as well).
Thank you again in any case.

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

2 participants