-
Notifications
You must be signed in to change notification settings - Fork 8
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
While loop support #63
Comments
See #27 (comment) . |
Might help with above. If our |
Good question. I’ll report after trying it out! I don’t have a good idea how they work or whether they have any contraints. |
Ping @sa2257 any updates? |
@rachitnigam HLS supports while loops. The I don't really understand what you mean by "we should be careful when implementing variable bound loops" and "if I'm running some examples. But running into backend issues. |
It’s non trivial to figure out how many times a while loop runs. We should make sure that we don’t break the type system by introducing while loops.
If you can statically figure out the bound of a while loop with the iteration variable, you can compile it to a for loop.
Vivado or buildbot? |
HLS just uses the pragma to give estimation values for hardware timing. I think that won't be very useful for us. Since we have types, we should be able to generate the Running into timing issues in The example I'm running is
where you shouldn't be able to statically know the bounds? I'm also getting an error if I partition the arrays in The partition factor used is also |
I understand what It'll be helpful if you paste the error here. Might be worth talking about the example in the paper if it is something subtle. |
Partition error?
Line 3 is the function definition. I'm keeping track of the timing error elsewhere. Will add them if it's interesting to talk about. |
Nope, I'm wrong. The while loops support will disallow this program for now, but we still need to figure out why vivado doesn't establish bounds. Moving this conversation to new HLS-specific issue. |
Can we support dumb while loops that don’t support any unrolling?
@sa2257 what does HLS do with while loops?
The text was updated successfully, but these errors were encountered: