Developer Guide

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

ID 785441
Date 6/24/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

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.