Home › Practice › RTL Design › 8-bit Kogge-Stone adder
8-bit Kogge-Stone adder
HardRTLcombinationalarithmetic
Build an 8-bit adder as a Kogge-Stone parallel prefix network. Each bit makes g = a & b and p = a ^ b. Then in 3 levels, every bit combines with the bit 1, then 2, then 4 places below it using (G,P) o (G',P') = (G | P & G', P & P'). 17 combine cells, 3 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.