How to concatenate zeros with an array

Status
Not open for further replies.

xilinx1001

Member level 3
Joined
Apr 3, 2013
Messages
60
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
1,781
Hi,

I am working with uart transmission

I need to transfer 9 bits through uart.

I am sending 8 bits one time

while sending 9th bit, I am concatenating with "0000000"

out<= in(8) & "0000000"

This logic is not working here

Error: & can not have such operands in this context

Can anyone suggest me some idea to solve this
 

well, first:
in is a vector of 8bits?, defined as is? STD_LOGIC_VECTOR(7 DOWNTO 0);
then in(8) does not exist, but the MSB is in(7).
and the line need to finish with ";".
out <= in(7) & "0000000";
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…