Home › Practice › RTL Design › 8-bit Han-Carlson adder
8-bit Han-Carlson adder
HardRTLcombinationalarithmetic
Build an 8-bit adder as a Han-Carlson parallel prefix network: Kogge-Stone on the odd bits only, plus one extra level for the even bits. Each bit makes g = a & b and p = a ^ b, and groups combine with (G,P) o (G',P') = (G | P & G', P & P'). Level 1: odd bits combine with the bit below. Levels 2 and 3: Kogge-Stone on the odd bits (distance 2, then 4). Level 4: even bits 2, 4, 6 combine with the odd bit below. 12 combine cells, 4 levels.
- Inputs
a,bandcin. Outputssumandcout, so{cout, sum} = a + b + cin. - No clock. The output follows the inputs.
Fold cin into bit 0: g0 = a0&b0 | (a0^b0)&cin. Then G[i:0] is the carry out of bit i, and sum[i] = p[i] ^ carry into i.
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.