encoder

11
WELCOME TO OUR PRESENTATION

Upload: mahmudul-hasan

Post on 16-Jul-2015

185 views

Category:

Engineering


3 download

TRANSCRIPT

Page 1: Encoder

WELCOME TO OUR

PRESENTATION

Page 2: Encoder

OUR PRESENTATION

ON ENCODER

Page 3: Encoder

Presented by:

• Mahmudul hasan

ID : 133-15-2999

• Jannatul Nayeem

ID : 133-15-3016

• Shahadat Hossain

ID:133-15-3031

Page 4: Encoder

The encoder is a combinational circuit that performs the reverse operation of the decoder. The encoder has a maximum of 2n inputs and n outputs.

The simplest encoder is a 2n-to-n binary encoder

One of 2n inputs = 1

Output is an n-bit binary number

.

.

.

.

.

.

2n

inputs

n

outputs

Binary

encoder

What is Encoder?

Page 5: Encoder

Encoders vs. Decoders

Decoder Encoder

Binary decoders/encoders

n-to- 2n

Input code : Binary Code

Output code :1-out-of- 2n.

2n -to-n encoder

Input code : 1-out-of- 2n.

Output code : Binary Code

Page 6: Encoder

• 2n-to-n encoder : 2n inputs and n outputs.

• Input code : 1-out-of-2n.

• Output code : Binary Code

• Example : n=3, 8-to-3 encoder

Inputs Outputs

•I0 I1 I2 I3 I4 I5 I6 I7 Y2 Y1 Y0 1 0 0 0 0 0 0 0 0 0 00 1 0 0 0 0 0 0 0 0 10 0 1 0 0 0 0 0 0 1 00 0 0 1 0 0 0 0 0 1 10 0 0 0 1 0 0 0 1 0 00 0 0 0 0 1 0 0 1 0 10 0 0 0 0 0 1 0 1 1 00 0 0 0 0 0 0 1 1 1 1

I1

I2

I3 Y1

Y2I4

I5

I6

I0

Y0

I7

Binary encoder

Binary Encoder

Page 7: Encoder

• 2n -to-n encoder : 2n inputs and n outputs.

• Input code : 1-out-of-2n.

• Output code : Binary Code

• Example : n=3, 8-to-3 encoder

•Inputs Outputs

•I0 I1 I2 I3 I4 I5 I6 I7 Y2 Y1 Y0 1 0 0 0 0 0 0 0 0 0 00 1 0 0 0 0 0 0 0 0 10 0 1 0 0 0 0 0 0 1 00 0 0 1 0 0 0 0 0 1 10 0 0 0 1 0 0 0 1 0 00 0 0 0 0 1 0 0 1 0 10 0 0 0 0 0 1 0 1 1 00 0 0 0 0 0 0 1 1 1 1

I1

I2

I3 Y1

Y2I4

I5

I6

I0

Y0

I7

Binary encoder

8-to-3 encoder Implementation

Page 8: Encoder
Page 9: Encoder

• Simplified implementation:- From the truth table

Y0 = I1 + I3 + I5 + I7Y1 = I2 + I3 + I6 + I7Y2 = I4 + I5 + I6 + I7

• Limitations :- I0 has no effect on the output- Only one input can be activate

• Application:Handling multiple devices requests But, no simultaneous requests

I1

I2

I3

I4

I5

I6

I0

I7

Y1

Y0

Y2

8-to-3 encoder Implementation

Page 10: Encoder
Page 11: Encoder