beautypg.com

Emif control registers – Sundance SMT395E User Manual

Page 11

background image

Version 2.1

Page 11 of 30

SMT395Q User Manual

EMIF Control Registers

The C6416 has two external memory interfaces (EMIFs). EMIF_A is 64 bits wide, the
EMIF_B is 16 bits wide.

The C60 contains several registers that control the external memory interfaces (EMIFs).
A full description of these registers can be found in the

C6000 Peripherals Reference

Guide

.

The standard bootstrap will initialise these registers to use the following resources:

Memory space

(EMIF_A)

Resource Address

range

Internal program memory (1M)

0x00000000 - 0x000FFFFF

CE0

SDRAM (64MB)

0x80000000 - 0x83FFFFFF

CE1

SDRAM (64MB) DSP_A only

0x90000000 - 0x93FFFFFF

CE2

Virtex-II

0xB0000000 - 0xBFFFFFFF

Memory space

(EMIF_B)

Resource Address

range

CE0

HPI of adjacent DSP

0x60000000 - 0x600000FF

CE1

2MB section of flash (DSP_A
only)

0x64000000 – 0x640FFFFF

CE2

FPGA PROG controls (DSP_A
only). Write to this address to
assert PROG and clear the
FPGA configuration.

0x68000000

CE3

FPGA CCLK control (DSP_A
only)

0x6C000000

The boot code sets-up the EMIF as follows:

GCTLB = 0x0001277C;

CECTL0A = 0x000000D0;

CECTL1A = 0x000000D0;

CECTL2A = 0xFFFFFF23

CECTL3A = 0x00000030;

SDCTRLA = 0x53227000;

CECTL0B = 0x10d20415;

CECTL1B = 0xFFF50D13;

CECTL2B = 0xFFFFFF23;

CECTL3B = 0x105FFF23;

SDEXTA = 0x53227000;