Compiling Your C/C++ Program - 2021.2 English

Vivado Design Suite User Guide: Logic Simulation (UG900)

Document ID
UG900
Release Date
2021-10-22
Version
2021.2 English

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.

  1. In a C shell, source set_env.csh
  2. Invoke run.csh

On Windows, simply run the batch file run.bat.

Note the following from the scripts:

  1. The compilation lines specify (via -I) the inclusion of the directory containing the xsi.h include file.
  2. 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