Module 2: Combinational Circuit Design · 2.1 Adder Circuits

The Ripple-Carry Adder

In the previous article, we derived the half adder and the full adder. This article cascades $N$ full adders to construct an $N$-bit Ripple-Carry Adder (RCA). The ripple-carry adder is simple and requires minimal silicon area. However, because each carry bit depends sequentially on the previous stage, propagation delay increases linearly with bit width. This article analyzes the circuit architecture, calculates critical path timing, and examines modern implementation trade-offs.

Architecture of the Ripple-Carry Adder

An $N$-bit ripple-carry adder connects $N$ full adder (FA) cells in series:

  • Position 0 (Least Significant Bit, LSB) uses FA0. Its carry-in ($C_0$) connects to logic 0 or an external carry signal.
  • The carry-out of stage $i$ ($C_{i+1}$) connects directly to the carry-in of stage $i+1$.
  • The most significant full adder, FA$(N-1)$, produces the most significant sum bit ($S_{N-1}$) and the final carry-out ($C_{\text{out}} = C_N$).
  • The final carry-out asserts high when an unsigned arithmetic overflow occurs.

Figure 1 illustrates a 4-bit ripple-carry adder:

4-bit ripple-carry adder
Figure 1: 4-bit ripple-carry adder schematic with cascaded carry path

The modular structure maps directly onto iterative hardware generation statements in Verilog.

Step-by-Step Numerical Trace

We trace the addition of two 4-bit operands: $A = 0110_2$ ($6_{10}$) and $B = 0101_2$ ($5_{10}$) with initial carry-in $C_0 = 0$.

  1. Stage 0 (FA0):
    • Inputs: $A_0 = 0, B_0 = 1, C_0 = 0$.
    • Outputs: $S_0 = 0 \oplus 1 \oplus 0 = 1$; Carry: $C_1 = (0 \cdot 1) + (1 \cdot 0) + (0 \cdot 0) = 0$.
  2. Stage 1 (FA1):
    • Inputs: $A_1 = 1, B_1 = 0, C_1 = 0$.
    • Outputs: $S_1 = 1 \oplus 0 \oplus 0 = 1$; Carry: $C_2 = 0$.
  3. Stage 2 (FA2):
    • Inputs: $A_2 = 1, B_2 = 1, C_2 = 0$.
    • Outputs: $S_2 = 1 \oplus 1 \oplus 0 = 0$; Carry: $C_3 = (1 \cdot 1) = 1$.
  4. Stage 3 (FA3):
    • Inputs: $A_3 = 0, B_3 = 0, C_3 = 1$.
    • Outputs: $S_3 = 0 \oplus 0 \oplus 1 = 1$; Carry: $C_4 = 0$.

Final Result: $S = 1011_2$ ($11_{10}$) with carry-out $C_4 = 0$. Notice that FA3 cannot compute final sum bit $S_3$ until carry $C_3$ propagates through the preceding stages.

Critical Path and Propagation Delay Analysis

In a standard full adder cell, the carry-in to carry-out path ($C_{\text{in}} \to C_{\text{out}}$) requires two gate delays (AND gate followed by an OR gate). The primary inputs ($A_0, B_0$) require one additional gate delay to generate intermediate propagate/generate terms. The final carry-in ($C_{N-1}$) requires one XOR gate delay to compute the final sum bit ($S_{N-1}$).

The worst-case propagation delay for an $N$-bit ripple-carry adder is:

$$t_{\text{RCA}}(N) \approx 2N + 2 \text{ gate delays}$$

Table 1 lists propagation delays across standard word widths, assuming an average gate delay of 100 ps:

Bit Width ($N$) Total Gate Delays Delay at 100 ps/gate Maximum Operating Frequency
4 bits 10 1.0 ns 1,000 MHz (1.0 GHz)
8 bits 18 1.8 ns 556 MHz
16 bits 34 3.4 ns 294 MHz
32 bits 66 6.6 ns 152 MHz
64 bits 130 13.0 ns 77 MHz

