Altera_Forum
Honored Contributor
7 years agoHandling generic parameters in Quartus II 16.1 VHDL
Hello to everyone,
I fpga and vhdl begginer and I am currently working on university project which concerns some array calculations on Cyclone V fpga and VHDL and I have a problem. All custom made types are defined in package and also array dimensions are defined there too and this package is included in all .vhd files because these custom types are used as ports for some entities. The problem starts when I try to extract array dimensions out of package, as generic for top-level entity. I have found here some previous posts that I have modified into this: type myArray is array(natural range <>) of std_logic_vector; but this still does not work and later during instantiation of an component, quartus reports an error that unconstrained arrays are not allowed so it won't connect all necessary components. Can anyone help me to achieve all things related to generic parameters and how to avoid this problem? Regards, Al