![]() | This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages) (Learn how and when to remove this message)
|
TheEmotion Engine is acentral processing unit developed and manufactured bySony Computer Entertainment andToshiba for use in thePlayStation 2video game console. It was also used in earlyPlayStation 3 models sold in Japan and North America (Model Numbers CECHAxx & CECHBxx) to provide PlayStation 2 game support. Mass production of the Emotion Engine began in 1999 and ended in late 2012 with the discontinuation of the PlayStation 2.[1]
The Emotion Engine consists of eight separate "units", each performing a specific task, integrated onto the samedie. These units are: a CPU core, twoVector Processing Units (VPU), a 10-channelDMA unit, amemory controller, and anImage Processing Unit (IPU). There are three interfaces: an input output interface to the I/O processor, a graphics interface (GIF) to the graphics synthesizer, and a memory interface to the system memory.[2]
The CPU core is tightly coupled to the first VPU, VPU0. Together, they are responsible for executing game code and high-level modeling computations. The second VPU, VPU1, is dedicated to geometry-transformations and lighting and operates independently, parallel to the CPU core, controlled bymicrocode. VPU0, when not utilized, can also be used for geometry-transformations.Display lists generated by CPU/VPU0 and VPU1 are sent to the GIF, which prioritizes them before dispatching them to theGraphics Synthesizer for rendering.
The CPU core is a two-waysuperscalarin-orderRISC processor.[3] Based on the MIPS R5900, it implements theMIPS-IIIinstruction set architecture (ISA) and much of MIPS-IV, in addition to a custom instruction set developed by Sony which operated on 128-bit wide groups of either 32-bit, 16-bit, or 8-bit integers insingle instruction, multiple data (SIMD) fashion (e.g. four 32-bit integers could be added to four others using a single instruction). Instructions defined include: add, subtract, multiply, divide, min/max, shift, logical, leading-zero count, 128-bit load/store and 256-bit to 128-bit funnel shift in addition to some not described by Sony for competitive reasons. Contrary to some misconceptions, these SIMD capabilities did not amount to the processor being "128-bit", as neither the memory addresses nor the integers themselves were 128-bit, only the shared SIMD/integer registers. For comparison, 128-bit wide registers and SIMD instructions had been present in the 32-bitx86 architecture since 1999, with the introduction ofSSE. However the internal data paths were 128-bit wide, and its processors were capable of operating on 4x32bit quantities in parallel in single registers.
It has a 6-stage integerpipeline and a 15-stagefloating-point (FP) pipeline. Its assortment of registers consists of 32 128-bit VLIW SIMD registers (naming/renaming), one 64-bit accumulator and two 64-bit general data registers, 8 16-bit fix function registers, 16 8-bit controller registers. The processor also has two 64-bit integerarithmetic logic units (ALUs), a 128-bitload–store unit (LSU), a Branch Execution Unit (BXU), and a 32-bit VU1floating-point unit (FPU) coprocessor (which acted as a sync controller for the VPU0/VPU1) containing a MIPS base processor core with 32 64-bit FP registers and 15 32-bit integer registers. The ALUs are 64-bit, with a 32-bit FPU that isn't IEEE 754 compliant. The custom instruction set 107 MMI (Multimedia Extensions) was implemented by grouping the two 64-bit integer ALUs. Both the integer and floating-point pipelines are six stages long.
To feed the execution units with instructions and data, there is a 16 KB two-way setassociativeinstruction cache, an 8 KB[4] two-way set associative non blocking data cache and a 16 KBscratchpad RAM. Both the instruction and data caches are virtually indexed and physically tagged while thescratchpad RAM exists in a separate memory space. A combined 48 double entry instruction and datatranslation lookaside buffer is provided for translatingvirtual addresses.Branch prediction is achieved by a 64-entry branch target address cache and abranch history table that is integrated into the instruction cache. The branch misprediction penalty is three cycles due to the short six stage pipeline.
The majority of the Emotion Engine'sfloating point performance is provided by twovector processing units (VPU), designated VPU0 and VPU1. These were essentiallyDSPs tailored for 3D math, and the forerunner tohardware vertex shader pipelines. Each VPU features 32 128-bit vector SIMDregisters (holding4D vector data), 16 16-bit fixed-point registers, fourfloating point multiply-accumulate (FMAC) units, a floating point divide (FDIV) unit and alocal data memory. The data memory for VPU0 is 4 KB in size, while VPU1 features a 16 KB data memory.
To achieve high bandwidth, the VPU's data memory is connected directly to the GIF, and both of the data memories can be read directly by theDMA unit. A single vector instruction consists of four 32-bitsingle-precision floating-point values which are distributed to the four single-precision (32-bit) FMAC units for processing. This scheme is similar to theSSEx extensions by Intel.
The FMAC units take four cycles to execute one instruction, but as the units have a six-stagepipeline, they have a throughput of one instruction per cycle. The FDIV unit has a nine-stage pipeline and can execute one instruction every seven cycles.
The IPU allowedMPEG-2 compressed image decoding, allowing playback of DVDs and gameFMV. It also allowed vector quantization for 2D graphics data.[5]
The memory management unit,RDRAM controller and DMA controller handle memory access within the system.[5]
Communications between the MIPS core, the two VPUs, GIF, memory controller and other units is handled by a 128-bit wide internal data bus running at half the clock frequency of the Emotion Engine but, to offer greater bandwidth, there is also a 128-bit dedicated path between the CPU and VPU0 and a 128-bit dedicated path between VPU1 and GIF. At 150 MHz, the internal data bus provides a maximum theoretical bandwidth of 2.4 GB/s.
Communication between the Emotion Engine and RAM occurs through two channels ofDRDRAM (Direct Rambus Dynamic Random Access Memory) and thememory controller, which interfaces to the internal data bus. Each channel is 16 bits wide and operates at 400 MHz DDR (Double Data Rate). Combined, the two channels of DRDRAM have a maximum theoretical bandwidth of 25.6 Gbit/s (3.2 GB/s), about 33% more bandwidth than the internal data bus. Because of this, the memory controller buffers data sent from the DRDRAM channels so the extra bandwidth can be utilised by the CPU.
The Emotion Engine interfaces directly to the Graphics Synthesizer via the GIF with a dedicated 64-bit, 150 MHz bus that has a maximum theoretical bandwidth of 1.2 GB/s.[6]
To provide communications between the Emotion Engine and the Input Output Processor (IOP), the input output interface interfaces a 32-bit wide, 37.5 MHz input output bus with a maximum theoretical bandwidth of 150 MB/s to the internal data bus. The interface provides enough bandwidth for the PCMCIA extension connector which was used for the network adapter with built-in P-ATA interface for faster data access and online functionality. An advantage of the high bandwidth was that it could be easily used to introduce hardware extensions like the Network Adapter with built-in IDE HDD support or other extensions to extend functionality and product lifecycle which can be seen as a competitive advantage. In newer variants (like the slim edition), the interface would however, offer vastly more bandwidth than what is required by the PlayStation's input output devices as the HDD support was removed and the PCMCIA connector design was abandoned in favor of a slimmer design.
The Emotion Engine contained 13.5 millionmetal–oxide–semiconductor (MOS) transistors,[7] on anintegrated circuit (IC) die measuring 240 mm2.[8] It was fabricated by Sony and Toshiba in a0.25 μm (0.18 μm effectiveLG)complementary metal–oxide–semiconductor (CMOS) process with four levels of interconnect.
The Emotion Engine was packaged in a 540-contact plasticball grid array (PBGA).
The primary use of the Emotion Engine was to serve as thePlayStation 2's CPU.
The firstPlayStation 3 revisions produced also featured an Emotion Engine on the motherboard to achieve backwards compatibility with PlayStation 2 games. However, the second revisions of thePlayStation 3 lacked a physical Emotion Engine in order to lower costs, performing all of its functions usingsoftware emulation performed by theCell Broadband Processor, coupled with a hardware Graphics Synthesizer still present to achieve PlayStation 2 backwards compatibility. In all subsequent revisions, the Graphics Synthesizer was removed; however, a PlayStation 2 software emulator is available in later system software revisions for use with Sony's PS2 Classics titles available for purchase on the Sony Entertainment Network.
The Emotion Engine was also used in thePSX (digital video recorder) as well as the HDTV television models Sony WEGA HVX (Model Numbers KDE-xxxHVX/KDL-xxxHVX) and Sony BRAVIA KDL22PX300, all of which used PlayStation 2 hardware.