Embedded Design with The

PPC 440 Processor Core

Xilinx Training

Welcome

If you are new to Embedded design with Xilinx FPGA’s, this module will explain why you may want to use the PPC 440 processor in the Virtex-5 FX FPGA family

Understanding the basics of the PPC 440 processor is essential if you are going to select an appropriate FPGA device family

The Embedded Developers Kit software (EDK) is designed to make building a fast embedded design easy

Objectives

After completing this module, you will be able to:

Explain some of the benefits of the PPC 440 processor

Explain how the utilities included with the Embedded Developers

Kit (EDK) are optimized for the PPC 440 processor

Explain how the Base System Builder makes it easy to make your embedded system

Lessons

Hardware Overview

PPC 440

Base System Builder

Summary

Xilinx Embedded Processor Innovation

Performance

Integration

Flexibility

Features

32-bit RISC

Processor

Soft Core

2000 2002

PowerPC® 405

Hard Core in Virtex®-II

PRO FPGA

2004

PowerPC 405

Hard Core in Virtex-4 FX

FPGA

PowerPC 440

Embedded Block with

Integrated

Interconnect

2006 2008

Supported FPGAs

FPGA families

– Spartan-3/3A/3AN/3A DSP/3E FPGA (MicroBlaze processor)

– Spartan-6 (MicroBlaze Processor)

– Virtex-4 FX (MicroBlaze and PowerPC 405 processors) and LX/SX FPGA

(MicroBlaze processor)

– Virtex-5 FXT (MicroBlaze and PowerPC 440 processor) LX/LXT FPGA

(MicroBlaze)

– Virtex-6 (MicroBlaze processor)

Embedded Design in an FPGA

Embedded design in an FPGA can consist of the following

– FPGA hardware design

• Processor system

 MicroBlaze processor (soft core)

 PowerPC processor (PPC440 hard core)

 PLB or PLB v46 bus

 PLB bus components

• Other FPGA hardware

 Peripherals can either be custom made by the user with a Xilinx bus interface or a library of pre-optimized peripherals are available

PowerPC Processor-Based Embedded Design

DDR

PPC DDR2

Memory

Controller

Dedicated Hard IP

MCI

PowerPC

440 Core

DMA

PLB v46

MPLB SPLB

PLB v46

TEMAC

Hi-Speed

Peripheral e.g.

Memory

Controller

GB

E-Net

UART

Off-Chip

Memory

ZBT SSRAM

DDR SDRAM

SDRAM

GPIO

Bus

Master

Full system customization to meet performance, functionality, and cost goals

IP Peripherals

All are included FREE!

Bus infrastructure and bridge cores

Memory and memory controller cores

Debug

Peripherals

Arithmetic

Timers

Inter-processor communication

External peripheral controller

DMA controller

PCI

User core template

…and Other cores

Lessons

Hardware Overview

PPC 440

Base System Builder

Summary

PowerPC 440 Processor Core

High performance

– 1,100+ DMIPS

– 29% faster per MHz than PPC 405 processor

Licensed IBM PPC 440 processor core

– Industry standard

– Superscalar

• Multiple instructions per cycle

Uses PLB v46 CoreConnect bus architecture

Third-generation embedded processor core in the FPGA

Next Generation of Performance

1 PowerPC 440 processor core

Highest performance FPGA embedded processor

2

Hardened processor interconnect

Simpler implementations

Simultaneous non-blocking access

Dedicated memory interface reduces bottlenecks

3

Enhanced APU

Supports double-precision FPU w/ key OSs

Custom hardware acceleration eliminates software bottlenecks

4

Full EDK support

More than just a better processor!

Processor Block

APU

Control

PowerPC

440

CPM

DCR

DMA

DMA

SPLB0

Crossbar

MCI

MPLB

SPLB1

DMA

DMA

PowerPC Processor – Basic Architecture

A 32-bit implementation of the PowerPC processor

– 64-bit operations are not supported

– Processor does not implement floating point operations, although an FPU can be attached through the APU

Support for embedded system applications

– Flexible memory management

– Multiply and accumulate instructions for computationally intensive applications

