6-20
MPC8240 Integrated Processor User’s Manual
SDRAM Interface Operation
The value for PGMAX depends on the specific SDRAM devices used, the ROM system,
and the operating frequency of the MPC8240. When the interval specified by PGMAX
expires, the MPC8240 must close the active page by issuing a precharge bank command.
PGMAX must be sufficiently less than the maximum row active time for the SDRAM
device to ensure that the issuing of a precharge command is not stalled by a memory access.
When PGMAX expires during a memory access, the MPC8240must wait for the access to
complete before issuing the precharge command to the SDRAM. In the worst case, the
MPC8240 initiates a memory access one clock cycle before PGMAX expires. If ROM is
located on the memory bus, the longest access that could potentially stall a precharge is a
burst read from ROM. If ROM is located on the PCI bus, the longest memory access is a
burst read from the SDRAM.
The MPC8240 also requires two clock cycles to issue a precharge bank command to the
SDRAM device so the PGMAX interval must be further reduced by two clock cycles.
Therefore, PGMAX should be programmed according to the following equation:
PGMAX < [t
RAS(MAX)
– (worst case memory access) – 2] / 64
Figure 6-7. PGMAX Parameter Setting for SDRAM Interface
For example, consider a system with a memory bus clock frequency of 66 MHz using
SDRAMs with a maximum row active time (t
RAS(MAX)
) of 100 us. The maximum number
of clock cycles between activate bank and precharge bank commands is 66 MHz x 100 us
= 6600 clock cycles.
If the system uses 8-bit ROMs on the memory bus, a processor burst read (a 32-byte cache
line read) from ROM (a non-bursting ROM device) follows the timing shown in
Figure 6-60. Also affecting the ROM access time is MCCR2[TS_WAIT_TIMER]. The
minimum time allowed for ROM devices to enter high impedance is two clock cycles.
TS_WAIT_TIMER adds clocks (n–1) to the minimum disable time. This delay is enforced
after all ROM accesses preventing any other memory access from starting. Therefore a
burst read from an 8-bit ROM (worst case access time (wcat)) takes:
{[( 2) x 8 + 3] x 4} + [2 + (TS_WAIT_TIMER – 1)] clock cycles
So, if MCCR1[ROMFAL] = 4 and MCCR2[TS_WAIT_TIMER] = 3, the interval for a local
processor burst read from an 8-bit ROM takes
{[(4 + 2) x 8 + 3] x 4} + [2 + (3 – 1)] = 204 + 4 = 208 clock cycles.
Plugging the values into the PGMAX equation above,
PGMAX < (6600 – 213 – 2) ÷ 64 = 99.8 clock cycles.
The value stored in PGMAX would be 0b0110_0011 (or 99 clock cycles).
worst case ROM access time
PGMAX (in number of clock cycles) x 64
tRAS(MAX) for SDRAM device
Summary of Contents for MPC8240
Page 1: ...MPC8240UM D Rev 1 1 2001 MPC8240 Integrated Processor User s Manual ...
Page 38: ...xviii MPC8240 Integrated Processor User s Manual TABLES Table Number Title Page Number ...
Page 48: ...xlviii MPC8240 Integrated Processor User s Manual Acronyms and Abbreviations ...
Page 312: ...6 94 MPC8240 Integrated Processor User s Manual ROM Flash Interface Operation ...
Page 348: ...7 36 MPC8240 Integrated Processor User s Manual PCI Host and Agent Modes ...
Page 372: ...8 24 MPC8240 Integrated Processor User s Manual DMA Register Descriptions ...
Page 394: ...9 22 MPC8240 Integrated Processor User s Manual I2O Interface ...
Page 412: ...10 18 MPC8240 Integrated Processor User s Manual Programming Guidelines ...
Page 454: ...12 14 MPC8240 Integrated Processor User s Manual Internal Arbitration ...
Page 466: ...13 12 MPC8240 Integrated Processor User s Manual Exception Latencies ...
Page 516: ...16 14 Watchpoint Trigger Applications ...
Page 538: ...B 16 MPC8240 Integrated Processor User s Manual Setting the Endian Mode of Operation ...
Page 546: ...C 8 MPC8240 Integrated Processor User s Manual ...
Page 640: ...INDEX Index 16 MPC8240 Integrated Processor User s Manual ...