A 64-bit ripple-carry adder limits clock frequency to approximately 77 MHz. Because high-performance processors operate above 3 GHz, wide ripple-carry adders cannot meet pipeline timing constraints.

Worst-Case Input Vectors

The worst-case delay occurs when an arithmetic carry propagates across all bit positions. Consider adding:

  • $A = 0111\dots111_2$ ($2^{N-1} - 1$)
  • $B = 0000\dots001_2$ ($1_{10}$)
  • $C_0 = 0$

Bit 0 generates a carry ($1 + 1 = 0$, carry 1). Every subsequent stage adds $1 + 0 + C_{\text{in}}$, passing the carry forward. The carry signal traverses all $N$ stages sequentially before the most significant sum bit stabilizes. If a downstream register samples the sum before this carry ripple completes, timing violations occur.

Practical Applications and FPGA Implementations

Despite its latency constraints, the ripple-carry architecture remains valuable in specific applications:

  1. Narrow Bit Widths: For 4-bit and 8-bit operands, propagation delay remains negligible (1 to 2 ns). Small counters and address decoders frequently use ripple-carry adders.
  2. Minimum Silicon Area: The ripple-carry adder requires zero lookahead logic or multiplexer overhead. It represents the smallest possible adder implementation.
  3. Dedicated FPGA Carry Chains: Modern FPGAs (including AMD Xilinx UltraScale, Intel Stratix, and Lattice ECP5) contain dedicated silicon hard-macro carry chains (such as CARRY4 and CARRY8 primitives). These dedicated chains bypass programmable lookup tables and achieve propagation delays below 30 ps per bit. On FPGAs, standard ripple-carry adders frequently outperform complex carry-lookahead soft logic.

Practice Exercises

Problem 1: A 4-bit ripple-carry adder computes $A + B$ where $A = 1001_2$ ($9_{10}$) and $B = 0111_2$ ($7_{10}$) with $C_0 = 0$. Trace each carry and sum output, evaluate whether unsigned overflow occurred, and state the decimal result.

View Solution

Trace each full adder:

  • FA0: $1 + 1 + 0 \implies S_0 = 0, C_1 = 1$.
  • FA1: $0 + 1 + 1 \implies S_1 = 0, C_2 = 1$.
  • FA2: $0 + 1 + 1 \implies S_2 = 0, C_3 = 1$.
  • FA3: $1 + 0 + 1 \implies S_3 = 0, C_4 = 1$.

Outputs:

  • 4-bit sum: $S = 0000_2$.
  • Final carry-out: $C_{\text{out}} = C_4 = 1$.
  • Overflow Status: Unsigned overflow occurred because the arithmetic sum exceeds 4 bits ($2^4 - 1 = 15$).
  • Total 5-bit result: $10000_2 = 16_{10}$ ($9 + 7 = 16$).

Problem 2: A 32-bit ripple-carry adder implemented in an ASIC standard-cell library exhibits an average gate delay of 80 ps. Calculate its worst-case delay, determine its maximum operating frequency, and calculate the speed-up factor required to operate at 500 MHz.

View Solution
  1. Worst-Case Delay: $$t_{\text{delay}} = (2N + 2) \times t_{\text{gate}} = (2 \times 32 + 2) \times 80\text{ ps} = 66 \times 80\text{ ps} = 5.28\text{ ns}$$
  2. Maximum Operating Frequency: $$f_{\text{max}} = \frac{1}{t_{\text{delay}}} = \frac{1}{5.28\text{ ns}} \approx 189.4\text{ MHz}$$
  3. Required Speed-Up for 500 MHz: A 500 MHz clock frequency requires a maximum clock period of: $$T_{\text{clk}} = \frac{1}{500\text{ MHz}} = 2.0\text{ ns}$$ $$\text{Speed-Up Factor} = \frac{5.28\text{ ns}}{2.0\text{ ns}} = 2.64\times$$

The circuit requires a $2.64\times$ speed-up. High-speed carry-lookahead architectures achieve this target.

In the next article, we analyze the Carry-Lookahead Adder (CLA), which breaks serial carry dependencies using generate and propagate logic.

← Half Adder and Full Adder The Carry-Lookahead Adder →