– Enhanced debug capabilities

– 64-bit time base

– Fixed Interval Timer (FIT) and watchdog timer

Performance-enhancing features

– Seven-stage highly pipelined

– Single cycle multiply and multiply accumulate

– Enhanced string and multiple word handling

– Reduced branch latency using Branch Target Address Cache (BTAC)

Auxiliary Processing Unit (APU) Interface

Virtex-5 FXT devices

Coprocessor interface

– Connects the PowerPC processor to fabric

– Offload computations to fabric; hardware FPU, for example

Extends native PPC440 processor instruction set

Decodes but does not execute instructions

Tighter integration between processor and fabric

Buses 101

Bus masters have the ability to initiate a bus transaction

Bus slaves can only respond to a request

Bus arbitration is a three-step process

– A device requesting to become a bus master asserts a bus request signal

– The arbiter continuously monitors the request and outputs an individual grant signal to each master according to the master’s priority scheme and the state of the other master requests at that time

– The requesting master samples its grant line until granted access. When the current bus master releases the bus, the master then drives the address and control lines to initiate a data transaction to a slave bus agent.

Arbitration mechanisms

– Fixed priority, round-robin, or hybrid

PPC 440 Processor Bus Example

MCI

Data: 128 bits

APU

DDR2

Memory

(off-chip)

DDR2

Memory

Controller

MCI

SPLB

MPLB

INTC

PPC440

DMA

DMA

Data: 32 bits

TEMAC

PLBv46 Bus

Data: 128 bits

Address: 32 bits

PLBv46

ARB

SDRAM

Ethernet

MicroBlaze

UART

GPIO

IIC

Hi-Speed

Mem Ctl

INTC

To

MPLB

PLBv46

ARB

PPC 440 Crossbar

DMA

– Four channels – Up to four 32-bit channels (each direction)

– Scatter/gather functionality

MCI – Memory Controller Interface

– FIFO-like interface; no PLB required

– Simplified interface: address, data, control

PLB master

– Allows the PPC 440 processor to be a bus master

PLB slave – Up to two channels

– Allows PLB slave access to main memory

APU – Coprocessor interface

Crossbar DMA Controller

Multiple-channels – Up to four 32-bit channels (each direction)

Interface into PLB crossbar at 128-bit width

Peripheral interface

– 32-bit LocalLink

– Independent transmit and receive

– Asynchronous with the interconnect clock

Byte realignment on Tx and Rx

Efficient flow control management

– Command translation

Scatter/gather functionality

Programmable by the processor or FPGA fabric

Memory Controller Interface

Enables direct connect of memory controller to processor

Increased performance

– FIFO-like interface; no PLB required

– Simplified interface: address, data, control

Performs row/bank detection

– Reducing soft controller logic

Provides transaction pipelining

– Up to eight read transactions from the crossbar

Data transaction support

– 32-, 64-, and 128-bit data transfer per cycle

– Variable burst sizes

– Each burst has its own address

Connect to Xilinx or a custom soft controller

Crossbar in Action

Performance

APU

Control

CPM

Processor Block

PowerPC

440

DCR

DMA

DMA

SPLB0

Crossbar

MCI

MPLB

SPLB1

DMA

DMA

Memory Controller Interface

PPC440MC

DDR2

PLB V46

GPIO CAN USB 2.0

External

DDR2

Memory

System

Monitor

Separate memory and I/O buses greatly improve system performance

EDK Memory Controllers

APU

Control

CPM

Processor Block

PowerPC

440

DCR

DMA

DMA

SPLB0

Memory Controller Interface

PPC440MC

DDR2

Crossbar

MCI

MPLB

SPLB1

DMA

DMA XPS_MCH

_EMC

PLB V46

MPMC

XPS_

BRAM

XPS_MCH

_EMC

External

DDR2

Memory

MPMC

XPS_

System Ace

Flash DDR BRAM SRAM SDRAM

System

ACE

Crossbar in Action – TEMACs as Masters

Performance Integration

TEMAC

TEMAC

CPM

Processor Block

APU

Control

PowerPC

440

DCR

DMA

