Hope this is possible. I want to be able to write recursive code as follows:
entity myEntity generic ( size : natural -- a power of 2 ) port ( -- whatever ); end; architecture structural of myEntity is begin smallerEntity : entity component.myEntity(structural) generic map ( size => size/2 ); port map ( ... ); end;
Thus, each architecture creates a smaller version. For some value of the overall "size" I want to have a different implementation.
Can this be done with configurations? If so, how?
Why would I like to be able to do this, so I can create reusable code to calculate FFT / DCT and similar transformations.
source share