Programming Guide

Contents

Compile a Kernel for Simulation (Beta)

Before you perform simulation, you must ensure that the Intel® Quartus Prime Pro Edition software is installed on your system. You can accomplish this by installing an appropriate version of the FPGA Add-on for Custom Platforms using Intel® Quartus® Prime Pro Edition software package.
To compile a kernel for simulation, include the
-Xssimulation
option in your
dpcpp
command as shown in the following:
dpcpp -fintelfpga -Xssimulation fpga_compile.cpp
To enable collecting the waveform during the simulation, include the
-Xsghdl[=
<depth>
]
option in your
dpcpp
command, where the optional
<depth>
attribute specifies how many levels of hierarchy are logged. If you do not specify a value for the
<depth>
attribute, all waveform signals are logged.
When simulating on Windows systems, you need the Microsoft linker and additional compilation time libraries. Verify the following settings:
  • The
    PATH
    environment variable setting must include the path to the
    LINK.EXE
    file in Microsoft Visual Studio.
  • LIB
    environment variable setting includes the path to the Microsoft compile time libraries. The compile time libraries are available with Microsoft Visual Studio.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.