0% found this document useful (0 votes)
4 views31 pages

Ch4 a

Chapter 4 of the Digital Logic Design course covers combinational logic circuits, including their analysis and design. Key topics include binary adders, subtractors, multipliers, comparators, encoders, decoders, and multiplexers. The chapter outlines procedures for circuit analysis and design, emphasizing truth tables and Boolean algebra for simplification.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views31 pages

Ch4 a

Chapter 4 of the Digital Logic Design course covers combinational logic circuits, including their analysis and design. Key topics include binary adders, subtractors, multipliers, comparators, encoders, decoders, and multiplexers. The chapter outlines procedures for circuit analysis and design, emphasizing truth tables and Boolean algebra for simplification.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 31

Digital Logic Design

EEE240
Dr. Sajid Sarwar

Chapter 4
Combinational Logic

1
Combinational Logic

 Outline
 Combinational Circuits
 Analysis
 Design
 Binary Adder/Subtractor
 Multiplier
 Comparator
 Encoder/Decoder
 Multiplexers/Demultiplexers

2
Combinational Circuits
[Section 4.2]
 Recall
 Single/multiple inputs  Single output
 Many realistic problems use multiple outputs
 Named as combinational circuits
 Combinational circuit
 Output depends only on input(s)

3
Combinational Circuits
 What happens if we add memory to the circuit?

 Becomes a feedback system


 Sequential Circuits

4
Combinational Circuit
Analysis [Section 4.3]
 Determine the function of circuit
 Instead of developing the circuit based on the function
 Circuit analysis
 Determine the output functions as algebraic expressions
 Determine the truth table of the outputs
 What is the output function of this circuit?

5
Combinational Circuit
Analysis
 Analysis steps
1. Label all gate outputs with symbols
2. Determine Boolean function at the output of each gate
3. Express functions in terms of input variables + simplify

6
Combinational Circuit
Analysis
 Substitution
T1 ( xy )
T2 ( xT1 )
T3 ( yT1 )
F (T2T3 ) (( xT1 )( yT1 ))
 xT1  yT1  x( xy )  y ( xy )
 x( x  y)  y ( x  y)
 xx  xy  xy  yy
 xy  xy  x  y
7
Combinational Circuit Analysis:
Example
 What are the outputs F1 and F2 of the following circuit?

 Here
 T2 = ABC
 T1 = A+B+C
 F2 = AB + AC + BC
 T3 = F2’ T1
 F1 = T 3 + T 2

8
Combinational Circuit Analysis:
Example
 Analysis by truth table

 T2 = ABC
 T1 = A+B+C
 F2 = AB + AC + BC
 T3 = F2’ T1
 F1 = T 3 + T 2

9
Combinational Circuit Design
 Design procedure
[Section 4.4]
1.
2.
Determine the number of inputs and outputs
Assign symbols
3. Derive the truth table
4. Obtain simplified functions for each output
5. Draw the logic diagram

 Truth tables: input and output columns


 Multiple methods to solve
 Boolean algebra, map methods, computer aided solution

 Issues to consider
 Number of gates
 Gate inputs
 Propagation delay
 Number of interconnections

10
Combinational Circuit Design:
Example
 Design a circuit that converts a BCD number to Excess-3
code

 Step 1: Inputs and Outputs


 Input: BCD digit
 4 inputs: A, B, C, D
 Output: Excess-3 digit
 4 outputs: w, x, y, z

 Step 2: Truth table

11
Friday, June 27, 2025 12
Combinational Circuit Design:
Example
 Step 3: Minimize output functions

13
Combinational Circuit Design:
Example
 Step 4: Simplification
 z = D’
 y = CD+C’D’
= CD+(C+D)’
 x = B’C+B’D+BC’D’
= B’(C+D)+BC’D’
= B’(C+D)+B(C+D)’
 w = A+BC+BD
= A+B(C+D)

 Step 5: Circuit Diagram

14
Binary Adder-Subtractor
[Section 4.5]
Addition is important function in computer system
Binary Adders
 What does an adder do?
 Add binary digits
 Generate carry if necessary
 Consider carry from previous computation

 Binary adders operate bit-wise


 A 16-bit adder uses 16 one-bit adders

 Binary adders come in two flavors


 Half adder adds two bits and generates result and carry
 Full adder considers carry input in addition to half adder
 Two half adders make one full adder

15
Binary Half Adder
 Specification
 Design a circuit that adds two bits and generates the sum and a carry

 Input/Output
 Two inputs: x, y
 Two outputs: S (sum), C (carry)

 Functionality

16
Binary Half Adder

17
Full Adder
 Half adder works only for a single bit
 When multiple bits are involved, carry bits should be considered
 Solution  Full adder

 Specifications
 A circuit that adds three bits and
generates a sum and a carry

 Input/output
 Three inputs: x, y, z
 Two outputs: S (Sum), C (Carry)

 Truth table

18
Full Adder
 Derive and minimize Boolean expressions

19
Full Adder
 Circuit

20
Full Adder from Half Adders
 How can two half adders make a full adder?

 Observations
 Three inputs x, y, z can be added in two steps
 x+y+z = (x+y) + z
 What about the carry?
 Carry can occur when adding x+y and when adding z

 Full adder: S = x  y  z , C = xy + (x  y)z

21
Full Adder

22
Full Adder from Half Adders

23
Binary n-bit Adder
 How can we build an n-bit adder from full adders?
 One adder for each bit (n total)
 Connect carry to next adder’s input
 Output: sequence of sums and a final carry
 4-bit adder circuit (Ripple Carry Adder)

24
Ripple Carry Adder

25
Ripple Carry Adder

26
Ripple Carry Adder

27
Ripple Carry Adder

28
Ripple Carry Adder

29
Ripple Carry Adder

30
Ripple Carry Adder

31

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy