Description
Design of 16-bit adder/subtractor for integers using the following:
-
16-bit ripple carry adder
-
4-bit CLA based 16-bit adder without using higher-level propagate and generate terms
-
4-bit CLA based 16-bit adder using higher-level propagate and generate terms Overflow detection logic also needs to be included.
Test cases for unsigned integers should include the following:
-
A pair of unsigned integer operands for addition without resulting in overflow
-
A pair of unsigned integer operands for addition resulting in overflow
-
A pair of unsigned integer operands for subtraction with a valid output
Test cases for signed integers should include the following:
-
A pair of positive integers for addition without resulting in overflow
-
A pair of positive integers for addition resulting in overflow
-
A pair of negative integers for addition without resulting in overflow
-
A pair of negative integers for addition resulting in overflow.
-
A pair of operands of opposite sign for addition. There is no overflow for this condition.
-
A pair of operands of opposite sign for subtraction without resulting in overflow
-
A pair of operands of opposite sign for subtraction resulting in overflow