How a CPU Works

Sdílet
Vložit
  • čas přidán 14. 03. 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.

Komentáře • 5K

  • @yenchey3270
    @yenchey3270 Před 8 lety +3219

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

    • @Golha2505
      @Golha2505 Před 8 lety +74

      +Yenchey lol.. at least you know somethin xD

    • @yenchey3270
      @yenchey3270 Před 8 lety +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 Před 8 lety +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 Před 8 lety +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, CZcams comments are horrible as they cannot show if a person is being genuine or not.

    • @known3617
      @known3617 Před 8 lety +6

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

  • @BalloGameplay
    @BalloGameplay Před 7 lety +687

    Got lost at 0:00

    • @kanva4
      @kanva4 Před 5 lety +31

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

    • @Blo0dyAss
      @Blo0dyAss Před 5 lety +37

      Both doing great, i got lost in the ads

    • @RanaRandom
      @RanaRandom Před 5 lety +4

      install a UBLOCK extension. have fun

    • @krshah2008
      @krshah2008 Před 5 lety +1

      @@Blo0dyAss lmao

    • @konradd7284
      @konradd7284 Před 5 lety

      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

  • @jeffh6516
    @jeffh6516 Před 2 lety +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!

  • @mrCetus
    @mrCetus Před 2 lety +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 Před rokem +8

      Writing Assembly language I honor you...

    • @_Tzebra_
      @_Tzebra_ Před rokem +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 Před 7 měsíci

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

  • @JousterMoha
    @JousterMoha Před 5 lety +3098

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

    • @jowlolke
      @jowlolke Před 5 lety +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 Před 4 lety +72

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

    • @afreensofi0095
      @afreensofi0095 Před 4 lety +9

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

    • @MrRayWilliamJohnson9
      @MrRayWilliamJohnson9 Před 4 lety +33

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

    • @dogsauce747
      @dogsauce747 Před 4 lety +10

      what are you studying. computer science??

  • @pumbo_nv
    @pumbo_nv Před 9 lety +717

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

  • @bitkurd
    @bitkurd Před 3 lety +109

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

    • @DineSpack
      @DineSpack Před 3 lety +9

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

    • @wvisser4299
      @wvisser4299 Před 3 lety +2

      Cant wait to see another 30 years lol

    • @datboi1026
      @datboi1026 Před 3 lety +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 Před 3 lety

      @G E T R E K T 905 *electromechanical

    • @epicestpoopmunchergangepm7962
      @epicestpoopmunchergangepm7962 Před 2 lety

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

  • @edwinjoy2547
    @edwinjoy2547 Před 3 lety +66

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

  • @BangMaster96
    @BangMaster96 Před 5 lety +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 Před 5 lety +12

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

    • @diegodekruif3772
      @diegodekruif3772 Před 5 lety +22

      @@Klazyo r/woooosh

    • @OscarDiaz-nn9ch
      @OscarDiaz-nn9ch Před 5 lety +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 Před 5 lety +15

      CPUception

    • @hannes0000
      @hannes0000 Před 5 lety +15

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

  • @24grantj24
    @24grantj24 Před 6 lety +2870

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

  • @MyStiCstudios777
    @MyStiCstudios777 Před 4 lety +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._. Před 9 měsíci

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

  • @adabujiki
    @adabujiki Před 4 lety +16

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

  • @mcgibs
    @mcgibs Před 9 lety +677

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

  • @ruigomes8652
    @ruigomes8652 Před 4 lety +2529

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

    • @darylallen2485
      @darylallen2485 Před 4 lety +75

      Jon Von Neumann

    • @herrfriberger5
      @herrfriberger5 Před 4 lety +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 Před 4 lety +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 Před 4 lety +12

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

    • @awol6574
      @awol6574 Před 4 lety +48

      It has been perfected over time it took 90 years

  • @hanutus4859
    @hanutus4859 Před 2 lety +1

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

  • @niceguy6384
    @niceguy6384 Před 3 lety +9

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

  • @charliefoxtrotthe3rd335
    @charliefoxtrotthe3rd335 Před 9 lety +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 Před 8 lety +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 Před 8 lety

      +bennemann I doubt it, just another minecraft

    • @gwho
      @gwho Před 8 lety

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

    • @stoppi89
      @stoppi89 Před 8 lety

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

    • @gazlink1
      @gazlink1 Před 8 lety

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

  • @Thandidladla
    @Thandidladla Před 5 lety +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!

  • @cameron7957
    @cameron7957 Před 3 lety +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 Před 2 lety

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

    • @someonenobody2070
      @someonenobody2070 Před 2 lety

      @@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 Před rokem +1

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

  • @Crashoverride1234
    @Crashoverride1234 Před 4 lety +224

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

  • @Jeebuus
    @Jeebuus Před 8 lety +30

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

    • @TheValorantGuy
      @TheValorantGuy Před 5 lety +3

      I'd say months.

    • @alinnman
      @alinnman Před 5 lety +3

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

    • @tralphstreet
      @tralphstreet Před 5 lety +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 Před 5 lety

      Id imagine many loved doing it

  • @PatrickHolensaber
    @PatrickHolensaber Před 8 lety +143

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

    • @vicsar
      @vicsar Před 8 lety +15

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

    • @randyzhu9705
      @randyzhu9705 Před 8 lety +1

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

    • @PatrickHolensaber
      @PatrickHolensaber Před 8 lety +1

      Randy Zhu That's called an Enthusiast.

    • @vicsar
      @vicsar Před 8 lety +1

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

    • @randyzhu9705
      @randyzhu9705 Před 8 lety

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

  • @autonomousspirit42
    @autonomousspirit42 Před 8 měsíci

    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.

  • @lewisv.3675
    @lewisv.3675 Před 3 lety

    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.

  • @matejmatej3554
    @matejmatej3554 Před 8 lety +670

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

    • @KarateLizard
      @KarateLizard Před 8 lety +83

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

    • @DrittungenAppelsinen
      @DrittungenAppelsinen Před 8 lety +1

      lol

    • @pieadapter3615
      @pieadapter3615 Před 7 lety +3

      I'm with you bro

    • @cogs11
      @cogs11 Před 7 lety +29

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

    • @Blag_Cog
      @Blag_Cog Před 7 lety +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.

  • @andreranulfo-dev8607
    @andreranulfo-dev8607 Před 6 lety +137

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

  • @josueochoa9267
    @josueochoa9267 Před 4 lety +1

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

  • @lancesmith1874
    @lancesmith1874 Před 4 lety +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!

  • @johnnyvvlog
    @johnnyvvlog Před 7 lety +52

    After seeing this I'm amazed a computer even works

  • @shikhasingh4657
    @shikhasingh4657 Před 4 lety +16

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

  • @vessaliusjack2360
    @vessaliusjack2360 Před rokem +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

  • @carlstenger5893
    @carlstenger5893 Před 3 lety

    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!

  • @andytheobliviator
    @andytheobliviator Před 7 lety +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 Před 7 lety +38

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

    • @ApocalypsisSalvator
      @ApocalypsisSalvator Před 7 lety

      lols overclocked :D

    • @Keshaire
      @Keshaire Před 6 lety +15

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

    • @cgme7076
      @cgme7076 Před 6 lety +2

      HAHHAHAHA! Best comment ever

    • @MrTomas7777
      @MrTomas7777 Před 5 lety +1

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

  • @fallenhw
    @fallenhw Před 9 lety +74

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

    • @techn0boy
      @techn0boy Před 9 lety +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 Před 9 lety +52

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

    • @1234567895182
      @1234567895182 Před 9 lety +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 Před 3 lety +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 Před 3 lety +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

  • @summitsecuritydoorandlock

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

  • @ryankim246
    @ryankim246 Před 3 lety +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!

  • @commanderbly009
    @commanderbly009 Před 10 lety +29

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

  • @mostafakhadr5640
    @mostafakhadr5640 Před 5 lety +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!

  • @RoohaAli
    @RoohaAli Před 2 lety +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 👌

  • @thijsolijerhoek2725
    @thijsolijerhoek2725 Před 2 lety +4

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

  • @MrBomer213
    @MrBomer213 Před 5 lety +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 👌🏿🙏🏿🙌🏿

  • @gundeep0
    @gundeep0 Před 7 lety +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 Před 2 lety +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

  • @PedroGaylord
    @PedroGaylord Před rokem

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

  • @kallikantzaros
    @kallikantzaros Před 5 lety +29

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

  • @cyberbobization
    @cyberbobization Před 7 lety +4

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

  • @felixgerlach3962
    @felixgerlach3962 Před rokem +1

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

  • @dreamcatcher9712
    @dreamcatcher9712 Před 3 lety +1

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

  • @gtamediaproductions1
    @gtamediaproductions1 Před 9 lety +107

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

    • @Repented008
      @Repented008 Před 8 lety +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 Před 6 lety +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.

  • @Soulzarath1
    @Soulzarath1 Před 8 lety +55

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

  • @pawnraz
    @pawnraz Před 2 lety

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

  • @andreranulfo-dev8607
    @andreranulfo-dev8607 Před 4 lety +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.

  • @Otyg
    @Otyg Před 8 lety +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 Před 7 lety

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

    • @chadliampearcy
      @chadliampearcy Před 6 lety +1

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

  • @Youkesama
    @Youkesama Před 8 lety +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 Před 8 lety +58

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

    • @philipemaciel5152
      @philipemaciel5152 Před 8 lety +77

      +abdullah almasri faps per second

    • @predatortheme
      @predatortheme Před 8 lety +7

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

    • @rektnerd4707
      @rektnerd4707 Před 8 lety +3

      when that happens,i remember it isnt sentient

    • @SSToor
      @SSToor Před 8 lety +3

      +abdullah almasri over clocking GPU would have helped more

  • @user-du5it4gv5e
    @user-du5it4gv5e Před 3 lety +2

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

  • @abdallahfarhat8109
    @abdallahfarhat8109 Před 6 měsíci

    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.

  • @MikeeCZ
    @MikeeCZ Před 8 lety +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 Před 8 lety +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 Před 8 lety +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 Před 8 lety +1

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

    • @avnwx5526
      @avnwx5526 Před 8 lety

      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 Před 8 lety +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?

  • @WessonSnyder
    @WessonSnyder Před 8 lety +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 Před 8 lety +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 Před 8 lety +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 Před 8 lety +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 Před 8 lety +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 Před 8 lety +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.

  • @chowishkumarjaim9191
    @chowishkumarjaim9191 Před 3 lety

    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 Před 4 lety +4

    Man this was an AMAZING lesson, thank you!

  • @iamjobless910
    @iamjobless910 Před 4 lety +3

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

  • @kingc8531
    @kingc8531 Před 7 lety +59

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

  • @ataaslan5177
    @ataaslan5177 Před 3 lety +1

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

  • @gabrieladmasu3919
    @gabrieladmasu3919 Před 5 měsíci

    I love your lecture, and the last message was amazing

  • @abhi_galav
    @abhi_galav Před 5 lety +7

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

  • @shivamjis
    @shivamjis Před 4 lety +3

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

  • @americanspirit8932
    @americanspirit8932 Před 3 lety +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.

  • @DeepakKumar-qy8fy
    @DeepakKumar-qy8fy Před 3 lety

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

  • @narf0339
    @narf0339 Před 7 lety +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.

  • @firasbajjar
    @firasbajjar Před 2 lety

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

  • @toxictwig1
    @toxictwig1 Před 3 lety

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

  • @HONORGUARD308
    @HONORGUARD308 Před 10 lety +4

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

  • @amuletgames1046
    @amuletgames1046 Před 4 lety +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

  • @ritoshirsasarkar8301
    @ritoshirsasarkar8301 Před 2 lety

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

  • @Squash101
    @Squash101 Před 2 měsíci

    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

  • @ydox
    @ydox Před 4 lety +8

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

  • @TechRedstone
    @TechRedstone Před 7 lety +155

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

    • @paddydoestech
      @paddydoestech Před 7 lety

      Same dude

    • @BlueAsterismSolstice
      @BlueAsterismSolstice Před 7 lety +5

      That's what I thought! Just everything clicked.

    • @gismosgadgets8343
      @gismosgadgets8343 Před 7 lety

      doing that right know on ORE

    • @TechRedstone
      @TechRedstone Před 7 lety +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 Před 7 lety +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.)

  • @purplewarrior1830
    @purplewarrior1830 Před 3 lety

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

  • @alielhefnawey5764
    @alielhefnawey5764 Před 2 lety

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

  • @saskiavanhoutert3190
    @saskiavanhoutert3190 Před 5 lety +3

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

  • @ramama987
    @ramama987 Před 9 lety +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 Před 9 lety +60

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

    • @fsxaircanada01
      @fsxaircanada01 Před 9 lety +80

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

    • @SMSmith
      @SMSmith Před 9 lety +16

      This is the easier way.

    • @aaa-vu5iw
      @aaa-vu5iw Před 9 lety +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 Před 9 lety +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

  • @devanshushakya_
    @devanshushakya_ Před měsícem

    THANKYOU!! For this amazing explanation 🙂

  • @AlexSeligerX
    @AlexSeligerX Před 2 měsíci

    Thanks, that explanation is very clear and interesting!

  • @glueee2621
    @glueee2621 Před 8 lety +5

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

  • @TheMstdnt
    @TheMstdnt Před 10 lety +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 Před 10 lety

      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 Před 10 lety +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 Před 10 lety

      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 Před 10 lety +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 Před 10 lety +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...

  • @drjswizzle8235
    @drjswizzle8235 Před 2 lety

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

  • @SweetzLee
    @SweetzLee Před 3 lety

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

  • @franzageek
    @franzageek Před rokem +6

    I recently got the book, it’s amazing how a thing you can hold in your hand can do complex things like those.
    Really nice video, this way we can make the computer world known among even more people!!

  • @psychyouout709
    @psychyouout709 Před 4 lety +8

    This makes an amazing amount of sense.

  • @globalbusinessmachines3122

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

  • @gurukirans266
    @gurukirans266 Před 3 lety

    This really helped me a lot, Thank you so much

  • @MinecraftMineturtle
    @MinecraftMineturtle Před 8 lety +3

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

  • @ElPikacupacabra
    @ElPikacupacabra Před 7 lety +6

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

  • @havkacik
    @havkacik Před 2 lety

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

  • @moise6792
    @moise6792 Před rokem

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

  • @someoneontheinternet3090
    @someoneontheinternet3090 Před 5 lety +10

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

  • @xldkxnewyorker8914
    @xldkxnewyorker8914 Před 7 lety +201

    "How a CPU Works"
    Science

  • @Enthos2
    @Enthos2 Před rokem

    This was fantastic. Very relaxing voice btw

  • @mohammadtaha220
    @mohammadtaha220 Před 2 lety

    Bruhhh😭 i love this man! The explanation was just so perfect!

  • @kinganime2702
    @kinganime2702 Před 3 lety +12

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

    • @sixaj
      @sixaj Před 3 lety +2

      Its very important you learn this. Techtnology is everyware

    • @JackoBanon1
      @JackoBanon1 Před 3 lety +1

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