![]() |
llfifo
Xilinx SDK Drivers API Documentation
|
This file demonstrates how to use the Streaming fifo driver on the xilinx AXI Streaming FIFO IP.The AXI4-Stream FIFO core allows memory mapped access to a AXI-Stream interface.
The core can be used to interface to AXI Streaming IPs similar to the LogiCORE IP AXI Ethernet core, without having to use full DMA solution.
This is the polling example for the FIFO it assumes that at the h/w level FIFO is connected in loopback.In these we write known amount of data to the FIFO and Receive the data and compare with the data transmitted.
Note: The TDEST Must be enabled in the H/W design inorder to get correct RDR value.
MODIFICATION HISTORY:
Ver Who Date Changes ----- ---- -------- ------------------------------------------------------- 3.00a adk 08/10/2013 initial release CR:727787 5.1 ms 01/23/17 Modified xil_printf statement in main function to ensure that "Successfully ran" and "Failed" strings are available in all examples. This is a fix for CR-965028. ms 04/05/17 Added tabspace for return statements in functions for proper documentation and Modified Comment lines to consider it as a documentation block while generating doxygen.
Functions | |
int | XLlFifoPollingExample (XLlFifo *InstancePtr, u16 DeviceId) |
This function demonstrates the usage AXI FIFO It does the following: More... | |
int | TxSend (XLlFifo *InstancePtr, u32 *SourceAddr) |
TxSend routine, It will send the requested amount of data at the specified addr. More... | |
int | RxReceive (XLlFifo *InstancePtr, u32 *DestinationAddr) |
RxReceive routine.It will receive the data from the FIFO. More... | |
int | main () |
Main function. More... | |
int main | ( | ) |
Main function.
This function is the main entry of the Axi FIFO Polling test.
None |
References XLlFifoPollingExample().
int RxReceive | ( | XLlFifo * | InstancePtr, |
u32 * | DestinationAddr | ||
) |
RxReceive routine.It will receive the data from the FIFO.
InstancePtr | is a pointer to the instance of the XLlFifo instance. |
DestinationAddr | is the address where to copy the received data. |
References XLlFifo_iRxGetLen().
int TxSend | ( | XLlFifo * | InstancePtr, |
u32 * | SourceAddr | ||
) |
TxSend routine, It will send the requested amount of data at the specified addr.
InstancePtr | is a pointer to the instance of the XLlFifo component. |
SourceAddr | is the address where the FIFO stars writing |
int XLlFifoPollingExample | ( | XLlFifo * | InstancePtr, |
u16 | DeviceId | ||
) |
This function demonstrates the usage AXI FIFO It does the following:
InstancePtr | is a pointer to the instance of the XLlFifo component. |
DeviceId | is Device ID of the Axi Fifo Deive instance, typically XPAR_<AXI_FIFO_instance>_DEVICE_ID value from xparameters.h. |
Referenced by main().