Need a help in making logic circuits

Click For Summary

Discussion Overview

The discussion revolves around designing a logic circuit to determine if a four-bit input sequence is monotonic, either increasing or decreasing. Participants explore methods to minimize the number of logic gates used in the circuit, focusing on the application of Boolean algebra and Karnaugh maps for simplification.

Discussion Character

  • Homework-related, Technical explanation, Mathematical reasoning, Debate/contested

Main Points Raised

  • One participant presents a function for checking if the sequence is non-increasing and another for non-decreasing, seeking to minimize the number of logic gates used.
  • Another participant suggests using a Karnaugh map or Boolean algebra to simplify the logic equations.
  • A different approach is proposed, where a single output function is derived using different variable names, resulting in a specific gate count.
  • A participant clarifies their requirement for two outputs and emphasizes the use of two-input gates, mentioning the efficiency of NAND or NOR gates due to their lower deletion time.
  • One participant reports achieving a reduction to 12 NOR gates.

Areas of Agreement / Disagreement

Participants express differing views on the best approach to simplify the logic circuit, with no consensus on a single method or final gate count. The discussion remains unresolved regarding the optimal solution.

Contextual Notes

Participants do not fully resolve the mathematical steps involved in simplifying the logic equations, and assumptions about the definitions of monotonic sequences are not explicitly stated.

Who May Find This Useful

Students and enthusiasts interested in digital logic design, Boolean algebra, and circuit optimization techniques may find this discussion relevant.

Ph_Student
Messages
3
Reaction score
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
 
Physics news on Phys.org
Try putting the logic equation you've come up with into a Karnaugh map to reduce it or you can just perform some boolean algebra to simplify the original equation using properties such as demorgans theorem etc.
 
But don't you want a single output function Y and a boolean formula for it in terms of the inputs? Calling the inputs a,b,c,d instead of X0 etc, I get

Y = abd' + a'b'd + bcd + b'c'd'

5 gates if you are allowed 4 input OR and 3 input AND with inverted inputs, but hey, that part is your problem. :wink:
 
I already handed the homework, but thanks guys

LCKurtz: I wanted two outputs, one if its increasing monotonic, and one if its decreasing monotonic sequence. And I also can use only two input gates.
and the efficiency was to find less gates using nand or nor, because the given deletion time for these gate is low.

but thanks anyway I got 97/100 :-)
 
How many gates did you get it down to?
 
12 NOR gates
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K