UG1165 (V2020.1) June 10, 2020 Revision History

UG1165 (V2020.1) June 10, 2020 Revision History

See all versions of this document Zynq-7000 SoC: Embedded Design Tutorial A Hands-On Guide to Effective Embedded System Design UG1165 (v2020.1) June 10, 2020 Revision History Revision History The following table shows the revision history for this document. Section Revision Summary 06/10/2020 Version 2020.1 Whole document. Updated GUI screenshots. Creating a Platform Project in the Vitis Software Platform Updated New Application Project settings. with an XSA from Vivado Running the Standalone CDMA Application Using the Vitis Updated New Application Project settings. Software Platform Building an Application and Running it on the Target Board Updated New Application Project settings. Using the Vitis Software Platform Example Design: Debugging the Linux Application Using the Updated New Application Project settings. Vitis Software Platform Create the First Stage Boot Loader Executable File Updated New Application Project settings. Loading Modules and Executing Applications Updated New Application Project settings. Creating the Hello World Linux Application to Exercise the Updated New Application Project settings. OS Aware Debugging Feature 12/05/2019 Version 2019.2 General updates Added support for the Vitis™ software platform. 06/06/2018 Version 2017.3 General updates Verified for 2017.3 version of Vivado® Design Suite, Xilinx® SDK, and PetaLinux Tools. UG1165 (v2020.1) June 10, 2020Send Feedback www.xilinx.com Zynq-7000 SoC: Embedded Design Tutorial 2 Table of Contents Revision History...............................................................................................................2 Chapter 1: Introduction.............................................................................................. 5 About This Guide......................................................................................................................... 5 How Zynq Devices Simplify Embedded Processor Design..................................................... 7 How the Vivado Tools Expedite the Design Process............................................................... 8 What You Need to Set Up Before Starting............................................................................... 8 Chapter 2: Using the Zynq SoC Processing System....................................12 Embedded System Configuration........................................................................................... 12 Example Project: Creating a New Embedded Project with Zynq SoC................................. 12 Synthesizing the Design, Running Implementation, and Generating the Bitstream....... 19 Exporting a Hardware Platform.............................................................................................. 20 Creating a Platform Project in the Vitis Software Platform with an XSA from Vivado......21 Example Project: Running the "Hello World" Application................................................... 25 Additional Information............................................................................................................. 28 Chapter 3: Using the GP Port in Zynq Devices..............................................29 Adding IP in PL to the Zynq SoC Processing System............................................................ 29 Standalone Application Software for the Design.................................................................. 43 Chapter 4: Debugging with the Vitis Software Platform....................... 45 Xilinx System Debugger........................................................................................................... 45 Debugging Software Using the Vitis Software Platform...................................................... 47 Chapter 5: Using the HP Slave Port with AXI CDMA IP............................ 50 Integrating AXI CDMA with the Zynq SoC PS HP Slave Port................................................ 50 Standalone Application Software for the Design.................................................................. 55 Linux OS Based Application Software for the CDMA System...............................................58 Running Linux CDMA Application Using the Vitis Software Platform.................................60 Chapter 6: Linux Booting and Debug in the Vitis Software Platform.........................................................................................................................72 UG1165 (v2020.1) June 10, 2020Send Feedback www.xilinx.com Zynq-7000 SoC: Embedded Design Tutorial 3 Requirements............................................................................................................................ 72 Booting Linux on a Zynq SoC Board....................................................................................... 73 Chapter 7: Creating Custom IP and Device Driver for Linux................91 Requirements............................................................................................................................ 91 Creating Peripheral IP.............................................................................................................. 92 Integrating Peripheral IP with PS GP Master Port................................................................ 97 Linux-Based Device Driver Development.............................................................................100 Loading Module into Running Kernel and Application Execution.................................... 101 Chapter 8: Software Profiling Using the Vitis Software Platform... 106 Profiling an Application in the Vitis Software Platform with System Debugger............. 106 Additional Design Support Options...................................................................................... 108 Chapter 9: Linux OS Aware Debugging Using the Vitis Software Platform.......................................................................................................................109 Setting Up Linux OS Aware Debugging ...............................................................................109 Debugging Linux Processes and Threads Using OS Aware Debug ................................. 112 Appendix A: Additional Resources and Legal Notices........................... 120 Xilinx Resources.......................................................................................................................120 Solution Centers...................................................................................................................... 120 Documentation Navigator and Design Hubs...................................................................... 120 Design Files for This Tutorial................................................................................................. 121 References................................................................................................................................121 Training Resources..................................................................................................................122 Please Read: Important Legal Notices................................................................................. 123 UG1165 (v2020.1) June 10, 2020Send Feedback www.xilinx.com Zynq-7000 SoC: Embedded Design Tutorial 4 Chapter 1: Introduction Chapter 1 Introduction About This Guide This document provides an introduction to using the Xilinx® Vivado® Design Suite flow for using the Zynq®-7000 SoC device. The examples are targeted for the Xilinx ZC702 Rev 1.0 evaluation board and the tools used are the Vivado® Design Suite and the Vitis™ unified software platform. The examples in this document were created using the Xilinx tools running on Windows 7, 64-bit operating system, and PetaLinux on Linux 64-bit operating system. Other versions of the tools running on other Window installs might provide varied results. These examples focus on introducing you to the following aspects of embedded design. Note: The sequence mentioned in the tutorial steps for booting Linux on the hardware is specific to the PetaLinux tools released for 2020.1, which must be installed on the Linux host machine for exercising the Linux portions of this document. Document Audience and Scope The purpose of this guide is to empower software application developers, system software designers, and system hardware designers by providing the following: • Tutorials for creating a system with the Zynq-7000 SoC processing system (PS) and the programmable logic (PL) • Tutorials on booting the Linux OS on the Zynq SoC board and application development with PetaLinux tools • Tutorials on debugging in the Vitis integrated design environment (IDE) • System design examples Example Project The best way to learn a tool is to use it. So, this guide provides opportunities for you to work with the tools under discussion. Specifications for sample projects are given in the example sections, along with an explanation of what is happening behind the scenes. Each chapter and examples are meant to showcase different aspects of embedded design. The example takes you through the entire flow to complete the learning and then moves on to another topic. UG1165 (v2020.1) June 10, 2020Send Feedback www.xilinx.com Zynq-7000 SoC: Embedded Design Tutorial 5 Chapter 1: Introduction Additional Documentation Vivado Design Suite, System Edition Xilinx offers a broad range of development system tools, collectively called the Vivado Design Suite. Various Vivado Design Suite editions can be used for embedded system development. In this guide, you will use the System

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    124 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us