Computer Hardware1
Computer Hardware1
2n >= N thus ( where N = number of input lines and n = number of output lines
Truth Table
Binary Number
Octal Number
F2 F1 F0
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
Logic diagram for Octal to Binary Encoder
F2 F1 F0
Octal to
Binary
Encoder
Block Diagram
Decimal to Binary Encoder
Truth Table
Binary Number
Decimal Number
F3 F2 F1 F0
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
Block Diagram
Decimal
to
Binary
Encoder
Logic Diagram
n x 2n decoder
Types of decoders:
• 2 x 4 decoder ( 2 x 22 )
• 3 x 8 decoder ( 3 x 23 )
• 4 x 16 decoder ( 4 x 24 )
• 2 x 4 decoder ( 2 x 22 )
Inputs
A B F3 F2 F1 F0
0 0 0 0 0 1
0 1 0 0 1 0
1 0 0 1 0 0
1 1 1 0 0 0
F0
F1
F2
F3
2x4
Decoder