You can use the XSI example programs as a guideline. Each example supplies one or two scripts for compiling and running the example. Refer to your compiler's documentation for details on compiling a program. On Linux, compiling and running is a two-step process.
- In a C shell, source set_env.csh
- Invoke run.csh
On Windows, simply run the batch file run.bat
.
Note the following from the scripts:
- The compilation lines specify (via
-I
) the inclusion of the directory containing thexsi.h
include file. - There is no mention of the design shared library or kernel shared library during the compilation of a C++ program.
The XSI include file resides at the following location:
<Vivado Installation Root>/data/xsim/include/xsi.h