17.11.2012 Views

MVME5100 Single Board Computer Programmer's Reference Guide

MVME5100 Single Board Computer Programmer's Reference Guide

MVME5100 Single Board Computer Programmer's Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3<br />

System Memory Controller (SMC)<br />

SDRAM Control Registers Initialization Example<br />

The following is a possible sequence for initializing SDRAM control<br />

registers:<br />

1. Get a small piece of SDRAM for software to use for this routine<br />

(optional).<br />

This routine assumes that SDRAM related control bits are still at the<br />

power-up-reset default settings. We will use a small enough piece of<br />

SDRAM that the address signals that are affected by SDRAM size<br />

will not matter.<br />

For each SDRAM block:<br />

a. Set the block’s base address to some even multiple of 32MB<br />

(refer to the section titled SDRAM Base Address Register<br />

(Blocks A/B/C/D) for more information.)<br />

b. Set the block’s size to 4Mx16 and enable it (refer to the section<br />

titled SDRAM Enable and Size Register (Blocks A,B,C,D) for<br />

more information.)<br />

c. Test the first 1MB of the block.<br />

d. If the test fails, disable the block, clear its size to 0MB, disable it<br />

and then repeat steps 1 through 5 with the next block. If the test<br />

passes, go ahead and use the first 1M of the block.<br />

2. Using the I 2 C bus, determine which memory blocks are present.<br />

Using the addressing scheme established by the board designer,<br />

probe for SPD’s to determine which blocks of SDRAM are present.<br />

SPD byte 0 could be used to determine SPD presence. SPD Byte 5<br />

indicates the number of SDRAM blocks that belong to an SPD.<br />

3. Obtain the CAS latency information for all blocks that are present<br />

to determine whether to set or to clear the cl3 bit.<br />

For each SDRAM block that is present:<br />

a. Check SPD byte 18 to determine which CAS latencies are<br />

supported.<br />

b. If a CAS latency of 2 is supported, then go to Step 3. Otherwise,<br />

a CAS latency of 3 is all that is supported for this block.<br />

3-78 <strong>Computer</strong> Group Literature Center Web Site

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!