A
ananth kamath
Guest
Hello,
I need to have configurable number of interfaces in my entity. For example,
library max_package;
use max_package.all;
entity for_example is
port (
fixed: out std_logic;
variable: in std_logic_vector(0 to MAX)
);
end entity;
lets assume that MAX is defined in a max_package. Now the problem is when MAX = 0, i still have the variable port signal visible in my entity. Is there a neat way of achieving this ?
Kind Regards,
Anantha
I need to have configurable number of interfaces in my entity. For example,
library max_package;
use max_package.all;
entity for_example is
port (
fixed: out std_logic;
variable: in std_logic_vector(0 to MAX)
);
end entity;
lets assume that MAX is defined in a max_package. Now the problem is when MAX = 0, i still have the variable port signal visible in my entity. Is there a neat way of achieving this ?
Kind Regards,
Anantha