Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

serial communication in VHDL, labview

Status
Not open for further replies.

Monali Sonawane

Newbie level 1
Joined
Dec 23, 2006
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,290
Hi all,
I am trying to send 2048 bytes continuously from FPGA to Computer serially. i have checked behavioural simulation the code is all correct but still it is sending only 1250 bytes. I have divided data into two 1024 bytes of memory inside fpga. I read first memory one by one byte and send it to computer after sending 1024 bytes completely I reset all counters and start again to send next 1024 bytes.
here I mean to say there are two simillar blocks but only first block is performing correctly and second block eventhough it is same one it is not executing correctly (only 226 bytes).
Is the problem may be related to serial port buffer?
Please help me if someone has gone through simillar problem .

thanks
 

S

Sckoarn

Guest
Monali Sonawane,
Sounds like you have a good idea already, are the bytes you get the correct bytes? In other words, the bytes you recieve, are they correct, in the correct order? You could try changing the logic slightly and only use the second RAM. That way you will see if it is the RAM or the Buffering as you suspect. Is there somekind of "flush" command you can use on your communications port interface? I know I have had problems like that in the past where part of my file is stuck in a buffer and you have to flush or exit the application to get it to finish writing to a file, for instance.

Hope that helps some
Sckoarn
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top