Forum Discussion
VHDL Function Overloading not working
- 4 years ago
Nurina,
Thank you for the feedback, this is very helpful.
Basically, if I can summarize your answer, the overloading functions need to have distinct Types for the arguments. From a function signature point of view:
my_function(arg1 : type1) return result type 1
should have an overloaded function type of :
my_function(arge1 : type2) return result type 2
Correct ?
On a background note:
I am updating a code base that someone else developed; I typically would not use overloaded functions. The design intent was to make the VHDL more readable; however I think the basic issue is that the same argument type is present in all three overloaded versions of the function, as you have illustrated. The design is large and there are many functions in packages meant to make the design more readable, however, there are always issues with VHDL conversions if one does not handle them carefully as appears to be the case here.
Thank you and Regards,
James
Hello James,
Yes you're understanding it correctly. Do you have any more questions?
Regards,
Nurina
- James_B4 years ago
Contributor
Nurina,
Thanks for confirming. I don't have any more questions.
Thank you for your help.
Kind Regards, James
- Nurina4 years ago
Regular Contributor
Hi James,
I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.
Regards,
Nurina
P/S: If you like my comment, feel free to give Kudos. If my comment solved your problem, feel free to accept my comment as solution!