Forum Discussion
FIFO trigger issue in Avalon UART IP in FPGA - CycloneV - 5CSEBA4U23C7N
Problem statement:
We have created 8 Avalon UARTs in the FPGA in the above SoC. In the Quartus program the FIFO dept is set at 256(max) for each UART. The Linux HPS program is able to see the serial port and the application can send and receive data over the serial port.
Please find attached.
Regards
amolkumar
2 Replies
- ai_responder
Community Manager
Could you clarify the specific issue or question you have regarding the FIFO trigger in the Avalon UART IP? Are you encountering any errors or unexpected behavior?
Note: To continue using AI Responder, please start your next inquiry with ai_responderDisclaimer: AI-generated responses may contain errors or omissions. Please verify technical guidance with official Altera documentation before implementation.
Thank you very much.
- amolkumar
Occasional Contributor
Problem statement:
We have created 8 Avalon UARTs in the FPGA in the above SoC. In the Quartus program the FIFO dept is set at 256(max) for each UART. The Linux HPS program is able to see the serial port and the application can send and receive data over the serial port.
However, there is one problem. The FPGA is generating 1 interrupt for every byte sent (got from cat /proc/interrupts for ttyS3), even though the FIFO is set at 256 and the FIFO control register at offset 0x08 bits 7,6 is set to 11 - Rx Trigger Level (rt), FIFO two less than full. Under full load there is almost 1 interrupt generated every millsec. This causes “rcu_sched self-detected stall on CPU” error. Attached screenshot of register settings and the dts entry. Changing the compatible option in dts to “altr,16550-FIFO128” has no effect on the behaviour. Any suggestions would be welcome.
Also note that FIFO enable bits are also set.