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

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

Not supported while loop #549

iv2nl0b9v opened this issue Jan 23, 2024 · 0 comments

Comments

@iv2nl0b9v
Copy link

iv2nl0b9v commented Jan 23, 2024

While loop not supported for synthesizeable code:

module while_loop(
  input logic [3:0] in,
  output logic [3:0] out
);
  always @(in) begin
    integer a = 3;
    while (a >= 0) begin
      out[a] = in[a];
      a = a - 1;
    end
  end
endmodule : while_loop
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