Developer Guide

Intel® oneAPI DPC++/C++ Compiler Handbook for FPGAs

ID 785441
Date 10/24/2024
Public
Document Table of Contents

Allow Wide Memory Initialization (-Xsallow-wide-device-globals)

By default, the Intel® oneAPI DPC++/C++ Compiler uses a conservative memory width (maximum 1024 bits) when compiling your kernel to prevent possible simulation errors.

Direct the compiler to skip these conservative choices and use a more optimal internal word width with the -Xsallow-wide-device-globals option of the icpx command as shown in the following example:

Example

icpx -fintelfpga -Xsallow-wide-device-globals source_file.cpp

IMPORTANT:
Due to a known simulation issue with the Embedded Memory IP cores provided by Quartus® Prime software, using the -Xsallow-wide-device-globals option might generate functional failures in simulation that do not appear when compiling to hardware.