0% found this document useful (0 votes)
7 views

Computer Hardware1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Computer Hardware1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

COMPUTER HARDWARE

ENCODER:- During computer operation, we may need to convert numbers from


one base to another. Hence, a logic circuit that converts a number from any base
to binary is known as encoder.

An encoder has 2n ( or less ) input lines and n output lines

2n >= N thus ( where N = number of input lines and n = number of output lines

• For Decimal to Binary encoder


24 > =10
10 ( input lines 0 – 9 ) and 4 ( output lines )
• For Octal to Binary encoder
23 > = 8
8 ( input lines 0 – 7 ) and 3 ( output lines )
• For Hexadecimal to Binary encoder
24 > = 16
16 ( input lines 0 – 15 ) and 4 ( output lines )

Octal to Binary Encoder

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

Decoder:- A decoder is a combinational circuit that converts binary information


from n coded inputs to a maximum of 2n unique outputs

The n x m decoder must fulfill a condition m < 2n

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

Truth table for 2 x 4 Decoder


A B

F0

F1

F2

F3

2x4

Decoder

You might also like