bram
Vitis Drivers API Documentation
xbram_example.c File Reference

Overview

This file contains a self test example using the BRAM driver (XBram).

 MODIFICATION HISTORY:
 Ver   Who  Date         Changes


1.00a sa 05/11/10 Initial release. 3.01a sa 13/01/12 Changed XBram_SelfTest(InstancePtr) to XBram_SelfTest(InstancePtr,0) as per new API (CR 639274) 4.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. 4.9 sd 07/07/23 Added SDT support.

Functions

int BramExample (u16 DeviceId)
 This is the entry point for the BRAM example. More...
 
int main (void)
 This function is the main function of the BRAM example. More...
 

Function Documentation

int BramExample ( u16  DeviceId)

This is the entry point for the BRAM example.

Parameters
DeviceIdis the XPAR_<BRAM_instance>_DEVICE_ID value from xparameters.h
Returns
  • XST_SUCCESS to indicate success.
  • XST_FAILURE to indicate failure.
Note
None.

References XBram_Config::CtrlBaseAddress, XBram_CfgInitialize(), XBram_LookupConfig(), and XBram_SelfTest().

Referenced by main().

int main ( void  )

This function is the main function of the BRAM example.

Parameters
None.
Returns
  • XST_SUCCESS to indicate success.
  • XST_FAILURE to indicate failure.
Note
None.

References BramExample().