Visible to Intel only — GUID: mlj1517432072214
Ixiasoft
Visible to Intel only — GUID: mlj1517432072214
Ixiasoft
1.4.1.1. Creating the Board Platform Designer (Standard) System
An implementation of a board Platform Designer (Standard) subsystem might include the following components:
- Proper reset sequencing
- Intel® FPGA SDK for OpenCL™ Standard Edition-specific components
- Host-to-FPGA communication IP
- Memory IP used for SDK's global memory
- Streaming channels to board-specific interfaces
Refer to The Board Platform Designer (Standard) System section for more information.
Templates of the following hardware design files are available in the INTELFPGAOCLSDKROOT/board/custom_platform_toolkit/board_package/hardware/template directory:
- board.qsys
- system.qsys
- top.v
- top.qpf
- board_spec.xml
Template of the post_flow.tcl file is available in the INTELFPGAOCLSDKROOT/board/custom_platform_toolkit/board_package/hardware/template/scripts directory of the Custom Platform Toolkit.
To create nonkernel logic, perform the following tasks in the system.qsys top-level Platform Designer (Standard) system or in a board Platform Designer (Standard) subsystem:
- In Platform Designer (Standard), add your host and memory IPs to the Platform Designer (Standard) system, and establish all necessary connections and exports.
Attention: You might need to acquire separate IP licenses. For a list of available licensed and unlicensed IP solutions, visit the All Intellectual Property page of the Intel® FPGA website. For more information about each IP, click the link in the Product Name column to navigate to the product page.
- Connect your host interface clock such that it drives por_reset_controller/clk. Your design's global reset and clock inputs are fed to a reset counter (por_reset_counter). This reset counter then synchronizes to the host interface clock in the Merlin Reset Controller (por_reset_controller).
The por_reset_counter ACL SW Reset component implements the power-on reset. It resets all the device hardware by issuing a reset for a number of cycles after the FPGA completes its configuration.
- Modify the parameters of the pipe_stage_host_ctrl Avalon® Memory-Mapped (Avalon-MM) Pipeline Bridge component such that it can receive requests from your host IP. Connect your host interface's Avalon-MM master port to the s0 port of pipe_stage_host_ctrl. Connect the m0 port of pipe_stage_host_ctrl to all the peripherals that must communicate with your host interface, including the OpenCL Kernel Clock Generator and the OpenCL Kernel Interface components.
- Adjust the number of clock_cross_kernel_mem_<N> Avalon-MM Clock Crossing Bridge components to match the number of memory interfaces on your board. This component performs clock crossing between the kernel and memory interfaces. Modify the parameters of each component so that they are consistent with the parameters of the OpenCL Memory Bank Divider component and the interface attribute described in board_spec.xml. Connect the m0 master, clock, and reset ports of clock_cross_kernel_mem_<N> (that is, m0, m0_clk, and m0_reset, respectively) to your memory IP.
Important: Connect m0_reset in such a way that assertion of kernel_reset from the OpenCL Memory Bank Divider component triggers this reset.
- Connect your host interface clock such that it drives por_reset_controller/clk. Your design's global reset and clock inputs are fed to a reset counter (por_reset_counter). This reset counter then synchronizes to the host interface clock in the Merlin Reset Controller (por_reset_controller).
- Customize the SDK-specific Platform Designer (Standard) system components..
Attention: If you use the board.qsys system template to create a Platform Designer (Standard) subsystem, note that it is preconfigured with the necessary connections between the SDK-specific system components and the appropriate interfaces exported to match the board_spec.xml file. Intel® recommends that you preserve the preconfigured connections as much as possible.
- In Platform Designer (Standard), click Tools > Options. In the Options dialog box, add INTELFPGAOCLSDKROOT/ip/board to the Qsys IP Search Path and then click Finish.
- Instantiate the OpenCL Kernel Clock Generator component. Specify the component parameters, and connect the signals and ports as outlined in the OpenCL Kernel Clock Generator section.
- Instantiate the OpenCL Kernel Interface component. Specify the component parameters, and connect the signals and ports as outlined in the OpenCL Kernel Interface section.
- For each global memory type, instantiate the OpenCL Memory Bank Divider component. Specify the component parameters, and connect the signals and ports as outlined in the OpenCL Memory Bank Divider section.
Attention: Set the parameters such that the resulting bank masters have the equivalent address bits and burst widths as those from the kernel, as defined in the interface attribute of the global_mem element in the board_spec.xml file. For each memory bank, Platform Designer (Standard) generates a master that inherits the same characteristics as your specifications.
- If you choose to create a Platform Designer (Standard) subsystem for the nonkernel logic, export any necessary I/Os to the top-level system.qsys Platform Designer (Standard) system.
- Edit the top-level top.v file to instantiate system.qsys and connect any board-specific I/Os.
- Set up the top.qpf Intel® Quartus® Prime project with all the necessary settings for your board design.
- Modify the post_flow.tcl file to include the Tcl code that generates the fpga.bin file during Intel® Quartus® Prime compilation.
The fpga.bin file is necessary for programming the board.
- Edit the board_spec.xml file to include board-specific descriptions.