Sundance SMT329 User Manual

Page 35

Advertising
background image

Load the Spartan3 configuration data from the flash.
Load the Spartan3 comms port switch map from the flash.
Load the Virtex4 configuration data from the flash.
Release control of the flash to the Virtex4.

In order to provide user protection form flash corruption the flash has been divided into a
factory and a user area. The user flash programming tool only writes to the user area, the
factory area remains unchanged. The active flash area is controlled by the DIP switch SW2 bit
4, which sets where in the flash the CPLD will begin reading configuration data from:
SW2/4 OFF = Factory area (UVB4 = 1)
SW2/4 ON

= User area

(UVB4 = 0)


The Virtex4 implements a register based interface to the flash, in which the flash address is
set in a 32 bit address register, and the data is read from or written to an 8 bit register.
It also implements a flash key register, which must be set to a specific 32 bit value to allow
writing to the flash.
Using the shared flash 8 bit data bus, the Virtex4 also implements a diagnostic port to the
Spartan3. Please refer to the SMT329 Comm port map description for further details of this
diagnostic only interface.
The following table shows the registers available in the flash I/O area, and their addresses
from both the VME and TIM global busses:

Area VME

offset

TIM address

Peripheral Bits

Read/Write

FLASH D3 C000

0100

Flash

data

8

Read/Write

FLASH D4-D7 C000

0101

Flash address

32

Read/Write

FLASH D8-DB C000

0102

Flash

Key

32

Read/Write

FLASH DF C000

0103 SP3

diagnostic 8 Read/Write


Data can be read from the flash by setting the flash address register then reading from the 8
bit data register.
Data can be written to the flash by first setting the flash key register, then setting the address,
then writing to the 8 bit data register. The write process can be monitored by polling the data
register. See the AMD/Spansion data sheet for details.
It is very strongly recommended that only Sundance provided software is used to write to the
flash. If both user and factory flash areas are corrupted the SMT329 will remain in the “fail”
state indefinitely. This is the state when the Virtex4 has not been configured, and is indicated
by the front panel red LED, and the VME bus signal –SYSFAIL being driven low. To recover
from complete flash corruption, a Xilinx programming pod attached to LK1 is required to
load the Virtex4, after which the flash may be correctly programmed.

User Manual SMT329

Page 35 of 52 Last

Edited:

09/02/2007

10:58:00

Advertising