DMA

SPLB0

Crossbar

MCI

MPLB

SPLB1

DMA

DMA

Memory Controller Interface

PPC440MC

DDR2

PLB V46

GPIO CAN USB 2.0

External

DDR2

Memory

System

Monitor

Four built-in DMA channels provide high-speed access to memory or I/O

PowerPC 440 Processor Crossbar in Action

Performance Integration

TEMAC

Flexibility

TEMAC

CPM

Processor Block

APU

Control

PowerPC

440

DCR

DMA

DMA

SPLB0

Crossbar

MCI

MPLB

SPLB1

DMA

DMA

Memory Controller Interface

PPC440MC

DDR2

PLB V46

GPIO CAN USB 2.0

PLB V46

I2C GPIO Timer

Memory

Controller

RS232

External masters can access memory or I/O through crossbar’s SPLB

External

DDR2

Memory

System

Monitor

Custom IP

Lessons

Hardware Overview

PPC 440

Base System Builder

Summary

Starting out with a Processor Design

Many vendors support evaluation and demo boards with Xilinx FPGAs

– Xilinx

– Avnet

– Digilent

Base System Builder (BSB) is a wizard to facilitate a fast processor-based system design by high abstraction, levelspecification entry

Virtex®-5 FPGA ML507

Spartan®-6 SP605 FPGA

Spartan-3E FPGA 1600E

Create a New Project Using the BSB

BSB enables fast design construction

– Creates a completed platform and test application that is ready to download

– Creates this system faster than you could by editing the MHS directly

– Automatically matches the pinout of the design to the board

The Set Project Peripheral

Repository option is used for storing custom peripherals and drivers in a reserved location

Selecting a Board

Xilinx and its distribution partners sell demo boards with a wide range of added components

– This dialog box allows you to quickly learn more about all available demo boards

– It also allows you to install the necessary BSB files if you want to target a demo from another vendor

– Note that you can also create your own BSB file for a custom board

Selecting a Processor

Base System

Builder supports a singleor dual-processor system

Configuring the Processor

Processor clock frequency is the clock rate connected directly to the processor

Bus clock frequency is the clock rate of all bus peripherals in the system

These selections will automatically customize the clock generator module

The appropriate debug interface is added automatically

Configuring the I/O Interfaces

Choose the peripherals you need from those available for your demo board

Peripherals can be added or removed

Most peripherals are customizable via dropdown lists when selected

Most peripherals support the use of interrupts

Internal peripherals exist for all board hardware configurations

A Good Start on a Processor Design

Basic PowerPC processor system

Basic

MicroBlaze processor system

Lessons

Hardware Overview

PPC 440

Base System Builder

Summary

Summary

The PPC 440 processor crossbar switch speeds system performance utilizing an alternative architecture (to bus) that is

128-bit wide

– The crossbar clock is usually the fastest in the embedded system

– All other embedded clocks are relative to the crossbar clock (bus, memory,

DMA)

The PPC 440 processor supports the attachment of one master

PLB bus (for connection to slave peripherals) and two slave PLB buses (for connection to other system master components)

The PPC 440 processor has a Memory Controller Interface (MCI)

– Allows the fastest memory access possible by connecting to a Xilinx memory controller

The PPC 440 processor has four DMA controller ports

The PPC 440 APU supports co-processors built in FPGA fabric

Where Can I Learn More?

Xilinx Embedded Processing page

– www.support.xilinx.com/embedded

– Learn more about Embedded Design Kits for all of our device families

Xilinx online documents

– www.support.xilinx.com

• Getting Started with the Embedded Development Kit

Processor IP Reference Guide

 Right-click any peripheral from the IP Catalog to learn more about it

• Embedded Systems Tools Guide

Xilinx Drivers

• Processor reference guides

 PowerPC 405/440 Processor Block Reference Guide

 MicroBlaze Processor Reference Guide

• For all docs, select Help

EDK Online Documentation from the EDK tools

Where Can I Learn More?

Xilinx Training Courses

– www.xilinx.com/training

• Embedded Systems Development course

 Rapidly architect an embedded system

 Introduction to most of the EDK tools

