9–10
Chapter 9: Using User Flash Memory in MAX II Devices
UFM Operating Modes
The UFM block can also perform stream read operation, reading continuously from
the UFM using the address increment feature. Stream read mode is started by loading
the base address into the address register. DRSHFTmust then be asserted low at the
first rising edge of DRCLKto load data into the data register from the address pointed
to by the address register. DRSHFTwill then assert high to shift out the 16-bit wide
data with the MSB out first. Figure 9–8 shows the UFM control waveforms during
stream read mode.
Figure 9–7. UFM Read Waveforms
ARShft
tAH
9 Address Bits
tACLK
tASU
ARClk
ARDin
DRShft
DRClk
tADH
tADS
16 Data Bits
tDSH
tDCLK
tDSS
tDCO
DRDin
DRDout
OSC_ENA
Program
Erase
Busy
Figure 9–8. UFM Stream Read Waveforms
Increment
Address
Increment
Address
ARShft
ARClk
9 Address Bits
ARDin
DRShft
DRClk
DRDin
DRDout
16 Data Bits
OSC_ENA
Program
Erase
Busy
Program
To program or write to the UFM, you must first perform a sequence to load the
reference address into the address register. DRSHFTmust then be asserted high to load
the data serially into the data register starting with the MSB. Loading an address into
the address register and loading data into the data register can be done concurrently.
After the 16 bits of data have been successfully shifted into the data register, the
PROGRAMsignal must be asserted high to start writing to the UFM. On the rising edge,
the data currently in the data register is written to the location currently in the address
register. The BUSYsignal is asserted until the program sequence is completed. The
MAX II Device Handbook
© October 2008 Altera Corporation