HDLbits
Browse Problems

Verilog Language/More Features

100-Digit BCD Ripple-Carry Adder

hard
generatearithmeticbcdwide

Inputs hold 100 packed decimal digits, least-significant digit in the lowest nibble. Add both numbers and cin with decimal carry correction; return the 100-digit result and final carry-out separately.