gray code 1

58
1 8-Bit Gray Code Converter By Martin Serena, Dang Ly, Khoa Ly

Upload: aakash-sharan

Post on 23-Oct-2014

122 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Gray Code 1

1

8-Bit Gray Code Converter

By

Martin Serena, Dang Ly, Khoa Ly

Page 2: Gray Code 1

2

Overview• Gray Code Background• Delegated Duties• Method of Design• Target Specifications• Simulation Results• Block Diagram• Schematics, Symbols, Layouts, and Simulations• Design References• Conclusion

Page 3: Gray Code 1

3

Gray Code Background

• Conversion works in both directions

• Binary Gray , Gray Binary

• One bit changes from number to number

• Not arithmetic

• Not weighted (e.g. 222120)

• Limits the amount of error that can occur when several bits change between numbers

• No limit to number of converted bits

Page 4: Gray Code 1

4

Binary to Gray Code Conversion

• MSB does not change as a result of conversion• Start with MSB of binary number and add it to

neighboring binary bit to get the next Gray code bit

• Repeat for subsequent Gray coded bits

1 + 1 0 0+ +

1 00 1

(BC)

(GC)

Page 5: Gray Code 1

5

Gray to Binary Code Conversion

• MSB does not change as a result of conversion• Start with MSB of binary number and add it to the

second MSB of the Gray code to get the next binary bit

• Repeat for subsequent binary coded bits

1 0 1 0

+

1 01 0

(GC)

(BC)

++

Page 6: Gray Code 1

6

Delegated Duties

• Martin – Binary to Gray Conversion, Gray to Binary Conversion

(XOR gates)• Dang – Binary/Gray Output Selection

(MUXs) • Khoa – Binary Code Counter, Parallel-to-Parallel Shift Register

(D flip-flops)

Page 7: Gray Code 1

7

Method of Design• Decided on an initial load capacitance (Cin)• Partitioned the circuit into different propagation

delay times according to gate/device requirements, and divided propagation delay times amongst the individual gates and devices

• Created the symbol and layout for out each type of gate (XOR, MUX, NAND)

• Connected gate symbols to create device symbols• Connected gate layouts to create device layouts• Connected device symbols to create circuit

schematics, and connected device layouts to create circuit layouts

Page 8: Gray Code 1

8

Target Specifications• Conversion:

– Binary Code to Gray Code– Gray Code to Binary Code

• Propagation delay times:– XOR (each): 0.4 nS– MUX (each): 0.3 nS– D flip-flop (each): 0.63 nS (worst-case fall time)

• Technology specs (size):– Minimum Channel Width = 1.5 m– Minimum Channel Length = 0.6 m

• Power < ¼ Watt• Clock Speed = 200 MHz• Total area as small as possible

Page 9: Gray Code 1

9

Simulation Results

• Successfully converts binary and Gray codes• Propagation Delay

– XOR (each): 0.338 nS (worst-case)

– MUX (each): 0.35 nS (worst-case)

– D flip-flop (each): 1.14 nS (worst-case fall time)

• Technology specs (size)– Transistor Lengths: 0.6 m

– XOR: Wp = 3.9 m Wn = 3.75 m

– MUX: Wp = 6 m Wn = 3 m

– D Flip-Flop: Wp = 18 m Wn = 10 m

Page 10: Gray Code 1

10

Simulation Results

• Power (using the power meter)– 39.94 mW

• Clock Speed– 200 MHz

• Total Area– Gray code converter: 6.03E-4 cm2

– Counter: 10.2E-4 cm2

Page 11: Gray Code 1

11

Block Diagram

Page 12: Gray Code 1

12

XOR Schematic

Page 13: Gray Code 1

13

XOR Symbol

Page 14: Gray Code 1

14

XOR Layout

Page 15: Gray Code 1

15

XOR Extracted

Page 16: Gray Code 1

16

XOR LVS Report

Page 17: Gray Code 1

17

XOR Test Bench

Page 18: Gray Code 1

18

XOR Transient Analysis

Page 19: Gray Code 1

19

XOR Threshold

Page 20: Gray Code 1

20

MUX Schematic

Page 21: Gray Code 1

21

MUX Symbol

Page 22: Gray Code 1

22

MUX Layout

Page 23: Gray Code 1

23

MUX Extracted

Page 24: Gray Code 1

24

MUX LVS Report

Page 25: Gray Code 1

25

MUX Test Bench

Page 26: Gray Code 1

26

MUX Transient Analysis

Page 27: Gray Code 1

27

MUX Transient Analysis

Page 28: Gray Code 1

28

NAND3 Schematic

Page 29: Gray Code 1

29

NAND3 Symbol

Page 30: Gray Code 1

30

NAND3 Layout

Page 31: Gray Code 1

31

NAND3 Extracted

Page 32: Gray Code 1

32

NAND3 LVS Report

Page 33: Gray Code 1

33

NAND3 Test Bench

Page 34: Gray Code 1

34

NAND3 Transient Analysis

Page 35: Gray Code 1

35

D Flip-Flop Schematic

Page 36: Gray Code 1

36

D Flip-Flop Symbol

Page 37: Gray Code 1

37

D Flip-Flop Layout

Page 38: Gray Code 1

38

D Flip-Flop Extracted

Page 39: Gray Code 1

39

D Flip-Flop LVS Report

Page 40: Gray Code 1

40

D Flip-Flop Test Bench

Page 41: Gray Code 1

41

D Flip-Flop Transient Analysis

Page 42: Gray Code 1

42

Counter Schematic

Page 43: Gray Code 1

43

Counter Symbol

Page 44: Gray Code 1

44

Counter Layout

Page 45: Gray Code 1

45

Counter Extracted

Page 46: Gray Code 1

46

Counter LVS Report

Page 47: Gray Code 1

47

Counter Transient Analysis

Page 48: Gray Code 1

48

Gray Code Converter Schematic

Page 49: Gray Code 1

49

Gray Code Converter Symbol

Page 50: Gray Code 1

50

Gray Code Converter Layout

Page 51: Gray Code 1

51

Gray Code Converter Extracted

Page 52: Gray Code 1

52

Gray Code Converter LVS Report

Page 53: Gray Code 1

53

Gray Code Converter Test Circuit

Page 54: Gray Code 1

54

Gray Coded Transient Analysis

Page 55: Gray Code 1

55

Binary Coded Transient Analysis

Page 56: Gray Code 1

56

Power

Page 57: Gray Code 1

57

Design References

• CMOS Integrated Circuits– By Kang

• Digital Fundamentals– Thomas Floyd

Page 58: Gray Code 1

58

Conclusion

• We designed and simulated a Gray code converter that converts binary coded numbers to Gray coded numbers and vice versa

• The nmos and pmos transistor widths were greater than 1.5 m

• The power specifications were well below ¼ Watt and a code conversion took place within 5 nS

• Our target specifications were met