Digital Components
Logic Gates
| Name | Graph | Formula |
|---|---|---|
AND |
||
OR |
||
NOT |
||
NAND |
||
NOR |
||
XOR |
Decoder
An decoder has binary coded inputs and outputs.
Usually, if inputs are treated as binary code, which means that , and the outputs are , then we have:
Decoder
This decoder combines AND and NOT gates together.
In addition, there are two enable controllers controlling whether to enable a gate.
Encoder
A encoder has inputs and binary coded outputs.
The encoder and decoder perform opposite operations.
In addition, there are inputs in an encoder, but there is only one input can be turned on at one time to ensure the output is unique.
Decoder
The encoder only has OR gate.
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 .
Multiplexer
A multiplexer has data inputs, control inputs, and one or two outputs.
The control inputs determine which inputs are valid, playing a function of selecting.
MUX
The inner structure of a MUX is as following.
And it can be encapulated as:
The selectors (or control inputs) can be treated as binary codes, and input is activated when .
multiplexers can be combined to form other multiplexers like MUX: