Zynq Migration Guide - Xilinx · PDF fileZynq Migration Guide ... Boot and Configuration ......
Transcript of Zynq Migration Guide - Xilinx · PDF fileZynq Migration Guide ... Boot and Configuration ......
Zynq Migration Guide
Zynq-7000 AP SoC to Zynq UltraScale+ MPSoC Devices
UG1213 (v2.0) November 30, 2016
Zynq Migration Guide 2UG1213 (v2.0) November 30, 2016 www.xilinx.com
Revision HistoryThe following table shows the revision history for this document.
Date Version Revision
11/30/2016 2.0 Updated content in About this Guide.
09/21/2016 1.0 Initial Xilinx release.
Send Feedback
http://www.xilinx.comhttp://www.xilinx.com/about/feedback.html?docType=User_Guides&docId=UG1213&Title=Zynq%20Migration%20Guide%3A%20Zynq-7000%20AP%20SoC%20to%20Zynq%20UltraScale+%20MPSoC%20Devices&releaseVersion=2.0&docPage=2
Table of ContentsRevision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Chapter 1: IntroductionAbout this Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Pre-Requisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6Document Audience and Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6Zynq Device Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Hardware Differences in Zynq Devices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Development Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18Migration Flow. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Chapter 2: Processing UnitsProgrammer Models for Zynq Architectures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Clocking. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34Programming Flow. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37Reset System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39System Test and Debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Chapter 3: Migrating SoftwareIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43Migrating Software from Zynq-7000 APU to Zynq UltraScale+ MPSoC APU/RPU . . . . . . . . . . . . . 43
Chapter 4: PeripheralsIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47I2C Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47UART Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51CAN Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56SPI Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62Gigabit Ethernet Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67USB Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76General Purpose I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84Multiplexed I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Zynq Migration Guide 3UG1213 (v2.0) November 30, 2016 www.xilinx.com
Send Feedback
http://www.xilinx.comhttp://www.xilinx.com/about/feedback.html?docType=User_Guides&docId=UG1213&Title=Zynq%20Migration%20Guide%3A%20Zynq-7000%20AP%20SoC%20to%20Zynq%20UltraScale+%20MPSoC%20Devices&releaseVersion=2.0&docPage=3
DMA Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Chapter 5: Boot and ConfigurationBooting Option Differences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144Boot Image Header Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Chapter 6: LibrariesIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148Standalone BSP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Appendix A: Additional Resources and Legal NoticesXilinx Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153Solution Centers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153Documentation Navigator and Design Hubs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154Training Resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155Third-Party Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155Please Read: Important Legal Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
Zynq Migration Guide 4UG1213 (v2.0) November 30, 2016 www.xilinx.com
Send Feedback
http://www.xilinx.comhttp://www.xilinx.com/about/feedback.html?docType=User_Guides&docId=UG1213&Title=Zynq%20Migration%20Guide%3A%20Zynq-7000%20AP%20SoC%20to%20Zynq%20UltraScale+%20MPSoC%20Devices&releaseVersion=2.0&docPage=4
Chapter 1
Introduction
About this GuideThe Zynq UltraScale+ MPSoC device is the successor to the Zynq-7000 All Programmable (AP) SoC device. It provides 64-bit processor scalability while combining real-time control with soft and hard engines for graphics, video, waveform, and packet processing, to name a few.
Integrating an ARM-based heterogeneous system for advanced analytics and on-chip programmable logic for compute task acceleration creates unlimited possibilities for applications.
This document facilitates the migration of designs from a Zynq-7000 device to a Zynq UltraScale+ MPSoC device.
The Zynq UltraScale+ MPSoC family has different products, based upon the following system features:
Application processing unit (APU):
Dual or Quad-core ARM Cortex-A53 MPCore
CPU frequency up to 1.5GHz
Real-time processing unit (RPU):
Dual-core ARM Cortex-R5 MPCore
CPU frequency up to 600MHz
Graphics processing unit (GPU):
ARM Mali-400 MP2
GPU frequency up to 667MHz
Zynq Migration Guide 5UG1213 (v1.0) September 21, 2016 www.xilinx.com
Send Feedback
http://www.xilinx.comhttp://www.xilinx.com/about/feedback.html?docType=User_Guides&docId=UG1213&Title=Zynq%20Migration%20Guide%3A%20Zynq-7000%20AP%20SoC%20to%20Zynq%20UltraScale+%20MPSoC%20Devices&releaseVersion=2.0&docPage=5
Chapter 1: Introduction
Video codec unit (VCU):
Simultaneous Encode and Decode through separate cores
H.264 high profile level 5.2 (4Kx2K-60)
H.265 (HEVC) main, main10 profile, level 5.1, high Tier, up to 4Kx2K-60 rate
8 and 10 bit encoding
4:2:0 and 4:2:2 chroma sampling
For more details, see the Zynq UltraScale+ MPSoC Product Table [Ref 3] and the Product Advantages [Ref 4].
Pre-RequisitesThis document assumes that you have the following qualifications:
Familiarity with the Zynq-7000 SoC device
Experienced with application development for a Zynq-7000 SoC device
Experienced with embedded software development
Document Audience and ScopeThe purpose of this guide is to enable software developers and system architects to be familiar with:
Hardware features and differences between a Zynq-7000 device and a Zynq UltraScale+ MPSoC device
Porting the software application from Zynq-7000 device to a Zynq UltraScale+ MPSoC device
Interfacing peripheral configuration differences between Zynq-7000 device and a Zynq UltraScale+ MPSoC device
Booting differences between the Zynq-7000 device and a Zynq UltraScale+ MPSoC device
Zynq Migration Guide 6UG1213 (v2.0) November 30, 2016 www.xilinx.com
Send Feedback
http://www.xilinx.comhttp://www.xilinx.com/about/feedback.html?docType=User_Guides&docId=UG1213