Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

UART in nios II

Altera_Forum
Honored Contributor II
1,443 Views

Hello  

 

We need to use UART com on our NIOS poject 

We are using cycloneV 

 

what should be the best qsys architecture in order , so to free the cpu so it can perform other task while the systm is receiveing data from uart 

 

Thank you very much 

Shalom
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
581 Views

Use a UART core with rx FIFO or use the Altera standard UART core with a DMA controller.

0 Kudos
Altera_Forum
Honored Contributor II
581 Views

Hi Cris  

Thanks for youtr reply  

you mean by "Altera standard UART core with a DMA controller" the Altera 16550 UART?  

If yes, I understand from the spec that only an HPS processor can interface with Altera 16550 UART DMA side 

 

The following is from the Altera 16550 UART spec 

"DMA Support 

The DMA interface (DMA_EXTRA) is disabled by default. It must be enabled in the IP to have the 

additional DMA_Handshaking_tx and DMA_Handshaking_rx interfaces. dma support is only available 

when used with the hps dma controller. The HPS DMA controller has the required handshake signals to 

control DMA data transfers with the IP through the DMA_Handshaking_tx and DMA_Handshaking_rx 

interfaces. The DMA handshaking interfaces are connected to the HPS through the f2h DMA request 

lines." 

 

 

But our cyclone V does not support HPS unit . so the only way is to use a rx fifo . right ?  

 

Shalom
0 Kudos
Altera_Forum
Honored Contributor II
581 Views

I mean the UART core which comes for free with Qsys has no FIFO; then you may need to add a dma component to manage rx data if you want performance. 

Other commercial UART cores usually have FIFOs or a build-in dma (like the 16550 you mentioned), but the way to interface to Nios depends on the core specifications; you must refer to the datasheet or an application note from the vendor.
0 Kudos
Altera_Forum
Honored Contributor II
581 Views

Cris  

thanks you very much for the help ! 

Shalom
0 Kudos
Reply