How a CPU Works

Поділитися
Вставка
  • Опубліковано 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 років тому +3234

    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 років тому +27

      +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, UA-cam 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 UA-cam comment is genuine then how could anybody distinguish sarcasm then?

  • @pumbo_nv
    @pumbo_nv 9 років тому +721

    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 роки тому +522

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

  • @JousterMoha
    @JousterMoha 5 років тому +3099

    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 5 років тому +9

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

    • @MrRayWilliamJohnson9
      @MrRayWilliamJohnson9 5 років тому +33

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

    • @dogsauce747
      @dogsauce747 4 роки тому +10

      what are you studying. computer science??

  • @24grantj24
    @24grantj24 6 років тому +2879

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

  • @Crashoverride1234
    @Crashoverride1234 4 роки тому +225

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

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

  • @BangMaster96
    @BangMaster96 5 років тому +1604

    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

  • @ruigomes8652
    @ruigomes8652 4 роки тому +2530

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

  • @niceguy6384
    @niceguy6384 3 роки тому +10

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

  • @mcgibs
    @mcgibs 9 років тому +677

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

  • @BalloGameplay
    @BalloGameplay 7 років тому +688

    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

  • @edwinjoy2547
    @edwinjoy2547 3 роки тому +66

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

  • @adabujiki
    @adabujiki 4 роки тому +16

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

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

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

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

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

  • @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 8 років тому +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.

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

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

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

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

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

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

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

  • @summitsecuritydoorandlock
    @summitsecuritydoorandlock 4 роки тому +5

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

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

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

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

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

  • @felixgerlach3962
    @felixgerlach3962 Рік тому +1

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

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

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

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

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

  • @shikhasingh4657
    @shikhasingh4657 4 роки тому +16

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

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

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

  • @merlinmystique
    @merlinmystique 4 роки тому +4

    Man this was an AMAZING lesson, 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

  • @Soulzarath1
    @Soulzarath1 8 років тому +55

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

  • @user-du5it4gv5e
    @user-du5it4gv5e 3 роки тому +2

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

  • @dreamcatcher9712
    @dreamcatcher9712 3 роки тому +1

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

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

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

  • @user-pm4vd6ij8i
    @user-pm4vd6ij8i 2 роки тому

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

  • @pawnraz
    @pawnraz 2 роки тому

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

  • @commanderbly009
    @commanderbly009 10 років тому +29

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

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

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

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

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

  • @psychyouout709
    @psychyouout709 4 роки тому +8

    This makes an amazing amount of sense.

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

  • @cyberbobization
    @cyberbobization 7 років тому +4

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

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

  • @ataaslan5177
    @ataaslan5177 3 роки тому +1

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

  • @gabrieladmasu3919
    @gabrieladmasu3919 6 місяців тому

    I love your lecture, and the last message was amazing

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

  • @xldkxnewyorker8914
    @xldkxnewyorker8914 7 років тому +201

    "How a CPU Works"
    Science

  • @ritoshirsasarkar8301
    @ritoshirsasarkar8301 2 роки тому

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

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

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

  • @garybowes4151
    @garybowes4151 Рік тому +2

    Thanks for this vid, bought the book

  • @iamjobless910
    @iamjobless910 5 років тому +3

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

  • @abhi_galav
    @abhi_galav 5 років тому +7

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

  • @Squash101
    @Squash101 3 місяці тому

    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

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

  • @ydox
    @ydox 4 роки тому +8

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

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

  • @GabrielGomesBR
    @GabrielGomesBR 2 роки тому

    thanks a lot! that's mindblowing how this video changed how i understand computers

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

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

  • @shivamjis
    @shivamjis 4 роки тому +3

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

  • @AlexSeligerX
    @AlexSeligerX 2 місяці тому

    Thanks, that explanation is very clear and interesting!

  • @drjswizzle8235
    @drjswizzle8235 2 роки тому

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

  • @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 :)

  • @saskiavanhoutert3190
    @saskiavanhoutert3190 5 років тому +3

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

  • @devanshushakya_
    @devanshushakya_ Місяць тому

    THANKYOU!! For this amazing explanation 🙂

  • @toxictwig1
    @toxictwig1 3 роки тому

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

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

  • @globalbusinessmachines3122
    @globalbusinessmachines3122 2 роки тому +2

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

  • @alielhefnawey5764
    @alielhefnawey5764 2 роки тому

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

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

  • @ramama987
    @ramama987 9 років тому +48

    Ok and how the fuck did we(people) come up with this such a simple thing that has only 1 & 0, and at the same time very very complicated thing? couldnt there be an easier way to make a "computer"?

    • @danielcollins7714
      @danielcollins7714 9 років тому +60

      emmanuel kayiwa a chromebook will contain the same hardware, its just a different OS running on there

    • @fsxaircanada01
      @fsxaircanada01 9 років тому +80

      emmanuel kayiwa If you don't know crap. DO NOT mislead others!

    • @SMSmith
      @SMSmith 9 років тому +16

      This is the easier way.

    • @aaa-vu5iw
      @aaa-vu5iw 9 років тому +30

      "and at the same time"
      We didn't spontaneously figure out how to make a microprocessors. It evolved from many other simpler contraptions, first with vacuum tubes and then circuits with transistors.

    • @b_j_t
      @b_j_t 9 років тому +8

      12839712894710aaa No, the first ones involved using gears to add numbers, and a machine that read cards with holes in them to weave patterns into a cloth

  • @thanwinaung2107
    @thanwinaung2107 2 роки тому

    This save huge time for us.Great 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.

  • @MinecraftMineturtle
    @MinecraftMineturtle 8 років тому +3

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

  • @bamnjphoto
    @bamnjphoto 7 років тому +16

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

  • @liabasqulizad7962
    @liabasqulizad7962 4 місяці тому +2

    Thank you very much sir. That is very good explanation.

  • @justintruelove538
    @justintruelove538 3 роки тому

    Absolutely excellent overview.

  • @applecraft121
    @applecraft121 2 роки тому +9

    I want to sleep now