Bu kurulum neden çalışır? (: Tamsayı: 1 M) aracılığıyla dışarı 1 olmak limanın biraz belirtmek istiyorum ama ne zaman M-1 0 downto sadece hayır mantıklı 0 aşağı 0, olurduVHDL: generic map setup
component mux2to1 is
generic (M : integer := 1); -- Number of bits in the inputs and output
port (input0 : in m32_vector(M-1 downto 0) := (others => '0');
input1 : in m32_vector(M-1 downto 0) := (others => '0');
sel : in m32_1bit;
output : out m32_vector(M-1 downto 0));
end component;
Ben genric haritalarını anlamak yoludur .
Sen 0, 1 veya daha fazla eleman olan bir dizi olabilir. (0'a kadar 0) 1 öğeye sahip olur. Bakınız IEEE Std 1076-2008 5.3.2 Dizi türleri, 5.3.2.2 İndeks kısıtlamaları ve ayrık aralıklar. – user1155120