How a CPU Works

Learn how the most important component in your device works, right here!
Author's Website: www.buthowdoitknow.com/ See the Book: amzn.to/1mOYJvA
(As of 2024-01-15, all videos on this channel are under the CC0 license (very similar to Public Domain). Feel free to download and repost without compensation, attribution, or notice.)
creativecommons.org/public-do...
See scripts for future videos here: github.com/In-One-Lesson/Vide...
See the 6502 CPU Simulation: visual6502.org/JSSim/index.html
Download the PowerPoint file used to make the video: docs.google.com/presentation/...
The CPU design used in the video is copyrighted by John Scott, author of the book But How Do It Know?.
There are a few small differences between the CPU in the video and the one used in the book. Those differences are listed below but they should not detract from your understanding of either.
CONTROL UNIT - This component is called the Control Section in the book. It is called Control Unit here simply because that is a more common name for it that you might see used elsewhere.
LOAD INSTRUCTION - In this video, what's called a LOAD instruction is actually called a DATA instruction in the book. The Scott CPU uses two different instructions to move data from RAM into the CPU. One loads the very next piece of data (called a DATA instruction in the book) and the other uses another register to tell it which address to pull that data from (called a LOAD instruction in the book). The instruction was renamed in the video for two reasons: 1) It might be confusing to hear that the first type of data we encounter in RAM is itself also called DATA. 2) Since the LOAD instruction from the book is a more complex concept, it was easier to use the DATA instruction in the video to introduce the concept of moving data from RAM to the CPU .
IN and OUT INSTRUCTIONS - In the Scott CPU, there is more involved in moving data between the CPU and external devices than just an IN or an OUT instruction. That process was simplified in the video to make the introduction of the concept easier.
ACCUMULATOR - The register that holds the output of the ALU is called the Accumulator in the book. That is the name typically used for this register, although it was simply called a register in the video.
MEMORY ADDRESS REGISTER - The Memory Address Register is a part of RAM in the book, but it is a part of the CPU in the video. It was placed in the CPU in the video as this is generally where this register resides in real CPUs.
JUMP INSTRUCTIONS - In the book there are two types of unconditional JUMP instructions. One jumps to the address stored at the next address in RAM (this is the one used in the video) and the other jumps to an address that has already been stored in a register. These are called JMP and JMPR instructions in the book respectively.
MISSING COMPONENT - There is an additional component missing from the CPU in the video that is used to add 1 to the number stored in a register. This component is called "bus 1" in the book and it simply overrides the temporary register and sends the number 1 to the ALU as input B instead.
REVERSED COMPONENTS - The Instruction Register and the Instruction Address Register are in opposite positions in the diagrams used in the book. They are reversed in the video because the internal wiring of the control unit will be introduced in a subsequent video and keeping these registers in their original positions made that design process more difficult.
OP CODE WIRING - The wires used by the control unit to tell the ALU what type of operation to perform appear near the bottom of the ALU in the video, but near the top of the ALU in the book. They were reversed for a similar reason as the one listed above. The wiring of the ALU will be introduced in a subsequent video and keeping these wires at the top of the ALU made the design process more difficult.

