Forum Discussion
Altera_Forum
Honored Contributor
9 years agoIt is ok. You can declare your type as follows for more simplicity.
type memory_t is array (2**ADDR_WIDTH-1 downto 0) of td_logic_vector ((DATA_WIDTH-1) downto 0); use your package in other files. You can even define port types as memory_t (Beauty of VHDL)!