0% found this document useful (0 votes)
16 views

Chapter4 4web

This document is a lecture on digital logic design focusing on combinational logic. It discusses the differences between combinational and sequential logic. Combinational logic only depends on current inputs, while sequential logic depends on current and past inputs. The lecture covers basic combinational circuits like adders, decoders, multiplexers, and comparators. It provides examples of designing half adders, full adders, decoders, and multiplexers. The document also discusses binary subtraction using two's complement and designing multipliers, comparators, and other circuits using logic gates.

Uploaded by

ahmad.nawaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Chapter4 4web

This document is a lecture on digital logic design focusing on combinational logic. It discusses the differences between combinational and sequential logic. Combinational logic only depends on current inputs, while sequential logic depends on current and past inputs. The lecture covers basic combinational circuits like adders, decoders, multiplexers, and comparators. It provides examples of designing half adders, full adders, decoders, and multiplexers. The document also discusses binary subtraction using two's complement and designing multipliers, comparators, and other circuits using logic gates.

Uploaded by

ahmad.nawaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 40

DIGITAL LOGIC DESIGN

by

Dr. Fenghui Yao

Tennessee State University


Department of Computer Science
Nashville, TN

Combinational Logic 1
Remember

. .
Inputs .
Network . Outputs
. .

 Combinational
 The outputs depend only on the current input
values
 It uses only logic gates
 Sequential
 The outputs depend on the current and past input
values
 It uses logic gates and storage elements
Combinational Logic 2
Notes
 If there are n input variables, there are
2^n input combinations
 For each input combination, there is
one output value
 Truth tables are used to list all
possible combinations of inputs and
corresponding output values

Combinational Logic 3
Basic Combinational
Circuits
 Adders
 Multipliers
 Multiplexers
 Decoders
 Encoders
 Comparators
 Subtractors

Combinational Logic 4
Design
 Determine the inputs and outputs
 Assign a symbol for each
 Derive the truth table
 Get the simplified boolean expression
for each output
 Draw the network diagram

Combinational Logic 5
Example
 Conversion from BCD to excess-5

Combinational Logic 6
Example (Cont.)

W  A  B  CD

Combinational Logic 7
Example (Cont.)
X  A  B' D' B' C ' BCD

Combinational Logic 8
Example (Cont.)

Find Y and Z
Draw the network diagram

Combinational Logic 9
Adders
 Essential part of every CPU
 Half adder (Ignore the carry-in bit)
 It performs the addition of two bits
 Full adder
 It performs the addition of three bits

Combinational Logic 10
Half-Adder

 You can use K-Map to simplify


 It is also obvious from the truth table

Combinational Logic 11
Full-Adder

Combinational Logic 12
Full-Adder

Si  Ai  Bi  Ci
HOW?????
Ci 1  Ai Bi ' Ci  Ai ' Bi Ci  Ai Bi
Combinational Logic 13
4-bit Adder Implementation
From course book

C0  0
Combinational Logic 14
Question
 How can you get 32-bit implementation?

Combinational Logic 15
Binary Subtractor
 Remember
 You need to take 2’s complement to represent
negative numbers
 A-B
 Take 2’s complement of B and add it to A
 First take 1’s complement and add 1

Combinational Logic 16
4-Bit Adder and Subtractor

M  0( Adder )
From course book M  1( Subtractor )
V (Overflow)
Combinational Logic 17
Binary Multiplier

From course book


Combinational Logic 18
Comparators
 Compare two input words

 Returns 1 if
A=B, 0
otherwise

Combinational Logic 19
From course book
Combinational Logic 20
Decoder
 n by 2^n decoder
 Converts information from n input lines into 2^n
output lines
 2x4 Decoder
 3x8 Decoder

Combinational Logic 21
2x4 Decoder

Combinational Logic 22
Internal Structure of 2x4
Decoder

Combinational Logic 23
Another View

Combinational Logic 24
From
course
book

Combinational Logic 25
Example

Combinational Logic 26
4x16 Decoder

From course book


Combinational Logic 27
Full Adder with Decoder

Si  Ai  Bi  Ci
Ci 1  Ai Bi ' Ci  Ai ' Bi Ci  Ai Bi
Combinational Logic 28
Multiplexers
 You can select information from one of
many input lines and assign it to one
output line
 You have input lines, control lines, and
one output line
 It is called MUX

Combinational Logic 29
2x1 Multiplexer

Combinational Logic 30
4x1 Multiplexer

Combinational Logic 31
Boolean Function
Implementation

How do you implement it with 8x1 MUX?


Combinational Logic 32
Example

Combinational Logic 33
Three-State Buffer

Combinational Logic 34
2x1 MUX with Three-State
Buffer

Combinational Logic 35
Shifters
 8-input, 8-output shifter
 C=1 => right shift, C=0 => left shift

Combinational Logic 36
Study Problem
 Course Book Chapter – 4 Problems
 4 – 31
 Construct a 16x1 multiplexer with two 8x1 and
one 2x1 multiplexer. Use block diagrams

Combinational Logic 37
Study Problem
 Course Book Chapter – 4 Problems
 4 – 34
An 8x1 multiplexer has inputs A, B, and C connected to
the selection inputs S2 , S1 , and S0 respectively.
The data inputs
I1  I 2  I 7  0;
I 3  I 5  1;
I 0  I 4  D;
I 6  D'
Determine the Boolean function that the multiplexer implements

Combinational Logic 38
Study Problems
 Course Book Chapter – 4 Problems
 4–1
 4–4
 4–6
 4 – 11
 4 – 20
 4 – 21
 4 – 25
 4 – 32
 4 – 33
 4 – 35

Combinational Logic 39
Questions

Combinational Logic 40

You might also like