xsi_get_status - 2022.2 English

Vivado Design Suite User Guide: Logic Simulation (UG900)

Document ID
UG900
Release Date
2022-10-19
Version
2022.2 English
XSI_INT32 xsi_get_status(xsiHandle design_handle);
int Xsi::Loader::get_status();

This function returns the status of the simulation. The status may be equal to one of the following identifiers:

Table 1. Xsi Simulation Status Identifiers
Status Code Identifiers Description
xsiNormal No error
xsiError The simulation has encountered an HDL run-time error
xsiFatalError The simulation has encountered an error condition for which the Vivado simulator cannot continue.

Example code:

#include "xsi.h"
#include "xsi_loader.h"
...
Xsi::Loader loader("xsim.dir/mySnapshot/xsimk.so","librdi_simulator_kernel.so");
...
if (loader.get_status() == xsiError)
    printf("HDL run-time error encountered.\n");