A
Amal
Guest
This question has come up a few time I suppose, but I still cannot
believe that functions with unconstrained arrays as their input or
output is not supported (specifically for synthesis). There are many
different situations that I would like to write some generic code that
is reused among many blocks. I understand that one might be able to
write it as a parameterized module instead of a function call. But I
still believe a generic function call would be a much more natural
view of a problem.
Especially with the addition of SystemVerilog packages and classes I
thought this would be a breeze. And my other disappointment was that
classes are not synthesizable. Again, I could think of many
situations that a syntheziable class (whether a subset of its features
or not), would be a great addition.
Does anyone have any suggestion for writing synthesizable, reusable
code similar to functions with unconstrained arrays in VHDL? NOT
using modules, tasks, or include files.
-- Amal
believe that functions with unconstrained arrays as their input or
output is not supported (specifically for synthesis). There are many
different situations that I would like to write some generic code that
is reused among many blocks. I understand that one might be able to
write it as a parameterized module instead of a function call. But I
still believe a generic function call would be a much more natural
view of a problem.
Especially with the addition of SystemVerilog packages and classes I
thought this would be a breeze. And my other disappointment was that
classes are not synthesizable. Again, I could think of many
situations that a syntheziable class (whether a subset of its features
or not), would be a great addition.
Does anyone have any suggestion for writing synthesizable, reusable
code similar to functions with unconstrained arrays in VHDL? NOT
using modules, tasks, or include files.
-- Amal