Forum Discussion
UART IP - waitrequest signal
Hello to everybody,
working with Platform Designer (Quartus 21.1) I'm facing something strange: I'm trying to interface the UART CORE IP with a custom hardware. But I noticed the IP is missing any flowcontrol signals.
So how to understand if the UART has received something, possibly avoid polling technique ?
As far as I know the old dataready signal is now deprecated, and is suggested to use waitrequest signal. But it seems even this signal is not implemented in the standard UART IP.
Trying to connect my custom hardware with UART IP I get this message "Interconnect is inserted between master and slave, because master has waitrequest signal 1 bit wide, but slave is 0 bit wide"
Moreover what if I want to connect directly to a DMA ?
Thanks for your help.
14 Replies
- aikeu
Regular Contributor
- aikeu
Regular Contributor
Hi Patrik78,
There is a flow control available in the UART core IP.
You can enable the CTS/RTS in the settings of the UART core IP.
There is no waitrequest signal to be considered for this IP.
Refer to the embedded peripherals IP user guide for the description of it's operation:
https://www.intel.com/content/www/us/en/docs/programmable/683130/21-2/introduction.html
Thanks.
Regards,
Aik Eu
- aikeu
Regular Contributor
FYI, the enablement of the CTS/RTS in the IP settings.
Thanks.
Regards,
Aik Eu
- Patrik78
New Contributor
Hi Aik,
actually RTS and CTS are signals on UART side, my goal is to get flow control signals on Avalon side.
In other words a standard avalon interface is not able to know if the IP has received data from uart side, except for polling technique.
- aikeu
Regular Contributor
Hi Patrik78,
The control register bit of the UART IP, IRRDY will required to be enabled if using interrupt instead of a polling technique.
"irrdy - Enable interrupt for a receive character ready"
the irq is sent to the HPS side, which has an interrupt receiver port
There is no port to detect the interrupt in the avalon interface side.
Besides that, user can consider using a new Lightweight UART IP (releasing in 22.3) which having TXFIFO and RXFIFO. With this, a DMA is not required
Thanks.
Regards,
Aik Eu
- aikeu
Regular Contributor
- aikeu
Regular Contributor
- Patrik78
New Contributor
Hello,
if I understand correctly, there's no way to use the UART IP with DMA except the use of a device with HPS.
This is really a bad thing to hear, but ok I have no other question.
- aikeu
Regular Contributor
Hi Patrik78,
Sorry that I mentioned incorrectly about HPS as your system which is using Nios ii.
The irq should be sent to the Nios ii interrupt reciver port.
The control register bit of the UART IP, IRRDY will required to be enabled if using interrupt instead of a polling technique.
"irrdy - Enable interrupt for a receive character ready"
Thanks.
Regards,
Aik Eu