Extending Embedded System Into PL: Zynq Vivado 2016.4 Version
Extending Embedded System Into PL: Zynq Vivado 2016.4 Version
Zynq
Vivado 2016.4 Version
This material exempt per Department of Commerce license exception TSU
Objectives
1
Outline
IP Catalog
IP directory
IP device files
GP Interfaces
Adding IP to extend PS into PL
Bitstream generation
Summary
2
Communicating with PL
IP Catalog
3
IP Peripherals
Included as Source (Free)
Bus and bridge controllers External peripheral controller Memory
– AXI to AXI connector and memory controller
– Local Memory Bus (LMB) High-speed and low-speed
– AXI Chip to Chip communication peripherals
– AHB-Lite to AXI – AXI 10/100 Ethernet MAC controller
– AXI4-Lite to APB – Hard-core tri-mode Ethernet MAC
– AXI4 to AHB-Lite – AXI IIC
Debug cores – AXI SPI
– Integrated Logic Analyzer – AXI UART
DMA and Timers Other cores
– Watchdog, fixed interval – System monitor
Inter-processor communication – Xilinx Analog-to-Digital Converter (XADC)
– Clock generator, System reset module
– interrupt controller
Extending System 13- 7 © Copyright 2016 Xilinx
– Traffic Generator, Performance monitor
Vivado IP Catalog
Integrated IP Support
– Instant access to IP customization
– Vivado IP GUI look and feel
– Support for Vivado synthesis and
implementation
– Selectable IP output products
– Full Tcl support
4
IP Cores Included as Evaluation
IP Cores
Right click to
– Add/customize
– Determine compatibility
– Product Guide (datasheet) > Document Navigator
– Change Log
– Product Webpage
– Answer record
5
IP Core Information
Data sheet provided for each core (right-click on core in IP catalog to access)
The size of each core is available in the data sheet
For example, the axi_timer_v2_00_a data sheet contains the following table:
Outline
IP Catalog
IP directory
IP device files
GP Interfaces
Adding IP to extend PS into PL
Bitstream generation
Summary
6
Peripheral Storage
User peripherals can be located in the project directory or a peripheral repository
Outline
IP Catalog
IP directory
IP device files
GP Interfaces
Adding IP to extend PS into PL
Bitstream generation
Summary
7
IP Core files
component.xml
– XML format
– Top level folder
– Provides ports description,
parameters and options for IP
– Links to source files
xgui folder
– .tcl file for IPI GUI
Outline
IP Catalog
IP directory
IP device files
GP Interfaces
Adding IP to extend PS into PL
Bitstream generation
Summary
8
GP Ports
Configuring GP Ports
9
Outline
IP Catalog
IP directory
IP device files
GP Interfaces
Adding IP to extend PS into PL
Bitstream generation
Summary
Add IP in the PL
10
Connecting IP
Block, Connection
Can automatically connect IP blocks
Automatically insert required blocks
E.g. Add BRAM; Automation will insert and connect BRAM controller and Reset logic
If Board Support is available, IP can automatically be connected to top level ports
11
Assign Addresses
Peripherals in the Zynq™ AP SoC PS have fixed addresses and do not appear in
the address map when an IP is added to the system
For PS peripherals Click on the Auto Assign Addresses button
The address will be generated and show the generated addresses of the added IP
The fixed addresses of the configured peripherals of the PS
Parameterize IP Instances
Double-click or right click the instance and select Customize Block to open the
configurable parameters dialog box (refer to the datasheet if needed)
Default values are shown
– Customize the parameters that you want
12
Extending the IP Catalog
IP Packager
– Packages into IP Integrator Format
Specify repository (local/global)
IP can then be used in IP Integrator
More on IP Packager later
Outline
IP Catalog
IP directory
IP device files
GP Interfaces
Adding IP to extend PS into PL
Bitstream generation
Summary
13
Bitstream Generation
After defining the system hardware, the next step is to create hardware netlists if the
system hardware has logic in PL
A HDL wrapper for the block diagram must be generated
– Additional logic can be added to the HDL, or the Processor system can be used as a sub block in a HDL design
The design and block diagram must be open before synthesise and implementation
can be carried out
If the system contains hardware in the PL, the bitstream must be generated
The PL (FPGA) must be programmed before application can be downloaded and
executed
Outline
IP Catalog
IP directory
IP device files
GP Interfaces
Adding IP to extend PS into PL
Bitstream generation
Summary
14
Summary
15