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

Enable incrementation/decrementation in array index #2200

Open
msobkowski opened this issue Mar 24, 2020 · 0 comments
Open

Enable incrementation/decrementation in array index #2200

msobkowski opened this issue Mar 24, 2020 · 0 comments

Comments

@msobkowski
Copy link

@msobkowski msobkowski commented Mar 24, 2020

I am trying to compile a SystemVerilog file that uses incrementation in array index. Currently when decrement/increment operator is used in the index, build ends with following error:

%Error: t/t_array_index_increment.v:13:41: syntax error, unexpected --, expecting TYPE-IDENTIFIER
      decrement_array_idx = TEST_STRING[--pos];
                                        ^~
%Error: t/t_array_index_increment.v:18:41: syntax error, unexpected ++, expecting TYPE-IDENTIFIER
      increment_array_idx = TEST_STRING[++pos];
                                        ^~

I have a branch which enables this feature in Verilator, I'll open a PR to resolve this issue.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.