Пікірлер: 5 200

  • @yenchey3270
    @yenchey32708 жыл бұрын

    Thanks! I still don't understand it, but now I know what exactly I don't understand

  • @corklleen2505

    @corklleen2505

    8 жыл бұрын

    +Yenchey lol.. at least you know somethin xD

  • @yenchey3270

    @yenchey3270

    8 жыл бұрын

    Scorpio X no... I just wanted to know how CPU works xD but I also play Minecraft sometimes ;) and I'm not really into redstone... My biggest creation was an "escape" map with maybe 5 chambers with redstone circuts...

  • @zues121510

    @zues121510

    8 жыл бұрын

    +Yenchey i think the author of that book asked this guy to make the video un-understandable so that his book sells more. 1:42

  • @zues121510

    @zues121510

    8 жыл бұрын

    Blair Group my unlikely scenario was a sign of sarcasm. do you really have such an IQ? you cannot even solve the pitiful sarcasm that I implemented in the sentence. but I won't hold it against you, KZread comments are horrible as they cannot show if a person is being genuine or not.

  • @known3617

    @known3617

    8 жыл бұрын

    +zues121510 if you can't identify a KZread comment is genuine then how could anybody distinguish sarcasm then?

  • @pumbo_nv
    @pumbo_nv9 жыл бұрын

    My little brother once asked me how does a computer work. So I showed him this video. He never asked me anymore.

  • @dr.facilier4322

    @dr.facilier4322

    6 жыл бұрын

    bahaha

  • @uppset_dave4982

    @uppset_dave4982

    5 жыл бұрын

    Lol

  • @uppset_dave4982

    @uppset_dave4982

    5 жыл бұрын

    He probably built one under his bed

  • @Zmzmjz

    @Zmzmjz

    5 жыл бұрын

    Life lessons

  • @rechitsapivo

    @rechitsapivo

    4 жыл бұрын

    He was probably like "Fuck this, I don't wanna die alone" ;-P

  • @jeffh6516
    @jeffh65162 жыл бұрын

    I'm a software engineer with several years experience. I've always had a vague idea of what these components do, but I've never been able to wrap my head around how they do it. Your explanation was so eloquent yet concise that these concepts that have always escaped me suddenly clicked and made perfect sense. Great video!

  • @Vibri_but_Paranoid

    @Vibri_but_Paranoid

    Жыл бұрын

    Nice!

  • @BungieStudios

    @BungieStudios

    Жыл бұрын

    Thank you for your syntax. 🫡

  • @Daggy898

    @Daggy898

    Жыл бұрын

    The

  • @youcefassou1592

    @youcefassou1592

    Жыл бұрын

    Same here hahah I was fill all the missing holes and missing pieces

  • @TheLustz

    @TheLustz

    6 ай бұрын

    im a new software engineer that cant find a job. pls help

  • @mrCetus
    @mrCetus Жыл бұрын

    50 years ago I was writing assembler language programs using all the move (MVC), branch and load instructions necessary to create a program. This video sure would have been helpful to me for understanding how the hardware responded to my wishes. It was a bonus to see the scripture at the end - what a wonderful surprise! Blessings to you!

  • @thomasauslander3757

    @thomasauslander3757

    Жыл бұрын

    Writing Assembly language I honor you...

  • @_Tzebra_

    @_Tzebra_

    Жыл бұрын

    I wrote assembly for Intel 8086 back in the day, and man oh man was it a fun ride. Good old days.

  • @user-gc1iq1ge3s

    @user-gc1iq1ge3s

    6 ай бұрын

    😂😂😂How was it using the Command Line Interface???

  • @JousterMoha
    @JousterMoha5 жыл бұрын

    A 20 minute video explained a semester worth of lectures perfectly. Please be my professor

  • @jowlolke

    @jowlolke

    4 жыл бұрын

    I'm sure your professor goes more in depth than this though, so it't to be expected that this is easier to understand

  • @iamjobless910

    @iamjobless910

    4 жыл бұрын

    The beauty of this video is he uses very minimal technical jargon.

  • @afreensofi0095

    @afreensofi0095

    4 жыл бұрын

    I’m sorry to say, you’re insane!

  • @MrRayWilliamJohnson9

    @MrRayWilliamJohnson9

    4 жыл бұрын

    Scary that I understood all of it not knowing anything about computers 😂

  • @dogsauce747

    @dogsauce747

    4 жыл бұрын

    what are you studying. computer science??

  • @mcgibs
    @mcgibs9 жыл бұрын

    All this so I can throw turtles into the ocean in Crysis.

  • @andrejhorvat378

    @andrejhorvat378

    9 жыл бұрын

    mcgibs LOL

  • @isay685

    @isay685

    9 жыл бұрын

    mcgibs Lol

  • @Pickelhaube808

    @Pickelhaube808

    9 жыл бұрын

    ***** *it is for me!* _XD_

  • @StackableGoldMC

    @StackableGoldMC

    9 жыл бұрын

    mcgibs Is this why we get files we dont need??

  • @jamessmith84240

    @jamessmith84240

    7 жыл бұрын

    Hahahaha ;)

  • @MyStiCstudios777
    @MyStiCstudios7774 жыл бұрын

    Saw this video about 4 years ago and I didn't understand a single thing. Saw it today thinking '' Hey maybe i'm smarter now and I'll understand it ''...............I'll come back In 4 years

  • @Gomer._.

    @Gomer._.

    8 ай бұрын

    Come back now, and read the Wikipedia article too, you need to widen your sources smh!!!!!

  • @applecraft121
    @applecraft1212 жыл бұрын

    I want to sleep now

  • @24grantj24
    @24grantj246 жыл бұрын

    So... basically we tricked rocks into thinking? got it

  • @hfyaer

    @hfyaer

    5 жыл бұрын

    It's not thinking damit!

  • @KaRuNaRuGa

    @KaRuNaRuGa

    5 жыл бұрын

    *Sand

  • @Lazlo.

    @Lazlo.

    5 жыл бұрын

    Pretty much

  • @richresells1684

    @richresells1684

    5 жыл бұрын

    @@KaRuNaRuGa sand is just tiny rocks

  • @mistersmith6752

    @mistersmith6752

    5 жыл бұрын

    who are we?

  • @BangMaster96
    @BangMaster965 жыл бұрын

    Think about this, your CPU is actually doing all the things described in this video, as you are watching the video, and reading this comment.

  • @Klazyo

    @Klazyo

    5 жыл бұрын

    @@peace1033 Are you comparing the human brain to a computer ?. No match dear .

  • @diegodekruif3772

    @diegodekruif3772

    5 жыл бұрын

    @@Klazyo r/woooosh

  • @OscarDiaz-nn9ch

    @OscarDiaz-nn9ch

    5 жыл бұрын

    In 1974 when the first computer had a 4bit operative system, coding and decoding binary codes each one at a time...watching this in your 16 core 64 bite CPU running windows crap 10 processing shit at 64 bit all at the same time?!?!?!?! We are going to get kill by computers in less than 10 years

  • @secrecy3915

    @secrecy3915

    5 жыл бұрын

    CPUception

  • @hannes0000

    @hannes0000

    5 жыл бұрын

    @@Klazyo Human brain is actually more powerful than top tier CPU's

  • @hanutus4859
    @hanutus48592 жыл бұрын

    I love how you managed to explain something so complicated (seemingly) in such a simple way that I understood it. Thank you!

  • @edwinjoy2547
    @edwinjoy25473 жыл бұрын

    The most comprehensive and exciting 20 minutes to learn such a great technology. Thank you 😊

  • @BalloGameplay
    @BalloGameplay7 жыл бұрын

    Got lost at 0:00

  • @kanva4

    @kanva4

    5 жыл бұрын

    Well, at least I was better. I got lost at 0:02

  • @Blo0dyAss

    @Blo0dyAss

    5 жыл бұрын

    Both doing great, i got lost in the ads

  • @RanaRandom

    @RanaRandom

    5 жыл бұрын

    install a UBLOCK extension. have fun

  • @krshah2008

    @krshah2008

    5 жыл бұрын

    @@Blo0dyAss lmao

  • @konradd7284

    @konradd7284

    5 жыл бұрын

    Just understand that ram and Cpu get data from each other and when the binary numbers are added together they create memory and it gets stored on the cpu

  • @ruigomes8652
    @ruigomes86524 жыл бұрын

    We should award noble prizes to those who come up with a CPU design... they were true masterminds!

  • @darylallen2485

    @darylallen2485

    4 жыл бұрын

    Jon Von Neumann

  • @herrfriberger5

    @herrfriberger5

    4 жыл бұрын

    @@darylallen2485 That was NOT the guy... He was just a clever academic that summarized and abstracted other peoples constructions or designs, and got far to much credit for it. One of the first that actually designed and built a fully programmable CPU and computer from scratch was the German Civil Engineer Konrad Zuse, in the 1930s.

  • @Xth3Z

    @Xth3Z

    4 жыл бұрын

    @@herrfriberger5 You are totally correct. Von Neumann basically just created a simple model from the complex architecture of a CPU back in the day.

  • @AVcomps1

    @AVcomps1

    4 жыл бұрын

    @@Xth3Z a standard model, I think you mean :)

  • @awol6574

    @awol6574

    4 жыл бұрын

    It has been perfected over time it took 90 years

  • @adabujiki
    @adabujiki4 жыл бұрын

    Love this guy’s speech pace and voice and ever so subtle humor

  • @bitkurd
    @bitkurd3 жыл бұрын

    Within 30 years, We literally went from 2 times per second to several billion times per second

  • @DineSpack

    @DineSpack

    3 жыл бұрын

    More like 1000 to several billions (6502 clockspeed is something between 1000 and 3000 Hz)

  • @wvisser4299

    @wvisser4299

    3 жыл бұрын

    Cant wait to see another 30 years lol

  • @datboi1026

    @datboi1026

    3 жыл бұрын

    Soon we’ll be pushing the limits of quantum mechanics to make our transistors the size of just a couple atoms. Crazy times indeed my dude

  • @organicfarm5524

    @organicfarm5524

    3 жыл бұрын

    @G E T R E K T 905 *electromechanical

  • @epicestpoopmunchergangepm7962

    @epicestpoopmunchergangepm7962

    2 жыл бұрын

    @@DineSpack my CPU is a ryzen 2200g with a base clock of 3.5ghz (3.5 billion times per second) and i can overclock to about 3.9 ghz (3.9 billion times per second)

  • @charliefoxtrotthe3rd335
    @charliefoxtrotthe3rd3358 жыл бұрын

    Right off the get go my mind froze. When he made the statement about the clock turning on and off two times per second on the 6502 chip, I was okay. Then when he said that modern CPU's turn off and on billions of times per second...that is when I lost it. I cannot envision a second divided into a billion parts. That fact in and of itself is damn near magic to me. Oh, I can understand it at an academic level. A chip running at 5 Ghz is 5 billion times per second. Okay, moving on...It's the visualization of that process that really ties up my noodle in knots. Almost magic to me!

  • @bennemann

    @bennemann

    8 жыл бұрын

    Täking Thë High Roäd Please don't read up anything on the upcoming game No Man's Sky then, especially its number of fully explorable planets... you'll die of a sudden aneurysm.

  • @kalphitekil

    @kalphitekil

    8 жыл бұрын

    +bennemann I doubt it, just another minecraft

  • @gwho

    @gwho

    8 жыл бұрын

    +bennemann the number of galaxies in the universe. yes.

  • @stoppi89

    @stoppi89

    8 жыл бұрын

    +Täking Thë High Roäd Compared to how a car or a refrigerator works, this is pretty much magic.

  • @gazlink1

    @gazlink1

    8 жыл бұрын

    +Täking Thë High Roäd There are many subjects in technology and science that you have to understand that your intuition would not be capable of simply "getting it". You intuition is flawed for the modern world. I can't imagine a light flash on for one billionth of a second, but I don't care, all I know is that 1 billion of those flashes put together would be a light staying on for a second, if I even wanted to bring it near to something I could intuitively get. Or I could not care, and I don't and just say it happens a billion times a second. Once you let go of your intuition you can carry on to quantum mechanics.

  • @Jeebuus
    @Jeebuus8 жыл бұрын

    it's truly amazing how some guys spent hours scratching their heads coming up with this stuff.

  • @TheValorantGuy

    @TheValorantGuy

    5 жыл бұрын

    I'd say months.

  • @alinnman

    @alinnman

    5 жыл бұрын

    @@TheValorantGuy I'd say millions of man-years

  • @tralphstreet

    @tralphstreet

    5 жыл бұрын

    @@TheValorantGuy Years. These cpus are product of a shit ton of years and research that involved thousands of people, they are so complex because of all the work they have behind.

  • @Hikutachama

    @Hikutachama

    5 жыл бұрын

    Id imagine many loved doing it

  • @cameron7957
    @cameron79573 жыл бұрын

    I love how you explained this. It makes perfect sense. I had no idea that the processor processes one instruction at a time at that rate of speed.

  • @johnpro2847

    @johnpro2847

    2 жыл бұрын

    maybe ..but just how does it process one instruction at a time if they are only electrical charges.

  • @someonenobody2070

    @someonenobody2070

    Жыл бұрын

    @@johnpro2847 it's a maze, if the electricity follows a specific path it reaches point were lets say for example that lights turn on and we see those lights and understand what is means, how? When you see what i wrote here its because of the lights or should i say pixels that are tunred on , its a siple black and white background, if we want colors it's the the same process, great now you can see images too.

  • @axelnils

    @axelnils

    Жыл бұрын

    @@johnpro2847 Go get a computer engineering degree if you want the actual answer.

  • @niceguy6384
    @niceguy63843 жыл бұрын

    8 years ago an awesome guy made this masterpiece and disappeared where are you man? the world needs more of this.

  • @PatrickHolensaber
    @PatrickHolensaber8 жыл бұрын

    Non pc-geeks: OH WOW I THOUGHT IT RAN ON MAGIC!

  • @vicsar

    @vicsar

    8 жыл бұрын

    +Patrick Holensaber Not far from it: "Any sufficiently advanced technology is indistinguishable from magic." Arthur C. Clarke.

  • @randyzhu9705

    @randyzhu9705

    8 жыл бұрын

    +Patrick Holensaber PC-Geeks:: ermaged i haz 5960X

  • @PatrickHolensaber

    @PatrickHolensaber

    8 жыл бұрын

    Randy Zhu That's called an Enthusiast.

  • @vicsar

    @vicsar

    8 жыл бұрын

    Oh. +Nereus C'mon. That is just an unfair, untrue, and offensive generalization. Not all of us spend that much money.

  • @randyzhu9705

    @randyzhu9705

    8 жыл бұрын

    oeiwyuzl84332165 OK.............................

  • @johnnyvvlog
    @johnnyvvlog7 жыл бұрын

    After seeing this I'm amazed a computer even works

  • @Crashoverride1234
    @Crashoverride12344 жыл бұрын

    Guess I’ll just go back to chasing butterflies in the backyard :(

  • @nettechbluesky6018

    @nettechbluesky6018

    4 жыл бұрын

    nice point

  • @solar11781

    @solar11781

    4 жыл бұрын

    I'm in

  • @digitaldazzle5836

    @digitaldazzle5836

    4 жыл бұрын

    Crashoverride. Hahaha!! 😂🤣

  • @dsandoval9396

    @dsandoval9396

    3 жыл бұрын

    Reads book: What is a butterfly.

  • @sketchpad7116

    @sketchpad7116

    2 жыл бұрын

    Just wait until you hear about how complicated butterflies are

  • @josueochoa9267
    @josueochoa92674 жыл бұрын

    Love this kind of content. Will be looking at this book. I’m currently working on getting my CCNA with Cisco!

  • @andreranulfo-dev8607
    @andreranulfo-dev86075 жыл бұрын

    After reading the book, I rewatched this video, and finally, I understood the whole process. It's mindblowing!

  • @sirvapalot

    @sirvapalot

    4 жыл бұрын

    the computer is quite the advancement from the abacus and the calculator , mindblown

  • @andreranulfo-dev8607

    @andreranulfo-dev8607

    4 жыл бұрын

    @Texsic It's awesome!

  • @hannachoi7

    @hannachoi7

    8 ай бұрын

    Tell me

  • @Otyg
    @Otyg8 жыл бұрын

    I think this might be the best teacher I've ever come across my entire life. Most teachers are ruining every subject in existence by not being able to explain it so that students actually understand.

  • @cigersuz

    @cigersuz

    7 жыл бұрын

    David Forslund i suggest you to watch andrea morello's video series filmed by the channel 'veritasium' about quantum computers

  • @chadliampearcy

    @chadliampearcy

    6 жыл бұрын

    I suggest betterexplained, 3blue1brown, Socratica, NancyPi, mathloger, and patrick jmt for mathematics

  • @vessaliusjack2360
    @vessaliusjack2360 Жыл бұрын

    This is what my teacher told me to study for my project even though my project is only to make a digital voltmeter. Idk if I could be able to redescribe those information in my report but you have my appreciation regardless. Thank you

  • @lancesmith1874
    @lancesmith18743 жыл бұрын

    Awesome video! Now I have somewhat of an understanding of what's going on when I look at the internals of a computer. Thank you very much!

  • @andytheobliviator
    @andytheobliviator7 жыл бұрын

    "I think I have some idea of how this works, but I want to know more." 20 minutes later, "Holy crap it's witchcraft."

  • @KungKras

    @KungKras

    7 жыл бұрын

    If you think so, then I probably shouldn't tell you about pipelined superscalar multi-core processors :D

  • @ApocalypsisSalvator

    @ApocalypsisSalvator

    7 жыл бұрын

    lols overclocked :D

  • @Keshaire

    @Keshaire

    6 жыл бұрын

    Bro start playing Minecraft and this will make a whole lot more sense.

  • @cgme7076

    @cgme7076

    6 жыл бұрын

    HAHHAHAHA! Best comment ever

  • @MrTomas7777

    @MrTomas7777

    5 жыл бұрын

    @@KungKras Also out-of-order execution and speculative execution XD

  • @kingc8531
    @kingc85317 жыл бұрын

    This is an amazing video, totally cured my insomnia. I was asleep by the 10 minute mark

  • @AVcomps1

    @AVcomps1

    4 жыл бұрын

    Hahahahahaha

  • @summitsecuritydoorandlock
    @summitsecuritydoorandlock3 жыл бұрын

    This was perfect, a great base to learn from! Well done sir

  • @thijsolijerhoek2725
    @thijsolijerhoek27252 жыл бұрын

    I'm new to the computer science field, and this 20 minute video explained my past 10 hours of lectures. thanks so much!!!

  • @Thandidladla
    @Thandidladla5 жыл бұрын

    I was so fascinated by this explanation. It just had dozens of little lights turning on in my head. Really really helpful! Thank you so much!

  • @thomasdavies2218

    @thomasdavies2218

    2 жыл бұрын

    👍amazing

  • @electronicfootball9219

    @electronicfootball9219

    2 жыл бұрын

    Amazing how it transformed the impulse firing in your brain 🤝

  • @shikhasingh4657
    @shikhasingh46574 жыл бұрын

    One of the nicest yet compact video for understanding actual hardware and software communication inside a CPU. Thanks a lot!!

  • @ryankim246
    @ryankim2463 жыл бұрын

    When I first saw this video, I was really confused, but after learning Computer Science Principles and building my own pc, and watching it again, I can get a general idea of how it works. Thank You!

  • @arvinddhiman8706

    @arvinddhiman8706

    2 жыл бұрын

    bro what hahahahaha

  • @user-du5it4gv5e
    @user-du5it4gv5e2 жыл бұрын

    Thanks a lot. This video is really I was looking for so long!

  • @kallikantzaros
    @kallikantzaros5 жыл бұрын

    This is one of those videos that you need to watch 10 times in order to understand it completely. Nice job

  • @fallenhw
    @fallenhw9 жыл бұрын

    How did someone even think of this and invented it, it's mind blowing.

  • @techn0boy

    @techn0boy

    9 жыл бұрын

    It started off very simple. A simple class in electronics would give you what you need to start designing your own processor. Remember that these engineers were developing something that didn't even exist, and when they did develop it, it was revolutionary but crap compared to modern processors. It was not one man that invented it in one space of time, but millions of people over many years.

  • @bottwaandcalover

    @bottwaandcalover

    9 жыл бұрын

    A lot of people making baby steps over 120+ years. It's amazing what humans can accomplish.

  • @1234567895182

    @1234567895182

    9 жыл бұрын

    yea its kinda like cars. The first car was horrible but it revolutionized modern society today. You could literally WALK faster than the first car invented, but ofcourse over many years (which isnt even that long) we now have super amazing cars that can go as fast as airplanes at takeoff speed. It is amazing!

  • @JackoBanon1

    @JackoBanon1

    3 жыл бұрын

    It's like car engines and transmissions. It started very simple back in the old days so that every blacksmith could repair it but every generation added more and more stuff to make it more powerful and efficient so that nowadays you feel stupid if you watch videos that explain how modern engines and transmissions work.

  • @mazarinee

    @mazarinee

    2 жыл бұрын

    (i have experience designing minecrzft CPUs) it goes from a clock and some more stuff, then goes to more complex stuff, then to Scott cpu

  • @lewisv.3675
    @lewisv.36753 жыл бұрын

    EXCELLENT description! This has made things a lot more clear about the CPU on my obsessive journey into Digital Design. Many thanks. Just bought the book from Amazon.

  • @felixgerlach3962
    @felixgerlach3962 Жыл бұрын

    Great 20 min explanation! Really helps get the basics in, thank you for this lesson!

  • @commanderbly009
    @commanderbly00910 жыл бұрын

    This is so fascinating and complex, we take this for granted so often. Excellent video!

  • @arvindvijayan8211

    @arvindvijayan8211

    10 жыл бұрын

    true!!

  • @Soulzarath1
    @Soulzarath17 жыл бұрын

    This is a highly informative video, thank you very much.

  • @carlstenger5893
    @carlstenger58933 жыл бұрын

    Excellent video! I've been involved with computers since the 1960's. Your video (and Scott's book) are both excellent introductory sources for beginners. Thanks so much!

  • @user-pm4vd6ij8i
    @user-pm4vd6ij8i2 жыл бұрын

    Amazing! This is the MUST SEE video on my list. So clear and helpful. Thank you so much!

  • @MrBomer213
    @MrBomer2135 жыл бұрын

    Thank you so much for the knowledge you’re sharing. I’ve took so many courses , computer architecture, integrated circuits ,multiple Assembly language , etc , etc and this video just puts all pieces together 👌🏿🙏🏿🙌🏿

  • @cyberbobization
    @cyberbobization7 жыл бұрын

    Awesome man. Fully understood the concepts. Keep making more of these.

  • @pawnraz
    @pawnraz2 жыл бұрын

    Now this is what I was looking for!! Very neatly explained, Loved it ❤️

  • @iamjobless910
    @iamjobless9104 жыл бұрын

    I appreciate your work and I wish to see many more basics related videos from you. Thank you

  • @gundeep0
    @gundeep07 жыл бұрын

    I have studied it in detail when i was doing my engineering, but I really loved the way you explained it so well in 20 mins, when I first saw the title I wasn't expecting it to be this good. Great Job !!!! Will checkout other videos on this channel too

  • @the_legendary_poseidon

    @the_legendary_poseidon

    Жыл бұрын

    Hey, I can kinda assume that you're Indian from the name but I'm sry if you're not, but I've just finished my secondary education and I would give anything to learn these things in all the detail there is, so can you just tell me the name of the course or which places I have to look at ? Thanx

  • @merlinmystique
    @merlinmystique4 жыл бұрын

    Man this was an AMAZING lesson, thank you!

  • @ritoshirsasarkar8301
    @ritoshirsasarkar83012 жыл бұрын

    This is probably the best video about CPU architecture and working I have seen in my life, thus far.

  • @matejmatej3554
    @matejmatej35548 жыл бұрын

    I can finally see how stupid I am I don't understand one bloody thing

  • @KarateLizard

    @KarateLizard

    7 жыл бұрын

    Nah, you're not dumb. This stuff really is hard, it takes time to get it down :)

  • @DrittungenAppelsinen

    @DrittungenAppelsinen

    7 жыл бұрын

    lol

  • @pieadapter3615

    @pieadapter3615

    7 жыл бұрын

    I'm with you bro

  • @cogs11

    @cogs11

    7 жыл бұрын

    You have to know computer architecture, basics in assembly language and introduction to programming to understand this.

  • @Blag_Cog

    @Blag_Cog

    7 жыл бұрын

    You don't need to understand basics in assembly langauge to understand this. You need to understand this to understand basics in assembly langauge though.

  • @mostafakhadr5640
    @mostafakhadr56405 жыл бұрын

    This video made it very clear to me from a distant observing point. I studied electrical engineering and I was introduced to digital systems, transistors, logic gates, registers, etc .. also I have a programming background but I couldn't fit all of these information in a proper way that allows me to understand how a CPU might work. Now I can say I could make it to the first 1% of computer engineering and I'm depressed.. note that the video talked about building blocks like (ALU, CONTROL UNIT etc) there is more hell inside!

  • @JAndCeline

    @JAndCeline

    2 ай бұрын

  • @ataaslan5177
    @ataaslan51773 жыл бұрын

    This is so helpful it really explains alot and at the same time really well!

  • @abdallahfarhat8109
    @abdallahfarhat81095 ай бұрын

    it has been a week that I am learning about this topic and i can for sure say that this was the best explanation i've heard.

  • @amuletgames1046
    @amuletgames10464 жыл бұрын

    This is brilliant. For me learning this 10 years ago when i was in high school is very much waste of time, now i have learnt to appreciate and being grateful to work with computers

  • @abhi_galav
    @abhi_galav5 жыл бұрын

    This is really nice..you should do more of these on kernel or other operating system topics

  • @autonomousspirit42
    @autonomousspirit427 ай бұрын

    I have to watch this at twice the original speed for my learning nature(...) but, the voice has a very good pitch and tone for studying, and not hurting my hyperacutic ears or putting me to sleep. Thank you for that. I was confused for most of this., but the entire knowledge of this video is now somewhere into my subconscious stream. Will watch again sometime.

  • @purplewarrior1830
    @purplewarrior18303 жыл бұрын

    I had to teach a class on this subject, but couldnt put it in words. This helped me a lot. Thanks

  • @ydox
    @ydox4 жыл бұрын

    This is by far the best visualization I saw on CPU explanation

  • @shivamjis
    @shivamjis4 жыл бұрын

    thanks for making such a knowledgeable video with such beautiful presentations it helped me a lot!

  • @dreamcatcher9712
    @dreamcatcher97123 жыл бұрын

    Wow much informational video! Sequential and in-depth!! Felt like listening to a story!!! 😁 Great work ❤️

  • @andreranulfo-dev8607
    @andreranulfo-dev86073 жыл бұрын

    Because of this particular video (And also the book), I had no problem in Computer Architeture course in my Computer Engineer course. Thanks for sharing yout knowledge.

  • @narf0339
    @narf03396 жыл бұрын

    Damn good video, i need to recommend this to my friend, he always couldnt sleep, after i watch this last night, i fall asleep before the video ends, please make more of these.

  • @Youkesama
    @Youkesama8 жыл бұрын

    Now I feel sad for overclocking my CPU .. I feel like i'm trying to make a labor worker to make me coffee and dance while doing his job at the same time :'(

  • @abdullahalmasri612

    @abdullahalmasri612

    8 жыл бұрын

    +Youkesama i feel even more bad cuz i overclocked it to watch porn in 60fps

  • @philipemaciel5152

    @philipemaciel5152

    8 жыл бұрын

    +abdullah almasri faps per second

  • @predatortheme

    @predatortheme

    8 жыл бұрын

    +abdullah almasri ^Overclocks CPU to watch porn in 60fps.

  • @rektnerd4707

    @rektnerd4707

    7 жыл бұрын

    when that happens,i remember it isnt sentient

  • @SSToor

    @SSToor

    7 жыл бұрын

    +abdullah almasri over clocking GPU would have helped more

  • @americanspirit8932
    @americanspirit89323 жыл бұрын

    This was my world I work for AT&T and I will electronic switching systems for fiber optic systems this was my area of expertise where I felt the most at home, we used a 64-bit instruction containing data. Great explanation for somebody that was never exposed to the CPUs I apologize for voice recognition.

  • @Squash101
    @Squash101Ай бұрын

    had to keep going back and forth but got the gist of it. Still insane how trillions of instructions are done. Can't wrap my head around the true scale

  • @TechRedstone
    @TechRedstone7 жыл бұрын

    After messing with redstone and building a minecraft computer it is worlds easier to understand this.

  • @paddydoestech

    @paddydoestech

    7 жыл бұрын

    Same dude

  • @BlueAsterismSolstice

    @BlueAsterismSolstice

    7 жыл бұрын

    That's what I thought! Just everything clicked.

  • @gismosgadgets8343

    @gismosgadgets8343

    7 жыл бұрын

    doing that right know on ORE

  • @TechRedstone

    @TechRedstone

    7 жыл бұрын

    Kishore G. originally I built alu units out of just connecting and gates because I knew that would work. of course, I learned about xor gates later on. you can build a computer just by messing around, it just takes time

  • @definitelyarussianpaidtrol1406

    @definitelyarussianpaidtrol1406

    7 жыл бұрын

    Minecraft deserves some credit for this, now that I think about it. It's a game with two basic building blocks out of hundreds, redstone and redstone torches that could be used to make a computer that can actually run a game. I wonder if it would be possible to create a computer in minecraft that could possibly even run a version of minecraft in 1080x1920 resolution, it would take years to build (or using a native plugin, you could have it built for you, like the one used to recreate the Netherlands in minecraft.)

  • @MikeeCZ
    @MikeeCZ8 жыл бұрын

    What a mind blowing video.. eye opener what a miracle computers are... Ohhh thanks frak for nerds and geeks, being laughed at, inventing the most miraculous and most important technologies for human kind. My mind just cannot percieve the insane rate of all of this happening and much more on todays even cheapest CPUs and all so easily accesible and portable. Fantastic..Thank you for the video.

  • @cortster12

    @cortster12

    8 жыл бұрын

    +Mikee CZ ugh, I hate the world 'miracle'. It makes it sound like it is some mystical thing that is given by the gods.

  • @avnwx5526

    @avnwx5526

    8 жыл бұрын

    +Mikee CZ yeah, electronics is pretty much the only industry where the improvement is exponential. Moore's law is pretty nuts and it went farther than anyone predicted. And now some of these complicated integrated systems cost only a few cents to produce and sell to you.

  • @cortster12

    @cortster12

    8 жыл бұрын

    AVN WX Except pretty much everyone into electronics, and Moore himself. Moore predicted it, hence Moore's law.

  • @avnwx5526

    @avnwx5526

    8 жыл бұрын

    Moore's law was merely an observation, and it was only made possible by the process engineers being able to shrink down the chips so much. Over the decades it's been repeated said that Moore's law was in trouble due to the problems inherent in lower process nodes, yet there were a large number of innovations in order to keep it going.

  • @cortster12

    @cortster12

    8 жыл бұрын

    AVN WX And isn't that a big part of what science is? Making predictions about the future based on observations past and current?

  • @firasbajjar
    @firasbajjar Жыл бұрын

    My brother this video is beautiful, I hope you decide to do more of these in the future because they truly are a godsend.

  • @toxictwig1
    @toxictwig13 жыл бұрын

    Hey thank you for this amount of hard work for letting us have this info.

  • @HONORGUARD308
    @HONORGUARD30810 жыл бұрын

    This is the best video on the topic I've seen yet, good stuff

  • @gtamediaproductions1
    @gtamediaproductions18 жыл бұрын

    I am going back to drawing on paper and playing with my Etch a Sketch.

  • @Repented008

    @Repented008

    8 жыл бұрын

    +Rick Scicluna Hahahahahaaaaaaaaaaah!!!! That's why you always respect a man's work, homie! Gotta hand it to 'em, these guys are bosses.

  • @stephenhowlett6345

    @stephenhowlett6345

    6 жыл бұрын

    Rick Scicluna wow you can use an etch a sketch, damn I've been trying for ages but I can't find the on button.

  • @gurukirans266
    @gurukirans2663 жыл бұрын

    This really helped me a lot, Thank you so much

  • @garybowes4151
    @garybowes4151 Жыл бұрын

    Thanks for this vid, bought the book

  • @glueee2621
    @glueee26218 жыл бұрын

    Wow, I just learned how a computer fundamentally works in a total of 20 mins. Great video In one lesson, well done.

  • @TheMstdnt
    @TheMstdnt10 жыл бұрын

    i don't care how advance an outer alien civilization can be compared to us, this is science ficition to me. I understand about computers but how a CPU works... as Steve Jobs would say "it's magical".

  • @Luredreier

    @Luredreier

    10 жыл бұрын

    Read up on transistors and stuff and it'll make a little more sense =) I think I got the basics now myself. It's still damned complicated and you'd have to have an overview of increadibly many things for a program to make sense all the way, but I think we could make something like say a basic text adventure game with this kind of logic fairly "easily" =) (As in if you picture every single bit in your mind and remember it all then you might actually manage to follow what happens)

  • @Luredreier

    @Luredreier

    10 жыл бұрын

    Well... You kind of can get something like this if you think of a grid where you have an input a set number of true or false statements in one end and get a set of true or false statement in the other end by having each step check if the previous one where two true statements, two false statements or one of each. Given the input pattern you get a set exit pattern. Now imagine that you have a input pattern not given by a input you control but predetermined (by software) and that this changes based on the exit output from the last step in the process. That's basically all a CPU really is. It really just checks input patterns to give an exit pattern and that ends up in memory/storage to give it new input patterns again. With one input pattern you might get an exit pattern like say light up one light bulb and with another you turn it given the stored input it's compared against. That's done for every single pixel on your screen with predetermined patterns of signals at predetermined "intervals" (not really but meh) will trigger a output signal equaling a complex on and of pattern on your screen like say the letter A. Now add another "CPU" like your graphics card that process the output and compare it with other output at a different point in the code and you can get something even more complex out of it, like a pyramid shape calculated and then calculated how it would look when seen in 2D (on a screen) and then calculated into pixels turned on or off... You get the picture I think...

  • @Luredreier

    @Luredreier

    10 жыл бұрын

    I hope that made it a little easier to imagine... I can try to find some videos on here to show you the concepts I'm talking about later. But really, a computer is really, really dumb. It just does millions upon millions upon millions of tiny calculations so fast that it seems smart even if it isn't. Ps. I get it if this don't make sense right now. I kind of wish I could talk to you in person for a couple of hours, I think I'd be able to make it make sense for you then.

  • @gaiuscaeruliusverusallectu3998

    @gaiuscaeruliusverusallectu3998

    10 жыл бұрын

    It's not magical, it's materialistic like all of reality. It is therefore easily described scientifically and it's theoretical foundations is basically mathematics, certainly able to be learned and not that difficult. Since it's mathematically oriented, it comes as as unfamiliar jargon to most people.

  • @Luredreier

    @Luredreier

    9 жыл бұрын

    Gaius Caerulius Verus Yeah, just hard to explain it in a simple fashion. Been trying lately to do so with a room with two light switches and two people using a code to communicate through the light switch, using the light to help them decide what setting on the switch to use next. Not sure if that's good enough...

  • @psychyouout709
    @psychyouout7094 жыл бұрын

    This makes an amazing amount of sense.

  • @DeepakKumar-qy8fy
    @DeepakKumar-qy8fy3 жыл бұрын

    Great video ... Brilliant content 👌 ... No extra talk .... Just right on spot . Bravo 🙏

  • @saskiavanhoutert3190
    @saskiavanhoutert31905 жыл бұрын

    Very clear and understandable explaining thank you, like to hear more

  • @RoohaAli
    @RoohaAli2 жыл бұрын

    My computer architecture teacher should show this presentation in class. We student literally don't have any idea what's going on inside it. I always thought it's beyond my comprehension to understand how CPU works only scientists can exactly know. That person should be called talent who explain better than other. You are one of them 👌

  • @moise6792
    @moise6792 Жыл бұрын

    That's a lovely explanation. Thank you so much!

  • @WessonSnyder
    @WessonSnyder8 жыл бұрын

    This video just leaves me with even more questions. Like how does the control unit work? How does the cpu know when to do what? I mean it cannot think by itself so how does that work. Also how is a program I wrote processed. I can't even explain my questions

  • @hemicar92

    @hemicar92

    8 жыл бұрын

    +Toxicz There is something called a Program Counter (PC), that reads all the instructions and sends them to registers and CPU accoridngly. CPU actually knows nothing, it just reads a Program Counter (PC) and does what it PC tells him to. Your second question: The program you wrote in some form of programming language is first being compiled, than it is translated to a machine code(a language that computer can read), and from than on it does what i wrote you at the begining. Hope this helped

  • @Renanmsantori

    @Renanmsantori

    8 жыл бұрын

    +Toxicz rewatch the video =D it explains most of your doubts. The CPU knows when to do what because of certain instructions, instructions that are coded and specified with each algorithm.

  • @fejfo6559

    @fejfo6559

    8 жыл бұрын

    +Toxicz This type of thing is pretty much true for all knowledge the more you know the more questions you can ask about what you know.

  • @TAWithiam

    @TAWithiam

    8 жыл бұрын

    +Toxicz The control unit knows what to do for each instruction with a series of decoders (one for each instruction type) which only activate if the instruction matches a specific binary code. For example if the instruction has a code (lets say 2, which would be 00000010 in the register) that means to jump to a new position, it would know that it is a jump command because there would be a dedicated circuit in the control unit that would only be activated if the appropriate instruction was in the cpu. Beyond this it gets into logic gates and if you want to know how all that works, I would look at redstone tutorials (yes redstone, from minecraft) as redstone is basically binary circuitry in disguise. As to how it knows when to do what, it uses a rising edge mono-stable circuit (getting into logic gates, basically a circuit that makes an electrical pules on the activation of its input wire but does not do anything more until its input is turned off and on again) and a falling edge mono-stable circuit (activates on the input turning off) hooked up to the clock wire so it does half of its functions when the clock goes on and the other half when it turns off. The mono stable-circuits are often hooked up to the various set wires of the registers through an and gate with the other wire connected to the output of the binary decoder that detects if the right instruction is activated. Hope that helps and is readable.

  • @alexanderdonets5321

    @alexanderdonets5321

    8 жыл бұрын

    And that is right. You can't study such things in 5 minutes, there are thousands of pages in books explaining details. Anyway, it's tens of years of experience.

  • @MinecraftMineturtle
    @MinecraftMineturtle8 жыл бұрын

    I learned so much, thank you Good Sir!! :)

  • @SweetzLee
    @SweetzLee3 жыл бұрын

    Brilliant explanation! Very, very helpful! Thank you!!!

  • @drjswizzle8235
    @drjswizzle82352 жыл бұрын

    Spectacular explanation for me good sir. I had no idea and now I do. Thank you

  • @someoneontheinternet3090
    @someoneontheinternet30905 жыл бұрын

    This is the most informative ASMR video I've ever seen

  • @kinganime2702
    @kinganime27023 жыл бұрын

    This is most complicated thing that I learn in my life .

  • @sixaj

    @sixaj

    3 жыл бұрын

    Its very important you learn this. Techtnology is everyware

  • @JackoBanon1

    @JackoBanon1

    3 жыл бұрын

    Try electrical engineering next. Calculation alternating current with complex and imaginary numbers will show you how stupid you truly are.

  • @globalbusinessmachines3122
    @globalbusinessmachines31222 жыл бұрын

    The way you explained it, is better than what the original Intel video does... WHAT AN EXPLANATION... GREAT JOB.

  • @gabrieladmasu3919
    @gabrieladmasu39194 ай бұрын

    I love your lecture, and the last message was amazing

  • @xldkxnewyorker8914
    @xldkxnewyorker89147 жыл бұрын

    "How a CPU Works" Science

  • @sennib1365

    @sennib1365

    7 жыл бұрын

    Magic

  • @Doge-vz1lk

    @Doge-vz1lk

    7 жыл бұрын

    Black magic

  • @chictownguy

    @chictownguy

    7 жыл бұрын

    magic the gathering?

  • @dr.cringe5045

    @dr.cringe5045

    5 жыл бұрын

    🎵"F%$ing magnets how do they work!?"🎵

  • @gamerwg5411

    @gamerwg5411

    5 жыл бұрын

    Burn it its fucking witchery.

  • @ElPikacupacabra
    @ElPikacupacabra6 жыл бұрын

    This is an amazing tutorial. Best tutorial I've seen on KZread, and I don't think I'm exaggerating.

  • @michaelbacqalen1109
    @michaelbacqalen1109 Жыл бұрын

    The clearest and most succinct explanation for how a CPU works, will definitely read the book

  • @RajuGupta-st1hj
    @RajuGupta-st1hj4 жыл бұрын

    many many thanks for the knowledge shared.

  • @mr.synchroman8727
    @mr.synchroman87272 жыл бұрын

    My School: Tomorrow is an exam. My brain: I need to know this!

  • @meghandenny6922
    @meghandenny69228 жыл бұрын

    Every CPU has a clock... *clock speed... clock... facepalm* Thank you for this knowledge

  • @chowishkumarjaim9191
    @chowishkumarjaim91913 жыл бұрын

    It's very useful what your guiding. The top u explainef is directly nicely set into my brain and i can enable it when ever

  • @boredbud2997
    @boredbud2997 Жыл бұрын

    thank you so much. such an amazing video

  • @Rubysh88
    @Rubysh889 жыл бұрын

    For those who have a hard time understanding this, i suggest you to learn how binary gates work, how does a simple calculator functions, if something use minecraft, there are plenty of binary gates/calculator tutorials to follow and you can see them working in real time. Practically, to make it easy, look at those units inside the cpu as little calculators made to process input data in specific ways. Once you know how a calculator works, this video wont be hard to follow and understand.

  • @Blox117

    @Blox117

    9 жыл бұрын

    Ruben Fernandes instructions not clear. calculator stuck in rectum.

  • @Blox117

    @Blox117

    9 жыл бұрын

    Ruben Fernandes lol :D

  • @Rubysh88

    @Rubysh88

    9 жыл бұрын

    ***** To make it really simplistic, lets say you're a cpu trying to build a ikea furniture (the cpu is now executing some program's function), you first fetch the data from the box (ram) that tells you to pick up the building instructions inside it ( these are instructions that the said program made the cpu save in the ram earlier when the user started it), those instruction will tell you how to access and what to do with the parts (other data in the ram like previous inputs from the program). I know it may be a weird and confusing analogy, but look at ram as a folder that the cpu will use to either save "data" in form of documents but also inventory lists that show him where to find those documents "the memory addresses" and post-its that tell him it to do something with those documents later "instructions".

  • @Blox117

    @Blox117

    9 жыл бұрын

    Ruben Fernandes i wanna know what our computers would be like if all RAM was as fast as the cpu cache.

  • @Rubysh88

    @Rubysh88

    9 жыл бұрын

    Blox117 I guess i could use another analogy, look at ram as a folder cabinet, to access it you need to stand up, go there, open it, take the document you need, close it and go back to your desk, now look at the cache as a drawer in your desk, you just open it, take the document you need and close it. You wont be able to store as many documents inside your desk as you do with a cabinet, but you can access them really fast. Now to make ram as fast as cache, you would need a ludicrously big desk, it would be be a mess to manage all those documents so close to you. Even tho its slower, the folder cabinet in your office room is still the best way to store and organize a lot of easily accessible of data. The hard drive is the library downstairs.