Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to concatenate zeros with an array

Status
Not open for further replies.

xilinx1001

Member level 3
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top