This section provides a complete overview of all features relating to the MAX®V
device family.
This section includes the following chapters:
■ Chapter 1, MAX V Device Family Overview
■ Chapter 2, MAX V Architecture
■ Chapter 3, DC and Switching Characteristics for MAX V Devices
May 2011 Altera CorporationMAX V Device Handbook
I–2Section I: MAX V Device Core
MAX V Device HandbookMay 2011 Altera Corporation
MV51001-1.2
1. MAX V Device Family Overview
The MAX®V family of low cost and low power CPLDs offer more density and I/Os
per footprint versus other CPLDs. Ranging in density from 40 to 2,210 logic elements
(LEs) (32 to 1,700 equivalent macrocells) and up to 271 I/Os, MAX V devices provide
programmable solutions for applications such as I/O expansion, bus and protocol
bridging, power monitoring and control, FPGA configuration, and analog IC
interface.
MAX V devices feature on-chip flash storage, internal oscillator, and memory
functionality. With up to 50% lower total power versus other CPLDs and requiring as
few as one power supply, MAX V CPLDs can help you meet your low power design
requirement.
This chapter contains the following sections:
■ “Feature Summary” on page 1–1
■ “Integrated Software Platform” on page 1–3
■ “Device Pin-Outs” on page 1–3
■ “Ordering Information” on page 1–4
Feature Summary
The following list summarizes the MAX V device family features:
■ Low-cost, low-power, and non-volatile CPLD architecture
■ Instant-on (0.5 ms or less) configuration time
■ Standby current as low as 25 µA and fast power-down/reset operation
■ Fast propagation delay and clock-to-output times
■ Internal oscillator
■ Emulated RSDS output support with a data rate of up to 200 Mbps
■ Emulated LVDS output support with a data rate of up to 304 Mbps
■ Four global clocks with two clocks available per logic array block (LAB)
■ User flash memory block up to 8 Kbits for non-volatile storage with up to 1000
www.altera.com/common/legal.html. Altera warrants performance of its semiconductor products to current specifications in accordance with Altera’s standard warranty, but
reserves the righ t to make changes to any products and services a t any time without n otice. Altera assumes no responsibility or liability arising out of the application or use of any
information, product, or service described herein except as expressly agreed to in writing by Altera. Altera cus tomers are advised to obtain the latest version of device
specifications before relying on any published information and befo re placing orders for products or services.
MAX V Device Handbook
May 2011
Subscribe
1–2Chapter 1: MAX V Device Family Overview
Feature Summary
■ I/Os are fully compliant with the PCI-SIG
®
PCI Local Bus Specification, revision
2.2 for 3.3-V operation
■ Hot-socket compliant
■ Built-in JTAG BST circuitry compliant with IEEE Std. 1149.1-1990
User Flash Memory Size (bits)8,1928,1928,1928,1928,1928,1928,192
Global Clocks4444444
Internal Oscillator1111111
Maximum User I/O pins547979114159271271
(ns) (1)7.57.57.57.59.06.27.0
t
PD1
(MHz) (2)152152152152152304304
f
CNT
t
(ns)2.32.32.32.32.21.21.2
SU
(ns)6.56.56.56.56.74.64.6
t
CO
Notes to Table 1–1:
(1) t
represents a pin-to-pin delay for the worst case I/O placement with a full diagonal path across the device and combinational logic
PD1
implemented in a single LUT and LAB that is adjacent to the output pin.
(2) The maximum global clock frequency, f
than this number.
, is limited by the I/O standard on the clock input pin. The 16-bit counter critical delay will run faster
CNT
MAX V devices accept 1.8 V on their
VCCINT
pins. The 1.8-V V
external supply
CCINT
powers the device core directly. MAX V devices operate internally at 1.8 V. The
supported MultiVolt I/O interface voltage levels (V
) are 1.2 V, 1.5 V, 1.8 V, 2.5 V,
CCIO
and 3.3 V.
MAX V devices are available in two speed grades: –4 and –5, with –4 being the fastest.
For commercial applications, speed grades –C4 and –C5 are available. For industrial
and automotive applications, speed grade –I5 and –A5 are available, respectively.
These speed grades represent the overall relative performance, not any specific timing
parameter.
f For propagation delay timing numbers within each speed grade and density, refer to
the DC and Switching Characteristics for MAX V Devices chapter.
MAX V devices are available in space-saving FineLine BGA (FBGA), Micro FineLine
BGA (MBGA), plastic enhanced quad flat pack (EQFP), and thin quad flat pack
(TQFP) packages (refer to Table 1–2 and Ta bl e 1 – 3). MAX V devices support vertical
migration within the same package (for example, you can migrate between the
5M570Z, 5M1270Z, and 5M2210Z devices in the 256-pin FineLine BGA package).
Vertical migration means that you can migrate to devices whose dedicated pins and
JTAG pins are the same and power pins are subsets or supersets for a given package
across device densities. The largest density in any package has the highest number of
power pins; you must lay out for the largest planned density in a package to provide
MAX V Device HandbookMay 2011 Altera Corporation
Chapter 1: MAX V Device Family Overview1–3
Integrated Software Platform
the necessary power pins for migration. For I/O pin migration across densities, cross
reference the available I/O pins using the device pin-outs for all planned densities of
®
a given package type to identify which I/O pins can be migrated. The Quartus
II
software can automatically cross-reference and place all pins for you when given a
device migration list.
Table 1–2. MAX V Packages and User I/O Pins (Note 1)
Device
5M40Z3054——————
5M80Z30545279————
5M160Z—54527979———
5M240Z——527979114——
5M570Z———7474114159—
5M1270Z—————114211271
5M2210Z——————203271
Note to Table 1–2:
(1) Device packages under the same arrow sign have vertical migration capability.
The Quartus II software provides an integrated environment for HDL and schematic
design entry, compilation and logic synthesis, full simulation and advanced timing
analysis, and programming of MAX V devices.
f For more information about the Quartus II software features, refer to the Quartus II
Handbook.
You can debug your MAX V designs using In-System Sources and Probes Editor in
the Quartus II software. This feature allows you to easily control any internal signal
and provides you with a completely dynamic debugging environment.
f For more information about the In-System Sources and Probes Editor, refer to the
Design Debugging Using In-System Sources and Probes chapter of the Quartus II
Handbook.
Device Pin-Outs
f For more information, refer to the MAX V Device Pin-Out Files page.
40Z: 40 Logic Elements
80Z: 80 Logic Elements
160Z: 160 Logic Elements
240Z: 240 Logic Elements
570Z: 570 Logic Elements
1270Z: 1,270 Logic Elements
2210Z: 2,210 Logic Elements
Optional Suffix
4 or 5, with 4 being the fastest
Number of pins for a particular package
C: Commercial temperature (T
J
= 0° C to 85° C)
I: Industrial temperature (T
J
= -40° C to 100° C)
A: Automotive temperature (TJ = -40° C to 125° C)
5M40ZE64C4N
Indicates specific device
options or shipment method
N: Lead-free packaging
Ordering Information
Ordering Information
Figure 1–1 shows the ordering codes for MAX V devices.
Figure 1–1. MAX V Device Packaging Ordering Information
Document Revision History
Ta bl e 1 –4 lists the revision history for this chapter.
Table 1–4. Document Revision History
DateVersionChanges
May 20111.2
January 20111.1Updated “Feature Summary” section.
December 20101.0Initial release.
MAX V Device HandbookMay 2011 Altera Corporation
■ Updated Figure 1–1.
■ Updated Ta ble 1– 3.
MV51002-1.0
2. MAX V Architecture
This chapter describes the architecture of the MAX® V device and contains the
following sections:
■ “Functional Description” on page 2–1
■ “Logic Array Blocks” on page 2–4
■ “Logic Elements” on page 2–8
■ “MultiTrack Interconnect” on page 2–14
■ “Global Signals” on page 2–19
■ “User Flash Memory Block” on page 2–21
■ “Internal Oscillator” on page 2–22
■ “Core Voltage” on page 2–25
■ “I/O Structure” on page 2–26
Functional Description
MAX V devices contain a two-dimensional row- and column-based architecture to
implement custom logic. Row and column interconnects provide signal interconnects
between the logic array blocks (LABs).
Each LAB in the logic array contains 10 logic elements (LEs). An LE is a small unit of
logic that provides efficient implementation of user logic functions. LABs are grouped
into rows and columns across the device. The MultiTrack interconnect provides fast
granular timing delays between LABs. The fast routing between LEs provides
minimum timing delay for added levels of logic versus globally routed interconnect
structures.
The I/O elements (IOEs) located after the LAB rows and columns around the
periphery of the MAX V device feeds the I/O pins. Each IOE contains a bidirectional
I/O buffer with several advanced features. I/O pins support Schmitt trigger inputs
and various single-ended standards, such as 33-MHz, 32-bit PCI™, and LVTTL.
MAX V devices provide a global clock network. The global clock network consists of
four global clock lines that drive throughout the entire device, providing clocks for all
resources within the device. You can also use the global clock lines for control signals
such as clear, preset, or output enable.
www.altera.com/common/legal.html. Altera warrants performance of its semiconductor products to current specifications in accordance with Altera’s standard warranty, but
reserves the right to make changes to any products and services at any time without notice. Altera assumes no responsibility or li ab ility aris ing out of th e app lic atio n or us e of any
information, product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device
specifications before relying on any published information and before placing orders for products or services.
MAX V Device Handbook
December 2010
Subscribe
2–2Chapter 2: MAX V Architecture
Logic Array
BLock (LAB)
MultiTrack
Interconnect
MultiTrack
Interconnect
Logic
Element
Logic
Element
IOE
IOE
IOEIOE
Logic
Element
Logic
Element
IOE
IOE
Logic
Element
Logic
Element
IOEIOE
Logic
Element
Logic
Element
Logic
Element
Logic
Element
IOEIOE
Logic
Element
Logic
Element
Functional Description
Figure 2–1 shows a functional block diagram of the MAX V device.
Figur e 2–1. Device Block Diagram
Each MAX V device contains a flash memory block within its floorplan. This block is
located on the left side of the 5M40Z, 5M80Z, 5M160Z, and 5M240Z devices. On the
5M240Z (T144 package), 5M570Z, 5M1270Z, and 5M2210Z devices, the flash memory
block is located on the bottom-left area of the device. The majority of this flash
memory storage is partitioned as the dedicated configuration flash memory (CFM)
block. The CFM block provides the non-volatile storage for all of the SRAM
configuration information. The CFM automatically downloads and configures the
logic and I/O at power-up, providing instant-on operation.
f For more information about configuration upon power-up, refer to the Hot Socketing
and Power-On Reset for MAX V Devices chapter.
A portion of the flash memory within the MAX V device is partitioned into a small
block for user data. This user flash memory (UFM) block provides 8,192 bits of
general-purpose user storage. The UFM provides programmable port connections to
the logic array for reading and writing. There are three LAB rows adjacent to this
block, with column numbers varying by device.
MAX V Device HandbookDecember 2010 Altera Corporation
Chapter 2: MAX V Architecture2–3
Functional Description
Table 2–1 lists the number of LAB rows and columns in each device, as well as the
number of LAB rows and columns adjacent to the flash memory area. The long LAB
rows are full LAB rows that extend from one side of row I/O blocks to the other. The
short LAB rows are adjacent to the UFM block; their length is shown as width in LAB
columns.
Table 2–1 . Device Resources for MAX V Devi ces
DeviceUFM Bl ocksLAB Column s
Tot al L ABs
Long LAB RowsShort LAB Rows (Width) (1)
5M40Z164—24
5M80Z164—24
5M160Z164—24
5M240Z (2)164—24
5M240Z (3)11243 (3)57
5M570Z11243 (3)57
5M1270Z (4)11673 (5)127
5M1270Z (5)120103 (7)221
5M2210Z120103 (7)221
Notes to Tab le 2 –1 :
(1) The width is the number of LAB columns in length.
(2) Not applicable to T144 package of the 5M240Z device.
(3) Only applicable to T144 package of the 5M240Z device.
(4) Not applicable to F324 package of the 5M1270Z device.
(5) Only applicable to F324 package of the 5M1270Z device.
LAB Rows
December 2010 Altera CorporationMAX V Device Handbook
2–4Chapter 2: MAX V Architecture
y
Logic Array Blocks
Figure 2–2 shows a floorplan of a MAX V device.
Figur e 2–2. Device Floorplan for MAX V Devices (Note 1)
I/O Blocks
I/O Blocks
Logic Array
Blocks
2 GCLK
Inputs
I/O Blocks
UFM Block
CFM Block
Logic Arra
Blocks
2 GCLK
Inputs
Note to Figure 2–2:
(1) The device shown is a 5M570Z device. 5M1270Z and 5M2210Z devices have a similar floorplan with more LABs. For 5M40Z, 5M80Z, 5M160Z,
and 5M240Z devices, the CFM and UFM blocks are located on the left side of the device.
Logic Array Blocks
Each LAB consists of 10 LEs, LE carry chains, LAB control signals, a local interconnect,
a look-up table (LUT) chain, and register chain connection lines. There are 26 possible
unique inputs into an LAB, with an additional 10 local feedback input lines fed by LE
outputs in the same LAB. The local interconnect transfers signals between LEs in the
same LAB. LUT chain connections transfer the LUT output from one LE to the
MAX V Device HandbookDecember 2010 Altera Corporation
Chapter 2: MAX V Architecture2–5
Logic Array Blocks
adjacent LE for fast sequential LUT connections within the same LAB. Register chain
connections transfer the output of one LE’s register to the adjacent LE’s register
within an LAB. The Quartus® II software places associated logic within an LAB or
adjacent LABs, allowing the use of local, LUT chain, and register chain connections
for performance and area efficiency. Figure 2–3 shows the MAX V LAB.
Figur e 2–3. LAB Str ucture for MAX V Devices
Row Interconnect
Column Interconnect
Fast I/O connection
to IOE (1)
DirectLink
interconnect from
adjacent LAB
or IOE
LE0
LE1
LE2
LE3
LE4
LE5
Fast I/O connection
to IOE (1)
DirectLink
interconnect from
adjacent LAB
or IOE
DirectLink
interconnect to
adjacent LAB
or IOE
Note to Figure 2–3:
(1) Only from LABs adjacent to IOEs.
Logic Element
LE6
LE7
LE8
LE9
DirectLink
interconnect to
adjacent LAB
or IOE
Local InterconnectLAB
December 2010 Altera CorporationMAX V Device Handbook
2–6Chapter 2: MAX V Architecture
LAB
DirectLink
interconnect
to right
DirectLink interconnect from
right LAB or IOE output
DirectLink interconnect from
left LAB or IOE output
Local
Interconnect
DirectLink
interconnect
to left
LE0
LE1
LE2
LE3
LE4
LE6
LE7
LE8
LE9
LE5
Logic Element
Logic Array Blocks
LAB Interconnects
Column and row interconnects and LE outputs within the same LAB drive the LAB
local interconnect. Adjacent LABs, from the left and right, can also drive an LAB’s
local interconnect through the DirectLink connection. The DirectLink connection
feature minimizes the use of row and column interconnects, providing higher
performance and flexibility. Each LE can drive 30 other LEs through fast local and
DirectLink interconnects. Figure 2–4 shows the DirectLink connection.
Figur e 2–4. DirectLink Connection
MAX V Device HandbookDecember 2010 Altera Corporation
LAB Control Signals
Each LAB contains dedicated logic for driving control signals to its LEs. The control
signals include two clocks, two clock enables, two asynchronous clears, a
synchronous clear, an asynchronous preset/load, a synchronous load, and
add/subtract control signals, providing a maximum of 10 control signals at a time.
Synchronous load and clear signals are generally used when implementing counters
but they can also be used with other functions.
Each LAB can use two clocks and two clock enable signals. Each LAB’s clock and
clock enable signals are linked. For example, any LE in a particular LAB using the
labclk1
of a clock, it also uses both LAB-wide clock signals. Deasserting the clock enable
signal turns off the LAB-wide clock.
Each LAB can use two asynchronous clear signals and an asynchronous load/preset
signal. By default, the Quartus II software uses a
achieve preset. If you disable the
to power-up high using the Quartus II software, the preset is then achieved using the
asynchronous load signal with asynchronous load data input tied high.
signal also uses
labclkena1
NOT
. If the LAB uses both the rising and falling edges
NOT
gate push-back technique to
gate push-back option or assign a given register
Chapter 2: MAX V Architecture2–7
labclkena1
labclk2labclk1
labclkena2
asyncload
or labpre
syncload
Dedicated
LAB Column
Clocks
Local
Interconnect
Local
Interconnect
Local
Interconnect
Local
Interconnect
Local
Interconnect
Local
Interconnect
labclr1
labclr2
synclr
addnsub
4
Logic Array Blocks
With the LAB-wide
and subtractor. This signal saves LE resources and improves performance for logic
functions such as correlators and signed multipliers that alternate between addition
and subtraction depending on data.
The LAB column clocks
interconnect generate the LAB-wide control signals. The MultiTrack interconnect
structure drives the LAB local interconnect for non-global control signal generation.
The MultiTrack interconnect’s inherent low skew allows clock and control signal
distribution in addition to data signals. Figure 2–5 shows the LAB control signal
generation circuit.
Figur e 2–5. LAB-Wide Control Signals
addnsub
[3..0]
control signal, a single LE can implement a one-bit adder
, driven by the global clock network, and LAB local
December 2010 Altera CorporationMAX V Device Handbook
2–8Chapter 2: MAX V Architecture
Logic Elements
Logic Elements
The smallest unit of logic in the MAX V architecture, the LE, is compact and provides
advanced features with efficient logic utilization. Each LE contains a four-input LUT,
which is a function generator that can implement any function of four variables. In
addition, each LE contains a programmable register and carry chain with carry-select
capability. A single LE also supports dynamic single-bit addition or subtraction mode
that is selected by an LAB-wide control signal. Each LE drives all types of
interconnects: local, row, column, LUT chain, register chain, and DirectLink
interconnects as shown in Figure 2–6.
Figur e 2–6. LE for MAX V Devices
Register chain
routing from
addnsub
data1
data2
data3
data4
labclr1
labclr2
labpre/aload
Chip-Wide
Reset (DEV_CLRn)
labclk1
labclk2
LAB Carry-In
Carry-In1
Carry-In0
Asynchronous
Clear/Preset/
Load Logic
Clock and
Clock Enable
Select
Look-Up
Ta ble
(LUT)
Carry
Chain
previous LE
LAB-wide
Synchronous
Load
Synchronous
Synchronous
Load and
Clear Logic
LAB-wide
Clear
Register Bypass
Packed
Register Select
PRN/ALD
D
ADATA
ENA
CLRN
Register
Feedback
Programmable
Register
LUT chain
routing to next LE
Row, column,
Q
and DirectLink
routing
Row, column,
and DirectLink
routing
Local routing
Register chain
output
labclkena1
labclkena2
Carry-Out0
Carry-Out1
LAB Carry-Out
You can configure each LE’s programmable register for D, T, JK, or SR operation. Each
register has data, true asynchronous load data, clock, clock enable, clear, and
asynchronous load/preset inputs. Global signals, general purpose I/O (GPIO) pins,
or any LE can drive the register’s clock and clear control signals. Either GPIO pins or
LEs can drive the clock enable, preset, asynchronous load, and asynchronous data.
The asynchronous load data input comes from the
data3
inpu t of the LE. For
combinational functions, the LUT output bypasses the register and drives directly to
the LE outputs.
Each LE has three outputs that drive the local, row, and column routing resources. The
LUT or register output can drive these three outputs independently. Two LE outputs
drive either a column or row and DirectLink routing connections while one output
drives the local interconnect resources. This configuration allows the LUT to drive one
output while the register drives another output. This register packing feature
MAX V Device HandbookDecember 2010 Altera Corporation
Chapter 2: MAX V Architecture2–9
Logic Elements
improves device utilization because the device can use the register and the LUT for
unrelated functions. Another special packing mode allows the register output to feed
back into the LUT of the same LE so that the register is packed with its own fan-out
LUT. This mode provides another mechanism for improved fitting. The LE can also
drive out registered and unregistered versions of the LUT output.
LUT Chain and Register Chain
In addition to the three general routing outputs, the LEs within a LAB have LUT chain
and register chain outputs. LUT chain connections allow LUTs within the same LAB
to cascade together for wide input functions. Register chain outputs allow registers
within the same LAB to cascade together. The register chain output allows a LAB to
use LUTs for a single combinational function and the registers for an unrelated shift
register implementation. These resources speed up connections between LABs while
saving local interconnect resources. For more information about LUT chain and
register chain connections, refer to “MultiTrack Interconnect” on page 2–14.
addnsub Signal
The LE’s dynamic adder/subtractor feature saves logic resources by using one set of
LEs to implement both an adder and a subtractor. This feature is controlled by the
LAB-wide control signal
A + B or A – B. The LUT computes addition; subtraction is computed by adding the
two’s complement of the intended subtractor. The LAB-wide signal converts to two’s
complement by inverting the B bits within the LAB and setting carry-in to 1, which
adds one to the LSB. The LSB of an adder/subtractor must be placed in the first LE of
the LAB, where the LAB-wide
Quartus II Compiler automatically places and uses the adder/subtractor feature
when using adder/subtractor parameterized functions.
addnsub
addnsub
. The
addnsub
signal automatically sets the carry-in to 1. The
signal sets the LAB to perform either
LE Operating Modes
The MAX V LE can operate in one of the following modes:
■ “Normal Mode”
■ “Dynamic Arithmetic Mode”
Each mode uses LE resources differently. In each mode, eight available inputs to the
LE, the four data inputs from the LAB local interconnect,
from the previous LE, the LAB carry-in from the previous carry-chain LAB, and the
register chain connection are directed to different destinations to implement the
desired logic function. LAB-wide signals provide clock, asynchronous clear,
asynchronous preset/load, synchronous clear, synchronous load, and clock enable
control for the register. These LAB-wide signals are available in all LE modes. The
addnsub
The Quartus II software, along with parameterized functions such as the library of
parameterized modules (LPM) functions, automatically chooses the appropriate
mode for common functions such as counters, adders, subtractors, and arithmetic
functions.
control signal is allowed in arithmetic mode.
carry-in0
and
carry-in1
December 2010 Altera CorporationMAX V Device Handbook
2–10Chapter 2: MAX V Architecture
data1
4-Input
LUT
data2
data3
cin (from cout
of previous LE)
data4
addnsub (LAB Wide)
clock (LAB Wide)
ena (LAB Wide)
aclr (LAB Wide)
aload
(LAB Wide)
ALD/PRE
CLRN
D
Q
ENA
ADATA
sclear
(LAB Wide)
sload
(LAB Wide)
Register chain
connection
LUT chain
connection
Register
chain output
Row, column, and
DirectLink routing
Row, column, and
DirectLink routing
Local routing
Register Feedback
(1)
Logic Elements
Normal Mode
The normal mode is suitable for general logic applications and combinational
functions. In normal mode, four data inputs from the LAB local interconnect are
inputs to a four-input LUT as shown in Figure 2–7. The Quartus II Compiler
automatically selects the carry-in or the
Each LE can use LUT chain connections to drive its combinational output directly to
the next LE in the LAB. Asynchronous load data for the register comes from the
input of the LE. LEs in normal mode support packed registers.
Figur e 2–7. LE in Normal Mode
data3
signal as one of the inputs to the LUT.
data3
Note to Figure 2–7:
(1) This signal is only allowed in normal mode if the LE is after an adder/subtractor chain.
Dynamic Arithmetic Mode
The dynamic arithmetic mode is ideal for implementing adders, counters,
accumulators, wide parity functions, and comparators. A LE in dynamic arithmetic
mode uses four 2-input LUTs configurable as a dynamic adder/subtractor. The first
two 2-input LUTs compute two summations based on a possible carry-in of 1 or 0; the
other two LUTs generate carry outputs for the two chains of the carry-select circuitry.
As shown in Figure 2–8, the LAB carry-in signal selects either the
carry-in1
sum is generated as a combinational or registered output. For example, when
implementing an adder, the sum output is the selection of two possible calculated
sums:
data1 + data2 + carry-in0
chain. The selected chain’s logic level in turn determines which parallel
or
data1 + data2 + carry-in1
MAX V Device HandbookDecember 2010 Altera Corporation
carry-in0
or
Chapter 2: MAX V Architecture2–11
d
d
Logic Elements
The other two LUTs use the
carry-out signals: one for a carry of 1 and the other for a carry of 0. The
signal acts as the carry-select for the
carry-select for the
registered and unregistered versions of the LUT output.
The dynamic arithmetic mode also offers clock enable, counter enable, synchronous
up/down control, synchronous clear, synchronous load, and dynamic
adder/subtractor options. The LAB local interconnect data inputs generate the
counter enable and synchronous up/down control signals. The synchronous clear
and synchronous load options are LAB-wide signals that affect all registers in the
LAB. The Quartus II software automatically places any registers that are not used by
the counter into other L ABs. The
acts as an adder or subtractor.
Figur e 2–8. LE in Dynamic Ar ithmetic Mode
LAB Carry-In
Carry-In0
Carry-In1
addnsub
(LAB Wide)
(1)
data1
carry-out1
(LAB Wide)
Register chain
connection
and
data2
signals to generate two possible
carry-in0
carry-out0
output and
carry-in1
acts as the
output. LEs in arithmetic mode can drive out
addnsub
sload
LAB-wide signal controls whether the LE
sclear
(LAB Wide)
aload
(LAB Wide)
data1
data2
data3
LUT
LUT
LUT
LUT
clock (LAB Wide)
ena (LAB Wide)
aclr (LAB Wide)
Register Feedback
Carry-Out1Carry-Out0
Note to Figure 2–8:
(1) The addnsub signal is tied to the carry input for the first LE of a carry chain only.
Carry-Select Chain
The carry-select chain provides a very fast carry-select function between LEs in
dynamic arithmetic mode. The carry-select chain uses the redundant carry calculation
to increase the speed of carry functions. The LE is configured to calculate outputs for a
possible carry-in of 0 and carry-in of 1 in parallel. The
signals from a lower-order bit feed forward into the higher-order bit via the parallel
carry chain and feed into both the LUT and the next portion of the carry chain.
Carry-select chains can begin in any LE within an LAB.
ALD/PRE
ADATA
D
ENA
CLRN
carry-in0
Q
and
Row, column, an
direct link routing
Row, column, an
direct link routing
Local routing
LUT chain
connection
Register
chain output
carry-in1
December 2010 Altera CorporationMAX V Device Handbook
2–12Chapter 2: MAX V Architecture
LE3
LE2
LE1
LE0
A1
B1
A2
B2
A3
B3
A4
B4
Sum1
Sum2
Sum3
Sum4
LE9
LE8
LE7
LE6
A7
B7
A8
B8
A9
B9
A10
B10
Sum7
LE5
A6
B6
Sum6
LE4
A5
B5
Sum5
Sum8
Sum9
Sum10
01
01
LAB Carry-In
LAB Carry-Out
LUT
LUT
LUT
LUT
data1
LAB Carry-In
data2
Carry-In0
Carry-In1
Carry-Out0Carry-Out1
Sum
To top of adjacent LAB
Logic Elements
The speed advantage of the carry-select chain is in the parallel pre-computation of
carry chains. Because the LAB carry-in selects the precomputed carry chain, not every
LE is in the critical path. Only the propagation delays between LAB carry-in
generation (
LE5
and
LE10
) are now part of the critical path. This feature allows the
MAX V architecture to implement high-speed counters, adders, multipliers, parity
functions, and comparators of arbitrary width.
Figure 2–9 shows the carry-select circuitry in an LAB for a 10-bit full adder. One
portion of the LUT generates the sum of two bits using the input signals and the
appropriate carry-in bit; the sum is routed to the output of the LE. The register can be
bypassed for simple adders or used for accumulator functions. Another portion of the
LUT generates carry-out bits. An LAB-wide carry-in bit selects which chain is used for
the addition of given inputs. The carry-in signal for each chain,
carry-in1
, selects the carry-out to carry forward to the carry-in signal of the
carry-in0
or
next-higher-order bit. The final carry-out signal is routed to an LE, where it is fed to
local, row, or column interconnects.
Figur e 2–9. Carry-Select Chain
MAX V Device HandbookDecember 2010 Altera Corporation
Chapter 2: MAX V Architecture2–13
Logic Elements
The Quartus II software automatically creates carry chain logic during design
processing, or you can create it manually during design entry. Parameterized
functions such as LPM functions automatically take advantage of carry chains for the
appropriate functions. The Quartus II software creates carry chains longer than 10 LEs
by linking adjacent LABs within the same row together automatically. A carry chain
can extend horizontally up to one full LAB row, but does not extend between LAB
rows.
Clear and Preset Logic Control
LAB-wide signals control the logic for the register’s clear and preset signals. The LE
directly supports an asynchronous clear and preset function. The register preset is
achieved through the asynchronous load of a logic high. MAX V devices support
simultaneous preset/asynchronous load and clear signals. An asynchronous clear
signal takes precedence if both signals are asserted simultaneously. Each LAB
supports up to two clears and one preset signal.
In addition to the clear and preset ports, MAX V devices provide a chip-wide reset pin
(
DEV_CLRn
the Quartus II software controls this pin. This chip-wide reset overrides all other
control signals and uses its own dedicated routing resources without using any of the
four global resources. Driving this signal low before or during power-up prevents
user mode from releasing clears within the design. This allows you to control when
clear is released on a device that has just been powered-up. If not set for its chip-wide
reset function, the
) that resets all registers in the device. An option set before compilation in
DEV_CLRn
pin is a regular I/O pin.
By default, all registers in MAX V devices are set to power-up low. However, this
power-up state can be set to high on individual registers during design entry using
the Quartus II software.
LE RAM
The Quartus II memory compiler can configure the unused LEs as LE RAM.
MAX V devices support the following memory types:
■ FIFO synchronous R/W
■ FIFO asynchronous R/W
■ 1 port SRAM
■ 2 port SRAM
■ 3 port SRAM
■ shift registers
f For more information about memory, refer to the Internal Memory (RAM and ROM)
User Guide.
December 2010 Altera CorporationMAX V Device Handbook
2–14Chapter 2: MAX V Architecture
Chapter 2: MAX V Architecture2–15
MultiTrack Interconnect
Figur e 2–10. R4 Int erconnect Co nnections
Adjacent LAB can
drive onto another
LAB’s R4 Interconnect
R4 Interconnect
Driving Left
Neighbor
Notes to Figure 2–10:
(1) C4 interconnects can drive R4 interconnects.
(2) This pattern is repeated for every LAB in the LAB row.
LAB
Primary
LAB (2)
C4 Column Interconnects (1)
LAB
Neighbor
R4 Interconnect
Driving Right
The column interconnect operates similarly to the row interconnect. Each column of
LABs is served by a dedicated column interconnect, which vertically routes signals to
and from LABs and row and column IOEs. These column resources include:
■ LUT chain interconnects within an LAB
■ Register chain interconnects within an LAB
■ C4 interconnects traversing a distance of four LABs in an up and down direction
MAX V devices include an enhanced interconnect structure within LABs for routing
LE output to LE input connections faster using LUT chain connections and register
chain connections. The LUT chain connection allows the combinational output of an
LE to directly drive the fast input of the LE right below it, bypassing the local
interconnect. These resources can be used as a high-speed connection for wide fan-in
functions from
LE 1
to
LE 10
in the same LAB. The register chain connection allows
the register output of one LE to connect directly to the register input of the next LE in
the LAB for fast shift registers. The Quartus II Compiler automatically takes
advantage of these resources to improve utilization and performance. Figure 2–11
shows the LUT chain and register chain interconnects.
December 2010 Altera CorporationMAX V Device Handbook
2–16Chapter 2: MAX V Architecture
LE0
LE1
LE2
LE3
LE4
LE5
LE6
LE7
LE8
LE9
LUT Chain
Routing to
Adjacent LE
Local
Interconnect
Register Chain
Routing to Adjacent
LE's Register Input
Local Interconnect
Routing Among LEs
in the LAB
MultiTrac k Int erconnect
Figur e 2–11. LUT Cha in and Register Cha in Interconnects
The C4 interconnects span four LABs up or down from a source LAB. Every LAB has
its own set of C4 interconnects to drive either up or down. Figure 2–12 shows the C4
interconnect connections from an LAB in a column. The C4 interconnects can drive
and be driven by column and row IOEs. For LAB interconnection, a primary LAB or
its vertical LAB neighbor can drive a given C4 interconnect. C4 interconnects can
drive each other to extend their range as well as drive row interconnects for
column-to-column connections.
MAX V Device HandbookDecember 2010 Altera Corporation
Chapter 2: MAX V Architecture2–17
C4 Interconnect
Drives Local and R4
Interconnects
Up to Four Rows
Adjacent LAB can
drive onto neighboring
LAB's C4 interconnect
C4 Interconnect
Driving Up
C4 Interconnect
Driving Down
LAB
Row
Interconnect
Local
Interconnect
MultiTrack Interconnect
Figur e 2–12. C4 Int erconnect Co nnections (Note 1)
Note to Figure 2–12:
(1) Each C4 interconnect can drive either up or down four rows.
December 2010 Altera CorporationMAX V Device Handbook
2–18Chapter 2: MAX V Architecture
MultiTrac k Int erconnect
The UFM block communicates with the logic array similar to LAB-to-LAB interfaces.
The UFM block connects to row and column interconnects and has local interconnect
regions driven by row and column interconnects. This block also has DirectLink
interconnects for fast connections to and from a neighboring LAB. For more
information about the UFM interface to the logic array, refer too “User Flash Memory