9. Using User Flash Memory in MAX II
Devices
MII51010-1.8
Introduction
®
MAX II devices feature a user flash memory (UFM) block that can be used similar to
a serial EEPROM for storing non-volatile information up to 8 Kbits. The UFM
provides an ideal storage solution supporting any possible protocol for interfacing
(SPI, parallel, and other protocols) through bridging logic designed into the MAX II
logic array.
This chapter provides guidelines for UFM applications by describing the features and
®
functionality of the MAX II UFM block and the Quartus II altufm megafunction.
This chapter contains the following sections:
■
■
■
■
■
■
■
“UFM Array Description” on page 9–1
“UFM Functional Description” on page 9–3
“UFM Operating Modes” on page 9–9
“Programming and Reading the UFM with JTAG” on page 9–12
“Software Support for UFM Block” on page 9–13
“Creating Memory Content File” on page 9–40
“Simulation Parameters” on page 9–46
UFM Array Description
Each UFM array is organized as two separate sectors with 4,096 bits per sector. Each
sector can be erased independently. Table 9–1 shows the dimension of the UFM array.
Table 9–1. UFM Array Size
Device
EPM240
Total Bits
Sectors
Address Bits
Data Width
8,192
2 (4,096 bits per sector)
9
16
EPM570
EPM1270
EPM2210
Memory Organization Map
Table 9–2 shows the memory organization for the MAX II UFM block. There are 512
locations with 9 bits addressing a range of 000h to 1FFh. Each location stores 16-bit
wide data. The most significant bit (MSB) of the address register indicates the sector in
operation.
© October 2008 Altera Corporation
MAX II Device Handbook