you can do it like the adding chip, but use and gates. Also the output must have 2 times a many digits.