Arria V Device HandbookJune 2012 Altera Corporation
Volume 1: Device Interfaces and Integration
Chapter Revision Dates
The chapters in this document, Volume 1: Device Interfaces and Integration, were
revised on the following dates. Where chapters or groups of chapters are available
separately, part numbers are listed.
Part Number:
Chapter 1.Logic Array Blocks and Adaptive Logic Modules in Arria V Devices
Revised:June 2012
Part Number: AV-52001-2.0
Chapter 2.Memory Blocks in Arria V Devices
Revised:June 2012
Part Number: AV-52002-2.0
Chapter 3.Variable-Precision DSP Blocks in Arria V Devices
Revised:June 2012
Part Number: AV-52003-2.0
Chapter 4.Clock Networks and PLLs in Arria V Devices
Revised:June 2012
Part Number: AV-52004-2.0
Chapter 5.I/O Features in Arria V Devices
Revised:June 2012
Part Number: AV52005-2.0
Chapter 6.High-Speed Differential I/O Interfaces and DPA in Arria V Devices
Revised:June 2012
Part Number: AV52006-2.0
Chapter 7.External Memory Interfaces in Arria V Devices
Revised:June 2012
Part Number: AV52007-2.0
Chapter 8.Configuration, Design Security, and Remote System Upgrades in Arria V Devices
Revised:June 2012
Part Number: AV-52008-2.0
Chapter 9.SEU Mitigation in Arria V Devices
Revised:June 2012
Part Number: AV-52009-2.0
Chapter 10. JTAG Boundary-Scan Testing in Arria V Devices
Revised:June 2012
Part Number: AV-52010-2.0
Chapter 11. Power Management in Arria V Devices
Revised:June 2012
Part Number: AV-52011-2.0
June 2012 Altera CorporationArria V Device Handbook
Volume 1: Device Interfaces and Integration
xii
Arria V Device HandbookJune 2012 Altera Corporation
Volume 1: Device Interfaces and Integration
This section provides a complete overview of all features relating to the Arria®V
device family. This section includes the following chapters:
■ Chapter 1, Logic Array Blocks and Adaptive Logic Modules in Arria V Devices
■ Chapter 2, Memory Blocks in Arria V Devices
■ Chapter 3, Variable-Precision DSP Blocks in Arria V Devices
■ Chapter 4, Clock Networks and PLLs in Arria V Devices
Revision History
Refer to each chapter for its own specific revision history. For information about when
each chapter was updated, refer to the Chapter Revision Dates section, which appears
in this volume.
Arria V Device Handbook
Volume 1: Device Interfaces and Integration
June 2012
ISO
9001:2008
Registered
I–2
Revision History
Arria V Device HandbookJune 2012 Altera Corporation
Volume 1: Device Interfaces and Integration
June 2012
AV-52001-2.0
AV-52001-2.0
1. Logic Array Blocks and Adaptive Logic
Modules in Arria V Devices
This chapter describes the features of the logic array block (LAB) in the Arria®V core
fabric.
The LAB is composed of basic building blocks known as adaptive logic modules
(ALMs) that you can configure to implement logic functions, arithmetic functions,
and register functions.
You can use a quarter of the available LABs in Arria V devices as a memory LAB
(MLAB).
The Quartus®II software and other supported third-party synthesis tools, in
conjunction with parameterized functions such as the library of parameterized
modules (LPM), automatically choose the appropriate mode for common functions
such as counters, adders, subtractors, and arithmetic functions.
Arria V Device Handbook
Volume 1: Device Interfaces and Integration
June 2012
Feedback Subscribe
ISO
9001:2008
Registered
1–2Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices
LAB
LAB
The LABs are configurable logic blocks that consist of a group of logic resources. Each
LAB contains dedicated logic for driving control signals to its ALMs.
MLAB is a superset of the LAB and includes all the LAB features.
Figure 1–1 shows an overview of the Arria V LAB and MLAB structure with the LAB
interconnects.
Figure 1–1. LAB Structure and Interconnects Overview in Arria V Devices
R14
R3/R6
Direct link
interconnect from
adjacent block (1)
Direct link
interconnect to
adjacent block
C2/C4C12
Fast local interconnect is driven
from either sides by column interconnect
and LABs, and from above by row interconnect
Row interconnects of
variable speed and length
ALMs
MLABLABLocal interconnect
Direct link
interconnect from
adjacent block
Direct link
interconnect to
adjacent block
Column interconnects of
variable speed and length
Note to Figure 1–1:
(1) Connects to adjacent LABs, memory blocks, digital signal processing (DSP) blocks, or I/O element (IOE) outputs.
Arria V Device HandbookJune 2012 Altera Corporation
Volume 1: Device Interfaces and Integration
Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices1–3
LAB
MLAB
Each MLAB supports a maximum of 640 bits of simple dual-port SRAM.
You can configure each ALM in an MLAB as a 32 x 2 memory block, resulting in a
configuration of 32 x 20 simple dual-port SRAM blocks.
Figure 1–2 shows the LAB and MLAB topology.
Figure 1–2. LAB and MLAB Structure for Arria V Devices
LUT-based-32 x 2
Simple dual port SRAM
LUT-based-32 x 2
Simple dual port SRAM
LUT-based-32 x 2
Simple dual port SRAM
LUT-based-32 x 2
Simple dual port SRAM
LUT-based-32 x 2
Simple dual port SRAM
(1)
(1)
(1)
(1)
(1)
ALM
ALM
ALM
ALM
ALM
LAB Control BlockLAB Control Block
LUT-based-32 x 2
Simple dual port SRAM
LUT-based-32 x 2
Simple dual port SRAM
LUT-based-32 x 2
Simple dual port SRAM
LUT-based-32 x 2
Simple dual port SRAM
(1)
(1)
(1)
(1)
ALM
ALM
ALM
ALM
LUT-based-32 x 2
Simple dual port SRAM
MLAB
(1)
ALM
LAB
Note to Figure 1–2:
(1) You can use an MLAB ALM as a regular LAB ALM or configure it as a dual-port SRAM.
June 2012 Altera CorporationArria V Device Handbook
Volume 1: Device Interfaces and Integration
1–4Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices
LAB
Interconnects
Each LAB can drive 30 ALMs through fast-local and direct-link interconnects. Ten
ALMs are in any given LAB and ten ALMs are in each of the adjacent LABs.
The local interconnect can drive ALMs in the same LAB using column and row
interconnects and ALM outputs in the same LAB.
Neighboring LABs, MLABs, M10K blocks, or digital signal processing (DSP) blocks
from the left or right can also drive the LAB’s local interconnect using the direct link
connection.
The direct link connection feature minimizes the use of row and column
interconnects, providing higher performance and flexibility.
Figure 1–3 shows the LAB fast-local and direct-link interconnects.
Figure 1–3. Direct Link and Fast Local Interconnects for Arria V Devices
Direct link interconnect from
left LAB, memory block,
DSP block, or IOE output
ALMsALMs
Direct link
interconnect
to left
Fast local
interconnect
MLAB
LAB
Direct link interconnect from
right LAB, memory block,
DSP block, or IOE output
Direct link
interconnect
to right
Arria V Device HandbookJune 2012 Altera Corporation
Volume 1: Device Interfaces and Integration
Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices1–5
LAB
LAB Control Signals
Each LAB contains dedicated logic for driving the control signals to its ALMs, and has
two unique clock sources and three clock enable signals.
The LAB control block generates up to three clocks using the two clock sources and
three clock enable signals. Each clock and the clock enable signals are linked.
De-asserting the clock enable signal turns off the corresponding LAB-wide clock.
Figure 1–4 shows the clock sources and clock enable signals in an LAB.
Figure 1–4. LAB-Wide Control Signals for Arria V Devices
There are two unique
clock signals per LAB.
Dedicated Row LAB Clocks
Local Interconnect
Local Interconnect
Local Interconnect
Local Interconnect
6
6
6
(1)
labclk0
labclkena0
or asyncload
or labpreset
labclk1
labclkena1labclkena2labclr0synclr
labclk2
syncload
labclr1
Note to Figure 1–4:
(1) For more information, refer to Figure 1–6 on page 1–8.
June 2012 Altera CorporationArria V Device Handbook
Volume 1: Device Interfaces and Integration
1–6Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices
LAB
ALM Registers
One ALM contains four programmable registers. Each register has data, clock,
synchronous and asynchronous clear, and synchronous load functions.
Global signals, general-purpose I/O (GPIO) pins, or any internal logic can drive the
clock and clear control signals of an ALM register.
GPIO pins or internal logic drives the clock enable signal.
For combinational functions, the registers are bypassed and the output of the look-up
table (LUT) drives directly to the outputs of an ALM.
Figure 1–5 shows a high-level block diagram of the Arria V ALM.
Figure 1–5. High-Level Block Diagram of the Arria V ALM
dataf0
datae0
dataa
datab
datac
datad
datae1
dataf1
shared_arith_in
6-Input LUT
6-Input LUT
carry_in
adder0
adder1
Combinational/
Memory ALUT0
Combinational/
Memory ALUT1
reg_chain_in
labclk
DQ
reg0
DQ
reg1
DQ
reg2
DQ
reg3
To general or
local routing
To general or
local routing
To general or
local routing
To general or
local routing
To general or
local routing
To general or
local routing
To general or
local routing
shared_arith_out
carry_out
reg_chain_out
To general or
local routing
1The Quartus II software automatically configures the ALMs for optimized
performance.
Arria V Device HandbookJune 2012 Altera Corporation
Volume 1: Device Interfaces and Integration
Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices1–7
LAB
ALM Outputs
The LUT, adder, or register output can drive the ALM outputs. There are two sets of
outputs—general routing outputs and register chain outputs.
For each set of output drivers, two ALM outputs can drive column, row, or direct link
routing connections, and one of these ALM outputs can also drive local interconnect
resources. The LUT or adder can drive one output while the register drives another
output.
Register packing improves device utilization by allowing unrelated register and
combinational logic to be packed into a single ALM. Another mechanism to improve
fitting is to allow the register output to feed back into the look-up table (LUT) of the
same ALM so that the register is packed with its own fan-out LUT. The ALM can also
drive out registered and unregistered versions of the LUT or adder output.
June 2012 Altera CorporationArria V Device Handbook
Volume 1: Device Interfaces and Integration
1–8Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices
LAB
Figure 1–6 shows a detailed view of all the connections in an ALM.
Figure 1–6. ALM Connection Details for Arria V Devices
syncload
aclr[1:0]
dataf0
datae0
shared_arith_in
carry_in
clk[2:0]
sclr
reg_chain_in
dataa
datab
datac0
datac1
4-Input
LUT
3-Input
LUT
3-Input
LUT
4-Input
LUT
3-Input
LUT
3-Input
LUT
+
+
GND
VCC
CLR
Q
D
CLR
Q
D
direct link routing
row, column
direct link routing
local
interconnect
row, column
CLR
Q
D
row, column
direct link routing
row, column
CLR
Q
D
direct link routing
local
interconnect
datae1
reg_chain_out
dataf1
shared_arith_out
Arria V Device HandbookJune 2012 Altera Corporation
Volume 1: Device Interfaces and Integration
carry_out
Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices1–9
ALM Operating Modes
ALM Operating Modes
The Arria V ALM operates in any of the following modes:
■ Normal Mode
■ Extended LUT Mode
■ Arithmetic Mode
■ Shared Arithmetic Mode
Normal Mode
Up to eight data inputs from the LAB local interconnect are inputs to the
combinational logic. Normal mode allows two functions to be implemented in one
Arria V ALM, or a single function of up to six inputs.
The ALM can support certain combinations of completely independent functions and
various combinations of functions that have common inputs.
Extended LUT Mode
In this mode, if the 7-input function is unregistered, the unused eighth input is
available for register packing.
1Functions that fit into the template, as shown in Figure 1–7, often appear in designs as
“if-else” statements in Verilog HDL or VHDL code.
Figure 1–7 shows the template of supported 7-input functions using extended LUT
mode.
Figure 1–7. Template for Supported 7-Input Functions in Extended LUT Mode in Arria V Devices
datae0
datac
dataa
datab
datad
dataf0
datae1
dataf1
5-Input
LUT
5-Input
LUT
This input is available
for register packing.
combout0
DQ
reg0
To gener al or
local routing
To gener al or
local routing
June 2012 Altera CorporationArria V Device Handbook
Volume 1: Device Interfaces and Integration
1–10Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices
ALM Operating Modes
Arithmetic Mode
The ALM in arithmetic mode uses two sets of two 4-input LUTs along with two
dedicated full adders.
The dedicated adders allow the LUTs to perform pre-adder logic; therefore, each
adder can add the output of two 4-input functions.
The ALM supports simultaneous use of the adder’s carry output along with
combinational logic outputs. The adder output is ignored in this operation.
Using the adder with the combinational logic output provides resource savings of up
to 50% for functions that can use this mode.
Figure 1–8 shows an ALM in arithmetic mode.
Figure 1–8. ALM in Arithmetic Mode for Arria V Devices
carry_in
datae0
dataf0
datac
datab
dataa
4-Input
LUT
4-Input
LUT
adder0
DQ
reg0
DQ
reg1
To general or
local routing
To general or
local routing
To general or
local routing
To general or
local routing
datad
datae1
dataf1
4-Input
LUT
4-Input
LUT
carry_out
adder1
DQ
reg2
DQ
reg3
To general or
local routing
To general or
local routing
To general or
local routing
To general or
local routing
Arria V Device HandbookJune 2012 Altera Corporation
Volume 1: Device Interfaces and Integration
Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices1–11
ALM Operating Modes
Carry Chain
The carry chain provides a fast carry function between the dedicated adders in
arithmetic or shared arithmetic mode.
The two-bit carry select feature in Arria V devices halves the propagation delay of
carry chains within the ALM. Carry chains can begin in either the first ALM or the
fifth ALM in a LAB. The final carry-out signal is routed to an ALM, where it is fed to
local, row, or column interconnects.
To avoid routing congestion in one small area of the device when a high fan-in
arithmetic function is implemented, the LAB can support carry chains that only use
either the top half or bottom half of the LAB before connecting to the next LAB. This
leaves the other half of the ALMs in the LAB available for implementing narrower
fan-in functions in normal mode. Carry chains that use the top five ALMs in the first
LAB carry into the top half of the ALMs in the next LAB in the column. Carry chains
that use the bottom five ALMs in the first LAB carry into the bottom half of the ALMs
in the next LAB within the column. You can bypass the top-half of the LAB columns
and bottom-half of the MLAB columns.
The Quartus II Compiler creates carry chains longer than 20 ALMs (10 ALMs in
arithmetic or shared arithmetic mode) by linking LABs together automatically. For
enhanced fitting, a long carry chain runs vertically, allowing fast horizontal
connections to the TriMatrix memory and DSP blocks. A carry chain can continue as
far as a full column.
June 2012 Altera CorporationArria V Device Handbook
Volume 1: Device Interfaces and Integration
1–12Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices
ALM Operating Modes
Shared Arithmetic Mode
The ALM in shared arithmetic mode can implement a 3-input add in the ALM.
This mode configures the ALM with four 4-input LUTs. Each LUT either computes
the sum of three inputs or the carry of three inputs. The output of the carry
computation is fed to the next adder using a dedicated connection called the shared
arithmetic chain.
Figure 1–9 shows the ALM using this feature.
Figure 1–9. ALM in Shared Arithmetic Mode for Arria V Devices
shared_arith_in
carry_in
labclk
datae0
datac
datab
dataa
datad
datae1
4-Input
LUT
4-Input
LUT
4-Input
LUT
4-Input
LUT
shared_arith_out
DQ
reg0
DQ
reg1
DQ
reg2
DQ
reg3
carry_out
To general or
local routing
To general or
local routing
To general or
local routing
To general or
local routing
To general or
local routing
To general or
local routing
To general or
local routing
To general or
local routing
Shared Arithmetic Chain
The shared arithmetic chain available in enhanced arithmetic mode allows the ALM
to implement a 3-input adder. This significantly reduces the resources necessary to
implement large adder trees or correlator functions.
Similar to carry chains, the top and bottom half of the shared arithmetic chains in
alternate LAB columns can be bypassed. This capability allows the shared arithmetic
chain to cascade through half of the ALMs in an LAB while leaving the other half
available for narrower fan-in functionality. In every LAB column is top-half
bypassable; while in MLAB columns are bottom-half bypassable.
The shared arithmetic chain can begin in either the first or sixth ALM in an LAB. The
Quartus II Compiler creates shared arithmetic chains longer than 20 ALMs (10 ALMs
in arithmetic or shared arithmetic mode) by linking LABs together automatically. To
enhanced fitting, a long shared arithmetic chain runs vertically, allowing fast
horizontal connections to the TriMatrix memory and DSP blocks. A shared arithmetic
chain can continue as far as a full column.
Arria V Device HandbookJune 2012 Altera Corporation
Volume 1: Device Interfaces and Integration
Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices1–13
Document Revision History
Document Revision History
Table 1–1 lists the revision history for this chapter.
Table 1–1. Document Revision History
DateVersionChanges
Updated for the Quartus II software v12.0 release:
June 20122.0
November 20111.1Restructured chapter.
May 20111.0Initial release.
■ Restructured chapter.
■ Updated Figure 1–6.
June 2012 Altera CorporationArria V Device Handbook
Volume 1: Device Interfaces and Integration
1–14Chapter 1: Logic Array Blocks and Adaptive Logic Modules in Arria V Devices
Document Revision History
Arria V Device HandbookJune 2012 Altera Corporation
Volume 1: Device Interfaces and Integration
June 2012
AV-52002-2.0
AV-52002-2.0
2. Memory Blocks in Arria V Devices
This chapter describes the embedded memory blocks in Arria®V devices.
The memory blocks in Arria V devices provide different sizes of embedded SRAM to
fit your design requirements.
This chapter contains the following sections:
■ “Memory Types” on page 2–1
■ “Memory Features” on page 2–2
■ “Memory Modes” on page 2–3
■ “Mixed-Width Port Configurations” on page 2–4
■ “Clocking Modes” on page 2–5
■ “Parity Bit” on page 2–6
■ “Byte Enable” on page 2–6
Memory Types
f For information about the embedded memory capacity available in each Arria V
■ “Design Considerations” on page 2–8
The Arria V devices contain two types of memory blocks:
■ M10K blocks—10-kilobit (Kb) blocks of dedicated memory resources that you can
use to create designs with large memory configurations.
■ Memory logic array blocks (MLABs)—640-bit enhanced memory blocks that are
configured from dual-purpose logic array blocks (LABs). The MLABs are
optimized for implementation of shift registers for digital signal processing (DSP)
applications, wide shallow FIFO buffers, and filter delay lines. Each MLAB is
made up of ten adaptive logic modules (ALMs) that you can configure as ten
32 x 2 blocks, giving you one 32 x 20 simple dual-port SRAM block per MLAB.