Visible to Intel only — GUID: GUID-1FC2ACC1-05D2-4B5B-B1F3-9AD45F09E665
Visible to Intel only — GUID: GUID-1FC2ACC1-05D2-4B5B-B1F3-9AD45F09E665
Simulate Your Kernel
If you want to use the simulation flow and view the waveforms generated during simulation, you must have either the Siemens EDA* Questa Simulator or ModelSim SE installed and available.
To run your SYCL library through the simulator:
Set the CL_CONTEXT_MPSIM_DEVICE_INTELFPGA environment variable to enable the simulation device:
Linux
export CL_CONTEXT_MPSIM_DEVICE_INTELFPGA=1
Windows
set CL_CONTEXT_MPSIM_DEVICE_INTELFPGA=1
NOTE:When the environment variable CL_CONTEXT_MPSIM_DEVICE_INTELFPGA is set, only the simulation devices are available. That is, access to physical boards is disabled.To unset the environment variable, run the following command:
Linux
unset CL_CONTEXT_MPSIM_DEVICE_INTELFPGA
Windows
set CL_CONTEXT_MPSIM_DEVICE_INTELFPGA=
You might need to set CL_CONTEXT_COMPILER_MODE_INTELFPGA=3 if the host program cannot find the simulator device.
Run your host program. On Linux systems, you can use GDB or Eclipse to debug your host. If necessary, you can inspect the simulation waveforms for your kernel code to verify the functionality of the generated hardware. | If you compiled with the -Xsghdl flag, running your compiled program produces a waveform file (vsim.wlf) that you can view in the Questa*-Intel FPGA Edition software as your host code executes. The vsim.wlf file is written to the same directory from where you ran your host program.