-
Notifications
You must be signed in to change notification settings - Fork 53
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
Calyx Level Statistics Pass #1184
Comments
Desiderata:
|
Heck yes! This would be super cool. I suppose v1.0 of this could produce a CSV file that looks roughly like:
In other words, it would count the total number of instantiations of every component in a given program, primitive or otherwise. There would always be exactly one instantiation of the top-level component That would provide a good foundation for a more elaborate project where we actually try to estimate area (i.e., resource consumption for a particular backend). |
In a recent synchronous meeting about Pollen, the occasionally-discussed desire for an easier route to resource estimation arose again. @priyasrikumar sounded interested in trying this out as a way to get more familiar with the Calyx compiler internals, which seems like a great idea and very timely to me. So, here is a little more detail on a simple trajectory I can imagine:
Anyway, for our proximate needs in Pollen, we should set our eyes on v2.0 above, which seems both achievable and really useful all on its own. Stuff after that is much more speculative/just for fun. FWIW, I think the right way to think about implementing this would be by adding a backend, i.e., a sibling to our current |
@priyasrikumar would you consider this closed by the newest PR? |
I didn't initially consider this closed due to v2.1 onward being unimplemented. However, after our discussion about the backend, I suppose we can consider this closed and make a separate issue for further development? |
Yeah, I think we can close this one because we've done the big stuff!! I say we leave it here until we have a need at some point for "short circuiting" Vivado and guessing what it will say. |
Alright! Closed by #1372! |
Just writing up a small idea that emerged during this week's meeting. It would be nice to have a primitive use/statistics pass at the Calyx level to determine total counts of components and could potentially become a resource use estimation pass.
The text was updated successfully, but these errors were encountered: