Zynq-7000 AP SoC Low Power Techniques part 1 - Installing and Running the Power Demo Tech Tip

Document History

Date
Version
Author
Description of Revisions
14/04/14
0.1
Yashu Gosain
Initial Revision
03/09/2014
0.2
Yashu Gosain
Enhancements

Summary

As technology is evolving, electronic devices are becoming compact and performing much more complex operations which significantly increase power consumption. Due to that, device manufacturers put significant efforts to develop different scenarios to save power along with addition of new features to devices.
This Tech-tip intention is to show actual power consumption of Zynq-7000 AP SoC FPGA while performing different scenarios in Processing section (PS) as well as Programmable logic (PL). It also displays chip junction temperature during different scenarios execution. By executing these scenarios on both PS and PL, user can use the actual power consumption information to predict the Power budget of their real application.
It also demonstrates power consumption during execution of Ubuntu desktop application on Zynq. User can execute applications and perform different I/O operation on Zynq PS peripheral supported by Ubuntu desktop to measure power consumption. It helps user to predict their system power consumption.


Implementation

Implementation Details
Design Type
PS + PL
SW Type
Linux
CPUs
2 ARM Cortex-A9
PS Features
  • DDR3 533 MHZ
  • L2-Caches
  • USB
  • Ethernet
  • UART
  • I2C
Boards/Tools
ZC702
Xilinx Tools Version
Vivado 2103.4
Xilinx Linux Kernel Version
xilinx-v2013.4
Board
ZC702 Rev 1.0
Files Provided
Zynq7000AP_SOC_PowerDemo_V2.0.zip
See Appendix A for the descriptions of the files

Description


The ZC702 board uses power regulators and a PMBus compliant system controller from Texas Instruments (TI) to supply core and auxiliary voltages. The ZC702 board uses 12 V Input supply to power the board. There are switching regulators (PTD08D210W) and 1 linear regulator which generate different voltages required for the Zynq as well as the on-board components present on the ZC702 board. The voltage output of these regulators are monitored and controlled by three TI power controllers (UCD9248PFC).


For Power measurement, this Tech-Tip reads the power values measured by the TI digital power controllers (UCD9248) on ZC702 and converts them to real world values and send to host application via UART terminal.

Refer to Zynq-7000 AP SoC Measuring ZC702 Power using Linux Application Tech Tip to get details about Linux application used for power measurements and corresponding interface between Zynq and TI Digital power controllers.


This document provides details about measuring Zynq power consumption by executing different configuration. Different configurations are as follow:


Refer to http://www.wiki.xilinx.com/Zynq-7000+AP+SoC+PS+Control+of+PL+for+Power+Management Tech tip for more details about PCASTM modules.

PL Configurations provides following configurations:


Design Overview

Zynq Power Demo is broadly divided in two components:
Below figure shows block diagram related to Zynq Power Demo.


Figure 1: Block Diagram


As stated in block diagram, UART is mode of communication between ZC702 board and Host machine application. ZYNQ PS UART acts as master device which is connected to Host machine which act as slave device.

In ZC702 board, PS I2C block is used to read power measurement done by TI digital power controller.


Host Machine Application Description

Host machine application is C# based GUI program executing on windows machine. It sends commands and receives different kind responses from ZC702 board. Below figures shows Host machine GUI application:



Figure 2: GUI


It is broadly divided in following sections:
Note: PS static Power represents the power required for the PS to operate and be available for programming. A large portion of it is due to leakage in the transistors used to hold the device configuration
Depending on Power Selection selected option, it plots following graphs

Power Demo Setup:

This section discusses Power demo setup details. Design file link is provided along with this Tech-Tip. This file should be extracted to a directory calleddesign. Design directory includes following directories:
This folder has to be copied in the host windows machine.
Following are requirements for setting up ZC702 board for power demo:
Note: Application is provided along with design files under GUI folder.

Connect the cables as shown in Figure below to prepare the ZC702 board to run the Power Demo applications

Win32diskimager.exe tool is used to copy power demo executables to SD card. User can download win32diskimager tool from following link
http://sourceforge.net/projects/win32diskimager/

Follow following procedure to copy power demo executables to SD card
Note: Writing executable to SD card takes almost 10 minutes

Application Execution:

Follow the following procedure for Power Demo execution
At this time, GUI starts populating graphs and information in status section. Note: To do any configuration changes, user needs to select new changes in“Configuration” section and then press “APPLY” button. It initiates encapsulation of configuration into command and transfer it to ZC702 board. Upon receiving command, ZC702 board application does appropriate changes and send back the response along with the measurements.

Switching between different Application:

Host machine GUI application provide a check box option to switch between Ubuntu desktop application and PS/PL application. This check option is available in “System Settings” Section as highlighted below:
Figure 6: System Settings


If this check box option is selected, than it automatically initiate rebooting of system and executes Ubuntu desktop application on ZC702 board. In this scenario, GUI application supports only PS frequency scaling option that too CPU is in idle state. User can monitor all options in “Demo status”. Follow the following procedure for Power Demo execution
To switch back to PS/PL application, uncheck Ubuntu option, it reinitiates rebooting process and boots PS/PL application.

Settings DDR frequency :

Host machine GUI application provide drop down menu option to select between available DDR frequency . This drop down option is available under DDR freq in “System Settings” Section as highlighted below:
Figure 7: System Settings

If this option is changed, than it automatically initiate rebooting of system.Note: Changing DDR frequency option is only available when Ubuntu check box option is not selected in System settings.

Appendix A: File Descriptions in design directory:

Directory Structure is