What's Inside A CPU Core?

2021 ж. 23 Қыр.
307 197 Рет қаралды

Thanks to Secret Lab for sponsoring today's video! Check them out at lmg.gg/SecretLabTQ
Learn how a CPU core works.
Leave a reply with your requests for future episodes, or tweet them here: / jmart604
►GET MERCH: www.LTTStore.com/
►SUPPORT US ON FLOATPLANE: www.floatplane.com/
►LTX EXPO: www.ltxexpo.com/
AFFILIATES & REFERRALS
---------------------------------------------------
►Affiliates, Sponsors & Referrals: lmg.gg/sponsors
►Private Internet Access VPN: lmg.gg/pialinus2
►MK Keyboards: lmg.gg/LyLtl
►Secretlabs Gaming Chairs: lmg.gg/SecretlabLTT
►Nerd or Die Stream Overlays: lmg.gg/avLlO
►Green Man Gaming lmg.gg/GMGLTT
►Amazon Prime: lmg.gg/8KV1v
►Audible Free Trial: lmg.gg/8242J
►Our Gear on Amazon: geni.us/OhmF
FOLLOW US ELSEWHERE
---------------------------------------------------
Twitter: / linustech
Facebook: / linustech
Instagram: / linustech
Twitch: / linustech
FOLLOW OUR OTHER CHANNELS
---------------------------------------------------
Linus Tech Tips: lmg.gg/linustechtipsyt
Mac Address: lmg.gg/macaddress
TechLinked: lmg.gg/techlinkedyt
ShortCircuit: lmg.gg/shortcircuityt
LMG Clips: lmg.gg/lmgclipsyt
Channel Super Fun: lmg.gg/channelsuperfunyt
Carpool Critics: lmg.gg/carpoolcriticsyt

