Question: A comparator circuit has two 1-bit inputs A and B and three 1-bit outputs G (greater), E (equal), and L (less than). That is, G

A comparator circuit has two 1-bit inputs A and B and three 1-bit outputs G (greater), E (equal), and L (less than). That is, G is 1 if A > B (0 otherwise), E is 1 if A == B (0 otherwise), and L is 1 if A < B (0 otherwise).
a. Draw the truth table for a 1-bit comparator (the table has 2 inputs and 3 outputs).
b. Implement G, E, and L circuits using only NAND and NOT gates.
c.Using the 1-bit comparator as a building block (that is, drawing it as a 2-input/3-output box), construct a four-bit equality checker, such that output EQUAL is 1 if A[3:0] == B[3:0], 0 otherwise.

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 Databases Questions!