You are on page 1of 9

B Srinidhi EC20B1042

6.1 Binary to Gray code converter

G[3] = bin[3]
G[2] = bin[3] ^ bin[2]
G[1] = bin[2] ^ bin[1]
G[0] = bin[1] ^ bin[0]

Page 2 of 9
B Srinidhi EC20B1042

6.2 Gray to Binary code converter

bin[3] = G[3]
bin[2] = G[3] ^ G[2]
bin[1] = G[3] ^ G[2] ^ G[1]
bin[0] = G[3] ^ G[2] ^ G[1] ^ G[0]

Page 3 of 9
B Srinidhi EC20B1042

6.3.BCD to EXCESS-3 Code converter

E0=B0'
E1=B1B0+B1'B0'
E2=B2'B1+B2'B0+B2B1'B0'
E3=B3+B2B1+B2B0

Page 4 of 9
B Srinidhi EC20B1042

6.4 EXCESS-3 to BCD Code converter

B1=E1'E0+E1E0'
B2=E2'E1'+E2'E0'+E2E1E0
B3=E3E2+E3E1E0

Page 5 of 9
B Srinidhi EC20B1042

6.5 Magnitude Comparator

Page 6 of 9
B Srinidhi EC20B1042

6.1 6.2 6.3

Page 7 of 9
B Srinidhi EC20B1042

6.4 6.5

Page 8 of 9
B Srinidhi EC20B1042

Result:
All Code converters and magnitude comparators have been
implemented using logic gates using Multisim and verified them
using truth tables.

Page 9 of 9

You might also like