AN 889: 8K DisplayPort Video Format Conversion Design Example

ID 683547
Date 5/30/2018
Public

Compiling the 8K DisplayPort Video Format Conversion Design Example with the Nios II Software Build Tools for Eclipse

You set up an interactive Nios II Eclipse workspace for the design to produce a workspace that uses the same folders that the build script uses. If you previously run the build script, you should delete the software/vip_control and software/vip_control_bsp folders before creating the Eclipse workspace. If you re-run the build script at any point it overwrites the Eclipse workspace.

STEPS:

  1. Navigate to the software directory and unzip the vip_control_src.zip archive to generate the vip_control_src directory.
  2. In the installed project directory, create a new folder and name it workspace.
  3. In the Intel® Quartus® Prime software, click Tools > Nios II Software Build Tools for Eclipse.
    1. In the Workspace Launcher window, select the workspace folder you created.
    2. Click OK.
  4. In the Nios II - Eclipse window, click File > New > Nios II Application and BSP from Template.
    The Nios II Application and BSP from Template dialog box appears.
    1. In the SOPC Information File box, select the udx10_dp/udx10_dp.sopcinfo file.
      The Nios II SBT for Eclipse fills in the CPU name with the processor name from the .sopcinfo file.
    2. In the Project name box, type vip_control.
    3. Select Blank Project from the Templates list.
    4. Click Next.
    5. Select Create a new BSP project based on the application project template with the project name vip_control_bsp.
    6. Turn on Use default location.
    7. Click Finish to create the application and the BSP based on the .sopcinfo file.
    After the BSP generates, the vip_control and vip_control_bsp projects appear in the Project Explorer tab.
  5. In Windows Explorer, copy the contents of the software/vip_control_src directory to the newly created software/vip_control directory.
  6. In the Project Explorer tab of the Nios II - Eclipse window, right click on the vip_control_bsp folder and select Nios II > BSP Editior.
    1. Select None from the drop-down menu for sys_clk_timer.
    2. Select cpu_timer from the drop-down menu for timestamp_timer.
    3. Turn on enable_small_c_library.
    4. Click Generate.
    5. When generation completes, click Exit.
  7. In the Project Explorer tab, right-click the vip_control directory and click Properties.
    1. In the Properties for vip_control window, expand Nios II Application properties and click Nios II Application Paths.
    2. Click Add... next to Library Projects.
    3. In the Library Projects window, navigate to the udx10.dp\spftware\vip_control_src directory and select the bkc_dprx.syslib directory.
    4. Click OK.
      A message appears Convert to a relative path. Click Yes.
    5. Repeat steps 7.b and 7.c for the bkc_dptx.syslib and bkc_dptxll_syslib directories
    6. Click OK.
  8. Select Project > Build All to generate the file vip_control.elf in the software/vip_control directory.
  9. Build the mem_init file for the Intel Quartus Prime compilation:
    1. Right click vip_control in the Project Explorer window.
    2. Select Make Targets > Build….
    3. Select mem_init_generate.
    4. Click Build.
    The Intel Quartus Prime software generates the udx10_dp_onchip_memory2_0_onchip_memory2_0.hex file in the software/vip_control/mem_init directory.
  10. With the design running on a connected board, run the vip_control.elf programming file created by the Eclipse build.
    1. Right click vip_control folder in the Project Explorer tab of the Nios II - Eclipse window.
    2. Selecting Run As > Nios II Hardware. If you have a Nios II terminal window open, close it before downloading the new software.