Download presentation
Presentation is loading. Please wait.
Published byOswin Anderson Modified over 9 years ago
1
Lecture 8 Lecture 8: CoreConnect and The PLB Bus ECE 412: Microcomputer Laboratory
2
Lecture 8 Outline Bus protocol IBM CoreConnect PLB bus overview PLB timing
3
Lecture 8 Review Question 1 What interfaces do the Virtex-II Pro’s PowerPC cores provide to communicate with user logic?
4
Lecture 8 Review Question 1 What interfaces do the Virtex-II 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
5
Review Questions 2 How does ADC work?
6
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
7
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) d= 85 Successive-approximation (binary search) method An Example (as promised) 01000000 Encoding as calculated: 01010101 ½(V max – V min ) = 7.5 volts V max = 7.5 volts. ½(7.5 + 0) = 3.75 volts V min = 3.75 volts. 0000000001000000 ½(7.5 + 3.75) = 5.63 volts V max = 5.63 volts ½(5.63 + 3.75) = 4.69 volts V min = 4.69 volts. 01010000 ½(5.63 + 4.69) = 5.16 volts V max = 5.16 volts. 01010000 ½(5.16 + 4.69) = 4.93 volts V min = 4.93 volts. 01010100 ½(5.16 + 4.93) = 5.05 volts V max = 5.05 volts. 01010100 ½(5.05 + 4.93) = 4.99 volts 01010101
8
Lecture 8 A simple bus bus structure ProcessorMemory rd'/wr enable addr[0-11] data[0-7] 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
9
Lecture 8 Ports 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 bus ProcessorMemory rd'/wr enable addr[0-11] data[0-7] port
10
Lecture 8 Timing Diagrams write protocol rd'/wr enable addr data t setup t write 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 read protocol rd'/wr enable addr data t setup t read
11
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 data serializingaddress/data muxing MasterServant req data(8) data(15:0) muxdemux MasterServant req addr/data req addr/data addrdata muxdemux addrdata req data 15:8 7:0addrdata Time-multiplexed data transfer
12
Lecture 8 Basic protocol concepts: control methods Strobe protocol Handshake protocol MasterServant req ack req data Master Servant data req data t access req data ack 1. Master asserts req to receive data 2. Servant puts data on bus within time t access 1 2 3 4 3. Master receives data and deasserts req 4. Servant ready for next request 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
13
Lecture 8 A strobe/handshake compromise Fast-response case req data wait 13 4 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 2 Slow-response case MasterServant req wait data req data wait 1 3 4 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 2 t access 5. Servant ready for next request 5 (wait line is unused)
14
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
15
Lecture 8 IBM CoreConnect
16
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.
17
Lecture 8 Another View Supporting ARM I/O cores (AHB): Advanced Microcontroller Bus Architecture (AMBA) advanced high-performance bus
18
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
19
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
20
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
21
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 We’ll use the portion of each signal to avoid wasting half of each slide on signal names
22
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
23
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 eight- word 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
24
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
25
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
26
Lecture 8 Data-Side PLB Signals DWDADDR[1:3]: Indicates which word of an eight- word 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
27
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
28
Lecture 8 PLB Timing: Consecutive Word Reads
29
Lecture 8 PLB Timing: Pipelined Block Reads
30
Lecture 8 PLB Timing: Consecutive Line Writes
31
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
32
Lecture 8 Next Time OPB bus Using IFIP Cores to connect to the PLB and OPB busses
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.