+ Reply to Thread
Results 1 to 8 of 8

Thread: logic diagrams!

  1. #1
    t.man Newbie
    Join Date
    Mar 2008
    Posts
    173

    Default logic diagrams!

    how can one go about in representing the following Boolean function using NAND gates with a minimum number of gates?

    z = A' BC + AB'C + ABC' + ABC
    Last edited by t.man; 14th January 2009 at 05:48 AM.


  2. #2
    MrAl Excellent MrAl Excellent MrAl Excellent MrAl Excellent MrAl Excellent MrAl Excellent MrAl Excellent MrAl Excellent
    Join Date
    Sep 2008
    Location
    NJ
    Posts
    1,289

    Default

    Hi,

    One way is to reduce the equation using Boolean Algebra.

    Another way is to generate a truth table and look at the
    pattern of 1's and 0's to look for a simpler logic representation.

    Example using Boolean Algebra:
    z = ABC' + ABC
    reduces to:
    z = AB + AB
    because it doesnt matter whether C is high or low, so it gets eliminated,
    and of course that reduces to:
    z = AB
    so
    z = ABC' + ABC = AB
    and that would be implemented using one two-input 'AND' gate.

  3. #3
    moghli_amateur Newbie
    Join Date
    Oct 2008
    Posts
    5

    Default

    Quote Originally Posted by moghli_amateur View Post
    originally posted byt.man
    how can one go about in representing the following Boolean function using NAND gates with a minimum number of gates?

    z = A' BC + AB'C + ABC' + ABC

    Typically logic designers use K-map but in this particular case the boolean laws can be easily used.
    z= A' BC + AB'C + AB
    z= A' BC +A(B'C+B)
    z=A'BC+A(B+C)
    z=A'BC+AB+AC
    z=B(A'C+A)+AC
    z=AB+BC+AC
    As you can see this is just a minimal expression in Sum of Products form.
    Since "AND-OR" combination is equivalent to "NAND-NAND" combination, you can relaise the above expression by three 2 input nanad gate and one three input nand gate.
    Pessisim never won a war

  4. #4
    Chaerl Newbie
    Join Date
    Feb 2009
    Location
    Ireland
    Posts
    59

    Default

    With this boolean equation (which is correctly derived), we can do 6 NAND gates to get the right circuit. I hope I'm right.
    Last edited by Chaerl; 13th February 2009 at 03:42 PM.

  5. #5
    Krumlink Excellent Krumlink Excellent Krumlink Excellent Krumlink Excellent Krumlink Excellent
    Join Date
    Aug 2007
    Location
    Michigan, USA
    Posts
    2,093
    Blog Entries
    1

    Default

    AND each logic input and OR each group together.
    z = A' BC + AB'C + ABC' + ABC
    IF YOU WANT TO HELP FINE IF NOT PLEASE DON"T PEE IN MY CHEERO'S

  6. #6
    Help us help you blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent
    Join Date
    Jan 2007
    Location
    Toronto, Canada
    Posts
    10,705
    Blog Entries
    5

    Default

    Whoa long time no see Krumlink
    Bill
    Smart Kits build Smart People

    http://www.blueroomelectronics.com/

  7. #7
    Chaerl Newbie
    Join Date
    Feb 2009
    Location
    Ireland
    Posts
    59

    Default

    Quote Originally Posted by Krumlink View Post
    AND each logic input and OR each group together.
    z = A' BC + AB'C + ABC' + ABC
    In this case, you got it wrong. It should be the minimum number of NAND. In this case, we must simplify first the equation with the result of z=AB+BC+AC.
    Afterwards, we can represent each the AND and OR with its equivalent NAND circuit. To further lessen the circuit, we must simplify more the equation by grouping. Thus, z=AB+(BC+AC). You can choose which term you want to group. I'll try to attach the circuit next time.

  8. #8
    Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent
    Join Date
    Apr 2006
    Location
    England
    Posts
    13,076

    Default

    Quote Originally Posted by Krumlink View Post
    AND each logic input and OR each group together.
    z = A' BC + AB'C + ABC' + ABC
    Welcome back.

    I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong.

    Please ask on the open forum if you have a question and I'll be happy to help,
    if I know the answer.

+ Reply to Thread

Similar Threads

  1. pin diagrams
    By buland in forum General Electronics Chat
    Replies: 1
    Latest: 7th May 2005, 01:55 PM
  2. PIN DIAGRAMS WANTED
    By buland in forum General Electronics Chat
    Replies: 1
    Latest: 7th May 2005, 01:53 PM
  3. Doubtful Diagrams
    By dreamproject in forum Electronic Projects Design/Ideas/Reviews
    Replies: 1
    Latest: 12th November 2004, 08:09 AM
  4. eye diagrams
    By jovabiot in forum Electronic Projects Design/Ideas/Reviews
    Replies: 4
    Latest: 29th July 2004, 07:24 AM
  5. Need diagrams for an IR Barrier
    By Electro Boy in forum Electronic Projects Design/Ideas/Reviews
    Replies: 0
    Latest: 18th February 2004, 09:23 PM

Tags for this Thread