Z
zlotawy
Hi,
I'd like to create entity like this:
entity top1 is
generic (
NUMBER : Integer := 14
);
PORT(
P_IN_DAC : IN my_type(NUMBER -1 downto 0)
);
end top1;
and my_type is:
type my_type is array(natural range <>) of std_logic_vector(20 downto 0) ;
Compilation has errors. Where do I have to declare my type? Is it possible
to create input port of FPGA with own type?
Thanks,
zlotawy
I'd like to create entity like this:
entity top1 is
generic (
NUMBER : Integer := 14
);
PORT(
P_IN_DAC : IN my_type(NUMBER -1 downto 0)
);
end top1;
and my_type is:
type my_type is array(natural range <>) of std_logic_vector(20 downto 0) ;
Compilation has errors. Where do I have to declare my type? Is it possible
to create input port of FPGA with own type?
Thanks,
zlotawy