xsi_get_status - 2024.1 English

Vivado Design Suite User Guide: Logic Simulation (UG900)

Document ID
UG900
Release Date
2024-05-30
Version
2024.1 English
XSI_INT32 xsi_get_status(xsiHandle design_handle);
int Xsi::Loader::get_status();

This function returns the status of the simulation. The status mighr 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 runtime 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");