Download Cell Broadband Engine Architecture - Lecture Notes | CDA 6938 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!
School of Electrical Engineering and Computer Science University of Central Florida
Cell Broadband Engine Architecture
Cell History Cell History
- IBM, Sony Computer Entertainment Incorporated SCEI/Sony, Toshiba Alliance (STI) formed in 2000.
- The objectives for the new processor were the following:
- Outstanding performance, especially on game/multimedia applications.
- Real-time responsiveness to the user and the network.
- Applicability to a wide range of platforms.
- Support for introduction in 2005.
- First technical disclosures, 2005.
- Platforms: PS3, Cell Blade, Cell Accelerator Board
- Trademarks
- Cell Broadband Engine and Cell Broadband Engine Architecture are trademarks of Sony Computer Entertainment, Inc.
CDA6938 University of Central Florida (^3)
Overview of the Cell Broadband Engine Overview of the Cell Broadband Engine
- One PowerPC Processor Element (PPE) + Eight Synergistic Processor Element (SPE).
- Increased efficiency and performance:
- Attacks on the “Power Wall”
- Non Homogenous Coherent Multiprocessor
- High design frequency @ a low operating voltage with advanced power management - 45nm: 0.8v, 50w, 3.2GHz.
- Attacks on the “Memory Wall”
- Streaming DMA architecture
- 128 simultaneous transfers between the eight SPE local stores and main storage.
- 3-level Memory Model: Main Storage, Local Storage, Register Files
- Attacks on the “Frequency Wall”
- Highly optimized implementation
- Large shared register files and software controlled branching to allow deeper pipelines
Highlights Highlights
- 90nm
- 3.2 GHz
- 241M transistors
- 9 cores, 10 threads
200 GFlops (SP)
20 GFlops (DP)
- Up to 25 GB/s memory B/W
- Up to 75 GB/s I/O B/W
300 GB/s EIB
CDA6938 University of Central Florida (^7)
Element Interconnect BusElement Interconnect Bus
- Four 16 byte data rings supporting multiple simultaneous transfers per ring
- 96Bytes/cycle (64B data + 32B tags) peak bandwidth - 307.2GB at 3.2GHz
- Over 100 outstanding requests
Memory Interface Memory Interface
- 16 B/cycle
- 25.6 GB/s (1.6 GHz)
CDA6938 University of Central Florida (^9)
CELL – CELL– Block DiagramBlock Diagram
PPEPPE –– Block DiagramBlock Diagram
Source: J. Kahle, et al., Introduction to the Cell Multiprocessor
two-way in-order issue
two-way SMT
4 instructions per cycle
out-of-order issue
32 64-bit register file + 32 128-bit vector register file per thread 32 64-bit GPR file per threadten-stage double-precision pipeline
CDA6938 University of Central Florida (^13)
SPESPE –– Block DiagramBlock Diagram
Source: T. Chen, R. Raghavan, J. Dale, E. Iwata, Cell Broadband Engine Architecture and its first implementation
Single-port SRAM: narrow (128-bit) and wide (128-byte) Loads, stores and instruction fetch complete without exception.
SPESPE -- PipelinePipeline
Source: B. Flachs, et al., A Streaming Processing Unit for a CELL Processor
- 23 stages.
- Br miss prediction penalty: 18 cycles.
- Forward macro: 6 read ports.
CDA6938 University of Central Florida (^15)
SPE – SPE– DualDual--Issues RulesIssues Rules
• SPU has two pipelines:
- even (pipeline 0) & odd (pipeline 1)
- Condition:
- the first instruction must come from an even word address and use the even pipe.
- the second instruction must come from an odd word address and use the odd pipe.
SPE – SPE– DualDual--Issues Rules cont.Issues Rules cont.
CDA6938 University of Central Florida (^19)
SPESPE –– Branch Hint RulesBranch Hint Rules
- Enough separation between the hint and the branch ( cycles).
- If HBR is too close, stall the branch until HBR finished.
- If HBR is closer than 4 instruction pairs plus one cycle, it is ignored.
- Only one HBR can be active at a time.
- An HBR can be moved outside of a loop and will be effective on each loop iteration as long as another HBR instruction is not executed.
- The HBR instruction only affects performance.
MFCMFC
From: Cell Broadband Engine Architecture, v 1.02, IBM
CDA6938 University of Central Florida (^21)
Compiler OptimizationsCompiler Optimizations –– Scalar codeScalar code
- Scalar code on SIMD units
- 128-bit registers.
- Primary slot: left-most 32-bit.
- Problems:
- Address and Branch condition must be in the primary slot.
- a = b +c (a is in word0, b is in word1, c is in word2)
- Scalar: two loads, one add, one store (4 instructions)
- Vector: two loads, one permute, one add, one load, one permute, one store (7 instructions)
- Solutions:
- allocate all local and global scalars to their own private 128-bit local memory lines and align the scalars into their primary slots.
- Try to put them in the register file (reducing loads/stores).
- Vectorization: reduce scalar operations.
Compiler Optimizations – Compiler Optimizations– SubwordSubword
• Integer promotion rule
- Promote 8-bit/16-bit integers to 32-bit integers before computation.
- Problems:
- Extra instructions in SPE: load doesn’t promote integers.
- Different hardware support: SPE supports 16-bit hardware multiplier.
- Not good for vectorization.
- Solution: using subword when possible.
- More:
- Using advanced compiler technology to exploit the performance of the Cell Broadband Engine™ architecture
- http://www.research.ibm.com/journal/sj/451/eichenberge r.html
CDA6938 University of Central Florida (^25)
Storage Domains - Constraints
- No direct (SPU-program addressable) access to main storage. The SPU accesses main storage only by using the MFC’s DMA transfers.
- No direct access to system control, such as page-table entries. PPE privileged software provides the SPU with the address-translation information that its MFC needs.
- With respect to accesses by its SPU, the LS is unprotected and un-translated storage.
SPE Local Store Domain
- Stores all instructions and data used by the SPU.
- Supports one access per cycle from either SPE software or DMA transfers.
- SPU data-access bandwidth is 16 bytes per cycle, quadword aligned.
- DMA-access bandwidth is 128 bytes per cycle.
- An SPU can only fetch instructions from its own LS with load and store instructions, and it performs no address translation for such accesses.
- An SPE program references its own LS using a Local Store Address (LSA)
CDA6938 University of Central Florida (^27)
SPE Addressing and Address Aliasing SPE Addressing and Address Aliasing
- The LS of each SPE is also assigned a Real Address (RA) range within the system's memory map. - An SPU’s LS can also be accessed by the PPE and other devices through the main-storage space - PPE accesses main storage with load and store instructions, without the need for DMA transfers - SPEs must use DMA transfers to access the LS in the main storage ÎNo direct (SPU-program addressable) access to main storage
Communication Between the PPE and SPEs Communication Between the PPE andSPEs
- DMAs
- To transfer data between main storage and the LS
- Mailboxes
- Queues for exchanging 32-bit messages
- Signal notification registers
CDA6938 University of Central Florida (^31)
MailboxMailbox
- Two mailboxes (the SPU Write Outbound Mailbox and the SPU Write Outbound Interrupt Mailbox) are provided for sending messages from the SPE to the PPE
- One mailbox (the SPU Read Inbound Mailbox) is provided for sending messages to the SPE
- Between SPE: DMA to MMIO registers in the main memory.
Signal notification registers Signal notification registers
- Each SPE has two 32-bit signal-notification registers, each has a corresponding memory-mapped I/O (MMIO) register into which the signal-notification data is written by the sending processor
- Signal-notification channels, or signals , are inbound (to an SPE) registers
- They can be used by other SPEs, the PPE, or other devices to send information, such as a buffer-completion synchronization flag, to an SPE
CDA6938 University of Central Florida (^33)
SPE ISASPE ISA
- 204 instructions, 11 classes.
Load and Store Instructions Load and Store Instructions
- Only for Quadword
- Load Quadword
- lqd rt,symbol(ra)
- lqx rt,ra,rb
- lqa rt,symbol
- lqr rt,symbol (Load Quadword Instruction Relative)
- Also has a Store Quadword Instruction Relative.
CDA6938 University of Central Florida (^37)
Shift and Rotate InstructionsShift and Rotate Instructions
- Rotate Halfword
- roth rt, ra, rb
- For each 16-bit slot, rotate contents in RA to the left.
- Rotate count is in bits 12 to 15 of the corresponding 16-bit slot in RB.
Compare, Branch and Halt Instructions Compare, Branch and Halt Instructions
- Halt If Equal
- heq ra, rb
- The stop that occurs is not precise; as a result, execution can generally not be restarted.
- Compare Equal Byte
- ceqb rt, ra, rb
- For each 8-bit slot
- if equal, all ones.
- if not, all zeros.
CDA6938 University of Central Florida (^39)
Compare, Branch and Halt Instructions cont. Compare, Branch and Halt Instructions cont.
- Branch Relative
- br symbol (PC = PC + symbol)
- If symbol is zero?
- Branch Relative and Set Link
- brsl rt, symbol (PC = PC + symbol, rt = PC + 4)
CDA6938 University of Central Florida (^40)
Control InstructionsControl Instructions
- Two no operation instructions:
- nop (even pipeline)
- lnop (odd pipeline)
- Dual issue rule:
- the first instruction must come from an even word address and use the even pipe.
- the second instruction must come from an odd word address and use the odd pipe.
- Useful to pad instructions
Inst_Ev en Inst_O dd Inst_Ev en
lnop Inst_Ev en Inst_O dd Inst_Ev en