|
|
#ifndef __SPS2_SYSTEM_CONFIGURATION_HEADER__
#define __SPS2_SYSTEM_CONFIGURATION_HEADER__
// System Info:
/*
CPU: MIPS III R5900-based "Emotion Engine", clocked at 294.912 MHz (299 MHz on newer versions), with 128-bit SIMD capabilities 250-nm CMOS manufacturing (ending with 65-nm CMOS), 13.5 million transistors, 225 mm? die size, 15 W dissipation (combined EE+GS in SCPH-7500x and later SCPH-7000x): 86 mm?, 53.5 million transistors) (combined EE+GS+RDRAM+DRAM in SCPH-7900x ended with 65 nm CMOS design) CPU core: MIPS R5900 (COP0), 64-bit, little endian (mipsel). CPU is a superscalar, in-order execution 2-issue design with 6-stage long integer pipelines, 32 32-bit GPR registers, 32 128-bit SIMD linear scalar registers, two 64-bit integer ALUs, 128-bit load-store unit (LSU) and a branch execution unit (BXU). Instruction set: MIPS III, MIPS IV subset with Sony's proprietary 107 vector SIMD multimedia instructions (MMI). The custom instruction set was implemented by grouping the two 64-bit integer ALUs. 32-bit FPU coprocessor (COP1) with 6-stage long pipeline (floating point multiply accumulator 1, floating point divider 1). FPU is not IEEE compliant. Two 32-bit VLIW-SIMD vector units at 294.912 MHz: VPU0 and VPU1 (floating point multiply accumulator 9, floating point divider 1) each VPU contains a vector unit (VU), instruction cache, data cache and interface unit. Each vector unit also has upper execution unit containing 4 FMAC and lower execution unit containing FDIV, integer ALU, load-store unit, branch logic, 16 16-bit integer registers and 32 128-bit floating point registers. VPU1 has an additional EFU unit. VPU0 (COP2; FMAC ? 4, FDIV ? 1) is tightly coupled with the main CPU and is typically used for polygon and geometry transformations (under parallel or serial connection), physics and other gameplay related tasks VPU1 (Elementary Functional Unit, EFU; FMAC ? 5, FDIV ? 2) operates independently controlled by microcode, parallel to the CPU core, is typically used for polygon and geometry transformations, clipping, culling, lighting and other visual based calculations (texture matrix able for 2 coordinates (UV/ST))
Parallel: results of VU0/FPU sent as another display list via MFIFO (for e.g. complex characters/vehicles/etc.) Serial: results of VU0/FPU sent to VU1 (via 3 methods) and can act as an optional geometry pre-processor that does all base work to update the scene every frame (for e.g. camera, perspective, boning and laws of movement such as animations or physics) Image Processing Unit (IPU): MPEG-2 compressed image macroblock layer decoder allowing playback of DVDs and game FMV. It also allowed vector quantization for 2D graphics data. Memory management unit (MMU),[12] RDRAM controller and DMA controller: handle memory access within the system Cache memory: 16 KB instruction cache, 8 KB + 16 KB scratchpad (ScrP) data cache Scratchpad (SPR) is extended area of memory visible to the EE CPU. This extended memory provides 16 kilobytes of fast RAM available to be used by the application. Scratchpad memory can be used to store temporary data that is waiting to be sent via DMA or for any other temporary storage that the programmer can define. I/O processor interconnection: remote procedure call over a serial link, DMA controller for bulk transfer Main RDRAM memory bus. Bandwidth: 3.2 GB/s Graphics interface (GIF), DMA channel that connects the EE CPU to the GS co-processor. To draw something to the screen, one must send render commands to the GS via the GIF channel: 64-bit, 150 MHz bus, maximum theoretical bandwidth of 1.2 GB/s.[6] Display lists generated by CPU/VPU0 and VPU1 are sent to the GIF, which prioritizes them before dispatching them to the Graphics Synthesizer for rendering. Vector Unit Interface (VIF), consists of two DMA channels VIF0 for VPU0 and VIF1 for VPU1. Vector units and the main CPU communicate via VIF DMA channels. SIF – Serial Interface or Subsystem Interface which consists of 3 DMA channels: Subsystem Interface 0 (SIF0) and Subsystem Interface 1 (SIF1), used for communication between the EE main CPU and IOP co-processor. These are serial DMA channels where both CPUs can send commands and establish communication through an RPC protocol. Subsystem Interface 2 (SIF2), used for backwards compatibility with PS1 games and debugging.*/
#include "basicTypes.h"
#if !defined(_EE) && !defined(_IOP)
#error Either _EE or _IOP must be defined!
#endif
#ifndef __BYTE_ORDER
#define __BYTE_ORDER __LITTLE_ENDIAN
#endif
typedef struct s_ps2_sysconf { uint16_t timezone; uint8_t aspect; uint8_t datenotation; uint8_t language; uint8_t spdif; uint8_t summertime; uint8_t timenotation; uint8_t video;}ps2_sysconf_t;
#endif
|