Reset AI Engine - 2023.1 English

Vitis Tutorials: AI Engine Development

Document ID
Release Date
2023.1 English

The host application can reset and reload the AIE array whenever required. To do this, XRT must be built into the PetaLinux build. In the host application, use the following API to reset the AI Engine with the xrtResetAIEArray function:

 auto dhdl   = xrtDeviceOpen(0);
reset_done = xrtResetAIEArray(dhdl);
if (reset_done == -1){
    printf("[Beamformer] AIE reset FAILS \n");
    log_plnx << "[Beamformer] AIE reset FAILS" <<std::endl;
    printf("[Beamformer] Exiting the application as it cannot be run\n");
    log_plnx << "[Beamformer] Exiting the application as it cannot be run" <<std::endl;
    return 1;
else if(reset_done == 0) {
    printf("[Beamformer] AIE reset done successfully\n");
    log_plnx << "[Beamformer] AIE reset done successfully" << std::endl;

If the xrtResetAIEArray function fails, the AI Engine reset has not been accomplished successfully and a system reboot might be required. See the API Documentation.

This function does not orchestrate system reset but only resets the AI Engine array.