Chapter 9: Using User Flash Memory in MAX II Devices
9–45
Creating Memory Content File
Figure 9–50. Memory Map for 2-Kbit Memory Initialization
MIF or HEX File Contents – to represent
the actual data and address size for the UFM block
1FFh
2-Kbit altufm_i2c Megafunction
Logical Memory Contents
Address 80h in logical memory maps to
address 180h in the MIF/HEX file. FFh in logical
memory maps to 1FFh in the MIF/HEX file, and all
data in between follows the order in the
logical memory
FFh
Upper Half – Addresses
180h
80h to FFh
17Fh
This section of the UFM is unused –
the MIF/HEX file contents should be set to
all '1' for addresses 080h to 17Fh
80h
7Fh
080h
Lower Half – Addresses
00h to 7Fh
07Fh
Address 00h in logical memory maps to
address 000h in the MIF/HEX file. Address 7Fh in
logical memory maps to 07Fh in the MIF/HEX file,
and all data in between follows the order in the
logical memory
00h
000h
Memory Map for 4-Kbit Memory Initialization
Figure 9–49 shows the memory map initialization for the altufm_i2c megafunction of
4-Kbit memory. The altufm_i2c megafunction byte address location of 00hto FFhis
mapped to the UFM block address location of 000hto 0FFh. The altufm_i2c
megafunction byte address location of 100hto 1FFhis mapped to the UFM block
address location of 100hto 1FFh.
Figure 9–51. Memory Map for 4-Kbit Memory Initialization
4-Kbit altufm_i2c Megafunction
Logical Memory Contents
MIF or HEX File Contents – to represent
the data and address size for the UFM block
1FFh
1FFh
Address 100h in logical memory maps to
100h in the MIF/HEX file. Address 1FFh in logical
memory maps to 1FFh in the MIF/HEX file, and all
data in between follows the order in the
logical memory
Upper Half – Addresses
100h to 1FFh
100h
FFh
100h
0FFh
Address 00h in logical memory maps to
000h in the MIF/HEX file. Address FFh in logical
memory maps to 0FFh in the MIF/HEX file, and all
data in between follows the order in the
logical memory
Lower Half – Addresses
00h to FFh
00h
000h
Memory Map for 8-Kbit Memory Initialization
Figure 9–52 shows the memory map initialization for the altufm_i2c megafunction of
8-Kbit memory. The altufm_i2c megafunction of
8-Kbit memory fully utilizes all the memory locations in the UFM block.
© October 2008 Altera Corporation
MAX II Device Handbook