Constructing a circuit from a Boolean expression

In summary, according to the textbook, I am supposed to go from right to left, working on the outermost part of the expression to the innermost part. However, I come up with one OR gate, one AND gate and two NOT gates. I attempted to draw this out using the keyboard but it doesn't format properly and so is incomprehensible. If you use the proper syntax, wolframalpha will provide with a picture of the logic gates as well as a truth table.
  • #1
Jim01
36
0

Homework Statement



Construct a circuit from the Boolean equation:

Homework Equations



P v (~P ^ ~Q)


The Attempt at a Solution



According to the textbook, I am supposed to go from right to left, working on the outermost part of the expression to the innermost part. I read this as saying that even though the outermost part of the expression is on the far left, it is where I begin. Is this correct? I come up with one OR gate, one AND gate and two NOT gates. I tried to draw this out using the keyboard but it doesn't format properly and so is incomprehensible. Here is what I came up with:


P goes into a NOT and comes out ~P. ~P goes into AND and comes out ~P ^ Q.
P goes into OR and comes out P v (~P ^ ~Q)

Q goes into NOT and comes out ~Q. ~Q goes into AND and comes out ~P ^ Q.

~P ^ Q goes into OR and comes out P v (~P ^ ~Q)

Am I on the right track?
 
Physics news on Phys.org
  • #2
Is there a way of adding gates to my thread? I attempted to cut and paste my Viso drawing but that didn't work. It is a lot easier to see the circuit rather than read and try to visualize it.
 
  • #4
jegues said:
If you use the proper syntax, wolframalpha will provide with a picture of the logic gates as well as a truth table.

For example,

http://www.wolframalpha.com/input/?i=(x or y) and (x or !y)

Outstanding! Thank you for the information. After checking it I was right! I'm on the right track then. I was unsure whether or not I was interpreting the instructions correctly since most math has you doing everything inside the parenthesis first. It's counter-intuitive to do it last, so I was afraid I was misunderstanding.

Once again, thank you for your help.
 
  • #5
Of course you can make it simpler using the identity

a + a'b = a + b
 

FAQ: Constructing a circuit from a Boolean expression

What is a Boolean expression?

A Boolean expression is a mathematical expression that consists of variables, logical operators (such as AND, OR, and NOT), and parentheses. It results in a value of either true or false.

How do you construct a circuit from a Boolean expression?

To construct a circuit from a Boolean expression, you can use logic gates, such as AND, OR, and NOT gates, to represent the logical operators in the expression. The variables in the expression are represented by inputs to the circuit, and the output of the circuit will be the result of the expression.

What is the purpose of constructing a circuit from a Boolean expression?

The purpose of constructing a circuit from a Boolean expression is to create a physical representation of the logical operations and relationships described in the expression. This allows us to use electronic devices to perform logical operations and solve problems.

What are the steps involved in constructing a circuit from a Boolean expression?

The steps involved in constructing a circuit from a Boolean expression are: 1) Simplify the expression using Boolean algebra rules, 2) Draw a truth table for the simplified expression, 3) Determine the number of inputs and outputs needed for the circuit, 4) Assign inputs and outputs to the truth table, 5) Use logic gates to represent the logical operators in the expression, and 6) Connect the gates according to the truth table.

Can you provide an example of constructing a circuit from a Boolean expression?

Yes, for example, if we have the Boolean expression (A AND B) OR (NOT C), we can construct a circuit using two AND gates, one OR gate, and one NOT gate. The input A will be connected to the first AND gate, input B will be connected to both the first AND gate and the OR gate, and input C will be connected to the NOT gate. The output of the first AND gate will be connected to the OR gate, and the output of the NOT gate will be connected to the OR gate. The output of the OR gate will be the result of the expression.

Similar threads

Replies
2
Views
2K
Replies
7
Views
1K
Replies
9
Views
1K
Replies
4
Views
2K
Replies
7
Views
1K
Replies
4
Views
4K
Replies
7
Views
1K
Replies
3
Views
1K
Replies
14
Views
2K
Back
Top