Question: Your task is to structurally create a comparator for signed numbers ( 2 s complement representation ) and unsigned numbers. The circuit will have the

Your task is to structurally create a comparator for signed numbers (2s complement representation) and unsigned numbers. The circuit will have the following main inputs and outputs
1- First number A: 6 bits
2- Second number B: 6 bits
3- Selection S: 1 bit to select how to consider the numbers (signed or unsigned) and thus how comparator will work
4- First output Equal : will produce 1 if A=B.
5- Second output Greater: will produce 1 if A>B.
6- Third output Smaller: will produce 1 if A< B.Your task is to structurally create a comparator for signed numbers (2s complement representation) and unsigned numbers. The circuit will have the following main inputs and outputs
1- First number A: 6 bits
2- Second number B: 6 bits
3- Selection S: 1 bit to select how to consider the numbers (signed or unsigned) and thus how comparator will work
4- First output Equal : will produce 1 if A=B.
5- Second output Greater: will produce 1 if A>B.
6- Third output Smaller: will produce 1 if A< B.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!