How Can You Design a Circuit Using Only AND and NAND Gates with Four Switches?

  • Thread starter Thread starter coreylister
  • Start date Start date
  • Tags Tags
    Logic Logic gates
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 3K views
coreylister
Messages
1
Reaction score
0

Homework Statement


Using only AND and NAND gates, design a circuit in which 4 switches must all be turned on before a switch in another circuit turns off.

i think half the reason i don't understand may be the wording of his question, i know the tables but i am not sure how the logic gates themself work. i am researching now, would really appreciate the help!

Homework Equations


the charts can be found on this site: http://www.kpsec.freeuk.com/gates.htm#summary

The Attempt at a Solution


Hello all, just after abit of guidance with a physics question i made for myself.
I have this really good idea that i thought would work but it didn't and my university professor told me i should learn more about how these logic gates work!

sorry this is my first post i editted to fix things
 
Last edited:
Physics news on Phys.org
Logic gates simply act out the appropriate boolean algebraic operator. You already have everything you need to know from the link you provided to layout the circuit. The next step is to figure out the logic table. A simple, but usually inefficient, way to implement a logic table is to use a gate(s) to create each possible high state and then OR all the outputs from each of these high states. For example: we want a high output when x=1 and y = 0 or when x = 1 and y = 1. Thus, for the first instance we would AND x and NOT(y). The second case we AND x and y. Then to get the final output we would OR the output from these two AND gates. A more astute observer would note that the y value is irrelevant in my example, you could simplify the output to just being x which shows how this method can be inefficient but it is the basic starting point for deriving a simple logic circuit.