subtype word is std_logic_vector(data_width - 1 downto 0);
type memory is array(2**adr_width - 1 downto 0)of word;
逻辑综合同步过:
non locally static bounds are not supported
这是什么原因呀?
both the data_width and adr_width have to be defined as either constants or generics.
When defined as generics, as I remembered, you should use "analyze" and "elaborate" rather than "read" to input your design.