Concept Flow - Decoder and encoder design
Input bits
Decoder: 2^n outputs
One output active
Input lines
Encoder: n outputs
Binary code output
A decoder takes n input bits and activates one of 2^n outputs. An encoder does the opposite: it takes one active input line and outputs the corresponding binary code.