AR# 42557

13.x iMPACT, Spartan-3AN - Multiboot MCS File Generation and BitGen Settings for default addressing mode

Description

How do I generate the MCS file including 2-bit files for Multiboot?

How do I set the next configuration address in BitGen?

Solution

Up to version 13.3, iMPACT always generates MCS files in Power-of-2 mode. For default addressing, you must use promgen. This issue is scheduled to be resolved in 13.3.

In-System Flash (ISF) under Default Mode

50AN

PROMGen Command:
promgen -w -p mcs -spi -s 128 -c FF -o Multiboot -u 0 1.bit -u 10800 2.bit

BitGen Second Bit file Start Address Setting:
0x02_0000

200AN

PROMGen Command:
promgen -w -p mcs -spi -s 512 -c FF -o Multiboot -u 0 1.bit -u 31800 2.bit

BitGen Second Bit File Start Address Setting:
0x06_0000

400AN

PROMGen Command:
promgen -w -p mcs -spi -s 512 -c FF -o Multiboot -u 0 1.bit -u 42000 2.bit

BitGen Second Bit File Start Address Setting:
0x08_0000

700AN

PROMGen Command:
promgen -w -p mcs -spi -s 1024 -c FF -o Multiboot -u 0 1.bit -u 63000 2.bit

BitGen Second Bit File Start Address Setting:
0x0C_0000

1400AN

PROMGen Command:
promgen -w -p mcs -spi -s 2048 -c FF -o Multiboot -u 0 1.bit -u A5000 2.bit

BitGen Second Bit File Start Address Setting:
0x14_0000

Q1: Where can I find the BitGen address setting?
A1: You can find the second address setting in the Spartan-3AN FPGA In-System Flash User Guide(UG333) and in theSpartan-3 Generation Configuration User Guide (UG332).

Q2: Why are the second addresses in PROMGen and BitGen different?
A2: They are different because the address area of the ISF in Default Mode is non-continuous. One page only has 264 bytes, but it occupies 9 bits of address.

Q3: How do I calculate the PROMGen second address?
A3: Take 50AN for example:

  • The second bit begins on page 256. There are 256 pages before this. (Page0~page255)
  • Therefore, they contain (264 bytes)*(256 pages) = 67584 bytes.
  • Transforming to HEX gives 0x01_0800, which is the address in the command.

In-System Flash (ISF) under the Power-of-2 Mode

In this mode, the PROMGen address and the second boot address are the same.
WARNING: You cannot return to Default Mode after you switch to Power-of-2 Mode.

50AN

PROMGen Command
promgen -w -p mcs -spi -s 128 -c FF -o Multiboot -u 0 1.bit -u 10000 2.bit

BitGen Second Bit File Start Address Setting:
0x01_0000

200AN

PROMGen Command:
promgen -w -p mcs -spi -s 512 -c FF -o Multiboot -u 0 1.bit -u 30000 2.bit

BitGen Second Bit File Start Address Setting:
0x03_0000

400AN

PROMGen Command:
promgen -w -p mcs -spi -s 512 -c FF -o Multiboot -u 0 1.bit -u 40000 2.bit

BitGen Second Bit File Start Address Setting:
0x04_0000

700AN

PROMGen Command:
promgen -w -p mcs -spi -s 1024 -c FF -o Multiboot -u 0 1.bit -u 60000 2.bit

BitGen Second Bit File Start Address Setting:
0x06_0000

1400AN

PROMGen Command:
promgen -w -p mcs -spi -s 1024 -c FF -o Multiboot -u 0 1.bit -u A0000 2.bit

BitGen Second Bit File Start Address Setting:
0x0A_0000

In the ISE Design Suite, set the second start address here:

AR# 42557
Date 12/15/2012
Status Active
Type General Article
Devices
Tools More Less