AN 780: Compiling and Customizing an Intel® Arria® 10 Custom Platform for OpenCL*

ID 683045
Date 10/30/2018
Public
Document Table of Contents
Give Feedback

1.6.2.1. The board_env.xml File

The board_env.xml file describes your Custom Platform to the Intel® FPGA SDK for OpenCL™ Offline Compiler. Store this file in the top-level directory of your Custom Platform.

Together with the other contents of the Custom Platform, the board_env.xml file sets up the board installation that enables the Intel® FPGA SDK for OpenCL™ Offline Compiler to target a specific accelerator board.

A board_env.xml template is available in the board_package directory of the Custom Platform Toolkit.

Below is an example board_env.xml file that describes the Intel® Arria® 10 GX FPGA Development Kit Reference Platform’s board installation to the Intel® FPGA SDK for OpenCL™ Offline Compiler.

<?xml version="1.0"?>
<board_env version="18.1" name="a10_ref_18.1">
  <hardware dir="hardware" default="a10gx_fifo"></hardware>
  <platform name="linux64">
    <mmdlib>%b/linux64/lib/libaltera_a10_ref_mmd.so</mmdlib>
    <linkflags>-L%b/linux64/lib</linkflags>
    <linklibs>-laltera_a10_ref_mmd</linklibs>
    <utilbindir>%b/linux64/libexec</utilbindir>
  </platform>

  <platform name="windows64">
    <mmdlib>%b/windows64/bin/altera_a10_ref_mmd.dll</mmdlib>
    <linkflags>/libpath:%b/windows64/lib</linkflags>
    <linklibs>altera_a10_ref_mmd.lib</linklibs>
    <utilbindir>%b/windows64/libexec</utilbindir>
  </platform>
</board_env>