eced2200 digital circuits
play

ECED2200 Digital Circuits Introduction, Gates, Number Systems - PowerPoint PPT Presentation

ECED2200 Digital Circuits Introduction, Gates, Number Systems 05/07/2012 Colin OFlynn - CC BY-SA 1 General Notes See updates to these slides: www.newae.com/teaching These slides licensed under Creative Commons


  1. ECED2200 – Digital Circuits Introduction, Gates, Number Systems 05/07/2012 Colin O’Flynn - CC BY-SA 1

  2. General Notes See updates to these slides: www.newae.com/teaching • These slides licensed under ‘Creative Commons Attribution-ShareAlike 3.0 • Unported License’ These slides are not the complete course – they are extended in-class • You will find the following references useful, see • www.newae.com/teaching for more information/links: The book “Bebop to the Boolean Boogie” which is available to Dalhousie Students – Course notes (covers almost everything we will discuss in class) – Various websites such as e.g.: www.play-hookey.com – The book “Contemporary Logic Design”, which was used in previous iterations of the – class and you may have already 05/07/2012 Colin O’Flynn - CC BY-SA 2

  3. INTRODUCTION, BINARY, AND GATES 05/07/2012 Colin O’Flynn - CC BY-SA 3

  4. Analog vs. Digital Analog (Infinite Values) time Digital (Discrete Values) time 05/07/2012 Colin O’Flynn - CC BY-SA 4

  5. Digital Systems 05/07/2012 Colin O’Flynn - CC BY-SA 5

  6. Binary Off False 0 Low On True 1 High 05/07/2012 Colin O’Flynn - CC BY-SA 6

  7. Binary – Waveforms in Time 1 0 1 0 1 1 05/07/2012 Colin O’Flynn - CC BY-SA 7

  8. GATES Input #1 Output Input #2 05/07/2012 Colin O’Flynn - CC BY-SA 8

  9. OR Gate – Truth Table Input #1 Input #2 Output 0 0 0 0 1 1 1 0 1 1 1 1 05/07/2012 Colin O’Flynn - CC BY-SA 9

  10. OR Gate 0 0 0 05/07/2012 Colin O’Flynn - CC BY-SA 10

  11. OR Gate 0 1 1 05/07/2012 Colin O’Flynn - CC BY-SA 11

  12. OR Gate 1 1 0 05/07/2012 Colin O’Flynn - CC BY-SA 12

  13. OR Gate 1 1 1 05/07/2012 Colin O’Flynn - CC BY-SA 13

  14. OR Gate Y=A+B A B Y 0 0 0 0 1 1 1 0 1 1 1 1 05/07/2012 Colin O’Flynn - CC BY-SA 14

  15. AND Gate • Y=A B A B Y 0 0 0 0 1 0 1 0 0 1 1 1 05/07/2012 Colin O’Flynn - CC BY-SA 15

  16. NOT Gate Y=A A Y 0 1 1 0 05/07/2012 Colin O’Flynn - CC BY-SA 16

  17. Example! AND IN1 IN2 OUT 0 0 0 0 1 0 Fill in this table: 1 0 0 OR 1 1 1 IN1 IN2 OUT A B Y 0 0 0 0 0 NOT 0 1 1 0 1 IN1 OUT 1 0 1 1 0 0 1 1 1 1 1 1 1 0 05/07/2012 Colin O’Flynn - CC BY-SA 17

  18. Example! What is the Boolean function of the above schematic? 05/07/2012 Colin O’Flynn - CC BY-SA 18

  19. Example! Y=A•B+A•B 05/07/2012 Colin O’Flynn - CC BY-SA 19

  20. Little Circles 05/07/2012 Colin O’Flynn - CC BY-SA 20

  21. Not AND = NAND Gate • Y=A B A B Y 0 0 1 0 1 1 1 0 1 1 1 0 05/07/2012 Colin O’Flynn - CC BY-SA 21

  22. Not OR = NOR Gate Y=A+B A B Y 0 0 1 0 1 0 1 0 0 1 1 0 05/07/2012 Colin O’Flynn - CC BY-SA 22

  23. Supergates All basic logic operations can be formed with NAND gates (or NOR gates). 05/07/2012 Colin O’Flynn - CC BY-SA 23

  24. Example! A B Y 0 0 0 0 1 1 1 0 1 1 1 1 A B Y 0 0 1 0 1 1 1 0 1 1 1 0 05/07/2012 Colin O’Flynn - CC BY-SA 24

  25. Example! A B Y 0 0 0 0 1 1 1 0 1 1 1 1 A B Y 0 0 1 0 1 1 1 0 1 1 1 0 If we inverted each of the A & B inputs to the NAND gate, note we get the same truth table as the OR gate! 05/07/2012 Colin O’Flynn - CC BY-SA 25

  26. Example! Y=A•B=A+B A B Y 0 0 0 0 1 1 1 0 1 1 1 1 05/07/2012 Colin O’Flynn - CC BY-SA 26

  27. Example! Y=A•B=A+B A B Y 0 0 0 0 1 1 1 0 1 1 1 1 05/07/2012 Colin O’Flynn - CC BY-SA 27

  28. Why Do you Care? 05/07/2012 Colin O’Flynn - CC BY-SA 28

  29. Example – AND Gate 05/07/2012 Colin O’Flynn - CC BY-SA 29

  30. Exclusive OR (X-OR) Gate ⊕ Y=A B A B Y 0 0 0 0 1 1 1 0 1 1 1 0 05/07/2012 Colin O’Flynn - CC BY-SA 30

  31. XOR Gate Implementation ⊕ A B=(A+B)•(A•B)=A•B+A•B 05/07/2012 Colin O’Flynn - CC BY-SA 31

  32. Exclusive NOR (X-NOR) Gate  Y=A B A B Y 0 0 1 0 1 0 1 0 0 1 1 1 05/07/2012 Colin O’Flynn - CC BY-SA 32

  33. Section Summary – 1/3 Gates have inputs & outputs. Inputs are binary (Boolean) variables with two possible values ‘1’ (True) or ‘0’ (False). The ‘Truth Table’ is a table showing every possible input & the resulting output. Different gates have different truth tables. 05/07/2012 Colin O’Flynn - CC BY-SA 33

  34. Section Summary – 2/3 The following are the basic gates: 05/07/2012 Colin O’Flynn - CC BY-SA 34

  35. Section Summary – 3/3 Based on the truth tables, one can make any of the gates with NAND (or NOR) gates. E.g. making an OR gate with NAND gates: Y=A•B=A+B A B Y 0 0 0 0 1 1 1 0 1 1 1 1 05/07/2012 Colin O’Flynn - CC BY-SA 35

  36. References / Reading • ECED2200 Notes, “Digital Circuits” section • Bebop to the Boolean Boogie, Chapter 5 • CLD, Chapter 1 05/07/2012 Colin O’Flynn - CC BY-SA 36

  37. PHYSICAL GATE IMPLEMENTATION 05/07/2012 Colin O’Flynn - CC BY-SA 37

  38. Switch Logic NOT Gate OR Gate AND Gate 05/07/2012 Colin O’Flynn - CC BY-SA 38

  39. Switch NOT 05/07/2012 Colin O’Flynn - CC BY-SA 39

  40. Switch NOT 05/07/2012 Colin O’Flynn - CC BY-SA 40

  41. Switch NOT 05/07/2012 Colin O’Flynn - CC BY-SA 41

  42. Field Effect Transistor Switch 05/07/2012 Colin O’Flynn - CC BY-SA 42

  43. FET Logic Gates – Inverter (NOT) 05/07/2012 Colin O’Flynn - CC BY-SA 43

  44. FET Logic Gates – Inverter (NOT) PMOS NMOS CMOS = Complementary MOS (e.g.: uses both positive & negative MOS) 05/07/2012 Colin O’Flynn - CC BY-SA 44

  45. FET Logic Gates - NAND Source: http://commons.wikimedia.org/wiki/File:NAND_gate_(CMOS_circuit).PNG 05/07/2012 Colin O’Flynn - CC BY-SA 45

  46. FET Logic Gates - NOR http://commons.wikimedia.org/wiki/File:NOR_gate_%28CMOS_circuit%29.PNG 05/07/2012 Colin O’Flynn - CC BY-SA 46

  47. Logic Families (Types) 1. Diode Logic (DL) 2. Resistor-Transistor Logic (RTL) 3. Diode-Transistor Logic (DTL) 4. Transistor-Transistor Logic (TTL) 5. Metal-Oxide Semiconductor (MOS) 6. Complementary MOS (CMOS) 7. Emitter-Coupled Logic (ECL) 8. BiCMOS 05/07/2012 Colin O’Flynn - CC BY-SA 47

  48. Characteristics of Logic Types • Fan-in • Fan-out • Speed • Noise Margin • Power • Size 05/07/2012 Colin O’Flynn - CC BY-SA 48

  49. Section Summary • Bebop to the Boolean Boogie Chapter 6 • ECED2200 Notes “Electric Switches + Logic Classifications” 05/07/2012 Colin O’Flynn - CC BY-SA 49

  50. NUMBER SYSTEMS 05/07/2012 Colin O’Flynn - CC BY-SA 50

  51. Binary to Decimal 1110 1011 1 1 1 0 1 0 1 1 128 + 64 + 32 + + 8 + + 2 + 1 = 235 Decimal 05/07/2012 Colin O’Flynn - CC BY-SA 51

  52. Let’s Do a Hand-out: INTRO-1 (Top) 05/07/2012 Colin O’Flynn - CC BY-SA 52

  53. Decimal to Binary 216 Decimal 216 – 128 = 88 (1 in 2 7 position) 88 – 64 = 24 (1 in 2 6 position) 24 – 32 < 0, so 0 in 2 5 position 24 – 16 = 8 (1 in 2 4 position) 8 – 8 = 0 (1 in 2 3 position) 0 in remaining positions 1 1 0 1 1 0 0 0 05/07/2012 Colin O’Flynn - CC BY-SA 53

  54. Let’s Do a Hand-out: INTRO-1 (Bottom) 05/07/2012 Colin O’Flynn - CC BY-SA 54

  55. Number Notation There are 10 kinds of people in the word – those that understand binary, and those that don’t. 05/07/2012 Colin O’Flynn - CC BY-SA 55

  56. Number Notation Ambiguity unacceptable - we are engineers not comics. 10 2 = 10 B = 2 10 (2 decimal) 10 10 = 10 D = 1010 2 (1010 binary) e.g.: Conversion: 472 10 = 111011000 05/07/2012 Colin O’Flynn - CC BY-SA 56

  57. How to Check your Conversions Windows Calculator (Windows 7 version shown) 05/07/2012 Colin O’Flynn - CC BY-SA 57

  58. How to Check your Conversions Stand Alone Calculator 05/07/2012 Colin O’Flynn - CC BY-SA 58

  59. Other Number Systems: Hex & Octal 05/07/2012 Colin O’Flynn - CC BY-SA 59

  60. Cheat Sheet Decimal Binary Hexadecimal (0x) Octal (0) 0 0000 0 0 1 0001 1 1 2 0010 2 2 3 0011 3 3 4 0100 4 4 5 0101 5 5 6 0110 6 6 7 0111 7 7 8 1000 8 10 9 1001 9 11 10 1010 A 12 11 1011 B 13 12 1100 C 14 13 1101 D 15 14 1110 E 16 15 1111 F 17 05/07/2012 Colin O’Flynn - CC BY-SA 60

  61. Advantages of Hex (and Octal) 1010 1000 1101 1111 1011 0010 2 This is only 24 bits – but long/hard to write… Equivalent to 11067314 10 Easier to write, but conversion is error-prone, plus we are normally lazy… 05/07/2012 Colin O’Flynn - CC BY-SA 61

  62. Advantages of Hex 1010 1000 1101 1111 1011 0010 2 A 8 D F B 2 = 0xA8DFB2 Much easier to write, easy to convert! 05/07/2012 Colin O’Flynn - CC BY-SA 62

  63. Advantages of Octal 101 010 001 101 111 110 110 010 2 5 2 1 5 7 6 6 2 = 052157662 in Octal Easy to write (longer than hex though), still easy to convert! 05/07/2012 Colin O’Flynn - CC BY-SA 63

  64. Binary Coded Decimal 05/07/2012 Colin O’Flynn - CC BY-SA 64

  65. Section Summary • Bebop to the Boolean Boogie: Chapter 7 • ECED2200 Notes: “Number Systems” 05/07/2012 Colin O’Flynn - CC BY-SA 65

Recommend


More recommend