How computers understand programs: From transistors to a CPU (1/3)

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 เม.ย. 2019
  • In the first episode of this three-part long series about computers, we will take a look at the construction and functionality of a computer. We will start our journey at the transistor scale and move up to higher levels of abstractions until we built a whole CPU. On our journey, we will meet logic gates and see how they work. With their help, we will be able to make circuits, which can calculate for us. We will meet a few of them, but eventually, we will unite them in an ALU. We will learn to speak with our ALU in its unique language. Then we will pair off our ALU with registers, a control unit, and RAM. This fellowship of computer parts can work off our programs. Because this fellowship of computer parts is ingenious, it is called "CPU". Sadly, it can only speak in 0's and 1's, so we have to learn its language to write our programs.
    I've hidden some easter eggs, so pause the video sometimes, if you have nothing better to do with your life.
    Be the first one to find one of my three favorite music artists I hid in the video. The first person who writes a comment on them gets a heart.
    Programs I used:
    Audacity - audio editing
    DaVinci Resolve - video editing
    Inkscape - Vector graphics
    All sound effects are creative commons 0 from fresound.org. Vector graphics, animation, and voice-over are all done by myself.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 185

  • @mevimo3758
    @mevimo3758 ปีที่แล้ว +146

    I'm so sad you never finished the series. There's clearly abundant demand for it!

  • @hataritv8983
    @hataritv8983 4 หลายเดือนก่อน +7

    I'm 4years late. As and EEE student, i have to say, this is one of the best digital electronics, microprocessor and computer engineering video I've ever come across. please finish the series.

  • @mathematicalmachinery7934
    @mathematicalmachinery7934 ปีที่แล้ว +36

    3:38 the third value should be true
    5:58 says “or” instead of “and”
    I don’t think this will trip anyone up but I’m putting this here jic
    Perfect explanation, I’ll be saving this one to help explain stuff to people - I tutor this subject and this is by far the best explanation I’ve seen, since it balances detail, humor, and attention perfectly. Absolute masterpiece.

  • @berkayuzumcu937
    @berkayuzumcu937 2 ปีที่แล้ว +79

    great content, but not enough viewers. I was so curious about the next video :/

    • @coldeeshiashi5922
      @coldeeshiashi5922 ปีที่แล้ว +7

      Damn, sucks to know there's not another video to follow this

    • @randomaccount6146
      @randomaccount6146 ปีที่แล้ว +6

      @@coldeeshiashi5922 if you are interested try looking up "crash course computer science" and watch episodes from at least 1 to 7. It was enough for me to make a CPU from logic gates only on a simulation.

    • @randomaccount6146
      @randomaccount6146 ปีที่แล้ว +1

      @@coldeeshiashi5922 nvm I just watched the end of the video and he was inspired from exactly that source 😂.

    • @actualstudioz7304
      @actualstudioz7304 ปีที่แล้ว +1

      YES LOOK UP CRASH COURSE COMPUTER SCIENCE I HAVE WATCHED IT LIKE 4 TIMES

    • @mak8019
      @mak8019 ปีที่แล้ว

      There are obviously mistakes

  • @khalkotauori
    @khalkotauori หลายเดือนก่อน +3

    Bro come on continue the series I'm not lying but nobody was able to explain all of these fundamental computer science science concepts in a fast easy way like you , please continue it

  • @SKF358
    @SKF358 11 หลายเดือนก่อน +6

    I've been looking for this detail, the physics plus abstraction for years! Not that I fully understand this, but I will watch multiple times. I also love the humor and graphics. Thank you thank you!

  • @bistro255
    @bistro255 4 หลายเดือนก่อน +1

    the clearest video from transistors to machine code ive ever seen

  • @n1matsu
    @n1matsu ปีที่แล้ว +31

    This video is so insanely well made. Thank you very much, it cleared many loose ends.
    I saw that your channel is inactive, but wanted to thank and congratulate anyway, also, will certainly recommend many people in the area to watch it. Hope you continue the series somehow, in the future.

  • @raz0229
    @raz0229 ปีที่แล้ว +1

    Man, you are criminally underrated. Great content! Keep it coming

  • @furankusama
    @furankusama ปีที่แล้ว

    The fact that this video series is already dead is heartbreaking. The video was genuinely fenomenal and I was looking forward to see the coming parts.

  • @AfreakingPear
    @AfreakingPear ปีที่แล้ว +1

    Very good video! Please leave this in the archives of the internet forever!

  • @berkcankural4072
    @berkcankural4072 ปีที่แล้ว

    this dude just did most the proffesors cant and dissapeared.So much respect my man

  • @ascyrax8507
    @ascyrax8507 10 หลายเดือนก่อน +1

    i just love your sense of humor. amazing video.

  • @user-qw4xb8qm3n
    @user-qw4xb8qm3n 2 หลายเดือนก่อน

    good job, you really go fast deep, without confusing too much.

  • @VitorDeCarliPaese
    @VitorDeCarliPaese ปีที่แล้ว +11

    excellent explanation! i always had a hard time understanding how we go from state machines to CPUs.

  • @hassan56785
    @hassan56785 ปีที่แล้ว +1

    Finally a good series to answer my all curiousity

  • @lets_learn_some_tech5542
    @lets_learn_some_tech5542 3 ปีที่แล้ว +25

    It was so good. Waiting for the next episode 👍

  • @mire2801
    @mire2801 ปีที่แล้ว +2

    Excellent explanation! Thank you. I'm waiting for more. :)

  • @yosumkty
    @yosumkty ปีที่แล้ว +2

    Perfect movie. Easy to understand the hierarchy of the computer from transistor to machine language.

  • @thaboluvhimbi4208
    @thaboluvhimbi4208 ปีที่แล้ว +1

    I like the muscle analogy, great stuff can be done with thousands of transistors.

  • @guliyevshahriyar
    @guliyevshahriyar ปีที่แล้ว +2

    Very best tutorial! Too much thanks.

  • @kiryllshynharow9058
    @kiryllshynharow9058 ปีที่แล้ว

    Very clear explained. Thank you.

  • @Pablo_Toulouse
    @Pablo_Toulouse ปีที่แล้ว

    Excellent, vraiment. Le mieux que j'ai vu, by far. Merci, continu ❤

  • @redpower2303
    @redpower2303 ปีที่แล้ว +2

    perfectly explained. i found it hard to understand it but you broke it down very good! Nice animations too :)

  • @jothiU
    @jothiU ปีที่แล้ว

    Well explained. Thank you for such a wonderful video. Simple animation - that do not distract the learner - is really good.

  • @Vazzible_gaming
    @Vazzible_gaming ปีที่แล้ว +3

    Damn, this is amazing work so many concepts given in amazing time

  • @arielp7582
    @arielp7582 ปีที่แล้ว +1

    This is some top tier content

  • @alikminenko1282
    @alikminenko1282 ปีที่แล้ว +1

    Great video, hope you will finish the series one day.

  • @patkundesu
    @patkundesu 3 หลายเดือนก่อน

    You deserve more subs. I love how your videos summarizes my questions in a very fun and presentable way. I'll check your other videos out. Thank you!

  • @siriusblack1504
    @siriusblack1504 ปีที่แล้ว +6

    You wont get a better video explaining this core concept.
    Love your work!!!

  • @bijaybikram5926
    @bijaybikram5926 5 หลายเดือนก่อน

    Your accent is what I liked the most about this video 😅
    I found what I looked for plus the humor to keep me engaged!

  • @2Fast4Youtube
    @2Fast4Youtube ปีที่แล้ว +1

    Would have been great to see this whole series

  • @bethellalrotluanga7764
    @bethellalrotluanga7764 11 หลายเดือนก่อน

    you sum up my whole first year of engineering in this video

  • @trocchiettoski
    @trocchiettoski ปีที่แล้ว

    the first genius i found on youtyube since 2005

  • @lokeshmarathi2217
    @lokeshmarathi2217 2 ปีที่แล้ว +2

    Very beautiful explanation ..I was so curious..

  • @florianvanbondoc3539
    @florianvanbondoc3539 ปีที่แล้ว

    This video is made of gold

  • @HaydenHatTrick
    @HaydenHatTrick 7 วันที่ผ่านมา

    Oh, you pulled the old favourite. Not uploading the next video XD
    Love the content, watched it with my son.

  • @luyombojonathan6688
    @luyombojonathan6688 11 หลายเดือนก่อน +1

    Beautifully done

  • @carlosguilherme7220
    @carlosguilherme7220 ปีที่แล้ว

    Great explanation. Congrats!

  • @mamunurrahman642
    @mamunurrahman642 11 หลายเดือนก่อน

    Great visualization of how the computers actually works😮😮

  • @josephshulman4330
    @josephshulman4330 ปีที่แล้ว

    Outstanding video !!!

  • @rushikesh1203
    @rushikesh1203 ปีที่แล้ว

    Perfect Explanation.

  • @RoyMustang.
    @RoyMustang. ปีที่แล้ว +1

    So good 🎉 Wish you'd continue the series

  • @daredevil013
    @daredevil013 ปีที่แล้ว +1

    Please continue your series

  • @randomperson8910
    @randomperson8910 ปีที่แล้ว +1

    this is what i am looking for 😀😀🤩outstanding explaination.

  • @GoldenTalks_BR
    @GoldenTalks_BR 10 หลายเดือนก่อน

    Amazin! Congrats!

  • @Pedritox0953
    @Pedritox0953 ปีที่แล้ว +1

    Great video!

  • @josephl2027
    @josephl2027 ปีที่แล้ว +4

    How do you not have more subs? well done.

  • @hanysbaba8069
    @hanysbaba8069 ปีที่แล้ว +1

    works, keep up the good work man

  • @gayanc6193
    @gayanc6193 7 หลายเดือนก่อน

    Amazing video❤ love this

  • @santamarialangomauricio2347
    @santamarialangomauricio2347 ปีที่แล้ว +1

    Wow such a great way to explain the computer, still waiting the other 2 videos Q.Q

  • @ajinvanil23
    @ajinvanil23 ปีที่แล้ว +2

    U deserve more views bro or just don't look views just look about the change u bought to a persons thinking. Ur videos are great. U should do more videos

  • @testizoizo7373
    @testizoizo7373 ปีที่แล้ว +1

    Very good video thanks for sharing

  • @sonyseven777
    @sonyseven777 ปีที่แล้ว +1

    Very good video, hope release the next video soon

  • @MuhammadSaad-sl3he
    @MuhammadSaad-sl3he ปีที่แล้ว

    Best explanation

  • @pradeepmuthukumarasamy6200
    @pradeepmuthukumarasamy6200 2 ปีที่แล้ว +4

    Beautifully explained thanks

  • @niltmp7126
    @niltmp7126 ปีที่แล้ว

    What a narration!

  • @jokarjapan
    @jokarjapan ปีที่แล้ว

    Keep this up , Great video

  • @Bianchi77
    @Bianchi77 ปีที่แล้ว +1

    Nice video, thanks :)

  • @mein.c.tut.w
    @mein.c.tut.w 5 หลายเดือนก่อน

    You accent sounds like you say zewo instead of zero and that is just adorably stereotypical and i think it is epic❤
    Very good concise explanation. Most videos with the same pase are 1 to 2 hours long 😅 and even though your pase was so fast you still included many information i sometimes miss when someone else explains it because sometimes they never even talk about opt codes even though they speek about ALUS 😅😅😅😢

  • @seckinseckin3919
    @seckinseckin3919 ปีที่แล้ว

    it has passed 4 years and video series still 1/3 .. i think maker doesn't want to mess with it anymore..

  • @gadgetlover2.0
    @gadgetlover2.0 ปีที่แล้ว +1

    ti (the instrunt into the channel rack) and then it crashes the soft soft... Can soone help please?

  • @ahtuamroha7061
    @ahtuamroha7061 11 หลายเดือนก่อน

    Thank you sir

  • @mymotherland3905
    @mymotherland3905 ปีที่แล้ว +1

    Ty I got my first divine because of you

  • @Mr.chandan
    @Mr.chandan 2 ปีที่แล้ว +1

    Nice 👍

  • @hassan56785
    @hassan56785 ปีที่แล้ว

    Stay tuned

  • @nykt0r
    @nykt0r 7 หลายเดือนก่อน

    I WANT THE WHOLE SERIES 😭😭😭

  • @Arvydas1987
    @Arvydas1987 ปีที่แล้ว +1

    thanks god it has subtitles

  • @MisterAleixo
    @MisterAleixo ปีที่แล้ว

    Very nice. Please do the next videos.

  • @shadowpapito
    @shadowpapito ปีที่แล้ว

    Good Job

  • @koult1784
    @koult1784 11 หลายเดือนก่อน

    this is too good, great job, too bad you didn't follow the series, but great explanation

  • @hassan56785
    @hassan56785 ปีที่แล้ว +1

    Yes

  • @ArtikLamartik
    @ArtikLamartik 4 หลายเดือนก่อน

    you said an or gate and not a and gate at 5:56, just look, I love this video!

  • @elinesiobrito3333
    @elinesiobrito3333 ปีที่แล้ว

    Good job

  • @oloruntobaoluwadarewasiu8045
    @oloruntobaoluwadarewasiu8045 ปีที่แล้ว

    Long life and prosperity

  • @charliebrownn6622
    @charliebrownn6622 ปีที่แล้ว +2

    Great video ! Thanks but I need to know how the Control Unit works, how the instructions are hard coded in the hardware

    • @giovannicesaramorim9adigan961
      @giovannicesaramorim9adigan961 ปีที่แล้ว +2

      This type of CPU works in steps, load stuff in the alu, open x register, write to y register, etc. mostly in 7 of them.
      To do instructions, it decodes the instruction number with a decimal decoder (search the circuit) and if it's X instruction AND Y step, it will do W thing (what it's meant to do in that instruction at that step) I recommend searching a PDF for the scott cpu book "but how do it know?"

    • @charliebrownn6622
      @charliebrownn6622 ปีที่แล้ว

      @@giovannicesaramorim9adigan961 thank you very much for your explanations ! I downloaded the PDF!

    • @giovannicesaramorim9adigan961
      @giovannicesaramorim9adigan961 ปีที่แล้ว

      @@charliebrownn6622 It will have all the things explained in the video in logic gate's level of detail, good read!

  • @vansf3433
    @vansf3433 ปีที่แล้ว +1

    It requires good knowledge of physics, mathematics and electronics to understand the hardware and system operating software, and how assembly programming language can have an insight of the hardware and influence on the hardware performances, and that's why you guys must have at least good knowledge of computer science at university levels to do so

  • @alanhurdle3949
    @alanhurdle3949 หลายเดือนก่อน

    I like it, thank you I remember alot of my schooling I for got how is the course recognized, well thanks if any books I would be interested

  • @LourdHarshanR
    @LourdHarshanR 7 หลายเดือนก่อน

    Teach us with doing simple project like gates building with transistors and c programming the microcontroller etc

  • @vishukumar1109
    @vishukumar1109 หลายเดือนก่อน

    Sir please make more videos on isa instructions set architecture

  • @juansnyders7323
    @juansnyders7323 ปีที่แล้ว +1

    a genius with a German (I think) accent teaches you how to build a computer... I crave more knowledge!

  • @user-vo6fq6zx1g
    @user-vo6fq6zx1g 10 หลายเดือนก่อน

    fantastic video, sad there is only one video

  • @andrewfetterolf7042
    @andrewfetterolf7042 ปีที่แล้ว +1

    Lets see the next video!

  • @vishukumar1109
    @vishukumar1109 หลายเดือนก่อน

    Sir please make more videos on software and hardware interface

  • @phanindra2120
    @phanindra2120 2 ปีที่แล้ว +3

    Suuuuupppppper explianation

  • @NN-lo5fy
    @NN-lo5fy ปีที่แล้ว +1

    Fantastic video, if only too fast sometimes. I wish there was a German version, too :)

  • @jordonpollock1550
    @jordonpollock1550 ปีที่แล้ว

    Is that a Madeon logo I see on that monitor?! You've got good taste..

  • @blandon93
    @blandon93 ปีที่แล้ว

    Brain combines ALU, ram, cache; control unit is more like old cortex with all vegetative functions.

  • @GiC7
    @GiC7 10 หลายเดือนก่อน

    Nice

  • @jozsiolah1435
    @jozsiolah1435 ปีที่แล้ว

    There are lots of sectets that can enhance a computer or a micro sd card, all these simple tricks are kept secret. Usually the secret has to be done only once after a computer is bought. Some of these: Diablo Strength, magic, dextetity, agility, defense, intelligence, luck, all these enhance the cpu by residing inside the internal cache. The cache is kept alive with an infinite circuit of caoacitors, you can erase it using your fingers or pliers. Legal Windows goes even further, it takes care of the external cache, depending on how you use the computer. The speed boost is amazing, 1 ghz is enough for everything today.

  • @tarikeld11
    @tarikeld11 2 ปีที่แล้ว +3

    Only 3000 views? What??

  • @nil4309
    @nil4309 หลายเดือนก่อน

    I've been 'programing' computers since 1991 and this is seriously the first time ive actually understood wtf is going on in there 😂

  • @KievVittorio
    @KievVittorio ปีที่แล้ว

    Even tho i am still an 8 y.o. I never wondered how i could move because i knew the answer the entire time!!!

  • @samarthtandale9121
    @samarthtandale9121 ปีที่แล้ว +1

    Awesome ... Found another bottom up learner !

  • @jurijaerts1086
    @jurijaerts1086 ปีที่แล้ว +2

    part 2?

  • @TheSensationalMr.Science
    @TheSensationalMr.Science ปีที่แล้ว

    okay so one question I have... is cache, ram, and registers the same in the silicon (hardware) layer or is there a unique difference between them that give them different names?
    Hope you have a great day & Safe Travels!

    • @lennarth.6214
      @lennarth.6214 ปีที่แล้ว

      RAM is a large array of many registers. When you take the value of the RAM at an address, you access the register at that location. A cache is just an additional register that allows you to speed some operations up. For example you could store a calculated value in the cache so you dont have to load it from ram later. Physically, they are all flipflop latches

    • @TheSensationalMr.Science
      @TheSensationalMr.Science ปีที่แล้ว

      @@lennarth.6214 thanks for the info! it is also explained as I found out with CPU and Caches video later in this series. Thanks for telling me. [EDIT: as I later found out]
      Hope you have a great day & Safe Travels!

    • @Opuskiller1
      @Opuskiller1 ปีที่แล้ว +2

      ​@@lennarth.6214 If you have a CPU that uses DRAM (i.e. DDR4/DDR5), your cache and RAM are not physically the same (although I see your point that they are just used to store addressable ones and zeros). Additionally, just to clarify, "flipflop latches" aren't real; and flip-flops and latches are not the same thing. Latches are asynchronous memory devices and flip flops are synchronous (rely off clock signal for state changes)
      TL;DR registers exist on the CPU, cache likely exists on the CPU and RAM will likely exist outside the CPU (there are architectures where CPUs get dedicated blocks of SRAM, but we can ignore this for now)
      There are unique differences between registers, cache, and RAM: proximity to the processor and the way the processor interfaces with them. CPU registers are are the fastest memory on your CPU. They're physically stored together in something called a "register file," and exist in close proximity to the CPU. There are different hardware architectures for how the register file exists in silicon and operates, but its purpose is to provide the CPU a program counter and to be used for CPU operations. Moving out in the memory hierarchy, there is L1 cache. The L1 just indicates it's the first level (level-one) of cache beyond the CPU registers. It's used to store copies of instructions/data from RAM so that they're closer to the CPU (faster to use). For example, if your CPU has an instruction to grab data from RAM, your CPU may check L1 cache and see if the data is there and valid (which is another conversation). If the cache looks good, then you saved time by not fetching it from higher levels of cache... or worse, RAM. There are methods for speeding your system up, like hardware/software prefetching (either hardware predicting CPU actions and grabbing potentially useful instructions/data from RAM, or having a compiler insert instructions to have cache prefetch instructions/data from RAM)
      The register file will exist inside the CPU. L1 cache is likely designed to be baked into the processor itself as well. Any level of cache may be baked into the processor--but it doesn't have to be the case. You could even have a processor with no cache. On top of that, not all caches are the same (i.e. one CPU's L1 cache may be designed differently than another CPU's L1 cache). Cache controllers may also use different algorithms for deciding the best way to use the cache itself (i.e. what/when to overwrite in cache). It's also common to have shared cache between CPU cores.

    • @maxmuster7003
      @maxmuster7003 ปีที่แล้ว

      It starts with some instructions in slow memory at address xy and a block of these instruction is going in the first level cache so the next instruction is loaded for execution from the cache. And a lot instruction use register as a source and/or a target operand without a memory access and without to touch the cashe again. Only if we read/write into the memory we use the cashe again, or if the next instruction is not in the cache. The cache is used for code in slow memory and for data from and to slow memory.

    • @maxmuster7003
      @maxmuster7003 ปีที่แล้ว

      ​@@Opuskiller1 very good

  • @brijusingh845
    @brijusingh845 29 วันที่ผ่านมา

    Continue your next video ... please....

  • @pratek3d
    @pratek3d 11 วันที่ผ่านมา

    That escalated pretty quickly...

  • @karoxo
    @karoxo 2 ปีที่แล้ว +1

    😄 I WANT HIM AS MY TEACHER

  • @_rd_kocaman
    @_rd_kocaman ปีที่แล้ว +1

    Wheres the rest