PPT

advertisement

ECE 412:

Microcomputer Laboratory

Lecture 8: CoreConnect and The PLB Bus

Lecture 8

• Bus protocol

• IBM CoreConnect

• PLB bus overview

• PLB timing

Outline

Lecture 8

Review Question 1

• What interfaces do the VirtexII Pro’s PowerPC cores provide to communicate with user logic?

Lecture 8

Review Question 1

• What interfaces do the VirtexII Pro’s PowerPC cores provide to communicate with user logic?

– PLB (Processor Local Bus)

– OPB (On-Chip Peripheral Bus)

– OCM (On-Chip Memory) Controller

– Interrupt Controller

– Device Control Register

– Clock, Power Management

– JTAG Port

Lecture 8

Review Questions 2

• How does ADC work?

Review Questions 2

• How does ADC work?

– It contains a DAC

– ADC guesses an encoding d and evaluates its guess by inputting d into the DAC

– Compare the generated analog output e’ from DAC with e using an analog comparator

– Use a binary-search method and do this until a match is found

An Example (as promised)

Given an analog input signal with voltage range from 0 to 15 volts, and an 8-bit digital encoding, calculate the correct encoding for 5 volts .

Then trace the binary search approach to find the correct encoding.

5/15 = d/(2 8 -1)

Encoding as calculated: 01010101 d= 85

Successive-approximation (binary search) method

½(V max volts

– V min

) = 7.5

V max

= 7.5 volts.

0 0 0 0 0 0 0 0

½(7.5 + 0) = 3.75 volts

V min

= 3.75 volts.

0 1 0 0 0 0 0 0

½(7.5 + 3.75) = 5.63 volts 0 1 0 0 0 0 0 0

V max

= 5.63 volts

½(5.63 + 3.75) = 4.69 volts

V min

= 4.69 volts.

0 1 0 1 0 0 0 0

½(5.63 + 4.69) = 5.16 volts

V max

= 5.16 volts.

½(5.16 + 4.69) = 4.93 volts

V min

= 4.93 volts.

½(5.16 + 4.93) = 5.05 volts

V max

= 5.05 volts.

½(5.05 + 4.93) = 4.99 volts

0 1 0 1 0 0 0 0

0 1 0 1 0 1 0 0

0 1 0 1 0 1 0 0

0 1 0 1 0 1 0 1

A simple bus

Wires:

• Uni-directional or bi-directional

• One line may represent multiple wires

Bus

• Set of wires with a single function

– Address bus, data bus

• Or, entire collection of wires

– Address, data and control

– Associated protocol: rules for communication

Processor rd'/wr enable addr[0-11] data[0-7]

Memory bus bus structure

Lecture 8

port

Ports

Processor rd'/wr enable addr[0-11] data[0-7]

Memory bus

• Conducting device on periphery

• Connects bus to processor or memory

• Often referred to as a pin

Actual pins on periphery of IC package that plug into socket on printed-circuit board

– Sometimes metallic balls instead of pins

– Today, metal “ pads ” connecting processors and memories within single IC

• Single wire or set of wires with single function

E.g., 12-wire address port

Lecture 8

Timing Diagrams

• Most common method for describing a communication protocol

• Protocol may have subprotocols

Called bus cycle, e.g., read and write

Each may be several clock cycles

• Read example

– rd

/wr set low, address placed on addr for at least t setup time before enable asserted, enable triggers memory to place data on data wires by time t read rd'/wr enable addr data rd'/wr enable addr data t setup t read read protocol t setup t write write protocol

Lecture 8

Basic protocol concepts

Actor: master initiates, servant (slave) respond

– Master: device that can start transactions on the bus

Slave: device that can only respond to transactions

Direction: sender, receiver

Addresses: special kind of data

– Specifies a location in memory, a peripheral, or a register within a peripheral

Time multiplexing

– Share a single set of wires for multiple pieces of data

– Saves wires at expense of time

