Altera_Forum
Honored Contributor
7 years agoHLS Best Practices for Parameter Passing
Hello, I am new to using HLS and I am used to the object oriented programming that can be done in C++.
What is the closest analog to making class or a struct so that many parameters can be passed into a component without cluttering the component function's definition? I have many different components that require similar, but not exactly the same inputs. Would I be losing efficiency if I pass in a single, overarching struct that includes all of these parameters? Thanks for the input!