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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SDRAM Base Address Register (Blocks A/B/C/D)<br />

Programming Model<br />

Address<br />

Bit<br />

$FEF80018<br />

Name RAM A BASE RAM B BASE RAM C BASE RAM D BASE<br />

Operation READ/WRITE READ/WRITE READ/WRITE READ/WRITE<br />

Reset 0 PL 0 PL 0 PL 0 PL<br />

31<br />

30<br />

29<br />

28<br />

27<br />

26<br />

25<br />

24<br />

23<br />

22<br />

21<br />

20<br />

19<br />

18<br />

17<br />

16<br />

15<br />

14<br />

13<br />

12<br />

11<br />

10<br />

9<br />

8<br />

7<br />

6<br />

5<br />

4<br />

3<br />

2<br />

1<br />

0<br />

Writes to this register must be enveloped by a period of time in which no<br />

accesses to SDRAM occur. The requirements of the envelope are that all<br />

SDRAM accesses must have completed before the write starts and none<br />

should begin until after the write is done. A simple way to do this is to<br />

perform at least two read accesses to this, or another register, before and<br />

after the write.<br />

Additionally, sometime during the envelope, before or after the write, all<br />

of the SDRAMs’ open pages must be closed and the Hawk’s open page<br />

tracker reset. The way to do this is to allow enough time for at least one<br />

SDRAM refresh to occur by waiting for the 32-Bit Counter, described<br />

further on in this chapter, to increment at least 100 times. The wait period<br />

must happen during the envelope.<br />

RAM A/B/C/D BASE These control bits define the base address for their block’s<br />

SDRAM. RAM A/B/C/D BASE bits 0-7/8-15/16-23/24-<br />

31 correspond to PPC60x address bits 0 - 7. For larger<br />

SDRAM sizes, the lower significant bits of A/B/C/D<br />

BASE are ignored. This means that the block’s base<br />

address will always appear at an even multiple of its size.<br />

Remember that bit 0 is MSB.<br />

Note that RAM_E/F/G/H_BASE are located at<br />

$FEF800C8 (refer to the section on SDRAM Base<br />

Address Register (Blocks E/F/G/H). They operate the<br />

same for blocks E-H as these bits do for blocks A-D.<br />

Also note that the combination of RAM_X_BASE and<br />

ram_x_siz should never be programmed such that<br />

SDRAM responds at the same address as the CSR,<br />

ROM/Flash, External Register Set, or any other slave on<br />

the PowerPC bus.<br />

http://www.motorola.com/computer/literature 3-43<br />

3

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

Saved successfully!

Ooh no, something went wrong!