combcircuit.pptxcdscsdcfewfewfewfsaffsfcvxcv

zmulani8 1 views 28 slides Oct 16, 2025
Slide 1
Slide 1 of 28
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28

About This Presentation

sfsfsf


Slide Content

Combinational Circuits
Output at a specified time is a function of the inputs at that time.
Output depends purely upon PRESENT input, therefore it
doesn’t require memory to store past inputs.
The various circuits are
Multiplexer/ Demultiplexer
Decoder/ Encoder
Adder

Multiplexers
Multiplex means many into one.
An N-to-1 multiplexer receives information from N input
lines and transmits information to a single line.

Multiplexer
It is a combinational circuit that selects binary
information from one of the input lines and directs it to a
single output line
Usually there are 2
n
input lines and n selection lines
whose bit combinations determine which input line is
selected
For example for 2-to-1 multiplexer if selection S is zero
then I
0 has the path to output and if S is one I
1 has the
path to output (see the next slide)

2-to-1 multiplexer

Demultiplexers
Demultiplex means one into many.
A 1-to-N demultiplexer receives information from a single
line and transmits this information to one of N possible
output lines.

Demultiplexers (DeMux)
F
A
0
A
1
A
2
A
3
S
1S
0
4-to-14-to-1
MuxMux
A
D
0
D
1
D
2
D
3
S
1S
0
1-to-41-to-4
DeMuxDeMux

DeMux Operations
S1S0D3D2D1D0
00000A
0100A0
100A00
11A000
ASSD
ASSD
ASSD
ASSD
013
012
011
010




A
D
0
D
1
D
2
D
3
S
1S
0
1-to-41-to-4
DeMuxDeMux

DeMux Operations
S1S0D3D2D1D0
00000A
0100A0
100A00
11A000
ASSD
ASSD
ASSD
ASSD
013
012
011
010




D0
D1
D2
D3
A
S1
S0

Example: a 1-to-16 demultiplexer

Decoder
Is a combinational circuit that converts binary information from n
input lines to a maximum of 2
n
unique output lines For example if
the number of input is n=3 the number of output lines can be
m=2
3
. It is also known as 1 of 8 because one output line is
selected out of 8 available lines:

3 to 8
decoder
enable

Page 2.16
2-to-4 Line Decoder

Decoder with Enable Line
Decoders usually have an enable line,
If enable=0 , decoder is off. It means all output lines are zero
If enable=1, decoder is on and depending on input, the
corresponding output line is 1, all other lines are 0

Truth table for decoder
E a2 a1 a0 D7 D6 D5 D4 D3 D2 D1 D0
-----------------------------------------------------------
0 x x x 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 1
1 0 0 1 0 0 0 0 0 0 1 0
1
1 ……………………………………….
1 ……………………………………..
1
1
1 1 1 1 1 0 0 0 0 0 0 0

Encoder
Encoder is a digital circuit that performs the inverse
operation of a decoder
Generates a unique binary code from several input lines.
Generally encoders produce2-bit, 3-bit or 4-bit code. n bit
encoder has 2
n
input lines
2 bit encoder

2-bit encoder
If one of the four input lines is active encoder produces the
binary code corresponding to that line
If more than one of the input lines will be activated or all the
output is undefined. We can consider don’t care for these
situations but in general we can solve this problem by using
priority encoder.

2-bit Priority Encoder
A priority encoder is an encoder circuit that includes priority
function.
It means if two or more inputs are equal to 1 at the same
time, the input having higher subscript number, considered
as a higher priority. For example if D3 is 1 regardless of the
value of the other input lines the result of output is 3 which
is 11.

Adders
The function of the adder circuits is to perform binary
arithmetic.
A major component in the CPU.
All kinds of arithmetic employ adders.
Half adder and full adder.

Half Adder
It performs half of the one bit addition.
It adds two bits to give a sum and a carry.
It does not consider any carry input.
Therefore it called a half adder.

Half-Adder
A 2-input, 1-bit width
binary adder that
performs the following
computations:
A half adder adds two
bits to produce a two-
bit sum
The sum is expressed as
a sum bit , S
and carry bit, C
The half adder can be
specified
 as a truth table for S
and C 
X 0 0 1 1
+ Y + 0 + 1 + 0 + 1
C S 0 0 0 1 0 1 1 0

X Y C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0

Implementations: Half-Adder
The most common half

adder implementation is:
(e)

YXC
YXS


X
Y
C
S

Full Adder
The full adder circuit is able to complete the full addition
process.
There are three inputs, the in carry, C
i, and the two binary
digits, A and B.
Outputs are sum, S, and an out carry, C
o.

Full-Adder
A full adder is similar to a half adder, but includes a carry-in bit
from lower stages. Like the half-adder, it computes a sum bit, S
and a carry bit, C.
For a carry-in (Z) of 0, it
is the same as the half-
adder:
For a carry- in
(Z) of 1:
Z 0 0 0 0
X 0 0 1 1
+ Y+ 0+ 1+ 0+ 1
C S0 00 10 11 0
Z 1 1 1 1
X 0 0 1 1
+ Y+ 0+ 1+ 0+ 1
C S0 11 01 01 1

Full Adder (Cont’d)
We can build a full adder circuit with two half adders
and an OR gate.

Two Half Adders (and an OR)
C=XY+Z(XY+XY)
=XY+Z(XY)
Tags