This is a part of my computer science assignment:
When adding two unsigned binary integers, an overflow can easily be verified by observing the carry out. Specifically, an overflow occurred if and only if S' · Cout = 1.
Does anybody know what this S might represent? is it the sum? if it is how is this expression making sense?
The adder-subtractor circuit also performs the subtraction of the two unsigned integers: A−B.
If the magnitude of B exceeds A, then the subtraction will produce an unusually large result, i.e., an underflow occurred.
- In terms of the inputs and outputs A3A2A1A0, B3B2B1B0, S3S2S1S0, Cout and S, determine an expression that detects underflow.
- Determine the simplest Boolean expression that simultaneously detects overflow or underflow.
I have no idea in which direction I should go. I don't even know how to tag this. Can anybody give me a little hint on how to solve them? Like what the answers are supposed to look like?
I think it shouldn't be too hard.