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

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

1.7.4. Updating the Original Custom Platform Directory with the New Custom Platform Modifications

The final step to customizing your Custom Platform is to copy all modified files back into the original Custom Platform directory (that is, the a10gx_ref_18.1/hardware/a10gx_fifo directory). By updating the files in the a10gx_fifo directory, the Intel® FPGA SDK for OpenCL™ Offline Compiler will use the new customized Custom Platform when it performs subsequent compilations that target your Intel® Arria® 10 board.
  1. Copy the following files back into the hardware/a10gx_fifo directory.
    Table 8.  Files to be Copied into the hardware/a10gx_fifo Directory
    Files Changes
    ROOT PARTITION
    top.v Added extra ports between the board and freeze wrapper components.
    BOARD INTERFACE
    board.qsys Added a FIFO component to the Platform Designer framework.
    base.qar Copied and replaced the base.qar file from the current directory back into the hardware/a10gx_fifo directory.
    FREEZE WRAPPER FILES
    freeze_wrapper.v Added extra ports for the FIFO component that is part of the kernel logic.
  2. After modifying the files in the original Custom Platform directory, regenerate your new Custom Platform by performing the following tasks:
    1. Ensure that the vector_add.cl file is in the a10gx_ref_18.1 project directory. If not, download the design example and copy the vector_add.cl file to the a10gx_ref_18.1 directory.
    2. At a command prompt, invoke the aoc vector_add.cl –v --no-interleaving default command to compile the vector_add kernel to hardware. If the Intel® FPGA SDK for OpenCL™ Offline Compiler reports any errors, refer to the Compilation Log Files section for more information that can help you debug your kernel.
    3. After the Intel® FPGA SDK for OpenCL™ Offline Compiler finishes compiling the vector_add kernel, refer to the Analyzing the Results from Compilation section to check the Fitter, Timing Analyzer reports and placement in the Floorplanner.