CrashCourse · @crashcourse
Advanced CPU Designs: Crash Course Computer Science #9
Uploaded June 8, 2017 · Length 12:23
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.
- 0:02
Hi, I’m Carrie Anne and welcome to CrashCourse Computer Science!
- 0:06
As we’ve discussed throughout the series, computers have come a long way from mechanical
- 0:09
devices capable of maybe one calculation per second, to CPUs running at kilohertz and megahertz speeds.
- 0:15
The device you’re watching this video on right now is almost certainly running at Gigahertz
- 0:19
speeds - that’s billions of instructions executed every second.
- 0:22
Which, trust me, is a lot of computation!
- 0:24
In the early days of electronic computing, processors were typically made faster by improving
- 0:28
the switching time of the transistors inside the chip - the ones that make up all the logic
- 0:33
gates, ALUs and other stuff we’ve talked about over the past few episodes.
- 0:36
But just making transistors faster and more efficient only went so far, so processor designers
- 0:41
have developed various techniques to boost performance allowing not only simple instructions
- 0:45
to run fast, but also performing much more sophisticated operations.
- 0:49
INTRO
- 0:58
Last episode, we created a small program for our CPU that allowed us to divide two numbers.
- 1:03
We did this by doing many subtractions in a row... so, for example, 16 divided by 4
- 1:08
could be broken down into the smaller problem of 16 minus 4, minus 4, minus 4, minus 4.
- 1:13
When we hit zero, or a negative number, we knew that we we’re done.
- 1:17
But this approach gobbles up a lot of clock cycles, and isn’t particularly efficient.
- 1:20
So most computer processors today have divide as one of the instructions that the ALU can
- 1:25
perform in hardware.
- 1:26
Of course, this extra circuitry makes the ALU bigger and more complicated to design,
- 1:30
but also more capable - a complexity-for-speed tradeoff that has been made many times in
- 1:35
computing history.
- 1:36
For instance, modern computer processors now have special circuits for things like graphics
- 1:40
operations, decoding compressed video, and encrypting files - all of which are operations
- 1:45
that would take many many many clock cycles to perform with standard operations.
- 1:48
You may have even heard of processors with MMX, 3DNow!, or SSE.
- 1:53
These are processors with additional, fancy circuits that allow them to execute additional,
- 1:57
fancy instructions - for things like gaming and encryption.


