没有合适的资源?快使用搜索试试~ 我知道了~
首页ug1165-zynq-embedded-design-tutorial.pdf
ug1165-zynq-embedded-design-tutorial.pdf
需积分: 10 327 浏览量
更新于2023-03-16
评论
收藏 8.15MB PDF 举报
《ug1165-zynq-embedded-design-tutorial》zynq7000系列芯片手册,值得拥有,赶紧下载吧。
资源详情
资源评论
资源推荐

Zynq-7000 All
Programmable SoC:
Embedded Design
Tutorial
A Hands-On Guide to Effective
Embedded System Design
UG1165 (v2017.3) November 23, 2017
UG1165 (v2017.4) December 20, 2017
This tutorial was validated with 2017.3. Minor procedural differences might be required when using
later releases.

Zynq-7000 AP SoC: Embedded Design Tutorial 2
UG1165 (v2017.3) November 23, 2017 www.xilinx.com
Revision History
The following table shows the revision history for this document.
Date Version Revision
11/23/2017 2017.3 Verified for 2017.3 version of Vivado® Design Suite, Xilinx® SDK, and PetaLinux
Tools.
Send Feedback
UG1165 (v2017.4) December 20, 2017
12/20/2017: Released with Vivado® Design Suite 2017.4 without changes from 2017.3.

Zynq-7000 AP SoC: Embedded Design Tutorial 3
UG1165 (v2017.3) November 23, 2017 www.xilinx.com
Table of Contents
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Chapter 1: Introduction
About This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
How Zynq Devices Simplify Embedded Processor Design. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
How the Vivado Tools Expedite the Design Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
What You Need to Set Up Before Starting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Chapter 2: Using the Zynq SoC Processing System
Embedded System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Example Project: Creating a New Embedded Project with Zynq SoC . . . . . . . . . . . . . . . . . . . . . . . . 15
Example Project: Running the “Hello World” Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Additional Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Chapter 3: Using the GP Port in Zynq Devices
Adding IP in PL to the Zynq SoC Processing System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Standalone Application Software for the Design. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Chapter 4: Debugging with SDK
Xilinx System Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Debugging Software Using SDK. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Chapter 5: Using the HP Slave Port with AXI CDMA IP
Integrating AXI CDMA with the Zynq SoC PS HP Slave Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Standalone Application Software for the Design. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Linux OS Based Application Software for the CDMA System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Running Linux CDMA Application Using SDK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Chapter 6: Linux Booting and Debug in SDK
Requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Booting Linux on a Zynq SoC Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Send Feedback
UG1165 (v2017.4) December 20, 2017

Zynq-7000 AP SoC: Embedded Design Tutorial 4
UG1165 (v2017.3) November 23, 2017 www.xilinx.com
Chapter 7: Creating Custom IP and Device Driver for Linux
Requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Creating Peripheral IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Integrating Peripheral IP with PS GP Master Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Linux-Based Device Driver Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Loading Module into Running Kernel and Application Execution . . . . . . . . . . . . . . . . . . . . . . . . . 103
Chapter 8: Software Profiling Using SDK
Profiling an Application in SDK with System Debugger. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Additional Design Support Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Chapter 9: Linux OS Aware Debugging Using SDK
Setting up Linux OS Aware Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Debugging Linux Processes and Threads Using OS Aware Debug . . . . . . . . . . . . . . . . . . . . . . . . . 114
Appendix A: Additional Resources and Legal Notices
Xilinx Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Solution Centers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Documentation Navigator and Design Hubs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Xilinx Documentation Navigator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Design Files for This Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Xilinx Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Training Resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Please Read: Important Legal Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Send Feedback
UG1165 (v2017.4) December 20, 2017

Zynq-7000 AP SoC: Embedded Design Tutorial 5
UG1165 (v2017.3) November 23, 2017 www.xilinx.com
Chapter 1
Introduction
About This Guide
This document provides an introduction to using the Xilinx® Vivado® Design Suite flow for
using the Zynq®-7000 All Programmable SoC device. The examples are targeted for the
Xilinx ZC702 Rev 1.1 evaluation board and the tool version used is Vivado and the Xilinx
Software Development Kit (SDK) 2017.3.
Note:
To install SDK as part of the Vivado Design Suite, you must choose to include SDK in the
installer. See Xilinx Software Development Kit, page 9.
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 2017.3, which must be installed on the Linux host machine for
exercising the Linux portions of this document.
• Chapter 2, Using the Zynq SoC Processing System describes creation of a system with
the Zynq SoC Processing System (PS) and running a simple "Hello World" application.
This chapter is an introduction into the hardware and software tools using a simple
design as the example.
• Chapter 3, Using the GP Port in Zynq Devices describes how to create a system using
the Zynq SoC PS and the Programmable Logic (PL, or "fabric") and how to use a simple
application to exercise both the PS and PL.
• Chapter 4, Debugging with SDK provides an introduction into debugging software
using the debug features of the Xilinx Software Development Kit (SDK). This chapter
uses the previous design and runs the software bare metal (without an OS) to show
how to debug.
• Chapter 5, Using the HP Slave Port with AXI CDMA IP provides information about
booting the Linux OS on the Zynq SoC board and application development with
PetaLinux tools. This chapter also introduces the different devices Zynq SoC can boot
from and how to program these devices.
Send Feedback
UG1165 (v2017.4) December 20, 2017
剩余125页未读,继续阅读
















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0