Page 1 of 1

Circuit Design from Truth Table [COMPLETED]

Posted: Sun Oct 11, 2015 5:24 am
by Lexhanatin
Hi guys,

I'm having a bit of trouble designing my circuit.

Image
As you can see from the picture the first 5 combinations from the truth table work, however the rest don't.

I'm still relatively new to logic circuits so any advice is greatly appreciated.

me luv u long tim <3.
P.S. Program used is logisim.

Re: Circuit Design from Truth Table [HELP NEEDED]

Posted: Sun Oct 11, 2015 11:13 am
by admin
Hi,
I suggest you do your p1 and p2 separately.
It is actually pretty easy to build circuit by truth table if you not need to do it optimally.
Just find all rows where result is 1 and construct one And element for each such row with all inputs that are 1 connected directly and all inputs that are 0 through not element.
Here is an example of such And for your first row that does not work (in the red rectangle).
Example1.Jpeg
Example1.Jpeg (11.16 KiB) Viewed 9384 times
Then you Or result of all Ands and you have your circuit.
Good luck with your circuit.
By the way, you can try to use LogicCircit program instead of Logisim.
Regards,
Eugene

Re: Circuit Design from Truth Table [HELP NEEDED]

Posted: Mon Oct 12, 2015 6:01 pm
by Lexhanatin
Hi Eugene,
Thanks for your reply.

I've taken your advice to constructing circuits for P1 and P2 separately.
I've also constructed the rows that output 1 from the truth table.
I'm not sure why your example for the first row has the two NOT gates. It works without them.

Here screenshots for the first row and first 2 rows that output 1 (row 1, row 2, and row 7).

Image
Image
Image
(I forgot to change the inputs to result in an output. They do work though).

I'm not sure what you mean by "Then you Or result of all Ands and you have your circuit."
You can't OR with a single input.
So in other word, I don't know how to combine each individual circuit.

Been super busy these past two days, only able to download the program now.

Thanks again man <3.

Re: Circuit Design from Truth Table [HELP NEEDED]

Posted: Tue Oct 13, 2015 12:16 am
by admin
It very simple you just connect outputs of all And gates to Or gate and the output of the Or gate is your result.

Re: Circuit Design from Truth Table [COMPLETED]

Posted: Tue Oct 13, 2015 1:45 am
by Lexhanatin
I got it working.

Image

I just need to make it slightly neater, lol.

Thanks for your help Eugine <3.