TR5-Lite User Manual
50
June 20, 2018
Chapter 4
Flash Programming
As you develop your own project using the Altera tools, you can program the flash memory device
so that your own design loads from flash memory into the FPGA on power up. This chapter will
describe how to use Altera Quartus II Programmer Tool to program the common flash interface
(CFI) flash memory device on the TR5-Lite. The Stratix V GX FPGA development board ships with
the CFI flash device preprogrammed with a default factory FPGA configuration for running the
Parallel Flash Loader design example.
4
4
.
.
1
1
C
C
F
F
I
I
F
F
l
l
a
a
s
s
h
h
M
M
e
e
m
m
o
o
r
r
y
y
M
M
a
a
p
p
shows the default memory contents of two interlaced 1Gb (128MB) CFI flash device.
Each flash device has a 16-bit data bus and the two combined flash devices allow for a 32-bit flash
memory interface. For the factory default code to run correctly and update designs in the user
memory, this memory map must not be altered.
Table 4-1
Flash Memory Map (Byte Address)
Block Description
Size(KB)
Address Range
PFL option bits
64
0x00030000
– 0x0003FFFF
Factory hardware
33,280
0x00040000
– 0x020BFFFF
User hardware
33,280
0x020C0000
– 0x0413FFFF
Factory software
8,192
0x04140000
– 0x0493FFFF
User software and data
187,136
0x04940000
– 0x0FFFFFFF
For user application, user hardware must be stored with start address
0x020C0000
, and the user’s
software is suggested to be stored with start address
0x04940000
. The NIOS II EDS tool
nios-2-flash-programmer
is used for programming the flash. Before programming, users need to