Time-multiplexed data transfer

Master data(15:0) mux req data(8)

Servant data(15:0) demux

Master addr data mux req addr/data

Servant addr data demux req data

15:8

7:0 data serializing req addr/data addr data address/data muxing

Lecture 8

Basic protocol concepts: control methods

Master req

Servant data req data

1

2

3

4 t access

1. Master asserts req to receive data

2. Servant puts data on bus within time t access

3. Master receives data and deasserts req

4. Servant ready for next request

Master req ack data

Servant req ack data

1

2

3

4

1. Master asserts req to receive data

2. Servant puts data on bus and asserts ack

3. Master receives data and deasserts req

4. Servant ready for next request

Strobe protocol

Handshake protocol

Lecture 8

A strobe/handshake compromise

Master req wait data

Servant req wait data

1

2 t access

3

4 req wait data

1

2 t access

3

4

5

1. Master asserts req to receive data

2 . Servant puts data on bus within time t access

(wait line is unused)

3. Master receives data and deasserts req

4. Servant ready for next request

1. Master asserts req to receive data

2. Servant can't put data within t access

, asserts wait ack

3. Servant puts data on bus and deasserts wait

4. Master receives data and deasserts req

5. Servant ready for next request

Fast-response case Slow-response case

Lecture 8

Three Different Buses in CoreConnect

• The PLB on-chip bus is used in highly integrated systems. It supports read and write data transfers between master and slave devices equipped with a PLB interface and connected through PLB signals.

• Lower-performance peripherals are attached on the on-chip peripheral bus ( OPB ). A bridge is provided between the PLB and

OPB to enable data transfer by PLB masters to and from OPB slaves.

• The device control register ( DCR ) bus is used primarily for accessing status and control registers within the various PLB and

OPB masters and slaves. It is meant to off-load the PLB from the lower-performance status and control read and write transfers

Lecture 8

IBM CoreConnect

Lecture 8

CoreConnect Main Features

• CoreConnect, the IBM PowerPC ® processor bus, has been licensed at no cost to more than 1500 IP developers in the past decade.

In addition, IBM provides a bridge to the I/O core solutions of IP supplier ARM. This enables ARM solutions to be used in Power

Architecture-based designs.

• Peripheral options include memory controllers, direct memory access (DMA) controllers, PCI interface bridges and interrupt controllers, etc.

• When combined with SystemC models, available peripherals and design services, a complete PowerPC solution from system-level design to implementation can be realized.

Lecture 8

Another View

Supporting ARM I/O cores

(AHB): Advanced Microcontroller Bus Architecture (AMBA) advanced high-performance bus

Lecture 8

PLB Overview

• PLB is a 64-bit bus format that supports multiple master and slave devices

– Also supports 32-bit devices

– Each master device is assigned a priority so that the bus can arbitrate when multiple masters want to use the bus

– Slave devices are assigned one or more regions of addresses that they are responsible for handling requests

– Our designs will use both the PowerPC and your logic as bus masters

• PowerPC 405 supports two PLB interfaces

– Instruction-side PLB for loading instructions into cache

• IPLB is read-only

– Data-side PLB (read-write) for data

– Can tie both buses together if desired

Lecture 8

Instruction-Side PLB

• Read-only bus

• Allows PowerPC to request instructions from off-chip devices

• Supports four-word and eight-word transfers into instruction unit

Lecture 8

Data-Side PLB

• Supports reads and writes

• One- and eight-word transfers

• Uncacheable data typically one-word transfer

– Can configure PowerPC to fetch multiple-word uncacheable blocks

Lecture 8

Data-Side PLB Signals

• Signaling convention:

– “C405PLB” at the beginning of a signal name indicates an output from the PowerPC to the PLB

– “PLBC405” at the beginning of a signal name indicates an input to the PowerPC from the PLB

– Signal names are of the form [PLBC405 |

C405PLB]DCU<name>

