Results 1 to 3 of 3

Thread: creating logic gates simulator

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    19

    Unhappy creating logic gates simulator

    hi,
    i m working on a project and want some opinions on how to implement certain things ,the description is below,

    i m making a logic gates simulator.if u give it some equation it should generate truth table and diagram.
    if u give diagram then produce its equation and truth table.

    implementation of truth table part:
    i am converting string equation in to postfix form then solving it to get the final result(all right till here)

    implementation of generating diagram from equation?????????
    i m confused please help.just give me a general idea ill be thankful

  2. #2
    Hyperactive Member
    Join Date
    Sep 2001
    Posts
    396
    What diagram? I don't understand.

    Truth table only contains True or false(1s & 0s). Should be quite simple IMO.

    Try doing some equations yourself first to familiarise, afterall in the end, you can use the worked equations to test your program.

    The problem I think you would have, is the parsing the equation to meaningful input for your program to work on.
    Last edited by transcendental; Sep 18th, 2002 at 09:12 PM.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    19
    i have done the parsing and had got the result
    but the problem is that i also have to draw the diagram according to the equation eg
    a+(b.c)

    so the diagram would look like this

    first b and c will enter the AND gate and then the output from AND gate & a will enter the OR gate

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width