digital logic and transistors
play

Digital Logic and Transistors The invention of the transistor made - PowerPoint PPT Presentation

Digital Logic and Transistors The invention of the transistor made binary logic the cheapest and most effective way to implement logic gates. Both inputs are on. At least one input is on. The input is off. What is an


  1. Digital Logic and Transistors The invention of the transistor made binary logic the cheapest and most effective way to implement logic gates. Both inputs are “on”. At least one input is “on”. The input is “off”.

  2. What is an “Instruction”? Let’s consider the simple operation of adding two numbers. add x, y, z 01010010010 Adder 11100100011 Why are numbers represented in binary? How would we add binary numbers?

  3. Adding on a CPU z y x Adder Every instruction in a CPU is composed of logic gates. With current technology, gates are about 200 nm - roughly 300 times smaller than the diameter of a human hair.

  4. Circuits and Boolean Logic What does an adding circuit look like? Let’s consider adding in binary: 1-bit numbers 2-bit numbers 0 + 0 = 0 0 00 + 00 = 00 How many possible sums 0 0 + 1 = 1 00 + 01 = 01 can two n -bit numbers 1 + 0 = 1 0 00 + 11 = 11 have? 1 + 1 = 0 1 01 + 00 = 01 input output ... How many entries? carry

  5. Circuits and Boolean Logic What does an adding circuit look like? Let’s consider adding in binary: c z 1-bit numbers x y 0 0 0 + 0 = 0 0 0 0 0 1 0 1 0 0 + 1 = 1 Adder 1 0 0 1 1 + 0 = 1 0 1 1 1 0 1 + 1 = 0 1 output input output input carry carry

  6. Circuits and Boolean Logic What does an adding circuit look like? Let’s consider adding in binary: c z 1-bit numbers x y 0 0 0 + 0 = 0 0 0 0 0 1 0 1 0 0 + 1 = 1 Adder 1 0 0 1 1 + 0 = 1 0 1 1 1 0 1 + 1 = 0 1 output input output input carry carry

  7. Circuits and Boolean Logic What does an adding circuit look like? Let’s consider adding in binary: c z 1-bit numbers x y 0 0 0 + 0 = 0 0 0 0 c = ? 0 1 0 1 0 0 + 1 = 1 z = 0 1 ? 1 0 1 + 0 = 1 0 1 0 1 1 1 + 1 = 0 1 output input output input carry carry Can we calculate z and c using logic gates?

  8. Circuits and Boolean Logic What does an adding circuit look like? Let’s consider adding in binary: c z 1-bit numbers x y x  y 0 0 0 + 0 = 0 0 0 0 c = 0 1 0 1 0 0 + 1 = 1 z = 0 1 ? 1 0 1 + 0 = 1 0 1 0 1 1 1 + 1 = 0 1 output input output input carry carry Can we calculate z and c using logic gates?

  9. Circuits and Boolean Logic What does an adding circuit look like? Let’s consider adding in binary: c z 1-bit numbers x y x  y 0 0 0 + 0 = 0 0 0 0 c = 0 1 0 1 0 0 + 1 = 1 x  y z = 0 1 1 0 1 + 0 = 1 0 = (x  y)   (x  y) 1 0 1 1 1 + 1 = 0 1 output input output input carry carry Can we calculate z and c using logic gates?

  10. Circuits and Boolean Logic What does an adding circuit look like? Let’s consider adding c = x  y in binary: z = (x  y)   (x  y) x 1-bit numbers y 0 + 0 = 0 0 0 0 + 1 = 1 z 1 + 0 = 1 0 1 + 1 = 0 1 input output c carry A one-bit adder needs 4 gates. How do we add numbers with more bits?

  11. Adder Logic We need to modify our 1-bit adder slightly to use it in series: c 0 x 01010010010 y 11100100011 z

  12. Adder Logic We need to modify our 1-bit adder slightly to use it in series: c 00 x 01010010010 y 11100100011 z 1

  13. Adder Logic We need to modify our 1-bit adder slightly to use it in series: c 100 x 01010010010 y 11100100011 z 01

  14. Adder Logic We need to modify our 1-bit adder slightly to use it in series: c 0100 x 01010010010 y 11100100011 z 101

  15. Adder Logic We need to modify our 1-bit adder slightly to use it in series: c 00100 x 01010010010 y 11100100011 z 0101

  16. Adder Logic We need to modify our 1-bit adder slightly to use it in series: c 000100 x 01010010010 y 11100100011 z 10101

  17. Adder Logic We need to modify our 1-bit adder slightly to use it in series: c 0000100 x 01010010010 y 11100100011 z 110101

  18. Adder Logic We need to modify our 1-bit adder slightly to use it in series: c 00000100 x 01010010010 y 11100100011 z 0110101

  19. Adder Logic We need to modify our 1-bit adder slightly to use it in series: c 000000100 x 01010010010 y 11100100011 z 10110101

  20. Adder Logic We need to modify our 1-bit adder slightly to use it in series: c 0000000100 x 01010010010 y 11100100011 z 110110101

  21. Adder Logic We need to modify our 1-bit adder slightly to use it in series: c 10000000100 x 01010010010 y 11100100011 z 0110110101

  22. Adder Logic We need to modify our 1-bit adder slightly to use it in series: z c c in c out x y 10000000100 x 01010010010 0 0 0 0 0 y 0 1 0 0 1 11100100011 1 0 0 0 1 z 100110110101 1 1 0 1 0 0 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1

  23. Adder Logic We need to modify our 1-bit adder slightly to use it in series: z c in c out x y x x 0 0 0 0 0 1-bit y Adder c out 0 1 0 0 1 c in 1 0 0 0 1 1 1 0 1 0 0 0 1 0 1 0 1 1 1 0 1 0 1 1 0 1 1 1 1 1 Note that computation time corresponds to circuit “depth”.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend