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

Not supported while loop inside "initial" block #550

Open
iv2nl0b9v opened this issue Jan 23, 2024 · 0 comments
Open

Not supported while loop inside "initial" block #550

iv2nl0b9v opened this issue Jan 23, 2024 · 0 comments

Comments

@iv2nl0b9v
Copy link

Repro:

module while_loop_inside_initial();
  initial begin
    integer a = 3;
    while (a > 1) begin
      a = a - 1;
    end
  end
endmodule : while_loop_inside_initial

Error:
ERROR: While loops are only allowed in constant functions!

While loop is not supported inside non-synthesizeable inside block.

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