CodiodeCodiode
Home
Problem Solving
Skill Tracks
My Assignments
Contests
Leaderboard
Community
Settings
Codiode/Problems/Combinational Logic

4-Bit Ripple Carry Adder

MediumLogic CircuitBuild

Arithmetic logic units and address calculation stages rely on multi-bit adders to compute offsets and sums. The ripple carry adder cascades single-bit adders to process wider words sequentially.

The circuit must compute the sum of two 4-bit inputs A and B. The carry-in to the least significant bit must be permanently tied to logic 0. The carry-out of each stage must propagate directly to the carry-in of the next most significant stage. The final output consists of a 4-bit sum S and a 1-bit carry-out Cout.

| A | B | S | Cout | |-----|-----|-----|--------| | 0 | 0 | 0 | 0 | | 5 | 4 | 9 | 0 | | 7 | 1 | 8 | 0 | | 15 | 1 | 0 | 1 | | 10 | 12 | 6 | 1 |

Constraints

  • Use exactly four Full Adder blocks.
  • The carry-in of the least significant bit must be connected to a constant 0.
  • Combinational logic only.

Topics

arithmeticaddersdata-path

Solve this problem

Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.

This problem is part of Codiode Pro. The statement above is free to read.

Sign in to solveSee what Pro unlocks

The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.

Related problems

  • Binary to HexEasy
  • 1-to-4 Demultiplexer from AND and NOT GatesEasy
  • 2-to-4 Line Decoder with Active-High EnableEasy
  • Hex Nibble to BinaryEasy
  • Odd Parity Bit Generator for 3-bit DataEasy
  • Full Adder from Half AddersEasy
  • Modulo ArithmeticMedium
  • Two's Complement: Encode a Negative DecimalEasy

Browse all problems · Learning tracks