CrashCourse · @crashcourse

Advanced CPU Designs: Crash Course Computer Science #9

Uploaded June 8, 2017 · Length 12:23

Advanced CPU Designs: Crash Course Computer Science #9

Summary

This video explains advanced CPU design techniques like instruction sets, caching, and pipelining that boost computer performance beyond just faster transistors.

  • advanced cpu design
  • cpu instruction sets
  • cpu cache memory
  • instruction pipelining
  • computer performance

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:02

    Hi, I’m Carrie Anne and welcome to CrashCourse Computer Science!

  2. 0:06

    As we’ve discussed throughout the series, computers have come a long way from mechanical

  3. 0:09

    devices capable of maybe one calculation per second, to CPUs running at kilohertz and megahertz speeds.

  4. 0:15

    The device you’re watching this video on right now is almost certainly running at Gigahertz

  5. 0:19

    speeds - that’s billions of instructions executed every second.

  6. 0:22

    Which, trust me, is a lot of computation!

  7. 0:24

    In the early days of electronic computing, processors were typically made faster by improving

  8. 0:28

    the switching time of the transistors inside the chip - the ones that make up all the logic

  9. 0:33

    gates, ALUs and other stuff we’ve talked about over the past few episodes.

  10. 0:36

    But just making transistors faster and more efficient only went so far, so processor designers

  11. 0:41

    have developed various techniques to boost performance allowing not only simple instructions

  12. 0:45

    to run fast, but also performing much more sophisticated operations.

  13. 0:49

    INTRO

  14. 0:58

    Last episode, we created a small program for our CPU that allowed us to divide two numbers.

  15. 1:03

    We did this by doing many subtractions in a row... so, for example, 16 divided by 4

  16. 1:08

    could be broken down into the smaller problem of 16 minus 4, minus 4, minus 4, minus 4.

  17. 1:13

    When we hit zero, or a negative number, we knew that we we’re done.

  18. 1:17

    But this approach gobbles up a lot of clock cycles, and isn’t particularly efficient.

  19. 1:20

    So most computer processors today have divide as one of the instructions that the ALU can

  20. 1:25

    perform in hardware.

  21. 1:26

    Of course, this extra circuitry makes the ALU bigger and more complicated to design,

  22. 1:30

    but also more capable - a complexity-for-speed tradeoff that has been made many times in

  23. 1:35

    computing history.

  24. 1:36

    For instance, modern computer processors now have special circuits for things like graphics

  25. 1:40

    operations, decoding compressed video, and encrypting files - all of which are operations

  26. 1:45

    that would take many many many clock cycles to perform with standard operations.

  27. 1:48

    You may have even heard of processors with MMX, 3DNow!, or SSE.

  28. 1:53

    These are processors with additional, fancy circuits that allow them to execute additional,

  29. 1:57

    fancy instructions - for things like gaming and encryption.