Decoders and Encoders

Pre: Binary Logic and Circuits

Decoders

Symbol

Warning

is the LSD

2-4 Decoder

Truth Table

1 0 0 1 0 0 0
1 0 1 0 1 0 0
1 1 0 0 0 1 0
1 1 1 0 0 0 1
0 x x 0 0 0 0

Symbol

Implementation

So we have:

Designing Decoders with Smaller Decoders

Implementation

A 3 to 8 decoder using 2 to 4 decoders.

Implementation

A 4 to 16 decoder using 2 to 4 decoders.
4-to-16 Decoder.png

Making MUXes with Decoders

See Multiplexers

Implementation

Or with tri-state buffers:

Implementation

Encoders

Symbol

4-2 Encoder

Truth Table

0 0 0 1 0 0
0 0 1 0 0 1
0 1 0 0 1 0
1 0 0 0 1 1

Symbol

Implementation