Home › Practice › RTL Design › 4-bit saturating unsigned adder
4-bit saturating unsigned adder
EasyRTLcombinationalarithmetic
Build a 4-bit unsigned adder that clamps at 15 instead of wrapping on overflow.
- If
a + b <= 15, output the exact 4-bit sum ony. - If
a + b > 15, clampyto4'd15(4'b1111). - No clock. The output follows the inputs.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.