Add a, b, and cin as a 100-bit ripple-carry operation. Return each stage’s carry-out in the matching position of cout; cout(99) is the final carry.
Verilog Language/More Features
100-Bit Ripple-Carry Adder with Carry Outputs
mediumgeneratearithmeticvectors