Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Altera Avalon Uart performance problem

I have been testing the Altera Avalon Uart by sending data to it from a different machine.

A program on the other machine sends 16kB of known data out its serial port which connects to the serial port on my uKit.

I am running the serial ports at 115200 baud.

I am having a problem where after about 4kB of received data, it begans losing the chars. Usually I only receive about 4-5kB total out of the entire 16kB sent.

My serial port is "/dev/ttyS1". If I enter "cat /dev/ttyS1 > /tmp/capture.txt", then open this file after the transfer, I can see this result.

I know that this uart does not have a FIFO. I'm trying to determine if this is likely the only problem I have or if there could be a software level issue as well.

I am working with a local FAE that is helping me to try a uart that does contain FIFO support, but I'm not seeing any difference in the behavior.

I've also thought about using the Open Cores uart16550. Has anyone ported this into their Nios II design? Does it work seemlessly with the standard 16550 compatible uart kernel driver?

I have lots of questions and I'm just wondering if anyone else has dealt with any of these issues.

I don't know if it is a hardware problem, software problem, or maybe...just maybe a user problem.

16 Replies