Chapter 7: User Flash Memory in MAX V Devices
7–35
Software Support for UFM Block
ALTUFM SPI Timing Specification
Figure 7–32 shows the timing specification needed for the SPI Extended mode
(read/write). These nCS timing specifications do not apply to the SPI Extended
read-only mode nor to any of the SPI Base modes. However, for the SPI Extended
mode (read only) and the SPI Base mode (both read only and read/write), the nCS
signal and SCK are not allowed to toggle at the same time. Table 7–14 lists the timing
parameters that only apply to the SPI Extended mode (read/write).
Figure 7–32. SPI Timing Waveform
t
HNCSHIGH
nCS
SCK
t
t
NCS2SCK
SCK2NCS
Table 7–14. SPI Timing Parameters for Extended Mode
Symbol Description
Minimum (ns) Maximum (ns)
tSCK2NCS The time required for the SCKsignal falling edge to nCSsignal rising edge
tHNCSHIGH The time that the nCSsignal must be held high
50
—
—
—
600
750
tNCS2SCK The time required for the nCSsignal falling edge to SCKsignal rising edge
Instantiating SPI Using Quartus II ALTUFM_SPI Megafunction
Figure 7–33 shows the ALTUFM_SPI megafunction symbol for SPI instantiation in the
Quartus II software.
Figure 7–33. ALTUFM_SPI Megafunction Symbol for SPI Instantiation
ALTUFM_SPI megafunction is under the Memory Compiler folder on page 2a of the
MegaWizard Plug-In Manager. On page 3, you can choose whether to implement the
Read/Write or Read Only mode as the access mode for the UFM. You can also select
the configuration mode (Base or Extended) for SPI on this page. You can specify the
initial content of the UFM block on page of the ALTUFM MegaWizard Plug-In
Manager as discussed in “Creating Memory Content File” on page 7–39.
1
The UFM block’s internal oscillator is always running when the ALTUFM_SPI
megafunction is instantiated for read/write interface. The UFM block’s internal
oscillator is disabled when the ALTUFM_SPI megafunction is instantiated for read
only interface.
January 2011 Altera Corporation
MAX V Device Handbook