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:
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");