Home › Practice › RTL Design › 4-bit Manchester carry chain

4-bit Manchester carry chain

MediumRTLcombinationalarithmetic

Build a 4-bit adder as a Manchester carry chain. For each bit, p = a ^ b says whether the carry passes through. When p is 1 the carry goes straight on from the bit before. When p is 0, a and b are equal, so the carry out is that value (1 generates a carry, 0 kills it). The carry runs through the four bits one after another.

Rule: do not use +, - or comparison operators. Build the carry network yourself with &, |, ^ and ?:.

The grader checks that the result is a correct adder and that you did not use +. It does not measure how deep your network is, so following the structure described above is up to you.

Solve in your browser →

No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.

More in this track

← 8-bit parallel-in, serial-out register8-bit Brent-Kung adder →