How a CPU Works ?


The CPU short for central processing unit is like the brain of the computer and once you understand how it works you’ll understand the computer as well. Let’s remove the cover of the CPU



And zoom into to see what happens inside.


 There are lots of different wires carrying information around the CPU. This particular CPU is called the 6502 and was used in computers like the Apple 2 and the Commodore 64 as well as in the original Nintendo Entertainment System. 

This simulation of the 6502 can be found online at visual 6502 org. 

In every CPU there is a particular wire that turns on and off at a steady rate to help keep everything in sync that wire is called the clock and the clock in this simulation is turning on about twice a second. modern CPUs are measured in gigahertz(giga meaning billion and  hertz meaning times per second),  so  the clock in modern cpus turns on several billion times per second that speed is what allows cpus to do very complicated things very quickly,  however what the CPU does during each clock tick is actually very simple and something we'll look at more in this video .

For now we'll zoom back out and put the cover back on the CPU and your computer might be manufactured by a company like Intel or AMD. 



But the type of CPU we're going to look at today is called the Scott CPU. 


The Scott CPU doesn't actually exist except as a design in a book called but how do it know by Jhon Scott. The design of the scott CPU is copyrighted and is being used in this video with John''s permission. The book is available at but how do it no.com.



This is a great book that goes through each of the components in the CPU very slowly without using a lot of overly technical jargon. if you've been looking for a book that explains how a computer works, i would highly recommend this one. 


So let's flip the CPU over and look underneath, you'll see a lot of pins sticking out that allow the CPU to take in information and send it back out. the CPU fits into what's known as the motherboard. 


The motherboard allows all the components in the computer connect to each other, so we'll flip the CPU back over and plug it into the motherboard.


 on the right of the motherboard is a place for something called RAM is short for random access memory and it just contains all the data that is being processed by the CPU.

Let's learn a little bit more about RAM by looking at how the CPU and RAM interact. For now we'll remove the wires on the left and move the motherboard over to make room for the RAM chip.


RAM consists of a list of addresses and at each of those addresses is a piece of data.


The CPU normally requests and processes each piece of data from RAM in order one after the other. However if the CPU is instructed to pull data out of order, it can do so. 

That is why it's called random access memory. The data can be accessed randomly if it needs to be although normally it's accessed in order when.


When the computer first starts running a program, it sends an address to RAM to begin 

……





视频地址:

https://www.youtube.com/watch?v=cNN_tTXABUA点击打开链接

















































  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值