Logic Circuits1
Logic Circuits1
Logic gates are the basic building blocks of digital electronic circuits.
These elements perform logical operations on one or more input signals
to produce a single output signal.
There are several types of logic junction elements, including:
AND gate: This gate produces a high output only if all its inputs are
high.
NOT gate: This gate produces an output that is the opposite of its input.
NAND gate: This gate is a combination of an AND gate and a NOT
gate, producing a low output only if all its inputs are high.
NOR gate: This gate is a combination of an OR gate and a NOT gate,
producing a high output only if all its inputs are low.
XOR gate: This gate produces a high output if its inputs are different,
and a low output if they are the same.
These logic junction elements can be combined in various ways to
create more complex logic circuits.
Combinational Logic
Determine signal expressions and values in a logic diagram
D AB F C.E
E CD E C AB
E CD
F C. C AB
D AB
E C AB
BOOLEAN ALGEBRA
A B C Y C C
0 0 0 1 AB 1
0 0 1 0
AB
0 1 0 0
AB 1 1
0 1 1 0 1
1 0 0 1 AB
1 0 1 0 Y AB BC
1 1 0 1
1 1 1 1
Write the simplified Boolean expression presented in the truth table
using Karnaugh map
A B C Y Y ABC ABC ABC ABC
0 0 0 0
0 0 1 1 C C
0 1 0 0 AB 1
0 1 1 0
AB
1 0 0 0
AB 1 1
1 0 1 1 1
AB
1 1 0 1
1 1 1 1 Y AB BC
Simplify the following expression using Boolean laws and
identities:
Y ABC BC AB
Simplify the Boolean logic using Karnaugh map
Y ABCD ABCD ABC D ABC D
Given Boolean equation
Y AB B A C BC BC
Digital logic problem
Complete Design Procedure
Any logic problem can be solved using the following step-by-step
procedure.
1. Interpret the problem and set up a truth table to describe its operation.
2. Write the AND (product) term for each case where the output is 1.
3. Write the sum-of-products (SOP) expression for the output.
4. Simplify the output expression if possible.
5. Implement the circuit for the final, simplified expression.
Design a logic circuit that has three inputs, A, B, and C, and whose
output will be HIGH only when a majority of the inputs are HIGH.
Step 1. Set up the Step 2. Write the AND term for each case
truth table where the output is a 1
Design a logic circuit that has three inputs, A, B, and C, and whose
output will be HIGH only when a majority of the inputs are HIGH.
Step 1. Set up the Step 2. Write the AND term for each case
truth table where the output is a 1
Design a logic circuit that has three inputs, A, B, and C, and whose
output will be HIGH only when a majority of the inputs are HIGH.
Step 1. Set up the Step 2. Write the AND term for each case
truth table where the output is a 1
Design a logic circuit that has three inputs, A, B, and C, and whose output will
be HIGH only when a majority of the inputs are HIGH.
Q2 y z x Q3 x y z x y z
Steps required for writing basic program
1) Make a truth table for given conditions.
2) Go to the first output and take a coil for it. Don’t think about
all outputs in your truth table. For some examples, we shall
start with coil.
3) Check the true conditions of output and add the status of
inputs.
4) For input 1 take NO and for input 0 take NC.
5) Do not make program for 0 (zero) of output
STEPS required for making XOR program
1) Make a truth table. 1
Sn A B Q0
0 0 0 0
1 0 1 1
2 1 0 1
3 1 1 0
2) Go to the first output and take a coil for it.
2
Sn A B Q0
0 0 0 0
1 0 1 1
2 1 0 1
3 1 1 0
STEPS required for making XOR program
3)Check the true conditions of output and add the status of inputs.
Sn A B Q0
0 0 0 0
1 0 1 1
3 2 1 0 1
3 1 1 0
There are two switches I0 and I1. There are 3 outputs Q0, Q1, and Q2 (blue,
green and red lamps). when I0 is pressed green lamp (Q1) should get on.
When I1 is pressed blue and green both lamps (Q0 and Q1) should get on.
When I0 and I1 both switches are pressed only Red lamp (Q2) should get
on.