How a CPU Works

Поделиться
HTML-код
  • Опубликовано: 14 мар 2013
  • 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 тыс.

  • @yenchey3270
    @yenchey3270 8 лет назад +3220

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

    • @Golha2505
      @Golha2505 8 лет назад +74

      +Yenchey lol.. at least you know somethin xD

    • @yenchey3270
      @yenchey3270 8 лет назад +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 лет назад +26

      +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 лет назад +34

      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, RUclips comments are horrible as they cannot show if a person is being genuine or not.

    • @known3617
      @known3617 8 лет назад +6

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

  • @pumbo_nv
    @pumbo_nv 9 лет назад +717

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

  • @jeffh6516
    @jeffh6516 2 года назад +520

    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 2 года назад +2

      Nice!

    • @BungieStudios
      @BungieStudios Год назад +4

      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 7 месяцев назад

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

  • @mrCetus
    @mrCetus 2 года назад +158

    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 Год назад +8

      Writing Assembly language I honor you...

    • @_Tzebra_
      @_Tzebra_ Год назад +6

      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 7 месяцев назад

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

  • @BangMaster96
    @BangMaster96 5 лет назад +1603

    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 лет назад +12

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

    • @diegodekruif3772
      @diegodekruif3772 5 лет назад +22

      @@Klazyo r/woooosh

    • @OscarDiaz-nn9ch
      @OscarDiaz-nn9ch 5 лет назад +19

      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 лет назад +15

      CPUception

    • @hannes0000
      @hannes0000 5 лет назад +15

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

  • @JousterMoha
    @JousterMoha 5 лет назад +3098

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

    • @jowlolke
      @jowlolke 5 лет назад +127

      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 5 лет назад +72

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

    • @afreensofi0095
      @afreensofi0095 4 года назад +9

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

    • @MrRayWilliamJohnson9
      @MrRayWilliamJohnson9 4 года назад +33

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

    • @dogsauce747
      @dogsauce747 4 года назад +10

      what are you studying. computer science??

  • @niceguy6384
    @niceguy6384 3 года назад +9

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

  • @bitkurd
    @bitkurd 3 года назад +109

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

    • @DineSpack
      @DineSpack 3 года назад +9

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

    • @wvisser4299
      @wvisser4299 3 года назад +2

      Cant wait to see another 30 years lol

    • @datboi1026
      @datboi1026 3 года назад +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)

  • @mcgibs
    @mcgibs 9 лет назад +677

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

  • @ruigomes8652
    @ruigomes8652 4 года назад +2529

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

    • @darylallen2485
      @darylallen2485 4 года назад +75

      Jon Von Neumann

    • @herrfriberger5
      @herrfriberger5 4 года назад +237

      @@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 года назад +89

      @@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 года назад +12

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

    • @awol6574
      @awol6574 4 года назад +48

      It has been perfected over time it took 90 years

  • @MyStiCstudios777
    @MyStiCstudios777 4 года назад +30

    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._. 9 месяцев назад

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

  • @Crashoverride1234
    @Crashoverride1234 4 года назад +224

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

  • @24grantj24
    @24grantj24 6 лет назад +2871

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

  • @BalloGameplay
    @BalloGameplay 7 лет назад +687

    Got lost at 0:00

    • @kanva4
      @kanva4 5 лет назад +31

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

    • @Blo0dyAss
      @Blo0dyAss 5 лет назад +37

      Both doing great, i got lost in the ads

    • @RanaRandom
      @RanaRandom 5 лет назад +4

      install a UBLOCK extension. have fun

    • @krshah2008
      @krshah2008 5 лет назад +1

      @@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

  • @RoohaAli
    @RoohaAli 2 года назад +52

    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 👌

  • @edwinjoy2547
    @edwinjoy2547 3 года назад +66

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

  • @charliefoxtrotthe3rd335
    @charliefoxtrotthe3rd335 9 лет назад +53

    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 лет назад +6

      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
    @Jeebuus 8 лет назад +30

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

    • @TheValorantGuy
      @TheValorantGuy 5 лет назад +3

      I'd say months.

    • @alinnman
      @alinnman 5 лет назад +3

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

    • @tralphstreet
      @tralphstreet 5 лет назад +6

      @@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

  • @hanutus4859
    @hanutus4859 2 года назад +1

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

  • @adabujiki
    @adabujiki 4 года назад +16

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

  • @PatrickHolensaber
    @PatrickHolensaber 8 лет назад +143

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

    • @vicsar
      @vicsar 8 лет назад +15

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

    • @randyzhu9705
      @randyzhu9705 8 лет назад +1

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

    • @PatrickHolensaber
      @PatrickHolensaber 8 лет назад +1

      Randy Zhu That's called an Enthusiast.

    • @vicsar
      @vicsar 8 лет назад +1

      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
    @johnnyvvlog 7 лет назад +52

    After seeing this I'm amazed a computer even works

  • @cameron7957
    @cameron7957 3 года назад +20

    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 2 года назад

      @@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 Год назад +1

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

  • @ryankim246
    @ryankim246 3 года назад +17

    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!

  • @Thandidladla
    @Thandidladla 5 лет назад +230

    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!

  • @andytheobliviator
    @andytheobliviator 7 лет назад +556

    "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 лет назад +38

      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 лет назад +15

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

    • @cgme7076
      @cgme7076 6 лет назад +2

      HAHHAHAHA! Best comment ever

    • @MrTomas7777
      @MrTomas7777 5 лет назад +1

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

  • @autonomousspirit42
    @autonomousspirit42 8 месяцев назад

    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.

  • @vessaliusjack2360
    @vessaliusjack2360 Год назад +2

    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

  • @Otyg
    @Otyg 8 лет назад +41

    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 лет назад +1

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

  • @andreranulfo-dev8607
    @andreranulfo-dev8607 6 лет назад +137

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

    • @sirvapalot
      @sirvapalot 4 года назад +6

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

    • @andreranulfo-dev8607
      @andreranulfo-dev8607 4 года назад +9

      @Texsic It's awesome!

    • @hannachoi7
      @hannachoi7 9 месяцев назад +1

      Tell me

  • @josueochoa9267
    @josueochoa9267 4 года назад +1

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

  • @lewisv.3675
    @lewisv.3675 3 года назад

    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.

  • @kallikantzaros
    @kallikantzaros 5 лет назад +29

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

  • @MikeeCZ
    @MikeeCZ 8 лет назад +370

    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 лет назад +6

      +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 лет назад +5

      +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 лет назад +1

      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 лет назад +2

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

  • @thijsolijerhoek2725
    @thijsolijerhoek2725 2 года назад +4

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

  • @lancesmith1874
    @lancesmith1874 4 года назад +2

    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!

  • @kingc8531
    @kingc8531 7 лет назад +59

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

    • @AVcomps1
      @AVcomps1 4 года назад +3

      Hahahahahaha

  • @matejmatej3554
    @matejmatej3554 8 лет назад +670

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

    • @KarateLizard
      @KarateLizard 8 лет назад +83

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

    • @DrittungenAppelsinen
      @DrittungenAppelsinen 8 лет назад +1

      lol

    • @pieadapter3615
      @pieadapter3615 7 лет назад +3

      I'm with you bro

    • @cogs11
      @cogs11 7 лет назад +29

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

    • @Blag_Cog
      @Blag_Cog 7 лет назад +26

      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.

  • @carlstenger5893
    @carlstenger5893 3 года назад

    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!

  • @andreranulfo-dev8607
    @andreranulfo-dev8607 4 года назад +1

    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.

  • @fallenhw
    @fallenhw 9 лет назад +74

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

    • @techn0boy
      @techn0boy 9 лет назад +35

      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 лет назад +52

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

    • @1234567895182
      @1234567895182 9 лет назад +10

      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 года назад +2

      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 3 года назад +1

      (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

  • @mostafakhadr5640
    @mostafakhadr5640 5 лет назад +53

    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!

  • @summitsecuritydoorandlock
    @summitsecuritydoorandlock 3 года назад +5

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

  • @dreamcatcher9712
    @dreamcatcher9712 3 года назад +1

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

  • @Youkesama
    @Youkesama 8 лет назад +325

    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 лет назад +58

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

    • @philipemaciel5152
      @philipemaciel5152 8 лет назад +77

      +abdullah almasri faps per second

    • @predatortheme
      @predatortheme 8 лет назад +7

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

    • @rektnerd4707
      @rektnerd4707 8 лет назад +3

      when that happens,i remember it isnt sentient

    • @SSToor
      @SSToor 8 лет назад +3

      +abdullah almasri over clocking GPU would have helped more

  • @felixgerlach3962
    @felixgerlach3962 Год назад +1

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

  • @americanspirit8932
    @americanspirit8932 3 года назад +2

    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.

  • @commanderbly009
    @commanderbly009 10 лет назад +29

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

  • @shikhasingh4657
    @shikhasingh4657 4 года назад +16

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

  • @user-du5it4gv5e
    @user-du5it4gv5e 3 года назад +2

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

  • @PedroGaylord
    @PedroGaylord Год назад

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

  • @Soulzarath1
    @Soulzarath1 8 лет назад +55

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

  • @TechRedstone
    @TechRedstone 7 лет назад +155

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

    • @paddydoestech
      @paddydoestech 7 лет назад

      Same dude

    • @BlueAsterismSolstice
      @BlueAsterismSolstice 7 лет назад +5

      That's what I thought! Just everything clicked.

    • @gismosgadgets8343
      @gismosgadgets8343 7 лет назад

      doing that right know on ORE

    • @TechRedstone
      @TechRedstone 7 лет назад +2

      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 лет назад +15

      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.)

  • @pawnraz
    @pawnraz 2 года назад

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

  • @gundeep0
    @gundeep0 7 лет назад +8

    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 2 года назад +1

      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

  • @gtamediaproductions1
    @gtamediaproductions1 9 лет назад +107

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

    • @Repented008
      @Repented008 8 лет назад +6

      +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 лет назад +1

      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.

  • @abdallahfarhat8109
    @abdallahfarhat8109 6 месяцев назад

    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.

  • @ritoshirsasarkar8301
    @ritoshirsasarkar8301 2 года назад

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

  • @WessonSnyder
    @WessonSnyder 8 лет назад +283

    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 лет назад +60

      +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 лет назад +2

      +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 лет назад +41

      +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 лет назад +17

      +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 лет назад +11

      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.

  • @narf0339
    @narf0339 7 лет назад +21

    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.

  • @purplewarrior1830
    @purplewarrior1830 3 года назад

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

  • @firasbajjar
    @firasbajjar 2 года назад

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

  • @cyberbobization
    @cyberbobization 7 лет назад +4

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

  • @MrBomer213
    @MrBomer213 5 лет назад +23

    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 👌🏿🙏🏿🙌🏿

  • @applecraft121
    @applecraft121 2 года назад +9

    I want to sleep now

  • @Squash101
    @Squash101 2 месяца назад

    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

  • @TheMstdnt
    @TheMstdnt 10 лет назад +20

    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 лет назад +1

      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 лет назад +2

      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 10 лет назад +1

      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...

  • @xldkxnewyorker8914
    @xldkxnewyorker8914 7 лет назад +201

    "How a CPU Works"
    Science

  • @gabrieladmasu3919
    @gabrieladmasu3919 5 месяцев назад

    I love your lecture, and the last message was amazing

  • @kinganime2702
    @kinganime2702 3 года назад +12

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

    • @sixaj
      @sixaj 3 года назад +2

      Its very important you learn this. Techtnology is everyware

    • @JackoBanon1
      @JackoBanon1 3 года назад +1

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

  • @ldbboosha
    @ldbboosha 6 лет назад +92

    Two things:
    1. The future is amazing
    2. "But How Do It Know" is a hilarious book title.

    • @brahimaamri8984
      @brahimaamri8984 3 года назад

      10/10

    • @himanshu7103
      @himanshu7103 3 года назад +1

      not agreed to your first statement bro. and i have a great reason for that

    • @felipebrunetta2106
      @felipebrunetta2106 3 года назад

      @@himanshu7103 The future is as exciting as it is frightening. But even considering that, one can say it is amazing

    • @jimitsoni18
      @jimitsoni18 3 года назад

      You're simply ahead of time

    • @himanshu7103
      @himanshu7103 3 года назад

      @@felipebrunetta2106 i consider the life before social media and involvement in screen and after that , its pretty common now to lost in self thinking and ideal life inside mind then doing anything in reality .
      i also consider the data business of big companies and how they are making sure that people will stick to their phones more and more.
      i also consider the modern values and morality for money making (which is not good actually)
      and most important i consider the effects on environment .
      how in current system a dead tree is more worth then living, a dead whale is more valuable.
      people who do that don't like it
      but their already good and big image in society and profit make them ignorant .
      ignorance nowdays is More harmful than wars

  • @ydox
    @ydox 4 года назад +8

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

  • @chowishkumarjaim9191
    @chowishkumarjaim9191 3 года назад

    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

  • @merlinmystique
    @merlinmystique 4 года назад +4

    Man this was an AMAZING lesson, thank you!

  • @amuletgames1046
    @amuletgames1046 4 года назад +3

    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

  • @iamjobless910
    @iamjobless910 5 лет назад +3

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

  • @ataaslan5177
    @ataaslan5177 3 года назад +1

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

  • @toxictwig1
    @toxictwig1 3 года назад

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

  • @abhi_galav
    @abhi_galav 5 лет назад +7

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

  • @shivamjis
    @shivamjis 4 года назад +3

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

  • @globalbusinessmachines3122
    @globalbusinessmachines3122 2 года назад +2

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

  • @Hacker_Baby
    @Hacker_Baby Год назад +3

    Absolutely brilliant explanation! Thank you so much!
    Side note:
    The not-so-subtle indoctrination sentiment at the end was completely unnecessary. As a technologist, I would of hoped that you have grown past the imaginary, but we all still have things we need to work on.

    • @naymiii
      @naymiii Год назад +1

      I wouldn't have even noticed that if not for your comment since it's at the very end where most people would have already clicked off
      wtff???? that was so unexpected lmao

    • @tremorsross11
      @tremorsross11 Год назад

      🤓

  • @MosesMatsepane
    @MosesMatsepane 5 лет назад +368

    An entire semester of Computer Engineering/Science in one video. :)

    • @christophersantini2721
      @christophersantini2721 4 года назад +36

      Yes, but it would still take an entire semester or more to really understand the subject.

    • @AVcomps1
      @AVcomps1 4 года назад +3

      Computers Technology subject, which is in first year I think, also this is studied, but is more related to performance, cache and memory analysis, in the later years.

    • @awol6574
      @awol6574 4 года назад +12

      There is much more to computer science this is more like electronic s engineering

    • @Gab0ME
      @Gab0ME 3 года назад +6

      @@awol6574 Definitely, I study Mechatronics and we studied all this. Computer Science is more focused to coding and developing software, I believe.

    • @vejymonsta3006
      @vejymonsta3006 3 года назад

      This video is a simplification really. There is more inside your modern CPU than an ALU and control unit.

  • @bamnjphoto
    @bamnjphoto 7 лет назад +16

    I just brought your book for my son, you explained the CPU succinctly. Thanks

  • @havkacik
    @havkacik 2 года назад

    one of the best explanation of how CPU works. I need to check the book probably as well

  • @alielhefnawey5764
    @alielhefnawey5764 2 года назад

    You make me love the computer architecture course subject
    Amazing and perfect explanation... That's really helpful.... Lots of thanks

  • @HONORGUARD308
    @HONORGUARD308 10 лет назад +4

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

  • @glueee2621
    @glueee2621 8 лет назад +5

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

  • @drjswizzle8235
    @drjswizzle8235 2 года назад

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

  • @DeepakKumar-qy8fy
    @DeepakKumar-qy8fy 3 года назад

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

  • @42luke93
    @42luke93 5 лет назад +263

    God bless the people that make the stuff we have today!

    • @greenskull706
      @greenskull706 4 года назад +28

      Thanks science not god

    • @llllllllllllllIIlIllIIllIIIIll
      @llllllllllllllIIlIllIIllIIIIll 4 года назад +14

      green skull God made all of us. Thank you God. And he created you. We clearly have a creator , open your eyes.

    • @omarfaroque3022
      @omarfaroque3022 4 года назад +6

      Cpu is black magic product

    • @soulextracter
      @soulextracter 4 года назад +17

      @@llllllllllllllIIlIllIIllIIIIll Are you daft? My mother and father created me! And that process goes back to the dawn of sexual reproduction.

    • @gordondean2165
      @gordondean2165 4 года назад +11

      ​@@llllllllllllllIIlIllIIllIIIIll Define creator. The primitive tribal attempt to understand the unintelligible complexity of the universe by a benign creator is patently absurd and utterly anachronistic. Accept that we currently have inadequate data to allow us to have a clue and hope that the clever 1% of our transient species are allowed to continue to search for data before we are inevitably cleansed from what remains of our planet.

  • @saskiavanhoutert3190
    @saskiavanhoutert3190 5 лет назад +3

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

  • @garybowes4151
    @garybowes4151 Год назад +2

    Thanks for this vid, bought the book

  • @RajuGupta-st1hj
    @RajuGupta-st1hj 4 года назад +2

    many many thanks for the knowledge shared.

  • @megametx6541
    @megametx6541 4 года назад +47

    9:00 when teacher start the lesson
    16:00 when i started to use my brain

    • @himanshu7103
      @himanshu7103 3 года назад +4

      underrated comment but that kinda true , this happens a lot during classes , when my mind says lets take this seriously now and then i look at the board and realize its too late now

    • @alwinvillero4404
      @alwinvillero4404 3 года назад

      @@himanshu7103 lol

    • @lawoftheuniverse8089
      @lawoftheuniverse8089 3 года назад

      No, you started using it at 16:20 :)

  • @Rubysh88
    @Rubysh88 9 лет назад +8

    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 лет назад +7

      Ruben Fernandes instructions not clear.
      calculator stuck in rectum.

    • @Blox117
      @Blox117 9 лет назад

      Ruben Fernandes lol :D

    • @Rubysh88
      @Rubysh88 9 лет назад +1

      ***** 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 лет назад +4

      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.

  • @LanGust8
    @LanGust8 2 года назад +1

    thanks this was very informative and helpful!

  • @sharkdavid
    @sharkdavid Месяц назад

    This was excellent! I wish I had seen this at least 10 years ago. My younger self would’ve really been inspired by this. ❤

  • @meghandenny6922
    @meghandenny6922 8 лет назад +8

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