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

Feature request: while loops #387

Closed
spurserh opened this issue Apr 12, 2021 · 2 comments
Closed

Feature request: while loops #387

spurserh opened this issue Apr 12, 2021 · 2 comments
Labels
xlscc xls/blob/main/xls/contrib/xlscc

Comments

@spurserh
Copy link
Collaborator

No description provided.

@spurserh spurserh added the xlscc xls/blob/main/xls/contrib/xlscc label Apr 12, 2021
@ted-xie
Copy link
Collaborator

ted-xie commented Apr 15, 2021

Does something like this work?

int condition = 0;
for ( ; ; ) {
  condition++;
  if (condition == 16) break;
}

@spurserh
Copy link
Collaborator Author

spurserh commented Aug 5, 2022

While loops are supported now. for ( ; ; ) / while(true) will work in unrolling if there's a break inside the body, or as a pipelined loop.

@spurserh spurserh closed this as completed Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
xlscc xls/blob/main/xls/contrib/xlscc
Projects
None yet
Development

No branches or pull requests

2 participants