bram
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Groups Pages
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. 4.14 vlt 12/17/25 Update Doxygen comments to include SDT flow details.

#include "xparameters.h"
#include "xbram.h"
#include <stdio.h>

Functions

int BramExample (UINTPTR BaseAddress)
 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 ( UINTPTR  BaseAddress)

This is the entry point for the BRAM example.

Parameters
BaseAddresscontains the base address of the device
Returns
  • XST_SUCCESS to indicate success.
  • XST_FAILURE to indicate failure.
Note
In XSCT/classic flow, DeviceId is used to look up the device configuration.

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().