Boolean Algebra

Question: Implement XOR using NAND only

Q- Implement 2 variable XOR gate using NAND only in minimum number of gates.

F= x XOR y = x’y+xy’ = x’y+xy’+xx’+yy’ = (x+y) (x’+y’)

Now we need to implement this circuit using NAND gates

F= (x+y)(xy)’ = x. (xy)’ + y. (xy)’

Take compliment

F’= ( x. (xy)’ + y. (xy)’ )’ = (x. (xy)’)’. (y. (xy)’)

Take compliment again

F=( (x. (xy)’)’. (y. (xy)’) )’

Now we can implement this using NAND gates

So we get that we need minimum of 4 NAND gates to implement XOR gate and if we are to implement XNOR gate then we’ll use 5 NAND gates with 5th gate used as inverter and placed in-front of 4th NAND gate in above circuit.

20 Replies to “Question: Implement XOR using NAND only

  1. Pingback: Uni
  2. Pingback: pgroyalbet
  3. Pingback: hostel bangkok
  4. Pingback: m1a scout
  5. Pingback: 카지노게임
  6. Pingback: PBT
  7. Pingback: Sylfirm
  8. Pingback: fenix168
  9. saw ciprofloxacino 0 [url=https://fastpriligy.top/]buy priligy dapoxetine online[/url] Our goal is to work together to make the family of your dreams a reality as affordably, comfortably, and easily as possible

Leave a Reply

Your email address will not be published. Required fields are marked *