• Embedded Systems Software Development course

 Rapidly architect an embedded software system

Introduction to the SDK (Software Development Kit)

• Advanced Embedded Systems Development course

Take advantage of advanced features of the PPC440

 Apply advanced debugging techniques including ChipScope

 Design a Flash memory-based system and boot load from off-chip Flash memory

• Customers spend 50% of their time in lab

What’s Next?

Related Video Courses

– Embedded Design with the MicorBlaze Soft Processor Core

– Embedded Design with the Xilinx Embedded Developers Kit

Trademark Information

Xilinx is disclosing this Document and Intellectual Property

(hereinafter “the Design”) to you for use in the development of designs to operate on, or interface with Xilinx FPGAs. Except as stated herein, none of the Design may be copied, reproduced, distributed, republished, downloaded, displayed, posted, or transmitted in any form or by any means including, but not limited to, electronic, mechanical, photocopying, recording, or otherwise, without the prior written consent of Xilinx. Any unauthorized use of the Design may violate copyright laws, trademark laws, the laws of privacy and publicity, and communications regulations and statutes.

Xilinx does not assume any liability arising out of the application or use of the Design; nor does Xilinx convey any license under its patents, copyrights, or any rights of others. You are responsible for obtaining any rights you may require for your use or implementation of the Design.

Xilinx reserves the right to make changes, at any time, to the Design as deemed desirable in the sole discretion of Xilinx. Xilinx assumes no obligation to correct any errors contained herein or to advise you of any correction if such be made. Xilinx will not assume any liability for the accuracy or correctness of any engineering or technical support or assistance provided to you in connection with the Design.

THE DESIGN IS PROVIDED “AS IS" WITH ALL FAULTS, AND THE ENTIRE RISK AS TO ITS FUNCTION AND IMPLEMENTATION IS WITH

YOU. YOU ACKNOWLEDGE AND AGREE THAT YOU HAVE NOT RELIED ON ANY ORAL OR WRITTEN INFORMATION OR ADVICE,

WHETHER GIVEN BY XILINX, OR ITS AGENTS OR EMPLOYEES. XILINX MAKES NO OTHER WARRANTIES, WHETHER EXPRESS,

IMPLIED, OR STATUTORY, REGARDING THE DESIGN, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A

PARTICULAR PURPOSE, TITLE, AND NONINFRINGEMENT OF THIRD-PARTY RIGHTS.

IN NO EVENT WILL XILINX BE LIABLE FOR ANY CONSEQUENTIAL, INDIRECT, EXEMPLARY, SPECIAL, OR INCIDENTAL DAMAGES,

INCLUDING ANY LOST DATA AND LOST PROFITS, ARISING FROM OR RELATING TO YOUR USE OF THE DESIGN, EVEN IF YOU HAVE

BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE TOTAL CUMULATIVE LIABILITY OF XILINX IN CONNECTION WITH

YOUR USE OF THE DESIGN, WHETHER IN CONTRACT OR TORT OR OTHERWISE, WILL IN NO EVENT EXCEED THE AMOUNT OF

FEES PAID BY YOU TO XILINX HEREUNDER FOR USE OF THE DESIGN. YOU ACKNOWLEDGE THAT THE FEES, IF ANY, REFLECT

THE ALLOCATION OF RISK SET FORTH IN THIS AGREEMENT AND THAT XILINX WOULD NOT MAKE AVAILABLE THE DESIGN TO YOU

WITHOUT THESE LIMITATIONS OF LIABILITY.

The Design is not designed or intended for use in the development of on-line control equipment in hazardous environments requiring fail-safe controls, such as in the operation of nuclear facilities, aircraft navigation or communications systems, air traffic control, life support, or weapons systems (“High-Risk Applications”). Xilinx specifically disclaims any express or implied warranties of fitness for such High-Risk Applications. You represent that use of the Design in such High-Risk Applications is fully at your risk.

© 2012 Xilinx, Inc. All rights reserved. XILINX, the Xilinx logo, and other designated brands included herein are trademarks of Xilinx, Inc. All other trademarks are the property of their respective owners.