0% found this document useful (0 votes)
45 views13 pages

DECODER

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 13

DECODER

LEARNING INTENTION

• Computers are made up of digital circuits and a logic gate is the


building blocks of these circuits.

• It is necessary to analyse the working of simple logic circuits, as


this fundamental knowledge will be useful in designing more
complex electronic circuits using the logic gates.
SUCCESS CRITERIA

At the end of this unit the student should be able to


• Analyze the working of simple logic circuits
• Design simple logic circuits like the Encoder, Decoder and
Multiplexer using the appropriate logic gates (either
Fundamental or derived)
LESSON OBJECTIVES

To be able to
• analyze Decoder circuits
• explain the working of Decoder circuits
• draw the block diagram and truth tables for designing decoder
circuits
• design Decoder circuits
• identify the applications of a Decoder circuit
WHAT IS A DECODER?

• The name “Decoder” means to translate or decode, coded


information from one format into another.
• A decoder is a circuit that can translate the state of the input binary
code into an output signal .
• The encoded data (which is in the digital form) is decoded for user
interface in most of the output devices like monitors, calculator
displays, printers, etc.
INPUT AND OUTPUT LINES IN A DECODER

• A binary decoder transforms “n” binary input signals into an


n
equivalent code using 2 outputs.
• In a decoder if there are 2 input lines, it can produce 4 distinct
outputs. Similarly, if there are 3 input lines, it can produce 8 distinct
outputs.
BLOCK DIAGRAM OF 2 TO 4 DECODER

• It has 2 inputs and 4 outputs.

2 to 4

Decoder
WORKING OF A 2 TO 4 DECODER

• When both inputs A and B are low (A= B= 0), the output D0 will be
active or High and all other outputs will be LOW.
• When A = 0 and B = 1, the output D1 will be active.
• When A = 1 and B = 0, then the output D2 will be active.
• When both the inputs are high, then the output D3 will be high.
TRUTH TABLE OF A 2X4 DECODER

A B D0 D1 D2 D3
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1

From the above truth table, we can obtain the Boolean expression for each output as:

D0 = A’.B’
D1 = A’.B
D2 = A.B’
D3 = A.B
ACTIVITY 1

• Identify the gates needed to create a 2x4 decoder and


draw the logic circuit diagram
• The logic circuit design of the 2x4 decoder is implemented
by using NOT and AND gates.
• Two NOT gates or inverters provide the complement of
the inputs
LOGIC CIRCUIT DIAGRAM OF 2X4 DECODER

A represents MSB and B represents LSB

If the input lines A and B have 0 and an output must be produced at


gate Y0, then they must be complemented by the NOT gates as the AND
gate gives an output only when both the signals are HIGH. Similarly,
when A is 0 and B is 1, an output must be produced at gate Y1. The
signal in A has to be inverted using an inverter, so that it results in 1
and B is not inverted as it already has 1.

Whenever there is a 0 in the input line, it is connected to the inverted


input and whenever there is a 1 in the input line, it is connected to the
uncomplemented input, so that the output signal is produced at the
correct gate.

Y0 = 00 : Y0 is connected to input lines that are connected to inverted


signals of A and B, that is A’ and B’
Y1 = 01 : Y1 is connected to input lines A’ (inverted signal) and B
Y2 = 10 : Y2 is connected to input lines A and B’ (inverted signal)
Y3 = 11 : Y3 is connected to input lines A and B
APPLICATIONS OF DECODER

Binary to Decimal Decoder


Decoders are used to get the decimal digit corresponding to a specific input combination.

Address Decoders
Decoders are widely used to decode the memory location in the computer memory
system.

Instruction Decoder
Another application of the decoder can be found in the control unit of the central
processing unit. This decoder is used to decode the program instructions in order to
activate the specific control lines such that different operations in the ALU of the CPU are
carried out.
ACTIVITY 2

• Draw the block diagram, truth table and the logic


circuit of 3x8 Decoder.

You might also like