Digital Components

Logic Gates

Name Graph Formula
AND AND Graph F=ABF = A \cdot B
OR OR Graph F=A+BF = A + B
NOT NOT Graph F=AF = \overline{A}
NAND NAND Graph F=ABF = \overline{AB}
NOR NOR Graph F=A+BF = \overline{A + B}
XOR XOR Graph F=ABF = A \oplus B

Decoder

An n×2nn \times 2^n decoder has nn binary coded inputs and 2n2^n outputs.

Usually, if nn inputs are treated as binary code, which means that n=(cn1cn2c0)2n = (c_{n-1}c_{n-2}\dots c_0)_{2}, and the outputs are m0,m1,,mn1m_0, m_1, \dots, m_{n-1}, then we have:

mi=1i=(cn1cn2c0)2 m_i = 1 \Longleftrightarrow i = (c_{n-1}c_{n-2}\dots c_0)_{2}

3×83 \times 8 Decoder

This decoder combines AND and NOT gates together.

In addition, there are two enable controllers controlling whether to enable a gate.

3x8 decoder

Encoder

A 2n×n2^n \times n encoder has 2n2^n inputs and nn binary coded outputs.

The encoder and decoder perform opposite operations.

In addition, there are 2n2^n inputs in an encoder, but there is only one input can be turned on at one time to ensure the output is unique.

8×38 \times 3 Decoder

The encoder only has OR gate.

8x3 encoder

The v stands for valid, which is used to determine whether the input is valid. When all inputs are 0, then the output is invalid or do not care, which will be 00.

Multiplexer

A 2n×12^n \times 1 multiplexer has 2n2^n data inputs, nn control inputs, and one or two outputs.

The nn control inputs determine which inputs are valid, playing a function of selecting.

4×14 \times 1 MUX

The inner structure of a 4×14 \times 1 MUX is as following.

4x1 MUX

And it can be encapulated as:

4x1 MUX Encapulated

The selectors (or control inputs) can be treated as binary codes, and input di  ,  i[0,4)d_i \;,\; i \in [0, 4) is activated when i=(s1s0)2i = (s_1 s_0)_2.

4×14 \times 1 multiplexers can be combined to form other multiplexers like 8×18 \times 1 MUX:

8x1 MUX

Last updated on