Circuit Design from Truth Table [COMPLETED]

An area for asking questions, making suggestion, share ideas and place circuit examples.
Post Reply
Lexhanatin
Posts: 3
Joined: Sun Oct 11, 2015 5:18 am

Circuit Design from Truth Table [COMPLETED]

Post 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.
Last edited by Lexhanatin on Tue Oct 13, 2015 6:13 pm, edited 1 time in total.
User avatar
admin
Site Admin
Posts: 406
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: Circuit Design from Truth Table [HELP NEEDED]

Post 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 9253 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
Lexhanatin
Posts: 3
Joined: Sun Oct 11, 2015 5:18 am

Re: Circuit Design from Truth Table [HELP NEEDED]

Post 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.
User avatar
admin
Site Admin
Posts: 406
Joined: Sun Jun 14, 2009 10:53 pm
Contact:

Re: Circuit Design from Truth Table [HELP NEEDED]

Post 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.
Lexhanatin
Posts: 3
Joined: Sun Oct 11, 2015 5:18 am

Re: Circuit Design from Truth Table [COMPLETED]

Post by Lexhanatin »

I got it working.

Image

I just need to make it slightly neater, lol.

Thanks for your help Eugine <3.
Post Reply