G
Gary Pace
Guest
Hi :
I have a component that has more than one architecture where the best
architecture to use depends on the value of the generic parameters.
In this case it's a combinatorial unsigned normalize and prioritize where if
the width is 2^N I can do simple bit slices, but otherwise I need to do
something more complex and less efficient.
I know I can directly instance an entity and specify the architecture, but I
would like to make this decision within "component.vhd" based upon the
generics found during elaboration, so that higher level entities that use
the function are not involved in the decision.
Is this possible ?
Thanks
Gary
I have a component that has more than one architecture where the best
architecture to use depends on the value of the generic parameters.
In this case it's a combinatorial unsigned normalize and prioritize where if
the width is 2^N I can do simple bit slices, but otherwise I need to do
something more complex and less efficient.
I know I can directly instance an entity and specify the architecture, but I
would like to make this decision within "component.vhd" based upon the
generics found during elaboration, so that higher level entities that use
the function are not involved in the decision.
Is this possible ?
Thanks
Gary