Oct 28, 2017 #1 M moonshine8995 Newbie level 6 Joined Aug 4, 2017 Messages 14 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 150 Concatination problem in port map in vhdl i want to port map Code: out_x=> mid out is 32 bit std_logic_vector and mid is 16 bit std_logic_vector. how should i do this? i change it to this Code: out => (x"0000" &mid) but i see this error Code: Formal "out_x" of mode OUT cannot be associated with an expression. thanks.
Concatination problem in port map in vhdl i want to port map Code: out_x=> mid out is 32 bit std_logic_vector and mid is 16 bit std_logic_vector. how should i do this? i change it to this Code: out => (x"0000" &mid) but i see this error Code: Formal "out_x" of mode OUT cannot be associated with an expression. thanks.
Oct 28, 2017 #2 T TrickyDicky Advanced Member level 7 Joined Jun 7, 2010 Messages 7,110 Helped 2,081 Reputation 4,181 Reaction score 2,048 Trophy points 1,393 Activity points 39,769 Re: concatination problem in port map in vhdl Out(15 downtown 0) => mid;
Nov 1, 2017 #3 M moonshine8995 Newbie level 6 Joined Aug 4, 2017 Messages 14 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 150 Re: concatination problem in port map in vhdl the out and mid size shouldn't be changed!
Nov 1, 2017 #4 T TrickyDicky Advanced Member level 7 Joined Jun 7, 2010 Messages 7,110 Helped 2,081 Reputation 4,181 Reaction score 2,048 Trophy points 1,393 Activity points 39,769 Re: concatination problem in port map in vhdl moonshine8995 said: the out and mid size shouldn't be changed! Click to expand... I dont get what you're talking about, I didnt change any sizes, I just assigned the 16 LSBs of out to mid. You can assign the 16 MSbs to whatever you want: Code: out(31 downto 16) => x"0000", Out(15 downto 0) => mid,
Re: concatination problem in port map in vhdl moonshine8995 said: the out and mid size shouldn't be changed! Click to expand... I dont get what you're talking about, I didnt change any sizes, I just assigned the 16 LSBs of out to mid. You can assign the 16 MSbs to whatever you want: Code: out(31 downto 16) => x"0000", Out(15 downto 0) => mid,