Decoders and multiplexers are important combinational circuits in many logic designs. Decoders convert inputs to a maximum of unique outputs. A special case is the BCD-to-seven-segment decoder, where a four-bit decimal digit (represented in BCD) is decoded into the corresponding seven segment code used as an input to the seven-segment display (Figure 1).