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.
- Inputs
a,bandcin. Outputssumandcout, so{cout, sum} = a + b + cin. - No clock. The output follows the inputs.
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.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.