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

DLLec7b Notes

This document discusses encoders and decoders, which are combinational logic circuits. Encoders convert information like decimal or octal digits into a coded output format like binary-coded decimal. Decoders perform the reverse operation of decoders by converting a coded input into a decoded output. Examples of different types of encoders are described, such as one-hot to binary encoders, octal-to-binary encoders, and priority encoders. Decoder examples include binary-to-decimal decoders and address decoders. The key functions of encoders and decoders are to convert between standard and coded representations of data.

Uploaded by

Chintan Mandal
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)
13 views

DLLec7b Notes

This document discusses encoders and decoders, which are combinational logic circuits. Encoders convert information like decimal or octal digits into a coded output format like binary-coded decimal. Decoders perform the reverse operation of decoders by converting a coded input into a decoded output. Examples of different types of encoders are described, such as one-hot to binary encoders, octal-to-binary encoders, and priority encoders. Decoder examples include binary-to-decimal decoders and address decoders. The key functions of encoders and decoders are to convert between standard and coded representations of data.

Uploaded by

Chintan Mandal
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/ 3

Lecture 7b

Digital Logic - Functions of Combinational Circuits


Decoders and Encoders
Chintan Kr Mandal

1 Encoders
• An encoder is a combinational logic circuit that accepts an active level on one of its inputs representing a digit, such
as a decimal or octal digit, and converts it to a coded output, such as BCD or binary.
• Encoders can also be devised to encode various symbols and alphabetic characters.
• The process of converting from familiar symbols or numbers to a coded format is called encoding.

Example: 2n − to − n binary encoder :


• A simple encoder circuit is a one-hot to binary converter.

• That is, if there are 2n input lines, and at most only one of them will be high, the binary code of this ’hot’ line is
produced on the n − bit output lines.

E.g. a 4-to-2 simple encoder takes 4 input bits and produces 2 output bits.

Example: Octal-to-Binary Encoder


Octal-to-Binary take 8 inputs and provides 3 outputs
I0 I1 I2 I3 I4 I5 I6 I7 Y2 Y1 Y0
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1

1
Priority Encoder
• If more then two inputs are active simultaneously, the output is unpredictable or rather it is not what we expect it to
be.
• This ambiguity is resolved if priority is established so that only one input is encoded, no matter how many inputs are
active at a given point of time.
The priority encoder includes a priority function.
• The operation of the priority encoder is such that if two or more inputs are active at the same time, the input having
the highest priority will take precedence.

• They are often used to control interrupt requests by acting on the highest priority request.

Example: 4-to-3 Priority Encoder


The truth table of a 4-input priority encoder is as shown below.

• The input D3 has the highest priority, D2 has next highest priority, D0 has the lowest priority.

• This means output Y2 and Y1 are 0 only when none of the inputs D1, D2, D3 are high and only D0 is high.

D3 D2 D1 D0 Y2 Y1 Y0
0 0 0 0 0 0 0
0 0 0 1 0 0 1
0 0 1 x 0 1 0
0 1 x x 0 1 1
1 x x x 1 0 0

* Design the circuit for the above truth table.

2 Decoders
• A decoder is a device which does the reverse operation of an encoder, undoing the encoding so that the original
information can be retrieved.
• The same method used to encode is usually just reversed in order to decode.

• In digital electronics, a decoder can take the form of a multiple-input, multiple-output logic circuit that converts coded
inputs into coded outputs, where the input and output codes are different.
E.g. n − to − 2n , binary-coded decimal decoders.
• Decoding is necessary in applications such as data multiplexing, 7 segment display and memory address decoding.

Example: A 2-to-4 line single bit decoder

2
Example: Address Decoder
• An address decoder is a decoder circuit that has two or more bits of an address bus as inputs and that has one or
more device selection lines as outputs.
• When the address for a particular device appears on the address bus, the address decoder asserts the selection line for
that device.
• A separate single-device address decoder may be incorporated into each device on an address bus, or a single address
decoder may serve multiple devices.

You might also like