Skip to content

Latest commit

 

History

History
80 lines (47 loc) · 5.14 KB

File metadata and controls

80 lines (47 loc) · 5.14 KB

System Simulation of Versal ACAP Feature Tutorials with Riviera-PRO

1. Requirements

  • Vivado/Vitis 2022.1
  • Petalinux 2022.1
  • Riviera-Pro 2023.04

2. Compile Simulation Libraries

Generate Xilinx simulation libraries using tutorial below:

2.1. cd Riviera-PRO-2023.04-x64/etc

2.2. source setenv

2.3. source setgcc

2.4. cd Xilinx/Vivado/2022.1/data/simmodels/riviera/

2.5. ln -s 2021.04 2023.04

2.6. Open Vivado.

2.7. Go to Tools | Compile Simulation Libraries

CompVivSimLib_fig1

Figure 1: Accessing the Compile Simulation Libraries.

2.8. The Compile Simulation Libraries will open. 2.9. Select Riviera-PRO under Simulator. Select the desired language and libraries.

image

Figure 2: Compile Simulation Libraries: Simulator, Language and Library selection.

2.10. Under the Compiled library location, select the directory where you want the compiled libraries to be saved. Under the Simulator executable path, provide the path to the directory containing the riviera file in the Riviera-PRO installation directory. Under the GCC executable path, provide the path to the directory containing the gcc file in the Riviera-PRO installation directory.

image

Figure 3: Compile Simulation Libraries: Compiled library location, Simulator executable path and GCC executable path.

2.11. By default, all the IP modules available in the Vivado IP Catalog are selected for compilation. You can change that behavior by clearing the Compile Xilinx IP check box. When cleared, only the basic simulation libraries are compiled. You may also want to enable recompilation of libraries already present in the output directory. To do so, select the Overwrite the current pre-compiled libraries check box.

image

Figure 4: Compile Simulation Libraries: Compile Xilinx IP and Overwrite the current pre-compiled libraries.

2.12. When you have specified all of your settings, select Compile.

image

Figure 5: Compile Simulation Libraries: Compile.

2.13. Once the compilation is completed, you should see the compilation summary in the Tcl Console similar to the one in the picture below:

image

Figure 6: Library Compilation Summary.

The output directory (specified with the -dir argument) will contain the library.cfg configuration file and the folders with pre-compiled libraries.

3. Settings

3.1. Update the paths in the file /AMD/Vitis-Tutorials/AI_Engine_Development/Feature_Tutorials/settings.sh

3.2. source settings.sh

4. Running Examples

The following examples are supported by Riviera-PRO. Selecting a specific example will redirect to the place where the files modified for Riviera-PRO are located, as well as the description of the run and the results.