• We’ll use the <name> portion of each signal to avoid wasting half of each slide on signal names

Lecture 8

Data-Side PLB Signals

• REQUEST: Indicates that the PowerPC is initiating a request over the PLB bus

– RNW, ABUS[0:31], SIZE2, CACHEABLE, WRITETHRU,

U0ATTR, GUARDED, CUBE[0:7] must be valid when

REQUEST is asserted and remain valid until the end of the cycle when the request is acknowledged

• RNW: Indicates whether the request is a read or write

– Asserted = read, De-asserted = write

• ABUS[0:31]: Address bus

– Byte-addressed

– Single-word transfers may fetch only portions of a word, controlled by the DCUBE signal

Lecture 8

Data-Side PLB Signals

• SIZE2: Specifies size of the request

– Asserted = eight-word, De-asserted = one-word

• CACHEABLE: Is data at this address cacheable?

– Asserted = cacheable, de-asserted = un-cacheable

– Un-cacheable data typically accessed using one-word requests

– Can set a configuration bit in the PowerPC to request eightword uncacheable data blocks

• WRITETHRU: Indicates whether data at the address is in write-through or write-back cacheable memory

– Asserted = write-through, De-asserted = write-back

– Mostly used in systems with cache coherence

Lecture 8

Data-Side PLB Signals

• U0ATTR: Gives the value of the U0 (user 0) attribute bit for this address

– Flag that can be set in processor register

• GUARDED: Indicates whether address is in guarded storage

• CUBE[0:7]: Indicates which bytes of a single-word transaction are being transferred

– Restrictions exist on which combinations can be transferred

• PRIORITY[0:1]: Priority of the request

– Used to arbitrate between multiple bus masters

• ABORT: Abort current transaction

– Requirements about how PowerPC and device handle aborts at different times

Lecture 8

Data-Side PLB Signals

• WRDBUS[0:63]: Output data bus from PowerPC to

PLB

• ADDRACK: Indicates that PLB bus device has seen the request and latched the appropriate control signals

– May be asserted as early as the same cycle as REQUEST

• SIZE1: Indicates whether the device handling a request supports 32- or 64-bit transfers

– Asserted = 64-bit, De-asserted = 32-bit

– Valid during same cycle as ADDRACK

• RDDBUS[0:63]: Data bus from PLB to PowerPC

Lecture 8

Data-Side PLB Signals

• DWDADDR[1:3]: Indicates which word of an eightword transfer is present on the data bus

– Device can return words in any order

• WRDACK: Indicates that device has latched the data being written on the WRDBUS

– PowerPC must hold data on the bus until acknowledged

• BUSY: Indicates that the PLB bus device is processing a request

– Doesn’t always prevent PowerPC from starting another request

– PowerPC checks signal during SYNC operations

• ERR: Device detected an error in processing request

– Slave still completes request, processor decides how to handle

Lecture 8

Timing of PLB Transactions

• PLB device can acknowledge a request as early as the cycle when the request is asserted

– PowerPC required to assert request and control signals continuously until device acks.

• PowerPC drives write data in the same cycle as request, holds until getting write ack.

• Device can return read data as early as the cycle after it acknowledges read request

• PowerPC can pipeline up to two line read requests

– Pipeline means to start a second request before first completes

– Device is required to complete requests in order

Lecture 8

PLB Timing: Consecutive Word Reads

Lecture 8

PLB Timing: Pipelined Block Reads

Lecture 8

PLB Timing: Consecutive Line Writes

Lecture 8

Documentation

• PowerPC 405 Processor Block Reference Guide

• PLB IPIF v2.01a Document

– Describes Xilinx’ customizable cores that interface to PLB

• Platform Specification Format Reference Manual

– Describes the different files used to build a SoC system

– Shows you what’s going on under the hood of the GUI

Lecture 8

Next Time

• OPB bus

• Using IFIP Cores to connect to the PLB and OPB busses

Lecture 8

Download