Altera_Forum
Honored Contributor
12 years agoA question about vector port declaration
I have a question about port declaration which confuses me:
In VHDL, for ports or signals, we can define as: A : out std_logic_vector(0 to 15); signal B,C : std_logic_vector(7 downto 0); I personally prefer the 2nd one but sometimes IP or modules from other engineers may be defined in 1st style. Now I have a question: if I do: A<=B & C; Does this operation do is: A(15 downto 8)<= B; A(7 downto 0) <= C; Or is: A(15 donwto 8) <= C; A(7 downto 0) <= B; or neither of them? Thanks in advance.