Take for example, the XOR gate. The truth table for the XOR function is defined as:

Hence, from the truth table, there are 2 lines (or rows) where output = 1:
when (A=0 and B=1) or when (A=1 and B=0).
Hence, we can write the boolean expression for the output as
Output = (A' . B) + (A . B')
where A' denotes A_bar, or A complement/inverted, and B' denotes B_bar. This form of expression is called Sum-Of-Product (SOP) expression.
The logic circuit for the XOR function is:

Notice we have defined a special symbol for the XOR function.
Given one of the three, you be able to derive the other two. Remember, they are interrelated:
- Truth Table
- Boolean Expression
- Logic Circuit
An interesting website: Logic Gate Flash Animation
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.