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

Infrastructure to incorporate components with hls::vector interface #1248

Merged
merged 5 commits into from
Dec 9, 2024

Conversation

auphelia
Copy link
Collaborator

@auphelia auphelia commented Dec 5, 2024

This PR contains changes to enable HLS custom ops to run cppsim with the new hls::vector interface instead of the packed datatype interface most finn-hlslib components currently have. The goal is to have the packed datatype and the new one provided in parallel and when all nodes use the new interface, deprecate the old one. Please note, that this mainly means changes to cppsim, the resulting interface of the HW is identical between the two methods.

Thanks to @mdanilow for his contributions to this PR!

Currently, the cpp_interface defaults to "packed". When adding new HLS components with hls_vector interface, please overwrite that node attribute in the HLS custom operator: e.g.,
my_attrs.update({"cpp_interface": ("s", False, "hls_vector", {"hls_vector"})}). Make sure that this is the last line of the node attributes, to not overwrite it with the parent class.

@auphelia auphelia marked this pull request as ready for review December 9, 2024 14:48
@auphelia auphelia merged commit d1b286a into dev Dec 9, 2024
2 checks passed
@auphelia auphelia deleted the infra/hlsvector branch December 9, 2024 15:08
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

Successfully merging this pull request may close these issues.

1 participant