Do you have a question about the MediaGX and is the answer not in the manual?
Questions and answers
Summary of Contents for Cyrix MediaGX
Page 1
Data Book Cyrix Corporation Confidential October 29, 1998 - Revision 2.0 Addenda and other updates for this manual can be obtained from Cyrix Web site: www.cyrix.com.
Page 2
Cyrix patents, copyrights, or other intellectual property rights pertaining to any machine or combination of Cyrix devices is hereby granted. Cyrix products are not intended for use in any medical, life saving, or life sustaining systems. Information in this document is subject to change without notice.
Page 3
Memory-Read Bypassing x86 instruction set compatible and supports MMX - Six-stage integer pipeline technology. - XpressRAM™ and XpressGRAPHICS™ This processor is the latest member of the Cyrix ♦ MediaGX™ MMX™-Enhanced Processor MediaGX family, offering high performance, fully - Processor Integrated Functions:...
Page 4
Page iv Cyrix Corporation Confidential GXm_db_v2.0...
VGA and 16-bit industry standard audio emulation. with MMX™ technology. This latest generation of XpressAUDIO technology eliminates much of the the MediaGX processor enables a new class of low hardware traditionally associated with audio func- cost, premium performance notebook/desktop tions.
Page 18
• Supports up to 1280x1024x8 BPP and 1024x768x16 BPP Note: GUI (Graphical User Interface) graphics acceleration is pure hardware. XpressRAM™ Memory Subsystem • Provides Cyrix’s 16-bit XpressAUDIO™ • Memory control/interface directly from CPU 2D Graphics Accelerator • 64-Bit wide memory bus • Graphics pipeline performance significantly •...
Architecture Architecture The MediaGX processor is divided into major func- tional blocks (as shown in Figure 1-1): The Cyrix MediaGX MMX-Enhanced Processor • Integer Unit represents a new generation of x86-compatible 64- • Floating Point Unit (FPU) bit microprocessors with sixth-generation features.
AC1 and AC2. If the instruction refers to a memory operand, AC1 calcu- The MediaGX processor provides the ability to allo- lates a linear memory address for the instruction. cate a portion of the L1 cache as a scratchpad,...
Internal Bus Interface Unit The internal bus interface unit provides a bridge 1.2.1 Graphics Accelerator from the MediaGX processor to the integrated system functions (i.e., memory subsystem, display The graphics accelerator is a full-featured GUI controller, graphics pipeline) and the PCI bus inter- (Graphical User Interface) accelerator.
1.2.2 Display Controller The memory controller handles multiple requests for memory data from the MediaGX processor, the The display port is a direct interface to the graphics accelerator and the display controller. The Cx5520/Cx5530 which drives a TFT flat panel memory controller contains extensive buffering display, LCD panel, or a CRT display.
Cyrix Cx9210™ Dual-Scan Flat Panel Display As described in separate manuals, the Cx5520 and Controller for designs that need to interface to a Cx5530 enable the full features of the MediaGX DSTN panel (instead of TFT panel). processor with MMX support. These features...
Figure 1-3 shows an example of a Cx9210 STN (DSTN) flat panel LCD. It connects to the interface in a typical MediaGX Integrated digital RGB output of a MediaGX™ processor or Subsystem. Cx55 x 0 and drives the graphics data onto a dual-...
Integrated x86 Solution with MMX™ Support Signal Definitions This section describes the external interface of the organized by their functional interface groups MediaGX processor. Figure 2-1 shows the signals (internal test and electrical pins are not shown). SYSCLK MD[63:0] CLKMODE[2:0]...
Pin Assignments Pin Assignments Table 2-1 Pin Type Definitions The MediaGX MMX-Enhanced processor is avail- Mnemonic Definition able in two packages, a 352 BGA package and a Standard input pin. 320 SPGA package. Bidirectional pin. The pin assignment for the 352 BGA is shown in Totem-pole output.
'40 &.($ Note: Signal names have been abbreviated in this figure due to space constraints. = GND terminal = PWR terminal (VCC2 = VCC_CORE; VCC3 = VCC_IO) Figure 2-2 352 BGA Pin Assignment Diagram GXm_db_v2.0 Cyrix Corporation Confidential Page 11...
Note: Signal names have been abbreviated in this figure due to space constraints. = Denotes GND terminal = Denotes PWR terminal (VCC2 = VCC_CORE; VCC3 = VCC_IO) Figure 2-3 320 SPGA Pin Assignment Diagram Page 16 Cyrix Corporation Confidential GXm_db_v2.0...
CLKMOD[2:0] inputs. The SYSCLK input is a fixed frequency which can only be stopped or varied when the MediaGX processor is in a full 3V Suspend. (Section 6.4 “3-Volt Suspend Mode” on page 203 for details regarding this mode.)
Page 38
This input is typically generated during the Power- On-Reset sequence. Note: Warm Reset does not require an input on the MediaGX processor since the function is virtualized using SMM. INTR...
Page 39
Suspend Request (PU) (PU) This signal is used to request that the MediaGX processor enter Suspend mode. After recognition of an active SUSP# input, the processor completes execution of the current instruc- tion, any pending decoded instructions and associated bus cycles.
Page 41
AD[31:0]. During a write, it indicates the target is prepared to accept data. Wait cycles are inserted until both IRDY# and TRDY# are asserted together. This pin is internally connected to a 20-kohm pull-up resistor. GXm_db_v2.0 Cyrix Corporation Confidential Page 25...
Page 42
DEVSEL# is detected within and up to the subtrac- tive decode clock, a master abort cycle will result expect for special cycles which do not expect a DEVSEL# returned. This pin is internally connected to a 20-kohm pull-up resistor. Page 26 Cyrix Corporation Confidential GXm_db_v2.0...
Page 43
Each master has its own GNT# line. GNT# can be pulled away at any time a higher REQ# is received or if the master does not begin a cycle within a mini- mum period of time (16 SYSCLKs). GXm_db_v2.0 Cyrix Corporation Confidential Page 27...
CS[3:2]#. WEA#, R25, W33, Write Enable WEB# RAS#, CAS#, WE# and CKE are encoded to support the differ- ent SDRAM commands. WEA# is used with CS[1:0]#. WEB# is used with CS[3:2]#. Page 28 Cyrix Corporation Confidential GXm_db_v2.0...
Page 45
SDCLK[3:0] should be used with CS[3:0]#, respectively, for the Suspend mode to function correctly. SDCLK_IN AK12 SDRAM Clock Input The MediaGX processor samples the memory read data on this clock. Works in conjunction with the SDCLK_OUT signal. SDCLK_OUT AL13 SDRAM Clock Output This output is routed back to SDCLK_IN.
PCLK Pixel Port Clock Pixel Port Clock represents the pixel dotclock or a 2x multiple of the dotclock for some 16-bit-per-pixel modes. It determines the data transfer rate from the MediaGX processor to the Cx5520/Cx5530. VID_CLK Video Clock Video Clock represents the video port clock to the Cx5520/Cx5530.
Page 47
When the Video Port is enabled, this bus drives Video (Y-U-V) data synchronous to the VID_CLK output. PIXEL[17:0] Refer Refer Graphics Pixel Data Bus to Table to Table This bus drives graphics pixel data synchronous to the PCLK output. GXm_db_v2.0 Cyrix Corporation Confidential Page 31...
Table (Total of (Total of VCC3 Refer Refer 3.3V (nominal) I/O Power Connection to Table to Table (Total of (Total of Q5, X2, No Connection A line designated as NC should be left disconnected. Page 32 Cyrix Corporation Confidential GXm_db_v2.0...
Pin No. Type Description FLT# Float Float Outputs forces the MediaGX processor to float all outputs in the high-impedance state and to enter a power-down state. RW_CLK AL11 Raw Clock This output is the MediaGX processor clock. This debug signal can be used to verify clock operation.
Subsystem Signal Connections Subsystem Signal Connections As previously stated, the MediaGX Integrated Chip. Figure 2-4 shows the signal connections Subsystem with MMX support consists of two between the processor and the I/O companion chips. The MediaGX MMX-Enhanced Processor chip. and either the Cx5520 or Cx5530 I/O Companion...
= 220µF, low ESR capacitor = 3.3V connection Note: Where signals cross plane splits, it is recommended to include AC decoupling between planes with 47pF capacitors. = 2.9V connection Figure 2-7 SPGA Recommended Split Power Plane and Decoupling GXm_db_v2.0 Cyrix Corporation Confidential Page 37...
Page 54
Power Planes Page 38 Cyrix Corporation Confidential GXm_db_v2.0...
MediaGX™ MMX™-Enhanced Processor Integrated x86 Solution with MMX™ Support Processor Programming Core Processor Initialization The MediaGX processor is initialized when the This section describes the internal operations of RESET signal is asserted. The processor is placed the MediaGX MMX-Enhanced processor from a in real mode and the registers listed in Table 3-1 programmer’s point of view.
Device Identification 1 Stepping and Revision ID (RO). See Table 3-11 on page 56 for bit definitions. Debug Register 7 0000 0400h See Table 3-13 on page 58 for bit definitions. Note: x = Undefined value Page 40 Cyrix Corporation Confidential GXm_db_v2.0...
Operand lengths of 8, 16, 32 or 48 bits are supported as well as 64 or 80 bits associated with The MediaGX processor instruction set can be floating-point instructions. Operand lengths of 8 or divided into nine types of operations: 32 bits are generally used when executing code •...
Each of these register sets are discussed in detail in the subsections that follow. Additional registers 2) The System Register Set contains the regis- to support integrated MediaGX processor ters typically reserved for operating-systems subsystems are described in Section 4.1 “Inte- programmers: control registers, system grated Functions Programming Interface”...
This register also contains control bits that The MediaGX processor implements a stack using affect the operation of some instructions. the ESP register. This stack is accessed during the...
The Flags Register contains status information and referred to as the Flags register that is used when controls certain operations on the MediaGX executing 8086 or 80286 code. Table 3-4 gives the processor. The lower 16 bits of this register are bit formats for the EFLAGS Register.
SMM registers. Debug Linear Breakpoint Registers Address 0 The Debug Registers provide debugging facilities Linear Breakpoint for the MediaGX processor and enable the use of Address 1 data access breakpoints and code execution Linear Breakpoint breakpoints. Address 2 Linear Breakpoint...
Protected Mode Enable: Enables the segment based protection mechanism. If PE = 1, protected mode is enabled. If PE = 0, the CPU operates in real mode and addresses are formed as in an 8086-style CPU. Refer to Section 3.13 “Protection” on page 97. Page 48 Cyrix Corporation Confidential GXm_db_v2.0...
If = 1: Prohibits changing the state of the NW bit (CR0[29]) (refer to Table 3-7 on page 48). Set to 1 after setting NW. RSVD Reserved: Set to 0. Note: All bits are cleared to zero at reset. Page 52 Cyrix Corporation Confidential GXm_db_v2.0...
Page 69
If = 1: SMM Address Region Register (SMAR[31:0]), SMAC (CCR1[2]), USE_SMI (CCR1[1]) cannot be modified unless in SMM routine. Once set, SMI_LOCK can only be cleared by asserting the RESET pin. Note: All bits are cleared to zero at reset. GXm_db_v2.0 Cyrix Corporation Confidential Page 53...
Page 70
If = 1: Non-maskable Interrupts (NMIs) are acknowledged. RSVD Reserved: Set to 0. EMMX Cyrix Extended MMX Instructions Enable: If = 1: Cyrix extended MMX instructions are enabled Index 20h PCR — Performance Control Register (R/W) Default Value = 07h LSSER Load/Store Serialize Enable (Reorder Disable): LSSER should be set to ensure that memory- mapped I/O devices operating outside of the address range 640K to 1M will operate correctly.
Page 71
1110 = 32MB 0011 = 16KB 0111 = 256KB 1011 = 4MB 1111 = 4KB (same as 0001) Note: SMI_LOCK (CCR3[0]) must = 0, or the CPU must be in SMI mode, to write these registers/bits. GXm_db_v2.0 Cyrix Corporation Confidential Page 55...
Page 72
DIR1 If DIR1 is 30h-33h = MediaGX MMX-Enhanced processor revision 1.0-2.3 If DIR1 is 34h-4Fh = MediaGX MMX-Enhanced processor revision 2.4-3.x If DIR1 is 50h or greater = MediaGX MMX-Enhanced processor revision 4.0 and up. Page 56 Cyrix Corporation Confidential...
Six debug registers (DR0-DR3, DR6 and DR7) breakpoints. Each breakpoint is further specified by support debugging on the MediaGX processor. bits in the Debug Control Register (DR7). For each Memory addresses loaded in the debug registers, breakpoint address in DR0-DR3, there are corre- referred to as “breakpoints,”...
T bit in the TSS set. BS is set by the processor if the debug exception was triggered by the single-step execution mode (TF flag, bit 8, in EFLAGS set). Note: n = 0, 1, 2, and 3 Page 58 Cyrix Corporation Confidential GXm_db_v2.0...
11 = Match if D, U, or R bit is either a 1 or 0 Undefined RSVD Reserved: Set to 0. Command Bit: If C = 1: TLB lookup. If C = 0: TLB write. Page 60 Cyrix Corporation Confidential GXm_db_v2.0...
RSVD Reserved: Set to 0. TR3 Register 31:0 Cache Data Cache Data: Flush buffer read: Data accessed from the cache flush buffer. Fill buffer write: Data to be written into the cache fill buffer. Page 62 Cyrix Corporation Confidential GXm_db_v2.0...
The RDMSR and WRMSR instructions are privi- During a TSC write, the contents of EX:EAX are leged instructions. loaded into the TSC. The MediaGX MMX-Enhanced processor contains The RDMSR and WRMSR instructions are privi- one 64-bit model specific register (MSR10) the leged instructions.
Address Spaces Address Spaces The MediaGX processor can directly address addresses 22h and 23h and are accessed using either memory or I/O space. Figure 3-2 illustrates the standard IN and OUT instructions. the range of addresses available for memory The configuration registers are modified by writing address space and I/O address space.
Virtual memory is often imple- mented using paging. Either or both of these mechanisms can be used for management of the MediaGX processor memory address space. Page 66 Cyrix Corporation Confidential GXm_db_v2.0...
Based Scaled Index OA = [BASE] + ([INDEX] * SF) Based Index with OA = [BASE] + [INDEX] + DP Displacement Based Scaled Index OA = [BASE] + ([INDEX] * SF) + DP with Displacement GXm_db_v2.0 Cyrix Corporation Confidential Page 67...
1MB of memory. In this mode a selector 12 High Order Address Bits 000h Offset Address Offset Mechanism Linear Address (Physical Address) Selected Segment X 16 Register Base Address Figure 3-4 Real Mode Address Calculation Page 68 Cyrix Corporation Confidential GXm_db_v2.0...
The segment registers are used to store segment selectors. In protective mode, the segment Offset Address Offset Mechanism Linear Physical Optional Memory Address Address Paging Mechanism Segment Base Address Selector Mechanism Figure 3-5 Protected Mode Address Calculation GXm_db_v2.0 Cyrix Corporation Confidential Page 69...
3 2 1 INDEX INSTRUCTION OFFSET Segment Descriptor Segment B a se Linear Physical Address Address Address p = Paging Mechanism GDT or LDT Descriptor Table Main Memory Protective Mode Figure 3-6 Selector Mechanisms Page 70 Cyrix Corporation Confidential GXm_db_v2.0...
Caching Cached Segment and Descriptor Segment Descriptor TI = 0 Cached Selector Segment Global Descriptor Used If Base Table Available Address TI = 1 Segment Descriptor Local Descriptor Table Figure 3-7 Selector Mechanism Caching GXm_db_v2.0 Cyrix Corporation Confidential Page 71...
Bit 10 = Conforming if bit 12 = 1 Bit 10 = Expand Down if bit 12 = 0 Bit 9 = Readable, if Bit 12 = 1 Bit 9 = Writable, if Bit 12 = 0 Bit 8 = Accessed Page 74 Cyrix Corporation Confidential GXm_db_v2.0...
32-Bit Trap Gate Code Execute/Read-Only, conforming accessed S = Code Segment (not Data Segment) A = Accessed E = Expand Down C = Conforming Code Segment W = Write Enable R = Read Enable GXm_db_v2.0 Cyrix Corporation Confidential Page 75...
The I/O Map Base Address field in the 32-bit TSS loaded, the TR selector field indexes a TSS points to an I/O permission bit map that often descriptor that must reside in the Global Descriptor follows the TSS at location +68h. Table (GDT). GXm_db_v2.0 Cyrix Corporation Confidential Page 77...
ESP for CPL = 2 +14h SS for CPL = 1 +10h ESP for CPL = 1 SS for CPL = 0 ESP for CPL = 0 Back Link (Old TSS Selector) Note: 0 = Reserved Page 78 Cyrix Corporation Confidential GXm_db_v2.0...
SS for Privilege Level 0 SP for Privilege Level 1 SS for Privilege Level 1 SP for Privilege Level 1 SS for Privilege Level 0 SP for Privilege Level 0 Back Link (Old TSS Selector) GXm_db_v2.0 Cyrix Corporation Confidential Page 79...
If = 1: The page is present in RAM and the remaining DTE/PTE bits are validated If = 0: The page is not present in RAM and the remaining DTE/PTE bits are available for use by the programmer. GXm_db_v2.0 Cyrix Corporation Confidential Page 81...
TLB hits. The on the MediaGX processor: TLB is a four-way set associative 32-entry page • Non-maskable Interrupt (NMI pin) table cache that automatically keeps the most •...
2. Illegal opcodes including faulty specified by loading the debug registers (DR0- FPU instructions will cause an illegal opcode DR7) with the appropriate values. exception, interrupt vector 6. NMI interrupts are GXm_db_v2.0 Cyrix Corporation Confidential Page 83...
INTR interrupts are both detected at a task whose task state segment (TSS) is partially the same instruction boundary, the MediaGX not present. A TSS can be partially not present if processor services the NMI interrupt first.
Fault selector. trying to invoke exception or hardware interrupt handler. Segment Index of faulty TI bit of faulty selector If =1, exception occurred while Fault selector. trying to invoke exception or hardware interrupt handler. Page 86 Cyrix Corporation Confidential GXm_db_v2.0...
SMM address space (Figure 3-9). System Management Mode (SMM) is usually employed for system power management or soft- The MediaGX processor extends System Manage- ware-transparent emulation of I/O peripherals. ment Mode (SMM) to support the virtualization of SMM mode is entered through a hardware signal many devices, including VGA video.
Address Space Base Address (The configuration registers are discussed in detail in Section 3.3.2.2 “Configuration Registers” on page 50.) RSM Instruction Restores CPU State Using Header Information Normal Execution Resumes Figure 3-10 SMM Execution Flow Page 88 Cyrix Corporation Confidential GXm_db_v2.0...
SMM memory space SMM code region and its size limit. This SMAR header located at the top of SMM memory space. register is identical to many of the Cyrix proces- After saving the header, the CPU enters real mode sors.
The Next IP points to the instruction that will be (offset -40h) of the header for the MediaGX executed after exiting SMM. The contents of processor. Memory data will be stored overlapping...
SMM Instructions The SMM instructions, listed in Table 3-36, can be executed only if all the conditions listed below are The MediaGX processor core automatically saves the met. minimal amount of CPU state information when entering an SMM cycle that allows fast SMM 1) USE_SMI = 1.
4) SMAC = 1 SMI. If SMI# is asserted to the CPU during a software Memory reads are not trapped by the MediaGX SMI, the hardware SMI# is serviced after the soft- processor. The MediaGX processor traps I/O ware SMI has been exited by execution of the RSM addresses for VGA in the following regions: 3B0h instruction.
IRET, is executed. The (CS) register is loaded with the base, as defined by RSM instruction causes the MediaGX processor the SMAR register, and a limit of 4 GBytes. The core to restore the CPU state using the SMM...
D. A second-level (nested) SMI interrupt is received by the processor. This SMI is taken even though the processor is in SMM because the SMI_NEST bit is set high. The SMI_NEST Nested SMI Status Figure 3-11 SMI Nesting State Machine GXm_db_v2.0 Cyrix Corporation Confidential Page 95...
Suspend mode. While in the SMI service routine, tion from the operating system or application soft- the MediaGX processor core can enter Suspend ware, the reception of an SMI# interrupt causes the mode either by (1) executing a halt (HLT) instruc- CPU to exit Suspend mode and enter SMM.
The and generates a special Halt bus cycle. The ability of a task to access a segment depends on MediaGX processor core then drives out a special the: Stop Grant bus cycle and enters a low-power Suspend mode if the SUSP_HLT bit in CCR2 •...
SS and ESP are loaded with the new stack pointer and the previous stack pointer is saved on the new stack. When returning to the original privilege level, the RET or IRET instruction restores the SS and ESP of the less-privileged stack. Page 98 Cyrix Corporation Confidential GXm_db_v2.0...
Protected Mode Gate descriptors described in Section 3.7.5 “Gate Descriptors” on page 76, provide protection for The MediaGX processor core switches to real privilege transfers among executable segments. mode immediately after RESET. While operating in Gates are used to transition to routines of the same real mode, the system tables and registers should or a more privileged level.
Following completion of the interrupt use protected mode addressing for each task. service routine, an IRET instruction restores the The MediaGX processor also permits the use of EFLAGS register (restores VM = 1) and segment paging when operating in V86 mode. Using paging,...
The FPU Mode Control Register (MCR) shown in data registers accessed in a stack-like manner, a Table 3-38 is used by the MediaGX processor to control register, and a status register. The CPU specify the operating mode of the FPU. The MCR...
This section details how the integrated functions designs. Performance degradation in traditional and Internal Bus Interface Unit operate and their UMA systems is reduced through the use of Cyrix’s respective registers. Display Compression Technology™ (DCT™). Integer...
01 = 2KB 10 = 3KB 11 = 4KB MediaGX Base Address: Specifies the physical address for the base (GX_BASE) of the scratchpad RAM, the graphics memory (frame buffer, compression buffer, etc.) and the other memory mapped regis- ters. 00 = Scratchpad RAM, Graphics Subsystem, and memory-mapped configuration registers are disabled.
Control Registers and the start of another can cause display prob- lems . The skip count for all supported resolutions is The control registers for the MediaGX processor shown in Table 4-2. use 32KB of the memory map, starting at GX_BASE+8000h (see Figure 4-2).
16KB unified data/instruction L1 cache. It operates in write-back mode. Since the memory controller is The cache of the MediaGX processor provides the also on-board, the L1 cache requires no external ability to redefine 2KB, 3KB, or 4KB of the L1 logic to maintain coherency.
L1_BB1_POINTER Register (R/W) Default Value = None 15:12 RSVD Reserved: Set to 0. BitBLT 1 Pointer Index: The index to the current line of BLT Buffer 1. 11:4 INDEX RSVD Reserved: Set to 0. Page 108 Cyrix Corporation Confidential GXm_db_v2.0...
(bits [3:2] in GCR, Index B8h) to enable or disable all of the graphics instructions. The MediaGX processor has four instructions to If the scratchpad size bits are zero, meaning that access processor core registers. Table 4-6 shows none of the cache is defined as scratchpad, then these instructions.
Both instructions always transfer 32 Instructions bits of data. The MediaGX processor has several internal regis- ters that control the BLT buffer and power manage- These instructions work by initiating a special I/O ment circuitry in the dedicated cache subsystem.
Internal Bus Interface Unit 4.2.2 A20M Support The MediaGX processor’s Internal Bus Interface The MediaGX processor provides an A20M bit in Unit provides control and interface functions to the the BC_XMAP_1 Register (GX_BASE+ 8004h[21]) internal C-Bus (processor core, FPU, graphics...
C0h through DCh. 800Ch-800Fh BC_XMAP_3 00000000h Memory X-Bus Map Register 3 (E and F Region Control) — Contains the region control fields for memory regions in the address range E0h through FCh. GXm_db_v2.0 Cyrix Corporation Confidential Page 113...
Graphics Enable for A Region: Memory R/W operations for address range A0000h-AFFFFh are directed to the graphics pipeline: 0 = Disable; 1 = Enable. (Used for VGA emulation.) A0 Region: Region control field for address range A0000h-AFFFFh. Note: Refer to Table 4-11 for decode. Page 114 Cyrix Corporation Confidential GXm_db_v2.0...
Read Enable: Read operations to this region of memory are allowed if this bit is set high. If this bit is cleared then read operations in this region are directed to the PCI master. GXm_db_v2.0 Cyrix Corporation Confidential Page 115...
Graphics Pipeline Interface, and the SDRAM Inter- the SDRAM clock. face. A basic block diagram of the memory controller is The MediaGX processor supports LVTTL (low shown in Figure 4-3. voltage TTL) technology. LVTTL technology allows the SDRAM interface of the memory controller to run at frequencies up to 125MHz.
Page 136
If the DQM signal is registered low, the corresponding data will be written to memory. If the DQM is driven high, the corresponding data will be ignored, and a write will not be executed to that location. Page 120 Cyrix Corporation Confidential GXm_db_v2.0...
Memory Controller Dirty RAM Access Register — This register is used to access the Dirty RAM. A read/write to this register will access the Dirty RAM at the address specified in the MC_DR_ADD register. GXm_db_v2.0 Cyrix Corporation Confidential Page 121...
0 = Disable; 1 = Enable. This can be used to compensate for address setup at high frequencies. RFSHTST Test Refresh: This bit, when set high, generates a refresh request. This bit is only used for testing purposes. Page 122 Cyrix Corporation Confidential GXm_db_v2.0...
Page 139
Read Data Phase: Selects if read data is latched one or two core clock after the rising edge of SDCLK: 0 = 1 core clock; 1 = 2 core clocks. FSTRDMSK Fast Read Mask: Do not allow core reads to bypass the request FIFO: 0 = Disable; 1 = Enable. GXm_db_v2.0 Cyrix Corporation Confidential Page 123...
Page 140
010 = 4KB 1xx = 16KB 001 = 2KB 011 = 8KB 111 = DIMM0 not installed When DIMM0 is not installed, program all other DIMM0 fields to 0. RSVD Reserved: Set to 0. Page 124 Cyrix Corporation Confidential GXm_db_v2.0...
Page 142
MC_DR_ACC register. This field does not auto increment. GX_BASE+841Ch-841Fh MC_DR_ACC (R/W) Default Value = 0000000xh 31:2 RSVD Reserved: Set to 0. Dirty Bit: This bit is read/write accessible. Valid Bit: This bit is read/write accessible. Page 126 Cyrix Corporation Confidential GXm_db_v2.0...
DIMM and the next two banks ical address starting from A3. would be on the second DIMM, but they would be linear in address space. For an eight bank system GXm_db_v2.0 Cyrix Corporation Confidential Page 127...
Note that the burst length for the READ command supported cycles. is always two. SDCLK RAS# CAS# COL n Figure 4-5 Basic Read Cycle with a CAS Latency of Two Page 130 Cyrix Corporation Confidential GXm_db_v2.0...
Precharge command must be issued banks. followed by an Activate command. SDCLK RAS# CAS# MA[10] Figure 4-7 Auto Refresh Cycle SDCLK COMMAND tRCD ADDRESS Figure 4-8 Read/Write Command to a New Row Address Page 132 Cyrix Corporation Confidential GXm_db_v2.0...
The delay for SDCLKIN must be designed so that it lags the SDCLKs at the DRAM by approximately The MediaGX processor drives the SDCLK to the 2ns. The delay should also include the SDCLK SDRAMs; one for each DIMM bank. All the control, transmission line delay.
DCLK bits setting effects SDCLK. The PCI clock is shift value of two or three could be used so that the input clock to the MediaGX processor. The core SDCLK at the SDRAM is centered around when clock is the internal processor clock that is multi- the control signals change.
Graphics Pipeline Graphics Pipeline 4.4.1 BitBLT/Vector Engine The graphics pipeline of the MediaGX MMX- BLTs are initiated by writing to the GP_BLT_MODE Enhanced processor includes a BitBLT/vector register, which specifies the type of source data ® engine which has been optimized for Microsoft (none, frame buffer, or BLT buffer), the type of the ®...
A second loaded into the MediaGX processor’s registers. For BitBLT or vector operation can then be loaded into solid primitives, the pattern hardware is disabled...
The definition of the ROP value matches that of the ® ® Microsoft API. This allows Windows display drivers to load the raster operation directly into hardware. Table 4-22 illustrates this definition. Page 138 Cyrix Corporation Confidential GXm_db_v2.0...
Note: The registers at GX_BASE+8140, 8144h, 8210h, and 8217h are located in the area designated for the graphics pipeline but are used for VGA emulation purposes. Refer to Table 5-5 on page 200 for these register’s bit formats. GXm_db_v2.0 Cyrix Corporation Confidential Page 139...
Page 156
Note: The registers at GX_BASE+8140, 8144h, 8210h, and 8217h are located in the area designated for the graphics pipeline but are used for VGA emulation purposes. Refer to Table 5-5 on page 200 for these register’s bit formats. Page 140 Cyrix Corporation Confidential GXm_db_v2.0...
8-BPP mode or the 16-BPP mode. Those pixels corresponding to clear bits (0) in the source data are rendered using GP_SRC_COLOR_0 and those pixels corresponding to set bits (1) in the source data are rendered using GP_SRC_COLOR_1. GXm_db_v2.0 Cyrix Corporation Confidential Page 141...
Page 158
GP Pattern Data Register 3: The Graphics Pipeline Pattern Data Registers 0 through 3 together contain 128 bits of pat- 31:0 tern data. The GP_PAT_DATA_3 register corresponds to bits [127:96] of the pattern data. Page 142 Cyrix Corporation Confidential GXm_db_v2.0...
Page 159
11 = Source is a text glyph (use source color expansion). This differs from a monochrome bitmap in that the X position is adjusted by the width of the BLT and the Y position remains the same. GXm_db_v2.0 Cyrix Corporation Confidential Page 143...
Page 160
Note that the registers at GX_BASE+8210h and 8214h are located in the area designated for the graphics pipeline but are used for VGA emulation purposes. Refer to Table 5-5 on page 200 for these register’s bit formats. Page 144 Cyrix Corporation Confidential GXm_db_v2.0...
TFT panels, and flexible output formatting logic. A output on a variety of display devices. The diagram of the display controller subsystem is MediaGX processor can directly connect to an shown in Figure 4-14. active matrix TFT LCD flat panel or to an external RAMDAC for CRT display or both.
FIFO also queues up cursor patterns. second, since the panel could not display changes beyond that rate. Page 146 Cyrix Corporation Confidential GXm_db_v2.0...
Display Controller The compression algorithm used in the MediaGX 4.5.4 Hardware Cursor processor commonly achieves compression ratios The display controller contains hardware cursor between 10:1 and 20:1, depending on the nature of logic to allow overlay of the cursor image onto the the display data.
Display Timing Generator 4.5.7 Display Modes The display controller features a fully program- The MediaGX processor has two graphics output mable timing generator for generating all timing ports: one primarily designed for interfacing to control signals for the display. The timing control...
Display Controller The MediaGX processor supports both 8- and 16- port. RAMDACS with 8-bit pixel ports will be able to bit RAMDAC configurations, and a direct connec- support 16 BPP displays only up to 800x600 reso- tion to a TFT. For systems that utilize a direct lution.
RAMDAC, RAMDAC, Data 8 BPP 1280x1024x8 BPP, First Second Lower Half Indexed Output First Pixel Transfer Transfer Of Pixel Video* Note: *Refer to the Cx5520 or Cx5530 Data Book for details on YUV ordering. Page 150 Cyrix Corporation Confidential GXm_db_v2.0...
Graphics Memory Map 4.5.8.1 DC Memory Organization Registers The MediaGX processor supports a maximum of 4MB of graphics memory and will map it to an The display controller contains a number of regis- address space (see Figure 4-2 on page 105)
Page 169
XOR masks for 16 the data in the VGA buffer to an 8 BPP frame buffer pixels in the lower word. DWORDs are arranged that can be displayed by the MediaGX processor’s with the leftmost pixel block being least significant hardware.
Display Controller Line Delta — Stores line delta for the graphics display buffers. 8328h-832Bh DC_BUF_SIZE xxxxxxxxh Display Controller Buffer Size — Specifies the number of bytes to transfer for a line of frame buffer data and the size of the compressed line buffer. 832Ch-832Fh Reserved 00000000h Page 154 Cyrix Corporation Confidential GXm_db_v2.0...
Page 171
Display Controller Cursor Color — Contains the 8-bit indices for the cursor colors. Reserved 8364h-8367h 00000000h 8368h-836Bh DC_BORDER_COLOR xxxxxxxxh Display Controller Border Color — Contains the 8-bit index for the border or overscan color. 836Ch-836Fh Reserved 00000000h GXm_db_v2.0 Cyrix Corporation Confidential Page 155...
Page 172
Display Controller Display FIFO Diagnostic — This register is provided to enable testabil- ity of the Display FIFO RAM. DC_CFIFO_DIAG 837Ch-837Fh xxxxxxxxh Display Controller Compression FIFO Diagnostic — This register is provided to enable testability of the Compressed Line Buffer (FIFO) RAM. Page 156 Cyrix Corporation Confidential GXm_db_v2.0...
FIFO Diagnostic Mode: This bit allows testability of the on-chip Display FIFO and Compressed Line Buffer via the diagnostic access registers. A low-to-high transition will reset the Display FIFO’s R/W pointers and the Compressed Line Buffer’s read pointer. 0 = Normal operation; 1 = Enable. GXm_db_v2.0 Cyrix Corporation Confidential Page 157...
Page 174
RTPM Real-Time Performance Monitoring: Allows real-time monitoring of a variety of internal MediaGX processor signals by multiplexing the signals onto the CLKWR and DACRS[2:0] pins: 0 = Disable (Normal operation); 1 = Enable.
Page 175
Power Sequence Delay: This 3-bit field sets the delay between edges for the power sequencing control DELAY logic. The actual delay is this value multiplied by one frame period (typically 16ms). Note that a value of zero will result in a delay of only one DOTCLK period. GXm_db_v2.0 Cyrix Corporation Confidential Page 159...
Page 176
Timing Generator Enable: Allow timing generator to generate the timing control signals for the display. 0 = Disable, the Timing Registers may be reprogrammed, and all circuitry operating on the DOTCLK will be reset. 1 = Enable, no write operations are permitted to the Timing Registers. Page 160 Cyrix Corporation Confidential GXm_db_v2.0...
Page 177
CRTVSYNC pin, but in order for it to have an effect, the VSYE bit must be set low to dis- able the normal vertical sync. Software should then pulse this bit high and low to clock data into the MediaGX processor. This feature is provided to allow support for the VESA Display Data Channel standard level DDC1.
Page 178
0 = The modified codes are sent to the RAMDAC and the external palette should uses the modified mapping. 1 = Bits [8:1] of the palette output register are routed to the RAMDAC data bus. The MediaGX processor internal palette RAM may be loaded with 8-bit VGA indices to translate the modified codes stored in dis- play memory so that the RAMDAC data bus will contain the expected indices.
Page 179
0 = 16-bit per pixel display mode is selected. (Bit 1 of OUTPUT_CONFIG will indicate the format of the 16 bit data.) 1 = 8-bit-per-pixel display mode is selected. This is the also the mode used in VGA emulation. GXm_db_v2.0 Cyrix Corporation Confidential Page 163...
• Display Controller Frame Buffer Start Address (DC_FB_ST_OFFSET) Registers - Specifies the offset at which the frame buffer The MediaGX processor utilizes a graphics starts. memory aperture that is up to 4MB in size. The base address of the graphics memory aperture is •...
Video Buffer Start Offset Value: This is the value for the Video Buffer Start Offset. It represents the _OFFSET starting location for Video Buffer. Bits [3:0] should always be programmed as zero so that the start off- set is aligned to a 16 byte boundary. GXm_db_v2.0 Cyrix Corporation Confidential Page 165...
Page 182
+ 2 so that enough data is transferred to handle any possible alignment. Extra pixel data in the FIFO at the end of a line will automatically be discarded. GX_BASE+832Ch-832Fh Reserved Default Value = 00000000h Page 166 Cyrix Corporation Confidential GXm_db_v2.0...
4.5.11 Timing Registers • Display Controller CRT Sync Timing (DC_H_TIMING_3) The MediaGX processor timing registers control - Contains CRT horizontal sync timing informa- the generation of sync, blanking, and active display tion. Note, however, that this register should regions. They provide complete flexibility in inter- also be programmed appropriately for flat facing to both CRT and flat panel displays.
Reserved: These bits are readable and writable but have no effect. Note: A minimum of four character clocks is required for the horizontal blanking portion of a line in order for the timing generator to function correctly. Page 168 Cyrix Corporation Confidential GXm_db_v2.0...
Page 185
V_ADJUST = (V_PANEL - V_ACTIVE) / 2 If the display is interlaced, the number of active lines should be even, so this value should be an odd number. Note: All values are specified in lines. GXm_db_v2.0 Cyrix Corporation Confidential Page 169...
Page 186
2. Note that the internal flat panel vertical sync is latched by the flat panel horizontal sync prior to being output to the panel. Note: All values are specified in lines. Page 170 Cyrix Corporation Confidential GXm_db_v2.0...
Note: The value in this register is driven directly off of the DOTCLK, and consequently it is not synchronized with the CPU clock. Software should read this register twice and compare the result to ensure that the value is not transitioning. GXm_db_v2.0 Cyrix Corporation Confidential Page 171...
Page 188
Split-Screen Line Compare: This is the line count at which the lower screen begins in a VGA split- screen mode. Note: When the internal line counter hits this value, the frame buffer address is reset to 0. This function is enabled with the SSLC bit in the DC_GENERAL_CFG register. Page 172 Cyrix Corporation Confidential GXm_db_v2.0...
Reserved: Set to 0. BORDER_CLR Border Color: This is the 8-bit index to the external palette for the border color. It should point to a reserved or static color. GX_BASE+836Ch-836Fh Reserved Default Value = 00000000h GXm_db_v2.0 Cyrix Corporation Confidential Page 173...
• Display Controller Display FIFO Diagnostic standard 256 entries for 8 BPP color translation, (DC_DFIFO_DIAG) the MediaGX processor palette has extensions for - This register is provided to enable testability cursor colors and overscan (border) color. of the Display FIFO RAM.
Page 191
FIFO and a single read of don't care data should be performed to load data into the output latch. Each subsequent read will contain the appropriate data which was previously written. After each read, the FIFO read pointer will auto- matically increment. GXm_db_v2.0 Cyrix Corporation Confidential Page 175...
Figure 4-16 shows the signal connections specifics on signal connections between the two for both types of systems. devices with regards to the display controller. When the MediaGX processor is used in a system with the Cx5520/Cx5530, the need for an external Portable Power...
VID_DATA[7:0] is advanced when both VID_VAL and VID_RDY are asserted. VID_RDY is driven Data Transfer one clock early to the MediaGX processor while VID_VAL indicates that the MediaGX processor VID_VAL is driven coincident with VID_DATA[7:0]. has placed valid data on VID_DATA[7:0]. VID_RDY...
• Resource or total system lock support encoded special cycle. Type 0 or Type 1 conver- sion will be based on the Bus Bridge number matching the MediaGX processor’s bus number of 00h. Table 4-37 Special-Cycle Code to CONFIG_ADDRESS 30 24...
15:11 DEVICE Device: Selects a device on a specified bus. A device value of 00h will select the MediaGX pro- cessor if the bus number is also 00h. DEVICE values of 01h to 15h will be mapped to AD[31:11], so only 21 of the 32 possible devices are supported. A DEVICE value of 00001b will map to AD[11] while a device of 10101b will map to AD[31].
To access the internal PCI configuration registers cant bits must be 00b. of the MediaGX processor, the Configuration Address Register (CONFIG_ADDRESS) must be Table 4-40 summarizes the registers located within written as a DWORD using the format shown in the Configuration Space.
VID (RO) Vendor Identification Register (Read Only): The combination of this value and the device ID uniquely identifies any PCI device. The Vendor ID is the ID given to Cyrix Corporation by the PCI SIG. Index 02h-03h Device Identification Register (RO)
Page 198
Description Signaled Target Abort: This bit is set whenever the MediaGX processor signals a target abort. A tar- get abort is signaled when an address parity occurs for an address that hits in the MediaGX proces- sor’s address space. This bit can be cleared to 0 by writing a 1 to it.
Page 199
PCI Slave Write Buffer Enable: PCI slave write buffers: 0 = Disable; 1 = Enable. CLRE PCI Cache Line Read Enable: Read operations from the PCI into the MediaGX processor: 0 = Single cycle unless a read multiple or memory read line command is used.
Page 200
Rotating Arbitration Controls: These bits control the priority under Rotating arbitration. 000 = Fixed arbitration will occur. 111 = Full rotating arbitration will occur. When these bits are set to other values, hybrid arbitration will occur. Page 184 Cyrix Corporation Confidential GXm_db_v2.0...
It completes the GNT#. Figure 4-20 illustrates basic arbitration. transaction, then deasserts FRAME# and REQ#-b REQ#-a is asserted at clock 1. The PCI MediaGX on clock 6. The MediaGX processor’s PCI arbiter processor arbiter grants access to Agent A by can then grant access to agent A, and does so on asserting GNT#-a on clock 2.
Page 204
During the address phase of the Halt Special cycle, C/BE[3:0]# = 0001 and AD[31:0] are driven to random values. During the data phase, C/BE[3:0]# = 1100 indicating bytes 1 and 0 are valid and AD[15:0] = 0001h. Page 188 Cyrix Corporation Confidential GXm_db_v2.0...
Hardware to be virtualized is merely replaced with simple access detection circuitry which asserts the Several functions can be virtualized in a MediaGX processor’s SMI# (System Management Interrupt) processor based design using the VSA environ- pin when hardware accesses are detected. The ment.
The predefined interface) based operating systems are provided modes are translated into specific VGA control by Cyrix which enable a full featured 2D hardware register setups by the BIOS. The standard modes accelerator to be used instead of the emulated supported by VGA cards are shown in Table 5-1.
• The CRT controller provides video timing signals and address generation for video refresh. It also provides a text cursor. • The attribute controller contains the video refresh datapath, including text rasterization and palette lookup. GXm_db_v2.0 Cyrix Corporation Confidential Page 191...
Page 208
VGA read and write hardware of the are set to zero. In each of these modes, the MediaGX processor. An important axiom of the MapMask enables are logically ANDed into the VGA is that the front end and back end are enables that result from the address.
• Write Mode 2: - Bit n of byte b comes from bit b of the host The MediaGX processor provides VGA compati- data; that is, the four LSBs of the host data bility through a mixture of hardware and software.
Within the context of a single scan line, the refresh address increments by one on every character The VGA hardware of the MediaGX processor clock. Before being presented to the frame buffer, does not implement Write Mode 1 directly, but it...
VGA memory. The and mask SMI interrupts in the VGA memory VGA memory on the MediaGX processor is parti- space. tioned from system memory. The MediaGX processor has the following hardware components to assist the VGA emulation software.
MediaGX™ Virtual VGA 5.2.3.2 VGA Memory Addresses 5.2.3.4 VGA Control Register SMI generation can be configured to trap VGA The VGA control register (VGACTL) provides memory accesses in one of the following ranges: control for SMI generation through an enable bit for memory address ranges A0000h to BFFFFh.
MediaGX™ Virtual VGA Table 5-3 VGA Configuration Registers Description Index B9h VGACTL Register (R/W) Default Value = 00h Reserved: Set to 0. SMI generation for VGA memory range B8000h to BFFFFh: 0 = Disable; 1 = Enable SMI generation for VGA memory range B0000h to B7FFFh: 0 = Disable; 1 = Enable.
Page 214
5.2.3.7 VGA Sequencer the VGA access (A0000h to BFFFFh), the base of the VGA memory on the MediaGX processor, and The VGA sequencer is located at the front end of various control bits. The control bits are necessary the graphics pipeline. The purpose of the VGA...
MediaGX™ Virtual VGA 5.2.4 VGA Video BIOS 5.2.5 Virtual VGA Register Descriptions The video BIOS supports the VESA BIOS Exten- sions (VBE) Version 1.2 and 2.0, as well as all This section describes the registers contained in standard VGA BIOS calls. It interacts with Virtual the graphics pipeline used for VGA emulation.
MediaGX™ Virtual VGA Table 5-5 Virtual VGA Registers Name Description GX_BASE+8210h-8213h GP_VGA_BASE (R/W) Default Value = xxxxxxxxh 31:14 RSVD Reserved: Set to 0. 13:8 VGA_BASE Base Address (Read Only): The VGA base address is added to the graphics memory base to (RO) specify where VGA memory starts.
The MediaGX processor and Cx5520/Cx5530 I/O The components for APM support are: Companion chip contain the most advanced power • Software CPU Suspend control via the...
MediaGX processor. When a condition that ends This is called Suspend Modulation. the “Suspend” state exists, SMI# is re-asserted. At this point, if the PLL in the MediaGX processor has Suspend Modulation acts as backup for cases not been stopped, then SUSP# is deasserted.
SUSP_3V pin, starting the system clocks. The clock synthesizer or buffer chip so that the clocks Cx5520/Cx5530 holds SUSP# active for a pre- to the MediaGX processor (SYSCLK), the programmed period that varies from 0 to 16 ms, Cx5520/Cx5530 (PCI_CLK), and other system which allows the clocks to settle.
The CPU also allows PCI accesses during a SUSP#-initiated Suspend mode (see Figure 6-1). The MediaGX processor enters the Suspend mode If the CPU is in the middle of a PCI access when in response to SUSP# input assertion only when SUSP# is asserted, the assertion of SUSPA# will certain conditions are met.
SYSCLKS from the detection until the PCI access is completed. of an active interrupt. However, the deactivation of HALT SYSCLK FRAME# C/BE[3:0]# AD[15:0] IRDY# INTR, NMI, SMI# SUSPA# Figure 6-2 HALT-Initiated Suspend Mode GXm_db_v2.0 Cyrix Corporation Confidential Page 205...
Suspend Mode and Bus Cycles 6.5.3 Responding to a PCI Access asserted when the PCI access is completed, the MediaGX processor will assert SUSPA# and return During Suspend Mode to a SUSP#-initiated Suspend mode. If it was a The MediaGX processor can temporarily exit HALT-initiated Suspend mode and no active inter- Suspend mode to handle PCI accesses.
Stopping the Input Clock The CPU remains suspended until SYSCLK is restarted and the Suspend mode is exited as Because the MediaGX processor is a static device, described earlier. While SYSCLK is stopped, the the input clock (SYSCLK) can be stopped and processor can no longer sample and respond to restarted without any loss of internal CPU data.
“PM Serial Packet Register” on the SERIALP mation regarding the MediaGX processor produc- output pin to the PSERIAL input pin of the tivity. If the MediaGX processor is determined to be Cx5520/Cx5530. The MediaGX processor holds relatively inactive, the MediaGX processor power...
111 for more information regarding these instruc- memory mapped (GX_BASE+8500h-8FFFh) in the tions. address space of the MediaGX processor and are Table 6-1 summarizes the above mentioned regis- described in the following sections. Refer to ters. Tables 6-2 and 6-3 give these register’s bit Section 4.1.2 “Control Registers”...
1 = 3-Volt Suspend Mode. All internal clocks are stopped. Note: When this register is set high and the Suspend input pin (SUSP#) is asserted, the MediaGX processor stops all it’s internal clocks, and asserts the Suspend Acknowledge output pin (SUSPA#). Once SUSPA# is asserted the MediaGX processor’s SYSCLK input can be stopped.
Page 227
PM_CNTRL_TEN. Note: The MediaGX processor transmits the contents of the serial packet only when a bit in the packet register is set and the interval counter has elapsed. The Cx5520/Cx5530 decodes the serial packet after each transmission. Once a bit in the packet is set, it will remain set until the completion of the next packet transmission.
7.2.2 Power Sequencing the Core and I/O Voltages Table 7-1 Part Numbers With two voltages connected to the MediaGX processor, it is important that the voltages come up Bus Speed (MHz) Speed & Multiplier Part Number in the correct order. V...
Table 7-3 lists absolute maximum ratings for the are stress ratings only and do not imply that opera- MediaGX processor. Stresses beyond the listed tion under any conditions other than those listed ratings may cause permanent damage to the device.
Recommended Operating Conditions Recommended Operating Conditions Table 7-4 lists the recommended operating conditions for the MediaGX processor. Table 7-4 Recommended Operating Conditions Symbol Parameter Units Notes Operating Case Temperature °C For Desktop Applications Operating Case Temperature °C For Notebook Applications Supply Voltage (2.9V nominal)
(static I = 0 mA). 4. All inputs are at 0.2 V or V – 0.2 (CMOS levels). All inputs except clock are held static and all outputs are unloaded (static I = 0 mA). GXm_db_v2.0 Cyrix Corporation Confidential Page 217...
Setup Time for SMI#, SUSP#, FLT# Hold Time for SMI#, SUSP#, FLT# Valid Delay for IRQ13, SUSPA# Valid Delay for SERIALP Note: The system signals may be asynchronous. The setup/hold times are required for determining static behavior. Page 220 Cyrix Corporation Confidential GXm_db_v2.0...
GNT# and REQ# are point-to-point signals. All other PCI interface signals are bused. Refer to Chapter 4 of PCI Local Bus Specification, Revision 2.1, for more detailed information. SYSCLK VAL1,2 OUTPUT TRISTATE OUTPUT Figure 7-5 Output Timing SYSCLK SU1,2 INPUT Figure 7-6 Input Timing GXm_db_v2.0 Cyrix Corporation Confidential Page 221...
Note that SHFTSDCLK field = GX_BASE+8404h[5:3], see page 123. Equation Example: A 200MHz MediaGX processor running a 66MHz SDRAM bus, with a shift value of 2: t1 Min = –1.5 + (2 * (5 ÷ 2)) = 3.5 ns t1 Max = –1.0 + (2 * (5 ÷ 2)) = 4.0 ns...
TDO Float Delay Non-test Outputs Float Delay TDI, TMS Setup Time Non-test Inputs Setup Time TDI, TMS Hold Time Non-test Inputs Hold Time IH(Min) 1.5 V IL(Max) Figure 7-12 TCK Timing and Measurement Points GXm_db_v2.0 Cyrix Corporation Confidential Page 225...
(°C/W) θ = Junction-to-ambient thermal resistance Thermal Characteristics (°C/W). The MediaGX processor is designed to operate θ = Case-to-ambient thermal resistance when the case temperature at the top center of the (°C/W). package is between 0°C and 70 or 85°C. The...
BGA: Solder ball pitch SPGA: Linear spacing between true pin position centerlines Diagonal spacing between true pin position centerlines Flatness Distance from seating plane to tip of pin Length from outer pin/ball center to edge of laminate GXm_db_v2.0 Cyrix Corporation Confidential Page 231...
• MMX™ Instruction Set - listed in Table 9-31 on register components, add one clock to the page 267 clock count shown. • Cyrix Extended MMX Instruction Set - listed in 7. All clock counts assume aligned 32-bit Table 9-33 on page 273 memory/IO operands.
An instruction can be as short as one byte and as long Depending on the instruction, the MediaGX as 15 bytes. If there are more than 15 bytes in the processor core instructions follow the general instruction, a general protection fault (error code 0) instruction format shown in Table 9-1.
32-Bit Data a register or memory operand. The reg field may Field Operations Operations appear in the second opcode byte or in the mod r/m byte. 8 bits 8 bits 16 bits 32 bits GXm_db_v2.0 Cyrix Corporation Confidential Page 235...
Register Type Base Register Control Register Control Register Control Register Control Register Debug Register Debug Register Debug Register Debug Register Debug Register Debug Register Test Register Test Register Test Register Test Register Test Register Page 236 Cyrix Corporation Confidential GXm_db_v2.0...
The sreg3 field (Table 9-12) is 3-bit field that is sreg2 Field Segment Register Selected similar to the sreg2 field, but allows use of the FS and GS segment registers. Table 9-12 sreg3 Field Encoding sreg3 Field Segment Register Selected Undefined Undefined Page 238 Cyrix Corporation Confidential GXm_db_v2.0...
CPUID Returned Data in EAX, EBX, Type Register ECX, EDX Registers vendor, family, model, stepping, features and also provides cache information. The MediaGX with Standard 0000 0000h Maximum standard levels, CPU vendor string MMX supports both the standard and Cyrix extended CPUID levels.
Attempting to execute an unavailable feature Note: The register column is intentionally out of order. can cause exceptions and unexpected behavior. For example, software must check bit 4 before attempting to use the Time Stamp Counter instruc- tion. GXm_db_v2.0 Cyrix Corporation Confidential Page 241...
Standard function 02h (EAX = 02h) of the CPUID Contents* Feature Flag instruction returns information that is specific to the Cyrix family of processors. Information about the EDX[0] FPU On-Chip TLB is returned in EAX as shown in Table 9-20.
80h L1 cache is 16 KBytes, 4-way set associated, and has 16 bytes per line. Name 2 Name 6 Name 10 Reserved Name 3 Name 7 Name 11 Name 4 Name 8 Name 12 Page 244 Cyrix Corporation Confidential GXm_db_v2.0...
Processor Core Instruction Set Processor Core Instruction Set Table 9-26 Processor Core Instruction Set Table Legend The instruction set for the MediaGX processor core is summarized in Table 9-27. The table uses Symbol or several symbols and abbreviations that are...
Page 264
0F B [000w] [mod reg r/m] CMPXCHG8B Compare and Exchange 8 Bytes 0F C7 [mod 001 r/m] CPUID CPU Identification 0F A2 CPU_READ Read Special CPU Register 0F 3C CPU_WRITE Write Special CPU Register 0F 3D Page 248 Cyrix Corporation Confidential GXm_db_v2.0...
Page 265
E [010w] # 8/22 Variable Port E [110w] 8/22 INS Input String from I/O Port 6 [110w] 11/25 INC Increment by 1 Register/Memory F [111w] [mod 000 r/m] Register (short form) 4 [0 reg] GXm_db_v2.0 Cyrix Corporation Confidential Page 249...
Page 266
0F 84 +++ JL/JNGE Jump on Less/Not Greater or Equal 8-bit Displacement 7C + Full Displacement 0F 8C +++ JLE/JNG Jump on Less or Equal/Not Greater 8-bit Displacement 7E + Full Displacement 0F 8E +++ Page 250 Cyrix Corporation Confidential GXm_db_v2.0...
Page 267
7B + Full Displacement 0F 8B +++ JNS Jump on Not Sign 8-bit Displacement 79 + Full Displacement 0F 89 +++ JO Jump on Overflow 8-bit Displacement 70 + Full Displacement 0F 80 +++ GXm_db_v2.0 Cyrix Corporation Confidential Page 251...
Page 269
F [011w] [mod 100 r/m] u u x Multiplier: Byte Word Doubleword NEG Negate Integer F [011w] [mod 011 r/m] NOP No Operation NOT Boolean Complement F [011w] [mod 010 r/m] OIO Official Invalid Opcode 0F FF 8-125 GXm_db_v2.0 Cyrix Corporation Confidential Page 253...
Page 270
PUSHF Push FLAGS Register RCL Rotate Through Carry Left Register/Memory by 1 D [000w] [mod 010 r/m] Register/Memory by CL D [001w] [mod 010 r/m] Register/Memory by Immediate C [000w] [mod 010 r/m] # Page 254 Cyrix Corporation Confidential GXm_db_v2.0...
Page 271
C[000w] [mod 001 r/m] # RSDC Restore Segment Register and Descripto r 0F 79 [mod sreg3 r/m] RSLDT Restore LDTR and Descriptor 0F 7B [mod 000 r/m] RSTS Restore TSR and Descriptor 0F 7D [mod 000 r/m] GXm_db_v2.0 Cyrix Corporation Confidential Page 255...
Page 272
To Register/Memory 0F 9D [mod 000 r/m] SETNLE/SETG Set Byte on Not Less or Equal/Greater To Register/Memory 0F 9F [mod 000 r/m] SETNO Set Byte on Not Overflow To Register/Memory 0F 91 [mod 000 r/m] Page 256 Cyrix Corporation Confidential GXm_db_v2.0...
Page 273
Register/Memory by Immediate 0F AC [mod reg r/m] # Register/Memory by CL 0F AD [mod reg r/m] SMINT Software SMM Entry 0F 38 STC Set Carry Flag STD Set Direction Flag STI Set Interrupt Flag GXm_db_v2.0 Cyrix Corporation Confidential Page 257...
Page 275
Notes e through g apply to Real Address Mode and Protect- ed Virtual Address Mode: Note s applies to Cyrix-specific SMM instructions: e. An exception may occur, depending on the value of the s. All memory accesses to SMM space are non-cacheable. An operand.
Env Regs Status, Mode Control and Tag Registers, recovery. Instruction Pointer and Operand Pointer The instruction set for the FPU is summarized in Table 9-29. The table uses abbreviations that are described Table 9-28. Page 260 Cyrix Corporation Confidential GXm_db_v2.0...
D8 [mod 011 r/m] CC set by TOS - M.SR; then pop TOS FCOMPP Floating Point Compare, Pop DE D9 CC set by TOS - ST(1); then pop TOS and Two Stack Elements ST(1) GXm_db_v2.0 Cyrix Corporation Confidential Page 261...
Page 279
DD [mod 110 r/m] Save state 55 - 65 TOS <--- TOS × 2 (ST(1)) FSCALE Floating Multiply by 2 D9 FD 7 - 14 FSIN Function Evaluation: Sin(x) D9 FE TOS <--- SIN(TOS) 76 - 140 GXm_db_v2.0 Cyrix Corporation Confidential Page 263...
Page 280
ST(n) <--- TOS - ST(n) 4 - 9 64-bit Real DC [mod 101 r/m] TOS <--- M.DR - TOS 4 - 9 32-bit Real D8 [mod 101 r/m] TOS <--- M.SR - TOS 4 - 9 Page 264 Cyrix Corporation Confidential GXm_db_v2.0...
Page 281
FYL2X is called. A pop from the stack increments the top of stack pointer. 5. The following opcodes are reserved by Cyrix: A push to the stack decrements the top of stack pointer. D9D7, D9E2, D9E7, DDFC, DED8, DEDA, DEDC, DEDD, Notes: DEDE, DFFC.
Pack two double words from source and two double words from destination into four words in destination register. packwb Pack four words from source and four words from destination into eight bytes in destination register. Page 266 Cyrix Corporation Confidential GXm_db_v2.0...
Configuration control register CCR7(0) at location mm1, mm2 MMX Register 1, MMX Register 2 EBh must be set to allow the execution of the Cyrix mod r/m Mod and r/m byte encoding (page 6-6 of Extended MMX instructions.
Cyrix Extended MMX™ Instruction Set Table 9-33 Cyrix Extended MMX Instruction Set Summary MMX Instructions Opcode Operation and Clock Count PADDSIW Packed Add Signed Word with Saturation Using Implied Destination MMX Register plus MMX Register to Implied Register 0F51 [11 mm1 mm2] Sum signed packed word from MMX register/memory --->...
MediaGX™ MMX™-Enhanced Processor Integrated x86 Solution with MMX™ Support Appendix A Support Documentation Order Information Cyrix National Part Core Temperature Part Number Number (NSID) Frequency (MHz) (Degree C) Package GM200P 30040-23 GM200P-85 30041-23 GM200B-85 30141-23 GM233P 30050-33 GM233P-85 30054-33 GM233B-85...
• Corrected all SMI_LOCK and MAPEN index/register cross-references in Table 3-11 "Configu- ration Registers". • Changed GXm references in Table 3-11 "Configuration Registers" to MediaGX MMX- Enhanced processor. • In Table 3-16 "TR5-TR3 Bit Definitions", TR4 Register was not showing RSVD bits [2:0].
Page 293
• New 352 BGA - modified dimensions and callouts in Figure 8-1 "352-Terminal BGA Mechan- Specifications ical Package Outline". Now also includes coplanarity value. • Removed legend from inside Figure 8-2 "320-Pin SPGA Mechanical Package Outline" and created new table - Table 8-3 "Mechanical Package Outline Legend". GXm_db_v2.0 Cyrix Corporation Confidential Page 277...
Page 296
TFT Panel Display Modes EBP register VESA-compatible EFLAGS Register VGA Display Support Alignment Check Enable (AM) Display Controller Block Diagram Auxiliary Carry Flag Display Controller Registers Carry Flag Configuration and Status Registers CPUID instruction DC_BORDER_COLOR (8368h-836Bh) Direction Flag (DF) Cyrix Corporation Confidential GXm_db_v2.0...
Page 297
GP_DST_XCOOR Fields - mod and r/m GP_DST_YCOOR Fields - sreg3 GP_INIT_ERROR Fields - ss GP_PAT_COLOR_0 register floating point error GP_PAT_COLOR_1 (GX_BASE+8112h) GP_PAT_COLOR_A (8110h) Mode Control Register GP_PAT_COLOR_B (8114h) Register Set GP_PAT_DATA (8120h-812Fh) Status Register GP_RASTER_MODE (8200h-8203h) GXm_db_v2.0 Cyrix Corporation Confidential...
Page 298
Bit Test Instructions Local Descriptor Table Register (LDTR) Exchange Instructions LOCK One-operand Arithmetic and Logical Lock Prefix Two-operand Arithmetic and Logical Low Order Interleaving Instuction Prefix Summary Integrated Functions Integrated Functions Programming Interface MediaGX™ Virtual VGA Cyrix Corporation Confidential GXm_db_v2.0...
Page 299
PCI Configuration Registers 0CF8h-0CFBh MC_BANK_CFG (8408h-840Bh) PCI Controller MC_DR_ACC (841Ch-841Fh) CONFIG_ADDRESS MC_DR_ADD (8418h-841Bh) Configuration Cycles MC_GBASE_ADD (8414h-8417h) PCI Arbiter MC_MEM_CNTRL1 (8400h-8403h) Space Control Registers MC_MEM_CNTRL2 (8404h-8407h) Special Cycles MC_SYNC_TIM1 (840Ch-840Fh) X-Bus PCI Master Memory Data Bus GXm_db_v2.0 Cyrix Corporation Confidential...
Page 300
– Power Planes Power, Ground, No Connect Ground (VSS) Scratchpad Power, Ground, No Connect Signals 2KB configurations Ground (VSS) 3KB configurations No Connect (NC) SMM information Power Connect (VCC2) Scratchpad RAM Power Connect (VCC3) SDRAM Clocks Cyrix Corporation Confidential GXm_db_v2.0...
Page 301
Shutdown and Halt System Clock – Signal Definitions System Management Interrupt Signal Descriptions System Management Interrupt (SMI#) Cyrix Internal Test and Measurement Signals System Register Set – Memory Controller Interface Signals System Register Sets – PCI Interface Signals Cache Test Registers...
Page 302
VGA Write/Read Path Video Data Bus VID_CLK Video Interface Signals CRT Horizontal Sync CRT Vertical Sync Display Enable Dotclock Flat Panel Horizontal Sync Flat Panel Vertical Sync Graphics Pixel Data Bus Pixel Port Clock Video Clock Cyrix Corporation Confidential GXm_db_v2.0...
Need help?
Do you have a question about the MediaGX and is the answer not in the manual?
Questions and answers