4 Bit Signed Comparator
SPECIFICATIONS:
INPUTS:
Create a circuit in Logisim that will take the following inputs:
A : 4 bit 2’s complement signed binary number
B : 4 bit 2’s complement signed binary number
OUTPUTS:
The circuit will compare the two numbers and send put a ‘1’ to the corresponding output:
< : if A is less than B
= : if A is equal to B
> : if A is greater than B
Your circuit will look something like this:
1. The circuit is to be implemented using sub-circuits as covered in class.
2. You must create the following circuits
a. 4 bit EQUALITY subcircuit
b. 4 bit GREAT THAN subcircuit
c. 4 bit LESS THAN subcircuit
d. Combine all 3 subcircuits to create the 4 bitcomparator
3. You may only use the basic gates: NOT, AND, OR, XOR. You may use these gates to build larger sub-circuits of your own: ADDER, MULTIPLEXER, etc. and incorporate these into your main circuit.
4. You are not allowed to use Logisim’s built-in circuits: ADDER, MULTIPLEXER, etc., but you are free to build your own using the basic gates.