

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Arithmetic Part A For each problem, (a) compute the op eration using the rules of addition, and (b) indicate whether an over ow o ccurs. All numb ers are expressed using a six bit, two's compliment representation in binary notation. 1 0 1 1 0 1 0 0 0 0 1 0 1 0 1 1 0 1 1 1 1 1
over ow? over ow? over ow? over ow? 1 1 0 1 1 0 1 0 1 0 0 1 1 1 0 1 1
over ow? over ow? over ow? 1 1 1 1 1 1 1 0 0 0 1 1 0 0 0 0
over ow? over ow? over ow?
Part B Now compute additions and detect over ows for these ve bit, two's compliment numb ers. 1 0 1 1 1 0 1 0 0 1 0 1 0 1 1 1 1 1
over ow? over ow? over ow? over ow?
Part C For each problem, (a) compute the op eration using the rules of addition, (b) indicate whether an error o ccurs assuming all numb ers are expressed using a ve bit, two's compliment representation, and (c) indicate whether an error o ccurs assuming all numb ers are expressed using a ve bit, unsigned binary representation. All numb er are in binary notation. 1 1 0 1 1 0 1 1 0 1 1 0 1 0 1 0 1
signed error?
signed error?
signed error?
signed error? unsigned error?
unsigned error?
unsigned error?
unsigned error?
1 1 1 1 1 1 1 1 1 1 0 0 0 1 1 0 0 0 1
signed error?
signed error?
signed error?
signed error? unsigned error?
unsigned error?
unsigned error?
unsigned error?
Part D For each problem, compute the subtraction by negating the second op erand and then adding the binary op erands. All numb ers are expressed using a six bit, two's compliment representation in binary notation. Don't worry ab out over ows here. 0 1 1 0 0 1 0 1 0 1 1 0 0 1 1 1 1 1
Part E Now compute these subtractions (by negating the second op erand and adding) for these ve bit, two's compliment numb ers. Again, don't worry ab out over ows. 1 0 0 1 1 0 1 0 1 0 1 0 1 1 1 0 0 1
Part F Two eight bit two's compliment numb ers are added together to form an eight bit two's compliment result. The inputs are named X7:X0 and Y7:Y0. The result is named Z7:Z0. Assume other circuitry (an eight bit adder) computes Z from X and Y. Your task is to design the logic that detects when an addition over ow (p ositive or negative) o ccurs using any bits from X, Y, and Z as inputs. Your over ow detector should have one output, OVERFLOW, that is high when an over ow is detected.