30. 4-Bit Carry-Select Adder

Loading simulator…

The solution is organized into three functional stages.

1. Lower 2-Bit Addition

Two Full Adder blocks form the lower section:

  • Full Adder LOW_FA0 adds A[0], B[0], and Cin.
  • Full Adder LOW_FA1 adds A[1], B[1], and the carry from LOW_FA0.

This section produces:

Sum[1:0]
C2

C2 is the actual carry-out from the lower section.

2. Generate Both Upper Results

The upper section contains two parallel 2-bit Full Adder paths.

Upper path for incoming carry 0:

  • CONST_0 provides logic 0 to the carry-in of Full Adder UP0_FA2.
  • Full Adder UP0_FA2 performs the bit-2 addition.
  • Full Adder UP0_FA3 performs the bit-3 addition using the carry from UP0_FA2.
  • Together they generate UP0[2:0].

Upper path for incoming carry 1:

  • CONST_1 provides logic 1 to the carry-in of Full Adder UP1_FA2.
  • Full Adder UP1_FA2 performs the bit-2 addition.
  • Full Adder UP1_FA3 performs the bit-3 addition using the carry from UP1_FA2.
  • Together they generate UP1[2:0].

For both upper results:

[2]   = carry-out
[1:0] = upper-section sum

3. Select the Final Upper Result

Three 2:1 Multiplexer blocks use C2 as their common select signal:

MultiplexerSelected Output
SEL_S2Sum[2]
SEL_S3Sum[3]
SEL_COUTCout
C2 = 0 → select UP0
C2 = 1 → select UP1

The selected upper sum is combined with Sum[1:0] from the lower Full Adders to form the final Sum[3:0].

The key Carry-Select operation is that both upper Full Adder paths calculate their results in parallel. Once C2 becomes available, the Multiplexer blocks select the correct precomputed upper result.