Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. First open the prebuilt reference design with the "_create_win_setup.cmd" script and open the block design.
  2. Add a second "AXI GPIO IP" from the IP catalog to the block design.

    Scroll Title
    anchorFigure_BD
    title Figure 1: Adding AXI GPIO IP Core



  3. Configure the IP by double-clicking on the IP. Make the changes and click "ok".

    Scroll Title
    anchorFigure_BD
    title Figure 2: AXI GPIO IP Core Configuration



  4. Right click on the port and choose "Make external" in the context menu

    Scroll Title
    anchorFigure_BD
    title Figure 3: Make the AXI G Figure 3: PIO GPIO Ports external for the Carrier LEDs



  5. Run the connection automation. The AXI GPIO IP Core gets connected to the MicroBlaze via the AXI Interface.

    Scroll Title
    anchorFigure_BD
    title Figure 4: Run Connection Automation



  6. Now the address mapping in the address editor should be set like:

    Scroll Title
    anchorFigure_BD
    title Figure 5: Address Editor - AXI GPIO 1


  7. Next, the constraints for the two leds have to be set in the constraint file.

    Scroll Title
    anchorFigure_BD
    title Figure 6: LEDs constraints



  8. Now you are all set in Vivado and you can build the bitstream + export the project to Vitis with the following command in the TCL-console(only possible in the script-based reference design from trenz).
    Manual steps would be to Generate the Bitstream and export the hardware platform.

    Scroll Title
    anchorFigure_BD
    title Figure 7: Build bitstream and export project



  9. After that was successful you can test the functionality of the VIO Core by programming the FPGA and controlling the onBoard LED2.
    Otherwise continue with Step 10.

    Scroll Title
    anchorFigure_BD
    title Figure 8: Program FPGA and control onboard LED through the VIO IP Core.



  10. Now you can build the Vitis project with the provided C/C++-Applications with the following command.
    Manual steps would be to Open Vitis(Tools → Launch Vitis IDE) and  import the project from the project directory.

    Scroll Title
    anchorFigure_BD
    title Figure 9: Build Vitis project with built vivado design



  11. In Vitis open the hello_te0717 application:

    Scroll Title
    anchorFigure_BD
    title Figure 10: Vitis hello_te0717



  12. Add the following lines of code to also make both of the LEDs blink:

    Scroll Title
    anchorFigure_BD
    title Figure 11: hello_te0717 adding code for controlling carrier LEDs



  13. Save and Build the project
  14. Right-Click on the application and choose "Run Configuration" 

    Scroll Title
    anchorFigure_BD
    title Figure 12: Run Configuration



  15. Since we already programmed the FPGA, uncheck the following: 

    Scroll Title
    anchorFigure_BD
    titleFigure 13: Run Configuration - Uncheck



  16. Click on Apply and Run to execute the program on the MicroBlaze. You Should now see the LEDs of the module and carrier blinking in sequence.
    Also if you open up a serial connection to the board with a program like PuTTY, you should see output