Digital Logic Comparator

Thread Starter

squartle

Joined Dec 31, 2010
1
Hello,



Can somebody please tell me how the following circuits can be created?


1- A comparator circuit that outputs 1 whenever two 4bit signed numbers represented in Sign & Magnitude are equal.

2- Same circuit but this time, the two numbers are represented in 1's complement.

3- Also the same circuit, with the two numbers represented in 2's complement.



Thanks
 

Ron H

Joined Apr 14, 2005
7,063
If you only need an indication of equality, then you only need to do bitwise comparisons. Hint: An exclusive OR is a 1-bit comparator.
 
Top