What common function does the following truth table represent?
— ADVERTISMENT—
—Advertise Here—
A B C X Y Z
0 0 0 → 0 0 0
0 0 1 → 0 0 1
0 1 0 → 0 1 0
0 1 1 → 0 0 1
1 0 0 → 1 0 0
1 0 1 → 0 0 1
1 1 0 → 0 1 0
1 1 1 → 0 0 1
The truth table implements a form of priority encoder:
- Z is set if C is set, otherwise
- Y is set if B is set, otherwise
- X is set if A is set
— ADVERTISMENT—
—Advertise Here—
In other words, C has the highest priority and A has the lowest. However, unlike conventional priority encoders that produce a binary output, this one produces a “one hot” encoding.
The logic is quite straightforward:
- Z = C
- Y = B & !C
- X = A & !B & !C