|
-
Sep 18th, 2002, 01:14 PM
#1
Thread Starter
Junior Member
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
-
Sep 18th, 2002, 09:08 PM
#2
Hyperactive Member
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.
-
Sep 19th, 2002, 08:26 AM
#3
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|