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.

C<br />

Introduction<br />

The MVME2700 board, which uses a PReP memory map, is configured in<br />

this example to occupy address space from 1000 0000 to 13FF FFFF<br />

(64MB) on the VMEbus. The <strong>MVME5100</strong>, which defaults to a CHRP<br />

memory map, occupies another 64MB address range, which in this<br />

example is from 1400 0000 to 17FF FFFF. The PCI Slave Images<br />

represent the view of the Universe on the PCI Local Bus. The VME Slave<br />

Images represent the view of the Universe on the VMEbus. The purpose of<br />

this application note is to demonstrate the process used to select the<br />

appropriate Base and Bound values for the desired address mapping. In<br />

this case, the entire 64MB of available memory space on the board has<br />

been selected. The memory can be segmented by selecting different sizes<br />

and mapping them using the remaining slave images within the Universe<br />

device. In addition, by using the appropriate settings in the Control<br />

register, the memory can be mapped as A24/D16, A16/D8, or other desired<br />

addressing.<br />

Once the Base and Bound values are determined, the correct value for the<br />

Translate register must be selected so that the address presented to the bus<br />

on the other side of the Universe is correct. Each of the Translate register’s<br />

values were determined as follows:<br />

2700 PCI Slave Translate<br />

In the default memory map, PCI Memory space begins at C000 0000, the<br />

first 1MB (100 0000) is set aside for other devices on the PCI Local Bus<br />

that require PCI Memory. PowerPC addresses from C000 0000 to DFFF<br />

FFFF are presented, zero based, on the PCI Local Bus. The Universe is<br />

configured to accept PCI Memory addresses from 0100 0000 to 2000 0000<br />

in PCI Slave Image 1. These addresses are passed unchanged to the<br />

VMEbus. To translate a presented PCI address to a zero based VMEbus<br />

address, the translation value of FF00 0000 was chosen. This value is the<br />

required translation to make the presented address (0100 0000) become<br />

0000 0000 on the VMEbus: 0100 0000 + FF00 0000 => 1 0000 0000.<br />

2700 VME Slave Translate<br />

For the VME Slave register, the Universe passes the presented address<br />

unchanged onto the PCI Local Bus, unless translation is applied.<br />

Consulting the memory maps available in the appropriate MVME<br />

Programmer’s <strong>Guide</strong>, one finds that PowerPC memory is located at 8000<br />

C-2 <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!