Converting AND-OR expression to NAND-NAND?

  • Thread starter Thread starter Noopi
  • Start date Start date
  • Tags Tags
    Expression
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 11K views
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