Intel® FPGA SDK for OpenCL™: Stratix® V Network Reference Platform Porting Guide

ID 683645
Date 11/06/2017
Public
Document Table of Contents

2.5. Building the Software in Your Custom Platform

You can build the software in your custom platform by modifying the library, driver, and source files provided in the Stratix® V Network Reference Platform. To brand your custom platform, you must modify the MMD library, driver, and utilities provided in s5_net to include information specific to your board design.
  1. In the software available with s5_net, ensure that you replace all references to s5_net to your Custom Platform.
  2. Modify the linklib element in <your_custom_platform_name>/board_env.xml XML file to your custom MMD library name.
  3. Modify the PACKAGE_NAME and MMD_LIB_NAME fields in the <your_custom_platform_name>/source/Makefile.common file.
  4. Modify the following files to include information of your Custom Platform:
    • For Windows, <your_custom_platform_name>\source\include\hw_pcie_constants.h
    • For Linux, <your_custom_platform_name>/linux64/driver/hw_pcie_constants.h
    Update the following lines of code with information of your Custom Platform:
    #define ACL_PCI_SUBSYSTEM_VENDOR_ID 0x1172
    #define ACL_PCI_SUBSYSTEM_DEVICE_ID 0x0005
    #define ACL_BOARD_PKG_NAME "s5_net"
    #define ACL_VENDOR_NAME "Intel(R) Corporation"
    #define ACL_BOARD_NAME "Network Reference Platform"
    Note: The IDs must match the parameters in the PCIe® controller hardware. For more information, refer to PCIe Device Identification Registers.
  5. For Windows systems, update the DeviceList field in the <your_custom_platform_name>\windows64\driver\acl_boards.inf Setup Information file.
  6. Run make in the <your_custom_platform_name>/source directory to generate the MMD library, driver, and utilities.