Converting AND-OR expression to NAND-NAND?

  • Thread starter Thread starter Noopi
  • Start date Start date
  • Tags Tags
    Expression
AI Thread Summary
To convert AND-OR expressions to NAND-NAND logic, double negation and DeMorgan's Law are essential tools. The user has created logical expressions for a BCD 3321 encoder but struggles with transforming them into NAND-NAND format. The professor suggested applying double negation to each expression and then using DeMorgan's Law to achieve the desired NAND-NAND configuration. The process involves first negating the outputs of the AND terms and then combining them in a second level of NAND gates. Understanding these steps is crucial for successfully implementing the logic diagram with two-level NAND gates.
Noopi
Messages
1
Reaction score
0

Homework Statement


Make a BCD 3321 encoder. So if you input 0100, the encoder will output (depending on your design) either a 1001, or a 0101. Similarly, an input of 0101 will output either a 1010 or a 0110 (again, depending on your design).

Homework Equations


I know you're supposed to use DeMorgan's Law, but I have a hard time understanding WHEN to use it.

The Attempt at a Solution


I have done the truth table, the kmaps, and derived the logical expressions for each bit, but what I'm having a hard time doing is turning my AND-OR logic expressions into NAND-NAND logic expressions.

My 4 logical expressions are:

(3) MSB: A + BC
(3) Second MSB: A + B + CD
(2) Third MSB: A + BC'D + B'CD'
(1) LSB: BCD + BC'D' + B'C'D

My professor mentioned something about double negating the equations, and then applying DeMorgan's Law to get the NAND-NAND logic, and that's where he lost me.

Any help will be greatly appreciated!
 
Physics news on Phys.org
Keep in mind that in the logic diagram

you will implement it in two-level NAND gate

for example if you have this function f(w,x,y )=xy+xz+w

In the first level you will have (xy)' , (xz)' , w'

Then the second level [(xy)'(xz)'w']'=xy+xz+w
 

Similar threads

Back
Top