Professional Documents
Culture Documents
Mahtab Ahmed
Lecturer
Dept. of CSE
KUET
1
Binary Parallel Adder
2
4-bit Parallel Adder
3
4-bit Adder-Subtractor
4
Carry propagation
5
Look ahead carry generator
6
7
Decimal Adder
8
9
Magnitude comparator
10
11
Decoder
• Discrete quantities of
information are represented in
digital systems by binary codes.
• A decoder is a combinational
circuit that converts binary
information from n input lines
to a maximum of unique
output lines.
12
Decoder
• For each possible input combination, there are seven outputs that are
equal to 0 and only one that is equal to 1.
• The output whose value is equal 1, represents the minterm
equivalent of the binary number currently available in the input lines.
13
BCD to Decimal Decoder
14
BCD to Decimal Decoder
15
BCD to Decimal Decoder
16
BCD to Decimal Decoder
17
Example 5-3
• Implement a full adder circuit with a decoder and 2 OR gates.
18
Multiplexer
• A multiplexer is a combinational circuit that selects binary information
from one of many input lines and directs it to a single output line.
• Normally. there are input lines and n selection lines whose bit
combinations determine which input is selected.
19
20
21
Boolean Function Implementation
• It is possible to implement Boolean function of n variables with a
multiplexer that has n - 1 selection inputs.
22
23
24
25
Demultiplexer
26
Demultiplexer
• A decoder with enable input can function as a Demultiplexer.
• It receives information from a single line and directs it to one of
possible output lines.
27
4x16 decoder using two 3x8 decoders
28
Encoder
• An encoder is a digital circuit that performs the inverse operation of a
decoder.
• It has (or fewer) input lines and n output lines.
29
Encoder
30
Priority Encoder
31
Priority Encoder
32
ROM
• A ROM is essentially a memory device in which permanent binary
information is stored.
• Once the pattern is established. it stays within the unit
even when power is turned off and on again.
• A block diagram of a ROM consisting of n inputs and m
outputs is shown in Fig.
• The inputs provide the address for memory and the outputs give the
data bits of the stored word that is selected by the address.
33
32x4 ROM
34
35
36
Example
37
38
Types of ROMs
• The required paths in a ROM may be programmed in 4 different ways.
42
43
44