Пікірлер
  • Fun Fact ! - The Harvard Mark I from 1944 used a 3.5 hp electric motor running at a constant speed to act as the computer's "clock" and could mange up to 3 (THREE !) additions or subtractions a second. A single multiplication took around 6 seconds, a division 15 seconds and a log or trig function around about a minutes. The miracle of the age !

    @rags417@rags4172 жыл бұрын
  • Talk about perfect timing. We were going over ALUs and registers in one of my classes just last week.

    @Wassomi@Wassomi2 жыл бұрын
    • Yo same wtf

      @alfiegordon9013@alfiegordon90132 жыл бұрын
    • Perfect timing is the 4:20 runtime this video has 😏

      @marcocunha@marcocunha2 жыл бұрын
    • Good luck on ur studies!

      @mohammadislam2324@mohammadislam23242 жыл бұрын
    • hey fellow microprocessor learner

      @Goku25902@Goku259022 жыл бұрын
    • Hi microprocessor learners, I have already learnt x86_16 bit architecture and currently learning MIPS architecture.... Which one(s) are you guys learning?

      @aumbhatt5339@aumbhatt53392 жыл бұрын
  • i think an interesting video would be how a core is different than a thread, any why some CPUs support 2 threads per core and other CPUs do not.

    @jasonkojro-badziak@jasonkojro-badziak2 жыл бұрын
    • Some server CPUs can actually do 4 threads per core for some specific reason.

      @demonfedor3748@demonfedor37482 жыл бұрын
    • The principle runs as follows: * A core has both an FPU and an ALU which can do one thing each per clock cycle * With a single thread, you have a single instruction per clock cycle. So either the ALU or the FPU will do something, but not both. * It would be great if we could keep both the ALU and the FPU busy/active on every clock cycle. * So, add a second thread. This means a second instruction register and so we can load two instructions at once. If one of the instructions needs the ALU and the other needs the FPU, hooray! We can do two things in the same clock cycle within a single core. * The obvious catch is that if both instructions need the ALU (or FPU) then one of them is going to have to wait a cycle. That's what makes this different from having two threads on different cores (which would execute independently of one another, in some vague sense) This is why sometimes it's smart to turn off threading. Real CPUs take this a lot further, by having multiple ALUs/FPUs and other such units, inter-core handoffs to avoid stalling, etc. There are related areas relevant to understanding this: * Super scalar processing * Pipelined architectures (all but the smallest embedded cores are pipelined architectures these days) * Branch prediction * Instruction predication * Vector processing * SIMD/MIMD instructions * CISC Vs RISC memory instruction design (not the commonly misunderstood CISC/RISC debate) And a whole bunch of other stuff.

      @EdNutting@EdNutting2 жыл бұрын
    • (I agree, these would make great videos :) )

      @EdNutting@EdNutting2 жыл бұрын
    • @@EdNutting I appreciate that explanation. Makes sense to me.

      @Garrettdx1988@Garrettdx19882 жыл бұрын
    • In a nutshell, one core can support multiple threads when there is more than one instruction pointer. As far as I know every other component inside a core is then shared between those threads, that is, when one of the threads is not using parts of the core, the others are free to use it, if they can. But keep in mind that one thread can be executing a completely different program than the others.

      @marcelocardoso1979@marcelocardoso19792 жыл бұрын
  • "more cores more better" -linus a long time ago

    @realryleu@realryleu2 жыл бұрын
  • “Fast enough to help you watch this video” *Wise words*

    @Graphics_Card@Graphics_Card2 жыл бұрын
    • @Prince Cooper Everyone knows that.

      @igameidoresearchtoo6511@igameidoresearchtoo65112 жыл бұрын
  • This should be expanded upon in very technical details... we need a hour+ long CPU core video on LTT (or series of shorter vids)

    @thatsgottahurt@thatsgottahurt2 жыл бұрын
    • True we really need a "Turbo Nerd edition" of this video.

      @AyushTH@AyushTH2 жыл бұрын
    • We need a TechLong

      @K-----@K-----2 жыл бұрын
    • An hour+? Honestly, that's nowhere near enough considering today's CPU's complexity! Just the complexity of modern pipelines with execution units, macro- and microoperations-elision (or, fwiw, the concept of microarchitectures), dependency resolution and out-of-order-/parallel execution, branch prediction, vectorization, TLBs, and so on and so on and so on... Modern CPU architectures are insanely complex and giving you "very technical details" would result in an insanely long video series. Just sayin'. :-D Also, if you want to get into CPU architectures, I fully agree with the above comment: Ben Eater builds a complete 8-bit processor in a video series - of just over 24h.

      @jojajoja420@jojajoja4202 жыл бұрын
    • If you would like a few hours of content introducing all this, and 24hrs of livestream building a complete simple CPU in Minecraft (to a real specification), please consider watching my videos.

      @EdNutting@EdNutting2 жыл бұрын
    • I would want something that will explain how the whole CPU works, easy enough for everyone. GPU could be nice too.

      @sklynexd@sklynexd2 жыл бұрын
  • In the early days things were easier, one core running very slowly directly connected through motherboard lines with memory. Cache? What was that! That aside ;) yeah it is good that we now have IO controllers, memory controllers, TTM's and a whole lot of cache. From L1, L2 and L3. All to make sure your fancy cpu's actually can push out the data as quick as possible. Without cache we still would go very slow indeed.

    @MasticinaAkicta@MasticinaAkicta2 жыл бұрын
    • Have you seen IBM's new Power10 architecture? It is a nice demonstration that the assumption RAM is slower than L2 cache is highly questionable, at least when looking at the cutting edge of design and technology.

      @EdNutting@EdNutting2 жыл бұрын
    • I think if this video had been presented based on a very old school CPU then it could have been much clearer

      @sandmaster4444@sandmaster44442 жыл бұрын
    • @@sandmaster4444 It is based on old CPU technology. I learned most of this in the late 1970's in college. We had a lab in which we had to build our own processors using ALU's, FPU's, I/O and a basic CPU.

      @nineball039@nineball0392 жыл бұрын
    • It's kind of a shame though that many programming languages (most prominently Java) force the programmer to allocate every object on the heap, thus reducing cache locality, so that the cache cannot actually be used to its full potential.

      @ThePC007@ThePC0072 жыл бұрын
    • @@ThePC007 Now read The Garbage Collection Handbook, along with a few Intel, ARM, RISC-V and Java manuals, the papers on the Java GC designs over the years and the reports on cache locality for Java V8. Heap allocation isn't the problem. It's a very naive understanding of the hardware and software stack (firmware to hypervisor to OS kernel to Java to application characteristics) that leads people to make this age old C-based assertion about performance that hasn't held true for a long time. Source: I read the above, studied (by measurement and simulation) and designed/implemented hardware and software GCs for my PhD.

      @EdNutting@EdNutting2 жыл бұрын
  • I'm reminded of the time when we had to build a rudementary 8-bit ALU out of individual DIP type IC's of logic gates and memory. Needing to wire up power, clock signal and 8 data wires between each IC. Good times.

    @GugsGunny@GugsGunny2 жыл бұрын
    • Sounds fun. No sarcasm.

      @naono9715@naono97152 жыл бұрын
    • We did that in my class but with FPGAs. Sounds easier, in theory. But we spent most of the time debugging the firmware to get the things to actually flash. I miss the days of physical transistors and solder.

      @daniel.lupton@daniel.lupton2 жыл бұрын
    • Btw this falls under which subject? Computer science?

      @naono9715@naono97152 жыл бұрын
    • @@naono9715 Electrical engineering and computer engineering. Edit: computer science is more about the theory of computing things.

      @coder0xff@coder0xff2 жыл бұрын
    • @@coder0xff Thanks.

      @naono9715@naono97152 жыл бұрын
  • There are different implementations of CPUs. The accumulator type is typical with x86 (Intel and AMD) CPUs. Other implentations store data on RAM entirely without the need of an accumulator or registers, others like MIPS (old game consoles and other computers) primarily use registers only. There's also different implementations of how instructions are read- one instruction at a time keeps things simple but logs up waiting instructions, multicycle allows reuse of parts of the CPU for each instruction but in some cases can end up increasing instruction time, and pipelining divides the CPU into sections so that multiple instructions can run on each stage of the CPU, but with added complexity and the need to ensure an instruction isn't waiting on the result of a future instruction still being completed.

    @QuantumQuantonium@QuantumQuantonium2 жыл бұрын
    • Agree with most of this, but, modern x86 can use many registers to store results, which is is not the same as the original "accumulators" where you only had 1-4 registers to store results from an operation.

      @Abu_Shawarib@Abu_Shawarib2 жыл бұрын
    • How would it work in ARM cpus?

      @_Chad_ThunderCock@_Chad_ThunderCock Жыл бұрын
  • I never knew CPUs had a different ALU for Floating Point numbers. It actually really makes sense, both an Integer and a Float are represented as a 32 bit number, the difference is the mathematical operations on them

    @AhmadSattout97@AhmadSattout972 жыл бұрын
    • Things are even more interesting when you add SIMD to the mix. SIMD is a very "novel" way to use an ALU, where you use an 128bit ALU that can process for example four numbers of 32bit in parallel. Like instead of telling it to just add two numbers, you tell it to add two "packs" of four 32bit numbers, and it will perform four additions in the time an 32bit ALU would do one. It takes a lot less space on the CPU than having four separate 32bit ALUs because it's only one instruction.

      @dan_loup@dan_loup2 жыл бұрын
    • In modern systems, they're even more divided than just ALU and FPU, and sometimes single cores have multiple of each to use with out-of-order execution (and programs that don't work well with this can reclaim lost efficiency with hyperthreading).

      @gajbooks@gajbooks2 жыл бұрын
    • Fun fact, the FPU works on 80 bits and usually converts back and forth during use. (This is specific to the x86 ISA.)

      @coder0xff@coder0xff2 жыл бұрын
    • Integers can be 64 bits just like floating point numbers. They're not limited to 32 bits.

      @ohwow2074@ohwow20742 жыл бұрын
  • You should do a video explaining the “bridge mode” on modems and the pros and cons

    @siulotrebla7427@siulotrebla74272 жыл бұрын
    • good Idea. Would be aswsome. Also could we get a video explaining how a gpu works

      @kparserpcs6699@kparserpcs66992 жыл бұрын
    • It'd be good to explain it, and specifically it'd be useful to know why "pros and cons" isn't actually a relevant question when deciding whether to use bridge mode or not.

      @cybersteel8@cybersteel82 жыл бұрын
    • Along does is disable inbuilt routing functions such as : NAT, firewall, DHCP, WiFi AP

      @CrypticConsole@CrypticConsole2 жыл бұрын
  • I needed this video exactly last year today,

    @SuperRockmate@SuperRockmate2 жыл бұрын
  • Where is the smoke kept? I've accidently let that out before and couldn't figure out where to put it back in.

    @chrismast2790@chrismast27902 жыл бұрын
    • I hear IBM sells magic smoke refills. Good to have a couple of bottles on hand.

      @gajbooks@gajbooks2 жыл бұрын
    • It *is* the smoke.

      @coder0xff@coder0xff2 жыл бұрын
    • What do you have, a sorcerer's computer? lol

      @machinismus@machinismus2 жыл бұрын
  • Electrons!

    @casedistorted@casedistorted2 жыл бұрын
    • Don't forget the cpu 'quar'ks as well!

      @PlanetXtreme@PlanetXtreme2 жыл бұрын
    • @@PlanetXtreme Haha I love Science puns

      @casedistorted@casedistorted2 жыл бұрын
  • Topic suggestion: how high level code gets converted to CPU instructions. Always fun to see under the hood.

    @AlexHeavens@AlexHeavens2 жыл бұрын
    • What ever code you write, you compile it to a program or the code gets compiled during runtime. The compiled code is bytecode, 0's and 1's and is stored in the memory like any other program. That process is completely seperate from how the CPU recieves instructions. So what you are asking is a three part question: "How do compilers work?", "How does a program get loaded into the RAM?" & "How does the CPU get its instructions?" But it would be a nice video, not sure if it would be short enough for a Techquickie though.

      @theFirstAidKit@theFirstAidKit2 жыл бұрын
    • @@theFirstAidKit i was about to say this

      @allansolomon5132@allansolomon51322 жыл бұрын
    • Converting high level code to machine instructions is a nightmare. First you have to interpret the meaning of the code, then convert that into basic manually coded blocks, then optimize the code by checking against known patterns which have simpler solutions, then finally output the final code. Don't even get me started on vectorization, garbage collection, Virtual Machines, register allocation, system calls, etc which fall in between there. I'm no expert by any means, but I know enough to know it is astoundingly complex.

      @gajbooks@gajbooks2 жыл бұрын
    • FWIW, contrary to other commenters, your topic is relevant and not a thing purely of parts. One cannot understand computer architecture without understanding the programs the architecture will execute and thus the compilation process and practical compilers. Similarly, you cannot understand a compiler properly without an understanding of architecture. The two topics have to be addressed in tandem and coherently. Sadly, places like The University of Bristol have forgotten this, leaving students in a right old mess! Here's hoping channels like LTT, if they tackle this topic, don't make the same mistakes.

      @EdNutting@EdNutting2 жыл бұрын
  • Great topic and coverage that explains the basics about a CPU. I love these types of videos because Enthusiast and students alike will be referring to your knowledge for a very long time. Great work!! Cheers

    @Kattakam@Kattakam2 жыл бұрын
  • It was pretty interesting to watch. Really informative. Though, I would say a music was a bit loud, but it keeps you awake ;D Keep it up!

    @vladislavkaras491@vladislavkaras4912 жыл бұрын
  • me an illiterate in cpu: core is brain, but not really

    @victorrobles353@victorrobles3532 жыл бұрын
  • I was just talking about how CPU does things with my friend, and was searching for resources to explain. This was the perfect timing.

    @krischalkhanal2842@krischalkhanal28422 жыл бұрын
    • Bro you don’t need to lie

      @brahmleenpapneja@brahmleenpapneja2 жыл бұрын
  • Bringing back my (vague) memories studying macro assembler language. Masm. All that pushing and popping! Thanks, nice piece.

    @seeldm@seeldm2 жыл бұрын
  • When you process it just makes everything better. 🤗 Thank you guys for such awesome channels!

    @BeB02090@BeB020902 жыл бұрын
  • IPS, VA, and other panel types of displays Tech quickie needs an update

    @danielb270@danielb2702 жыл бұрын
    • crt

      @KokoroKatsura@KokoroKatsura2 жыл бұрын
    • @@KokoroKatsura grandma forgot her meds again I see

      @danielb270@danielb2702 жыл бұрын
  • I work in this industry so I know almost everything in these videos, but I LOVE seeing the simple explanations. It takes a lot of skill to teach complex things. For anyone wanting to learn more, computer architecture is a fantastic course.

    @plumokin5535@plumokin55352 жыл бұрын
  • It's funny to me that in computing, "high level" actually means more basic and accessible amount of knowledge or communication with the computer

    @ktvx.94@ktvx.942 жыл бұрын
  • I'm curious what LET'S thoughts are on the RISC-V architecture. Starting learning about it and how the architecture deals with memory and what your opinions are.

    @malikmclaurine6505@malikmclaurine65052 жыл бұрын
  • I love these types of videos

    @Hamster07@Hamster072 жыл бұрын
  • taught my first 2 weeks of computer engineering lecture in 5 minutes gotta love it

    @ShakibQuddus@ShakibQuddus2 жыл бұрын
  • The parts of the CPU that are not the actual processing core are called "uncore" ( en.wikipedia.org/wiki/Uncore )

    @KuruGDI@KuruGDI2 жыл бұрын
    • That's actually kinda funny.

      @gunner75171@gunner751712 жыл бұрын
    • We need an encore video about uncores!

      @theclockworkcadaver7025@theclockworkcadaver70252 жыл бұрын
    • Encore encore encore!

      @thischannelisforcommenting5680@thischannelisforcommenting56802 жыл бұрын
    • First, you should fix the link because it accidently included the ')'. Second, that term is only used by Intel and no other CPU company.

      @DougCube@DougCube2 жыл бұрын
  • I do recall doing some assembler on the Acorn Archimedes (A3000) back in the day. It was so simple, and elegant - that programming in assembler was a joy! Nowadays I can imagine it would be hell!!!

    @welshtechie6832@welshtechie68322 жыл бұрын
  • Now explain Pipelining and Branch Prediction. ;) Anyway, good job explaining without the giant flowcharts of LC-3 that you study in college.

    @reddcube@reddcube2 жыл бұрын
    • There is really interesting talk by Chandler Carruth called "Going nowhere faster" here on KZhead which covers those topics in a really practical way

      @kebien6020@kebien60202 жыл бұрын
    • lc3.... curious how many schools actually teach LC-3. My computer architecture professor was one of the creators (Patt), is it used at other schools other than University of Texas?

      @Brandonforty2@Brandonforty22 жыл бұрын
    • @@Brandonforty2 UIUC taught it in the computer architectures course.

      @reddcube@reddcube2 жыл бұрын
    • That's cruel :D

      @coder0xff@coder0xff2 жыл бұрын
  • I like the fact that most of these videos are 4:20 in length :`D

    @abhinavrobinson2310@abhinavrobinson23102 жыл бұрын
  • Given the time constraints, you did a wonderful job. I'll hold it down in the comments.

    @coder0xff@coder0xff2 жыл бұрын
  • Quick reduction: Individual cores have L1/L2 cache attached to them, not L3 as show @ 2:45 L3 cache is shared by all cores and can in some cases even be on the motherboard instead on the CPU

    @thebinaryshadow@thebinaryshadow2 жыл бұрын
  • So happy to see better titles in these videos

    @Brianwiz@Brianwiz2 жыл бұрын
  • One of the best ways, I think, to learn how a processor works is to learn some 8-bit assembly. I haven't delved into z80 assembly, but 6502 assembly is pretty nice.

    @StarkRG@StarkRG2 жыл бұрын
    • I found resources on the instructions, but idk how to find anything about using 6502 assembly in practice, like with a specific computer model where it needs to do i/o and communicate with the ppu. And I also have no clue what software even lets you write and emulate the code

      @roilo8560@roilo85602 жыл бұрын
  • Amazing video. As a tech savvy guy you never really think about details like this.

    @jessiejames1681@jessiejames16812 жыл бұрын
  • this guy literally taught me engineering in 4 mins than my stupid teachers

    @girishwarraohanchate2223@girishwarraohanchate22232 жыл бұрын
    • it's quite simplified but yeah. They didn't mention the initialization vector (which is an address hard-coded in the CPU where it will start executing code when it first powers on. Usually the BIOS is loaded at that location!) nor the difference between register vs stack based operation

      @nocturn9x@nocturn9x2 жыл бұрын
    • ow the edge?!

      @icerink239@icerink2392 жыл бұрын
    • Too bad about the English, though

      @brovid-19@brovid-192 жыл бұрын
  • i have a test on this next week thank you for this

    @ShardFN@ShardFN2 жыл бұрын
  • That's a pretty good explanation. Thank you.

    @greywizard2557@greywizard25572 жыл бұрын
  • I think the music is a bit much, kind of distracting. Would be nice with some calmer music and maybe slightly lower volume. :)

    @Hauglarian@Hauglarian2 жыл бұрын
    • This is the first video where i noticed, and got distracted, by the music. It’s definitely a bit much.

      @veli86@veli862 жыл бұрын
    • vsauce music is so well thought that even if it's really loud it's not distracting at all

      @AdrianOkay@AdrianOkay2 жыл бұрын
  • Please cover this more in depth, maybe as an LTT video. Very fascinating stuff.

    @kevinthevpofmiscellaneouss1385@kevinthevpofmiscellaneouss13852 жыл бұрын
  • Cool Informative Video

    @sinaj1510@sinaj15102 жыл бұрын
  • this video has attracted more electrical/comp engineer students who most likely know most of this stuff from a digital systems class than people who are not familiar with these concepts. lmao happy studying my fellow nerds

    @HolyPallyTV@HolyPallyTV2 жыл бұрын
    • Lol, this comment has identified me ;p (I'm a former PhD student in formal verification of computer architectures. I loved this video :) )

      @EdNutting@EdNutting2 жыл бұрын
  • I've always described a core like this , the CPU is a call center building and each core is like a cubical where the agents carry out tasks 😂

    @yamikanikalonge2346@yamikanikalonge23462 жыл бұрын
  • The MMU is one of the most underrated parts of the CPU. It's the only thing physically stopping programs from reading and writing each other's memory. Without it, programs could just steal passwords from each other, and there would be a total system crash if a program started using more memory than the OS allocated for it.

    @SupaKoopaTroopa64@SupaKoopaTroopa642 жыл бұрын
    • Hehe, I like this comment. You've hit on my PhD topic ;) Fun fact: Modern MMUs suck for modern programs, but are great for the C-style programs of the 80s. Intel x86 and ARM are holding us back from the next leap forward in performance. The research exists proving it, and IBM Power10 has taken an interesting step towards resolving the underlying dilemma. If they carry on in that direction, we could see IBM Power architecture leapfrog Intel and ARM. Now there's an interesting prospect ;)

      @EdNutting@EdNutting2 жыл бұрын
    • @@EdNutting Now I'm curious what it is that IBM Power10 has done to fix the problems with x86 and ARM. I've always seen ARM as a big improvement, since programs can work with more than just 6 or so registers. I hope we some day get a better instruction set, as I can easily see a future where we are still using (or at least emulating) x86 in a hundred years from now.

      @SupaKoopaTroopa64@SupaKoopaTroopa642 жыл бұрын
  • I also highly recommend reading A manga guide to microprocessors!! It's so concise and makes everything easy to understand.

    @harshsharma03@harshsharma032 жыл бұрын
    • sounds cool except it's manga

      @FlagerMiszcz@FlagerMiszcz2 жыл бұрын
    • @@FlagerMiszcz Well it just makes thing easier that's all. The manga story is pretty shit and bare bones, it does the job of teaching basics of MP very well though.

      @harshsharma03@harshsharma032 жыл бұрын
    • I just got it from my local library days ago. XD

      @Neocasko@Neocasko2 жыл бұрын
  • What inside a cpu core ? There is a factory of dwarfs that run your pc

    @Eli-zb2yj@Eli-zb2yj2 жыл бұрын
  • There is a book called "The Elements of Computing Systems, Building a Modern Computer from First Principles" or more known as From Nand to Tetris That book starts from boolean logic and logic gates, then develop your own architecture, then your own assembler, your own high level language and the compiler, then a graphic operative system that works in your own architecture and finishes with developing games (tetris) for that OS. Is 200% recommended if you want to really understand how computers work

    @-argih@-argih2 жыл бұрын
  • This is a pretty OK explanation of how a cpu works

    @marcushaberling5507@marcushaberling55072 жыл бұрын
  • dude perfect timing i started doing computer science and we started this last week

    @threecubed3@threecubed32 жыл бұрын
  • The cores are the CPU. Hell, every Operating system out there sees cores as separate CPU's anyway.

    @denniscleaver3559@denniscleaver35592 жыл бұрын
    • The OS *do* distinguish between logical and physical, though. I'm not sure how well you could even fake that (or if it's just a convention to "report the correct numbers").

      @JoonasD6@JoonasD62 жыл бұрын
  • This video taught me more about CPU's than my 1 hour CS lecture at uni

    @arrowtlg2646@arrowtlg26462 жыл бұрын
    • just read structured computer organization by tanenbaum smh, pretty short book only like eight hundred pages

      @jt....@jt....2 жыл бұрын
  • Registers are usually both input and output, not just input. They are general purpose registrars. The result of a multiplication is stored in a register, that's where the application gets it from, not the cache.

    @butterbee2384@butterbee23842 жыл бұрын
  • I still don't know what a core is? just learned a lot about everything in the CPU, but still have know idea what the core is.

    @aso6437@aso64372 жыл бұрын
    • Bro that was the core. Having multiple cores means that that there are multiples of what groups were described. 4 cores means 4 of these. 6 means 6. 64 means there are 64 of these.

      @gamagama69@gamagama692 жыл бұрын
    • yeah, actually this video tells almost nothing about what CPU core actually is xD empty content

      @FlagerMiszcz@FlagerMiszcz2 жыл бұрын
    • It executes a sequence of instructions provided by a programmer (a.k.a software engineer) to move and copy data around, do math, and react to different states by switching between different sequences of instructions. Through these activities, the computer as a whole (in addition to the CPU chip) interacts with us humans via Input and Output (IO) like a keyboard and monitor, stores data, and carries out algorithms to solve a given problem.

      @coder0xff@coder0xff2 жыл бұрын
  • In much, much, much older processors these functions - if they existed at all! - were either just placed on memory address space and directly accessed, or provided by accessory microchips. SRAM memory was fast enough, and processors slow enough, that it only took one clock cycle to get memory from a register to RAM, or from, rendering cache unnecessary. It took until about the 386 for "RAM wait states" to become a problem, and the 486 for the first motherboards that supported cache. Because yes, cache was originally actual DIP microchips that you had to plug into your motherboard. If you wanted DRAM, you needed to have a separate control chip. Fun fact! The DRAM memory controller did not become part of the processor in desktop PCs until AMD's "HyperTransport" and Intel's original Core i-series processors. If you wanted an FPU, you needed a separate chip. In fact, in the earliest examples, even ALU functions were external to the processor. I mean, it could DO them, but it was VERY slow. For faster mathematical operations, and if you wanted floating point at all, you had to outsource it to your numeric coprocessor. This was brought into the processor in the 486. However due to yield concerns, a design defect, and market segmentation, some processors still shipped without functional inboard FPUs. And the vast majority of I/O that wasn't directly on the bus (which, due to rapidly increasing core/"frontside" bus speeds, quickly became "almost all of it") had to be handled by external chips as well. Fun fact! Your PC has about six different buses in it, all handled by their own little control chips.

    @FerralVideo@FerralVideo2 жыл бұрын
  • Actually quite ok explanation. Not any mistakes that I noticed

    @fugoogle_was_already_taken@fugoogle_was_already_taken2 жыл бұрын
  • I have my IT Exam tomorrow and this video drops now lol.

    @HarshitDube@HarshitDube2 жыл бұрын
  • My last cpu had 8mb of level 3 cache. I remember thinking that was heaps back in the day, now I just got a cpu with 32mb of L3 cache! Insane!

    @brendanhoffmann8402@brendanhoffmann84022 жыл бұрын
  • Lmao those memes are just *chef kiss* amazing.

    @bao1964@bao19642 жыл бұрын
  • There's a great book called, 'But how do it know". Really into the core understanding of a pc.

    @itsmemakz@itsmemakz2 жыл бұрын
  • I think a better explanation of a core is to talk about a basic pipeline because I think that’s a better high level idea of a CPU core than this. Thank you for making this video though, I love hardware engineering content!

    @thosedarngorillas@thosedarngorillas2 жыл бұрын
  • This is way better than my school's outdated material on the von newman architecture

    @VictorGamerLOL@VictorGamerLOL2 жыл бұрын
    • Nothing mentioned in the video is new.

      @jt....@jt....2 жыл бұрын
  • Good content. Not too jokey. I like it.

    @MadDarthMatt@MadDarthMatt2 жыл бұрын
  • I would like to learn more about the history of mobile processors. All the way from texas instruments to spreadtrum to tegra to snapdragon, mediatek etc

    @MrAshwijshenoy@MrAshwijshenoy2 жыл бұрын
    • Acorn Computers UK invented ARM in the 80's (Acorn RISC Machine) The film Micro Men covers that time very well. 1 person wrote the entire instruction set by her self. Then Olivetti bought the computer part of the business and ARM (Advanced RISC Machine) was formed to licence out ARM designs. Acorn ARM Desktops were in schools in the UK during the 80's and 90's That's the whole story (none of those company's you mention had any part of it) They won't cover it because every Englishman over 35 would be able to poke holes in every detail they missed but this should give you a good start.

      @KillaBitz@KillaBitz2 жыл бұрын
  • Can you put links in the description for the videos you refer to or point at.

    @eunan3@eunan32 жыл бұрын
  • I love how tech quicky breaks down complicated tech topics like an ELI5 subreddit 🤣😉☺️

    @alexanderlee5180@alexanderlee51802 жыл бұрын
  • The code you showed at 1:03 is C#... That made me happy

    @ethanrushbrook3314@ethanrushbrook33142 жыл бұрын
  • I love videos like this

    @leonardogabriel2480@leonardogabriel2480 Жыл бұрын
  • These video times are unbeatable

    @beastlyog8267@beastlyog82672 жыл бұрын
  • i study computer engineer i love how i know these things and see it again in an entraining video

    @sargabarga@sargabarga2 жыл бұрын
  • Ayo that music a bit annoying

    @chalada4787@chalada47872 жыл бұрын
  • I could be wrong, but I don't think your "output" of the equation is accurate. The output doesn't get sent to the cache on its own, but only when the data is copied to ram (via another instruction). So, the next instruction could either use the data straight from the accumulator, or pull data from ram (which would inherently pull from the cache first)

    @skiwarz@skiwarz2 жыл бұрын
    • You're both slightly wrong. In general, it can be implementation-dependent. ALU output does typically go to a register. Although common opcodes write results to a register, some instruction sets have opcodes that write directly to RAM, which would get cached in a data cache if there is one.

      @DougCube@DougCube2 жыл бұрын
  • Computer Organization class is just now having us makes Datapaths using these elements, convenient timing!

    @david_handlebar@david_handlebar2 жыл бұрын
  • Why pick an accumulator architecture? Neither x86 or ARM are accumulators?

    @danielpredmore3153@danielpredmore31532 жыл бұрын
    • this video doesn't even try to explain how much variation there are in CPU architectures, it's too dumbed down

      @DougCube@DougCube2 жыл бұрын
  • after seeing this now i have question, what's the graphic core inside APU doing when we use external GPU? did it does nothing or it handles another thing?

    @moncang3265@moncang32652 жыл бұрын
  • Something I've always wanted to know is how we teach computers what binary means. Like at its very basic level 0 = off and 1 = on, but how do we make a piece of silicon understand that?

    @Kindersonde@Kindersonde2 жыл бұрын
    • If you send a voltage beyond the threshold voltage,the gate turns on else off

      @sandeepakula6419@sandeepakula64192 жыл бұрын
    • That's electrical engineering and digital circuit design. Each transistor is like a light switch, with the critical difference being that instead of turning on and off lights, they turn on and off *each other*. Teaching them on and off isn't a good way to describe it in the same way that you don't teach a light switch how to be on or off. But if you connect enough of these transistors together in just the right way you get a CPU.

      @coder0xff@coder0xff2 жыл бұрын
  • This was cool :)

    @NateCrownwell@NateCrownwell2 жыл бұрын
  • 2:08 I have one. I think the seat cushion is too hard. No more comfortable than sitting on a sheet of plywood.

    @MrMegaPussyPlayer@MrMegaPussyPlayer2 жыл бұрын
  • Impressed, no criticism. Thumbs up.

    @BlacklistBill@BlacklistBill2 жыл бұрын
  • Teaching Computer Science to tech enthusiasts and sells Sponsorship... . Clapping for the buisness model👏👏

    @StayAware9@StayAware92 жыл бұрын
  • this is a very interesting video i am amazed

    @john-paultolczyk2434@john-paultolczyk24342 жыл бұрын
  • Can you guys do either a techquickie or a turbo nerd dive into both how a cpu actually works and/or what exactly a cpu die is?

    @matthewjones5951@matthewjones59512 жыл бұрын
  • I am prepping my uni presentation about 'what a CPU core does' fully basing on this

    @winbiswas484@winbiswas4842 жыл бұрын
    • That might not get you a very good grade... safer to go by textbooks and Wikipedia articles. This video is so dumbed down, some of it is wrong. And it misses a lot of important details.

      @DougCube@DougCube2 жыл бұрын
  • make a video on all the steps that happen from pressing the power button to os booting

    @AlanThomas1@AlanThomas12 жыл бұрын
  • ".. fast enough to help you watch this video" Sir you underestimate the power of my PC!

    @AK90@AK902 жыл бұрын
  • nice video lenght

    @mygamesm@mygamesm2 жыл бұрын
  • Hi James!

    @w1ncedes@w1ncedes2 жыл бұрын
  • ALU doesn't store result on "cache"... it's an registry for that.

    2 жыл бұрын
    • they didn't do a good job with the details there, and they should have said "data cache" (to distinguish it from an "instruction cache")

      @DougCube@DougCube2 жыл бұрын
  • Can we talk about the music at 1:09? LOL

    @FredolphinIV@FredolphinIV2 жыл бұрын
  • Basically a simplified version of learning about the Von Neumann architecture in College

    @techaid1940@techaid19402 жыл бұрын
  • Had to look in the comments for mentions to Ben Eater. Was not disappointed.

    @transistorbrains@transistorbrains2 жыл бұрын
  • So which way does the cpu go in?

    @binqx6286@binqx62862 жыл бұрын
  • Literally this is basically what I wanted explained by a teacher the first time I went into the programming class.

    @El_Mouse@El_Mouse2 жыл бұрын
  • why is this music so funky!

    @ransomdelgado6122@ransomdelgado61222 жыл бұрын
  • Hmm, is it true that the MMU actually resides off core? That does not seem like a typical configuration in any microarchitectures I'm aware of -- perhaps the video meant to refer to an integrated memory controller (which is definitely off core), rather than the MMU?

    @mach990@mach9902 жыл бұрын
  • Is it normal for my CPU to become sentient and hold my family hostage? What am I supposed to do when this happens?

    @cam5816@cam58166 күн бұрын
  • How about a video on high precision event timers and what the hell they are.

    @rramos7488@rramos74882 жыл бұрын
  • Designed a core for my Thesis and have to submit it tmrw. Coinicidence ? xD

    @thimayapanda8634@thimayapanda86342 жыл бұрын
  • WHERE DO RISC-V, CISC, ARM, AND x86 FIT INTO THIS PUZZLE?!?

    @andrekz9138@andrekz91382 жыл бұрын
  • The music in this episode made me feel like I was in a Guy Richie film.

    @sturdybutter@sturdybutter2 жыл бұрын
KZhead