0
我想知道如何聲明二維內存與通用數據寬度與通用數據寬度VHDL多維存儲
package mem_pkg is
subtype data is std_logic_vector(7 downto 0);
type data_vector is array(natural range <>) of data;
end;
entity mem is
port (
clk : in std_logic;
we : in std_logic -- write enable
a: in unsigned(4 downto 0); -- address
di : in data; -- data_in
do : out data -- data_out
);
end mem;
而不是7,我想要的數據寬度是通用。
謝謝,但它不是由在XST – 2013-03-26 19:15:17
我支持擔心在Xilinx抱怨他們最終需要支持* 5年前的*標準時,您將不得不加入全體團隊。 – 2013-03-27 10:23:31