Hi, I'm given a task to design a logic circuit with 4 inputs, A1, A0, B1, B0. The circuit is suppose to compare the value of A1A0 to B1B0 and display the result in 3 outputs, G(A greater than B), E(A equals to B), L(A lesser than B).
eg. A1=1, A0=0, B1=1, B0=1 will produce L=1.
The problem is that i have to design circuit for the output G such that i use less than or equal to 5 gates. Only AND,OR,NOT and XOR gates are allowed to be used.
2 hints are given :
(i) When A1 is Not Equal to B1, and A1 = 1, G will be = 1 (regardless of A 0 and B0)
(ii) However if A1 = B1, then G = 1 only if A0 is Not Equal to B0, and A0 = 1
From the hint, i manage to get 8 gate but not any lower:
A1B1'+A0B0'(A1XORB1)'
i used 3 AND gates, 3 NOT gates, 1 XOR gate, 1 OR gate, which is a total of 8. Anyone could help me with this problem? Thanks in advance.
eg. A1=1, A0=0, B1=1, B0=1 will produce L=1.
The problem is that i have to design circuit for the output G such that i use less than or equal to 5 gates. Only AND,OR,NOT and XOR gates are allowed to be used.
2 hints are given :
(i) When A1 is Not Equal to B1, and A1 = 1, G will be = 1 (regardless of A 0 and B0)
(ii) However if A1 = B1, then G = 1 only if A0 is Not Equal to B0, and A0 = 1
From the hint, i manage to get 8 gate but not any lower:
A1B1'+A0B0'(A1XORB1)'
i used 3 AND gates, 3 NOT gates, 1 XOR gate, 1 OR gate, which is a total of 8. Anyone could help me with this problem? Thanks in advance.