Digital Logic Comparator

Discussion in 'Homework Help' started by squartle, Dec 31, 2010.

  1. squartle

    Thread Starter New Member

    Dec 31, 2010
    1
    0
    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
     
  2. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,377
    494
  3. Ron H

    AAC Fanatic!

    Apr 14, 2005
    7,050
    656
    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.
     
Loading...