0% found this document useful (0 votes)
8 views57 pages

Combinational Circuit Design

The document outlines the steps for designing and simulating combinational circuits, including setting up truth tables, deriving algebraic expressions, optimizing them, and implementing logic circuits. It discusses various logic circuits such as half-adders, full-adders, decoders, encoders, multiplexers, and demultiplexers, along with their functionalities and implementations. Additionally, it highlights the importance of simulation and verification in the design process.

Uploaded by

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

Combinational Circuit Design

The document outlines the steps for designing and simulating combinational circuits, including setting up truth tables, deriving algebraic expressions, optimizing them, and implementing logic circuits. It discusses various logic circuits such as half-adders, full-adders, decoders, encoders, multiplexers, and demultiplexers, along with their functionalities and implementations. Additionally, it highlights the importance of simulation and verification in the design process.

Uploaded by

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

Combinational Circuit Design

and Simulation Using Gates

1
Design steps
• Set up a truth table which specifies the output(s) as a function of the input
variables – (problem analysis)
• Derive the algebraic expressions for the output functions – (Modeling)
• Simplify algebraic expressions functions using Karnaugh maps, the Quine-
McCluskey method, or a similar procedure. – (Optimization)
• Map the logic functions in the algebraic equation to logic gates and realize
the logic circuit –(Implementation)

2
Design steps
• Simulation and Verification
• Prototyping :- building the circuit –physical implementation
• Technology Mapping
• Circuit transformation

3
Implementation
• Minimum two-level AND-OR, NAND-NAND, OR-NAND, and NOR-OR
circuits can be realized using the minimum sum of products as a starting
point
• Minimum two-level OR-AND, NOR-NOR, AND-NOR, and NAND-AND
circuits can be realized using the minimum product of sums as a starting
point
• In practical logic design problems, the maximum number of inputs on each
gate (or the fan-in) is limited  multi-level realization
4
Implementation
• Propagation delay needs to be considered: the propagation delay for a 0 to 1
output change may be different than the delay for a 1 to 0 change

5
Simulation and Testing of Logic Circuits
• Logic circuits may be tested either by actually building them or by simulating
them on a computer

6
Basic Combinational Logic Circuits
• AND-OR Logic: X=AB +CD

7
Basic Combinational Logic Circuits
• AND-OR-Invert Logic

8
Basic Combinational Logic Circuits
• Exclusive-OR Logic

9
Basic Combinational Logic Circuits
• Exclusive-NOR Logic:

10
Implementing Combinational Logic
• From a Boolean Expression to a Logic Circuit

11
Implementing Combinational Logic
• From a Boolean Expression to a Logic Circuit

12
• From a Truth Table to a Logic Circuit

13
14
The NAND Gate as a Universal Logic Element

15
The NOR Gate as a Universal Logic Element

16
The Half-Adder
• The half-adder accepts two binary digits on its inputs and produces two binary
digits on its outputs—a sum bit and a carry bit

17
The Half-Adder

18
The Half-Adder
• NAND implementation methods • 𝑌 = 𝐴 𝐴. 𝐵 + 𝐵 𝐴. 𝐵
• Boolean equivalence:
• 𝑌 = 𝐴(𝐴. 𝐵) . 𝐵(𝐴. 𝐵)
• ҧ
𝑌 = 𝐴𝐵ത + 𝐴𝐵
• 𝑌 = 𝐴𝐵ത + 𝐴𝐵 ҧ +0+0
• 𝑌 = 𝐴𝐵ത + 𝐴𝐵ҧ + 𝐴𝐴ҧ + 𝐵𝐵

• 𝑌 = 𝐴 𝐴ҧ + 𝐵ത + 𝐵 𝐴ҧ + 𝐵ത
• 𝑌 = 𝐴 𝐴. 𝐵 + 𝐵 𝐴. 𝐵
19
The Half-Adder

20
The Full-Adder
• The full-adder accepts two input bits and an input carry and generates a sum
output and an output carry

𝐶𝑜𝑢𝑡 = 𝐴𝐵 + 𝐶(𝐴 + 𝐵)

21
The Full-Adder

22
The Full-Adder

23
The Full-Adder

24
The Full-Adder

25
2-bit parallel adder

26
Four-Bit Parallel Adders

27
Adder Expansion

28
Controlled Inverter

29
Adder–Subtractor

30
Comparators
• Equality: the exclusive-NOR gate can be used as a basic comparator

31
Comparators

32
Two-bit magnitude comparator

33
Decoders
• A decoder is a digital circuit that detects the presence of a specified
combination of bits (code) on its inputs
• An n input lines to handle n bits and from one to 2n output lines

34
The Basic Binary Decoder
• determine when a binary 1001 occurs

35
3-to-8 (1 of 8) line decoder

36
3-to-8 (1 of 8) line decoder

37
Cascading Decoder Circuits

38
Encoders
• The process of converting from familiar symbols or numbers to a coded
format is called encoding
• An encoder essentially performs a “reverse” decoder function

39
Decimal-to-BCD Encoder

40
Decimal-to-BCD Priority Encoder
• A priority encoder also offers additional flexibility
• the encoder will produce a BCD output corresponding to the highest-order
decimal digit input that is active and will ignore any other lower-order active
inputs

41
An Application
• Numeric keypad

42
Multiplexers (Data Selectors)
• A multiplexer (MUX) is a device that allows digital information from
several sources to be routed onto a single line for transmission over that line
to a common destination
• The basic multiplexer has:
• several data-input lines
• a single output line.
• data-select inputs
43
2-to-1 MUX

44
A 4-to-1 multiplexer

45
A 8-to-1 multiplexer

Commercially available as 74150


with active low output
Check the datasheets
46
Implementing Boolean Functions with
Multiplexers

47
Half Adder Using 2:1 Multiplexers
A B Co S A 0

2:1
0 0 0 0 B 1
0
0 1 0 1

2:1
S
0 1
1 0 0 1
B 1
1 1 1 0 Co

2:1
A 0

48
Nibble multiplexer

Commercially available
as 74157
Check the datasheets 49
Demultiplexers
• A demultiplexer is a combinational logic circuit with an input line, 2n output
lines and n select lines
• It routes the information present on the input line to any of the output lines

50
1-to-4 lines Demultiplexer

51
1-to-8 lines Demultiplexer

52
Seven-segment display decoder

53
Seven-segment display decoder

A =0, 1, 2, 5, 7, 8, 9
B = 0, 1, 2, 4, 7, 8, 9
.
.
.
54
Binary-to-Gray and Gray-to-Binary Convertor

55
Majority function
• The majority function M(x, y, z) is equal to 1 when two or three of its
arguments equal 1.

56
Minority function
• The minority function m(x, y, z) is equal to 1 when two or three of its arguments
equal 0.

57

You might also like