
System Memory Controller (SMC)
MVME5100 Single Board Computer Programmer’s Reference (6806800H17B
)
272
Initializing SDRAM control registers.
To initialize SDRAM control registers,
1. Get a small piece of SDRAM for software to use for this routine (optional).
This routine assumes that SDRAM related control bits are still at the power-up-reset
default settings. We will use a small enough piece of SDRAM that the address
signals that are affected by SDRAM size will not matter.
For each SDRAM block:
a.
Set the block’s base address to some even multiple of 32MB (refer to
Address Register (Blocks A/B/C/D)
for more information.)
b.
Set the block’s size to 4Mx16 and enable it (refer to
SDRAM Enable and Size Register
for more information.)
c.
Test the first 1MB of the block.
d.
If the test fails, disable the block, clear its size to 0MB, disable it and then repeat steps
1 through 5 with the next block. If the test passes, go ahead and use the first 1M of the
block.
2.
Using the I
2
C bus, determine which memory blocks are present. Using the addressing
scheme established by the board designer, probe for SPD’s to determine which blocks of
SDRAM are present. SPD byte 0 could be used to determine SPD presence. SPD Byte 5
indicates the number of SDRAM blocks that belong to an SPD.
3.
Obtain the CAS latency information for all blocks that are present to determine whether to
set or to clear the cl3 bit.
For each SDRAM block that is present:
a.
Check SPD byte 18 to determine which CAS latencies are supported.
b. If a CAS latency of 2 is supported, then go to Step 3. Otherwise, a CAS latency of 3 is all
that is supported for this block.
c. If a CAS latency of 2 is supported, check SPD byte 23 to determine the CAS_latency _2
cycle time. If the CAS_latency_2 cycle time is less than or equal to the period of the
system clock then this block can operate with a CAS latency of 2. Otherwise a CAS
latency of 3 is all that is supported for this block.
If any block does not support a CAS latency of 2, then cl3 is to be set. If all of the blocks
support a CAS latency of 2, then the cl3 bit is to be cleared.
Do not update the cl3 bit at this point. You will use the information from this step later.
Summary of Contents for MVME5100
Page 1: ...MVME5100 Single Board Computer Programmer s Reference P N 6806800H17B July 2014...
Page 8: ...MVME5100 Single Board Computer Programmer s Reference 6806800H17B Contents 8 Contents Contents...
Page 16: ...MVME5100 Single Board Computer Programmer s Reference 6806800H17B 16 List of Figures...
Page 292: ...Hawk Programming Details MVME5100 Single Board Computer Programmer s Reference 6806800H17B 292...
Page 312: ...VMEbus Mapping Example MVME5100 Single Board Computer Programmer s Reference 6806800H17B 312...
Page 316: ...Related Documentation MVME5100 Single Board Computer Programmer s Reference 6806800H17B 316...
Page 317: ......