- #1
Ph_Student
- 3
- 0
Homework Statement
So I have four bits input(X0,X1,X2,X3), and I need to check if these four bits are monotonic sequence. I got the following function:
Y0 = X2X1X0 + X3'X2'X1' + X3'X2'X0
(Y0 - the output 1 when X0>=X1>=X2>=X3)
Y1 = X2'X1'X0' + X3X1'X0' + X3X2X1'
(Y1 - The output 1 when X0<=X1<=X2<=X3)
I need to make a logic circuit with the minimum number of logic Gate, I also can use only two input gate.
Homework Equations
The Attempt at a Solution
I got 14 gates, I tried to use NAND and XOR gates, but it didn't work for me. Can anyone make any suggestion on how can I make it with less gates.
Thanks