![]() |
bram
Vitis Drivers API Documentation
|
Demonstrates the XBram interrupt example.
This file contains a design example using the BRAM driver (XBram) in an interrupt driven mode of operation. This example assumes that there is an interrupt controller in the hardware system and the BRAM device is connected to the interrupt controller.
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, XBRAM_IR_ALL_MASK) 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.7 mus 08/25/21 BRAM and interrupt controller instance need not to be declared in case of peripheral test, added condition to skip them in case of peripheral test (CR#1108877) 4.9 sd 07/07/23 Added SDT support. 4.13 ml 07/14/25 Fix GCC warnings. 4.14 vlt 12/12/25 Update Doxygen comments to include SDT flow details. 4.15 vn 07/30/26 Fix Doxygen warnings 4.15 tb 09/15/26 Align Doxygen comments with AMD standards.
#include "xparameters.h"#include "xbram.h"#include "xil_exception.h"#include "xil_cache.h"#include <stdio.h>#include "xinterrupt_wrap.h"Functions | |
| int | BramIntrExample (XBram *InstancePtr, UINTPTR BaseAddress) |
| Tests BRAM interrupts from a TestAppGen application. More... | |
| int | main (void) |
| Runs the BRAM interrupt example. More... | |
Variables | |
| XBram | Bram |
| The instance of the BRAM driver. More... | |
| int BramIntrExample | ( | XBram * | InstancePtr, |
| UINTPTR | BaseAddress | ||
| ) |
Tests BRAM interrupts from a TestAppGen application.
| [out] | InstancePtr | Reference to the BRAM driver Instance. |
| [in] | BaseAddress | Contains the base address of the device. |
References XBram::Config, XBram_Config::CtrlBaseAddress, XBram_Config::EccStatusInterruptPresent, XBram_Config::FaultInjectionPresent, XBram_Config::IntId, XBram_Config::IntrParent, XBram_Config::UncorrectableFailingDataRegs, XBram_CfgInitialize(), XBRAM_IR_ALL_MASK, XBram_LookupConfig(), and XBram_SelfTest().
Referenced by main().
| int main | ( | void | ) |
Runs the BRAM interrupt example.
Initializes the BRAM device and sets up interrupts.
References BramIntrExample().
| XBram Bram |
The instance of the BRAM driver.