我想把package里的常量逐个读出来,用程序怎么写啊?知道的兄弟姐妹帮帮忙,谢谢了Library IEEE; use IEEE.std_logic_1164.all; use IEEE.std_logic_arith.all; use IEEE.STD_LOGIC_UNSIGNED.ALL; package coeffs is type coef_arr is array (0 to 15) of std_logic_vector(7 downto 0); constant coefs: coef_arr:=( "00000001", "00000011", "00000100", "00000101", "11101101", "11010110", "00010111", "01011010", "01111110", "01001010", "00010111", "11010110", "11101101", "00010000", "00001101", "11111011"); end coeffs;
我把读数的端口定义如下 entity ra is port( clk :in std_logic; dout ut std_logic_vector( 7 downto 0) ); end ra;
知道的跟我说说好吗?谢谢 |