Forum Discussion

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

UART in nios II

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

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.