CS365 Homework #1 Design a digital circuit that detects overflow conditions of 2’s complement arithmetic. Inputs: OP: 0 for addition and 1 for subtraction SA: Sign bit of operand A SB: Sign bit of operand B SR: Sign bit of results Output: OF = 0 if there is no overflow, 1 otherwise Truth Table (20pt) Boolean Expression for OF (20pt) OP SA SB SR OF 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1Digital Circuit for OF (20pt) OP SA SB SR
View Full Document