• Support PF! Buy your school textbooks, materials and every day products Here!

Very simple logic circuit question

  • Engineering
  • Thread starter JJBladester
  • Start date
  • #1
JJBladester
Gold Member
286
2

Homework Statement



Draw a logic circuit for the case where the output, HOLD, is LOW only if the input, LOAD, is HIGH and the input, READY, is LOW.

Homework Equations



Truth tables for AND, OR, NAND, NOR, XOR, XNOR are known (I'm not re-typing them here).

The Attempt at a Solution



logic.JPG


My drawing above uses an XNOR gate. However, I wasn't sure if it satisfies the original question because the output of an XNOR gate can be low for two conditions per the truth table below.

XNOR%20Truth%20Table.PNG


Is there any way to design a logic circuit to satisfy the top input being *only* high and the bottom input being *only* low? In other words, I need the XNOR functionality excluding the second row where A=0, B=1, and Output=0.
 

Answers and Replies

  • #2
CWatters
Science Advisor
Homework Helper
Gold Member
10,529
2,295
No that would be wrong because of the reason you give.

Are you allowed to you use more than one gate? It can be done with two NAND gates for example.
 
  • #3
JJBladester
Gold Member
286
2
There is nothing in the textbook that says I must use only one gate.
 
  • #4
JJBladester
Gold Member
286
2
It can be done with two NAND gates for example.
How would I chain two NANDs together to get the correct result?

Could I take the NAND output from the LOAD and READY and then push that output into an inverter?

Like this:

combo.JPG
 
  • #5
LCKurtz
Science Advisor
Homework Helper
Insights Author
Gold Member
9,535
751
How would I chain two NANDs together to get the correct result?

Could I take the NAND output from the LOAD and READY and then push that output into an inverter?

Like this:

combo.JPG
Inverting a NAND gives you an AND gate. You tell us, would that work? Are you just guessing? Have you studied Karnaugh maps yet?
 
  • #6
JJBladester
Gold Member
286
2
I have studied Karnaugh maps. That is the chapter I'm on. You're right about the NAND + inverter equaling an AND gate. I see that now.

I know how to plug create a Karnaugh map and get a minimized expresison, but I don't know what to do with that expression. I'm not being lazy, LCKurtz. I'm just unsure of what to do in this problem and need some help. This whole topic is brand new to me.

Your response was a bit rude, but thanks for pointing me in the direction of the Karnaugh maps.
 
  • #7
LCKurtz
Science Advisor
Homework Helper
Insights Author
Gold Member
9,535
751
  • #8
Filip Larsen
Gold Member
1,256
183
If you want to go by intuition, then you may want to notice that there is an asymmetry between the two inputs, which means that your circuit must treat the two input differently if you use standard gates as these all have symmetric inputs.
 
  • #9
CWatters
Science Advisor
Homework Helper
Gold Member
10,529
2,295
How would I chain two NANDs together to get the correct result?
A hint...

Nand gate truth table..

04124.png


What do you get if you connect both inputs to the READY signal?
 
  • #10
JJBladester
Gold Member
286
2
A hint...

What do you get if you connect both inputs to the READY signal?
Connecting the READY signal to two NAND gate inputs yields a low. Also, this is the only case for a low in the AND gate (when the inputs are both high). Thanks CWatters... This is the push I needed.

I figured out the solution. It helped that I just finished a lab on combinational gates which I hadn't encountered prior to today.

My solution:

Two%2520NANDs.png


The truth table for this diagram shows that a low is possible *only* when LOAD is HIGH and READY is LOW.
 
  • #11
CWatters
Science Advisor
Homework Helper
Gold Member
10,529
2,295
Yes that's exactly the circuit I was hinting at.

Connecting the READY signal to two NAND gate inputs yields a low
Connecting two inputs together turns a NAND gate into an inverter. You could also achieve the same effect by connecting one of the inputs to Vcc = Logic 1. That would have the slight advantage that the load on the READY signal would be just one input rather than two.
 
  • #12
JJBladester
Gold Member
286
2
You could also achieve the same effect by connecting one of the inputs to Vcc = Logic 1. That would have the slight advantage that the load on the READY signal would be just one input rather than two.
Very interesting... Thanks for the insight CWatters. I don't know why LCKurtz was so frustrated with me. I wouldn't want him as a teacher.

I see from the truth table what you're talking about in terms of using a NAND gate as an inverter. I'm assuming that building a circuit strictly out of NAND gates would be much cheaper than out of AND, OR, inverter, etc. gates.
 
  • #13
22,097
3,280
I don't know why LCKurtz was so frustrated with me. I wouldn't want him as a teacher.
This is not acceptable on this forum. Another insult like that and this thread will be locked.
 
  • #14
CWatters
Science Advisor
Homework Helper
Gold Member
10,529
2,295
I see from the truth table what you're talking about in terms of using a NAND gate as an inverter. I'm assuming that building a circuit strictly out of NAND gates would be much cheaper than out of AND, OR, inverter, etc. gates.
Depends. In the old days when everything was built using packages containing 3 or 4 identical gates you tried to use gates of the same type so only one package was needed. Saved cost and space on your printed circuit board. If you already had NAND gates in the design the chances are you had some that were unused so adding one more of the same type was sometimes free. These days your bit of logic might be burried away in a programable device alongside a 32bit microprocessor and a few hundred thousand or more programmable gates. The cost of adding an inverter or NAND gate might be just a few clicks of a mouse.
 

Related Threads on Very simple logic circuit question

Replies
5
Views
1K
Replies
1
Views
2K
  • Last Post
Replies
11
Views
1K
Replies
1
Views
2K
  • Last Post
Replies
2
Views
1K
Replies
3
Views
9K
Replies
1
Views
1K
  • Last Post
Replies
7
Views
989
Replies
20
Views
370
Replies
3
Views
1K
Top