62.8k views
0 votes
How do you do logic gates/circuit for the truth table?

2 Answers

1 vote

Answer:

Step-by-step explanation:

Once we are given a truth table that specifies the logic states 1 or 0 of the output of the logic circuit for all combinations of the logic states of the given inputs, we select the combinations of the logic states of the inputs for which the output is 1. Then we do ORing of all such combinations. For each such combination we AND the logic states.

We can optimize the formula further by using Karnaugh maps or K-maps that combine two or more combinations into one more generic combination.

Example: Let A and B be the inputs. Y be the output.

A B Y

1 1 0

1 0 0t

0 1 1

0 0 1

This can be expressed as : A' . B' + A' . B

This requires two inverter gates for producing A' and B' from A and B respectively. Then two AND gates are required to produce A' AND B' , and A' AND B. Finally we require an OR gate to produce the output.

To optimize the final circuit, we can combine the last two rows in the truth table, and write it simply as A'. So the final circuit will have only one inverter gate.

User Superscalar
by
5.3k points
2 votes
Here's how you do it. For all the entries in the table that produce "1" (true), construct a sub-circuit where you AND all the inputs, inverting all the 0 inputs.
Next, you OR all the outputs of these AND circuits.

After that you could try to simplify the circuit before actually building it.

Say you have inputs a=0 and b=1 with output 1, this would result in a sub-circuit of NOT(a) AND b. You repeat that for each line in the truth table that has 1 as an output.

The resulting output would OR all these entries, like (NOT(a) AND b) OR (...other truth table line).

User Roj Vroemen
by
6.2k points