T
The Weiss Family
Guest
I've created a library of components to use in my designs.
Most of these components use "generic" widths.
For example, a 2-to-1 mux takes two std_logic_vector(width-1 downto 0)
inputs, and outputs one of them.
My question is as follows:
Is there a more generic way to describe this so that the inputs can be
std_logic?
XST doesn't seem to like std_logic_vector(0 downto 0).
Or, do I have to do what I have been doing, and define one component for
std_logic, and one for std_logic_vector?
Thanks,
Adam
Most of these components use "generic" widths.
For example, a 2-to-1 mux takes two std_logic_vector(width-1 downto 0)
inputs, and outputs one of them.
My question is as follows:
Is there a more generic way to describe this so that the inputs can be
std_logic?
XST doesn't seem to like std_logic_vector(0 downto 0).
Or, do I have to do what I have been doing, and define one component for
std_logic, and one for std_logic_vector?
Thanks,
Adam