English
Language : 

EP2SGX30CF780C5N Datasheet, PDF (68/316 Pages) Altera Corporation – Section I. Stratix II GX Device Data Sheet
Adaptive Logic Modules
Figure 2–44. Example of a 3-Bit Add Utilizing Shared Arithmetic Mode
shared_arith_in = '0'
3-Bit Add Example
1st stage add is
implemented in LUTs.
2nd stage add is
implemented in adders.
X2 X1 X0
Y2 Y1 Y0
+ Z2 Z1 Z0
S2 S1 S0
+ C2 C1 C0
R3 R2 R1 R0
ALM Implementation
ALM 1
3-Input S0
LUT
X0
Y0
3-Input C0
Z0
LUT
carry_in = '0'
R0
Binary Add
Decimal
X1
Equivalents
Y1
Z1
3-Input S1
LUT
110
6
R1
101
5
+0 1 0
+2
3-Input C1
LUT
001
1
+1 1 0
1101
+ 2x6
13
ALM 2
3-Input S2
LUT
R2
X2
3-Input C2
Y2
Z2
LUT
3-Input '0'
LUT
R3
3-Input
LUT
Shared Arithmetic Chain
In addition to the dedicated carry chain routing, the shared arithmetic
chain available in shared arithmetic mode allows the ALM to implement
a three-input add, which significantly reduces the resources necessary to
implement large adder trees or correlator functions. The shared
arithmetic chains can begin in either the first or fifth ALM in a LAB. The
Quartus II Compiler automatically links LABs to create shared arithmetic
chains longer than 16 (8 ALMs in arithmetic or shared arithmetic mode).
For enhanced fitting, a long shared arithmetic chain runs vertically
2–60
Stratix II GX Device Handbook, Volume 1
Altera Corporation
October 2007