TTI2D3 CLO2 M9 M10 Combinational Logic-HBL
TTI2D3 CLO2 M9 M10 Combinational Logic-HBL
TTI2D3 CLO2 M9 M10 Combinational Logic-HBL
see.telkomuniversity.ac.id
Course Description
• Students learn logic function and how to simplify it using Boolean Algebra and K-
Map;
• Students able to design combinational logic and how to simplify;
• Students learn binary numeric system and its arithmetic operation;
• Students able to analyze and design a sequential machine;
• Students able to use application tool to design logic circuit.
see.telkomuniversity.ac.id
Course Objectives
CLO#1 Student have the knowledge to design combinational logic and how to simplify
it
• Understand logic function
• Understand Boolean Algebra
• Understand K-Map
• Understand arithmetic operation using binary system
see.telkomuniversity.ac.id
Outline
see.telkomuniversity.ac.id
Logic Circuit
Logic Circuit
Combinational Sequential
see.telkomuniversity.ac.id
Combinational Logic
• In combinational logic, the value of the output depends only with the input (no
feedback)
• Input change → output change (after some delay)
BLOCK DIAGRAM :
I0 Y0
I1 Y1
Rangkaian In-1 – I0 Rangkaian
I2 Logika Y2 Logika Ym-1 – Y0
. Kombinasional . n Kombinasional m
. .
. .
In-1 Ym-1
see.telkomuniversity.ac.id
Combinational Logic
• Analysis
– Given the circuit, we can determine the function
– Function can be explained using: A
B
C
F1
?
• Boolean approach
A
B
C
A
B
A
?
• Truth Table approach
F2
C
B
C
• Design/Synthesis
– Given the function, we can determine the circuit
– Function can be explained using:
• Boolean approach ?
• Truth Table approach
7
see.telkomuniversity.ac.id
Analysis Procedure
• Boolean Approach
A
B
F1
C T2=ABC
A T1=A+B+C
B T3=AB'C'+A'BC'+A'B'C
C
A
B F’2=(A’+B’)(A’+C’)(B’+C’)
A
F2
C
F2=AB+AC+BC
B F1=AB'C'+A'BC'+A'B'C+ABC
C
F2=AB+AC+BC
8
see.telkomuniversity.ac.id
Analysis Procedure
• Truth Table approach
A =0 0
B =0 0
F1 A B C F1 F2
C =0
0 0 0 0 0
A =0 0
B =0 0
C =0
1
A =0 0
B =0
A =0 0 0
F2
C =0
B =0 0
C =0
9
see.telkomuniversity.ac.id
Analysis Procedure
• Truth Table approach
A =0 0
B =0 1
F1 A B C F1 F2
C =1
0 0 0 0 0
A =0 1
B =0 1 0 0 1 1 0
C =1
1
A =0 0
B =0
A =0 0 0
F2
C =1
B =0 0
C =1
10
see.telkomuniversity.ac.id
Analysis Procedure
• Truth Table approach
A =0 0
B =1 1
F1 A B C F1 F2
C =0
0 0 0 0 0
A =0 1
B =1 1 0 0 1 1 0
C =0 0 1 0 1 0
1
A =0 0
B =1
A =0 0 0
F2
C =0
B =1 0
C =0
11
see.telkomuniversity.ac.id
Analysis Procedure
• Truth Table approach
A =0 0 0
B =1
F1 A B C F1 F2
C =1
0 0 0 0 0
A =0 1
B =1 0 0 0 1 1 0
C =1 0 1 0 1 0
0
A =0 0 0 1 1 0 1
B =1
A =0 0 1
F2
C =1
B =1 1
C =1
12
see.telkomuniversity.ac.id
Analysis Procedure
• Truth Table approach
A =1 0
B =0 1
F1 A B C F1 F2
C =0
0 0 0 0 0
A =1 1
B =0 1 0 0 1 1 0
C =0 0 1 0 1 0
1
A =1 0 0 1 1 0 1
B =0
1 0 0 1 0
A =1 0 0
F2
C =0
B =0 0
C =0
13
see.telkomuniversity.ac.id
Analysis Procedure
• Truth Table approach
A =1 0
B =0 0
F1 A B C F1 F2
C =1
0 0 0 0 0
A =1 1
B =0 0 0 0 1 1 0
C =1 0 1 0 1 0
0
A =1 0 0 1 1 0 1
B =0
1 0 0 1 0
A =1 1 1
C =1
F2 1 0 1 0 1
B =0 0
C =1
14
see.telkomuniversity.ac.id
Analysis Procedure
• Truth Table approach
A =1 0 0
B =1
F1 A B C F1 F2
C =0
0 0 0 0 0
A =1 1
B =1 0 0 0 1 1 0
C =0 0 1 0 1 0
0
A =1 1 0 1 1 0 1
B =1
1 0 0 1 0
A =1 0 1
C =0
F2 1 0 1 0 1
1 1 0 0 1
B =1 0
C =0
15
see.telkomuniversity.ac.id
Analysis Procedure
• Truth Table approach A B C F1 F2
A =1 0 0 0 0 0
1 1
B =1 0 0 1 1 0
F1
C =1
A =1
0 1 0 1 0
1 0
B =1 0 1 1 0 1
C =1 1 0 0 1 0
0
A =1 1
B =1
1 0 1 0 1
1 1 0 0 1
A =1 1 1
C =1
F2 1 1 1 1 1
B =1 1 F BC BC
C =1
00 01 11 10 00 01 11 10
A A
0 1 0 1 0 0 0 1 0
0
1 1 0 1 0 1 0 1 1 1
F1=AB'C'+A'BC'+A'B'C+ABC F2=AB+AC+BC
16
see.telkomuniversity.ac.id
Design Procedure
1. Determine input and output
2. Determine the function
3. Create Truth Table
4. Simplify (using Boolean Algebra or K-Map)
5. Determine the simple function
6. Create the logical circuit
17
see.telkomuniversity.ac.id
Half Adder
half adder (HA), add 2 bits A and B to create sum and
carry. Carry represent overflow of the addition
A B Carry Sum
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
Carry Sum A
Sum Carry Carry
B B B
A 0 1 A 0 1
0 0 0 0 0 1
Sum
1 0 1 1 1 0
Sum = A . B Carry = AB + AB 18
see.telkomuniversity.ac.id
Full Adder
Sum
A B Cin Sum Cout AB
Cin 00 01 11 10
0 0 0 0 0
0 0 1 0 1
0 0 1 1 0
1 1 0 1 0
0 1 0 1 0
0 1 1 0 1 Cout Sum = A B Cin
AB
1 0 0 1 0 Cin 00 01 11 10
1 0 1 0 1 0 0 0 1 0
1 1 0 0 1 1 0 1 1 1
1 1 1 1 1
Cout = AB + ACin + BCin
19
see.telkomuniversity.ac.id
Binary Adder
x3x2x1x0 y3y2y1y0
c3 c2 c1 .
+ x3 x2 x1 x0
+ y3 y2 y1 y0
Cy Binary Adder C0 ────────
Carry Cy => S3 S2 S1 S0
Propagate
S3S2S1S0 Addition
x3 x2 x1 x0
y3 y2 y1 y0
0
FA FA FA FA
C4 C3 C2 C1
S3 S2 S1 S0
see.telkomuniversity.ac.id
Multiplexer
21
see.telkomuniversity.ac.id
Multiplexer
22
see.telkomuniversity.ac.id
Demultiplexer
23
see.telkomuniversity.ac.id
Demultiplekser
24
see.telkomuniversity.ac.id
Decoder
• Decoder has input(s) and output(s)
• Is to transform a specific input code into a
specific output code
X Y
25
see.telkomuniversity.ac.id
Example: Binary Decoder (m to 2m)
26
see.telkomuniversity.ac.id
Encoder
• Encoder has input(s) and output(s)
• Is to transform a specific input code into a
specific output code
X Y
27
see.telkomuniversity.ac.id
Example: Binary Encoder (2n ke n)
28
see.telkomuniversity.ac.id
LED 7 Segment
see.telkomuniversity.ac.id
3 State Output
Has 3 possiblity output state
• HIGH Vout ~ 5 volt
• LOW Vout ~ 0 volt
• OPEN (high impedance) Vout = floating
A Y
• Input “select”
activates all
gates
32
see.telkomuniversity.ac.id
Bidirectional 3 State Buffer
• Input
“direction”
determines
either:
A → B or
B→A
33
see.telkomuniversity.ac.id
See You on Next Class
see.telkomuniversity.ac.id