Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Decoders

Extract “Information” from the code Only one


lamp will
Binary Decoder turn on
● Example: 2-bit Binary Number

0 1
x1 0
Binary
x0 0 Decoder 0
0

0 / 65
Decoders

2-to-4 Line Decoder


Y3

y3 Y2

Decoder
I1 Binary
y2
y1 Y1
I0 y0
Y0

I1 I0 Y3 Y2 Y1 Y0
I1
0 0 0 0 0 1 I0
0 1 0 0 1 0
Y3 = I1 I 0 Y2 = I1 I 0
1 0 0 1 0 0
1 1 1 0 0 0 Y1 = I1 I 0 Y0 = I1 I 0
1 / 65
Decoders

3-to-8 Line Decoder Y7 = I 2 I1 I 0

Y6 = I 2 I1 I 0
Y7 Y5 = I 2 I1 I 0
Y6
Y5 Y4 = I 2 I1 I 0
Decoder
Binary

I2 Y4 Y3 = I 2 I1 I 0
I1 Y3
I0 Y2 Y2 = I 2 I1 I 0
Y1 Y1 = I 2 I1 I 0
Y0
Y0 = I 2 I1 I 0

I2
I1
I0
2 / 65
3 / 65
Decoders

“Enable” Control Y3

Y3

Decoder
I1 Y2
Binary Y2
I0 Y1
E Y1
Y0
Y0
E I1 I 0 Y3 Y2 Y1 Y0
0 x x 0 0 0 0
I1
1 0 0 0 0 0 1 I0
E
1 0 1 0 0 1 0
1 1 0 0 1 0 0
1 1 1 1 0 0 0
4 / 65
Y3
module dec2_4 (I0,I1,e,y0,y1,y2,y3)
Y2 input I0, I1, e;
output y0,y1,y2,y3;
Y1 assign y0= (~I0) & (~I1) & e;
assign y1= (~I0) & I1 & e;
Y0
assign y2= I0 & (~ I1) & e;
assign y3= I0 & I1 & e;
I1 end module
I0
E

5 / 65

You might also like