Ameba Ownd

アプリで簡単、無料ホームページ作成

courhowhirle1973's Ownd

Cpu how does it work

2022.01.12 23:53




















These registers are connected to the bus, which is a bundle of wires running around the whole system, connected to every component. Even modern computers have a bus, though they may have multiple buses to improve multitasking performance. Each register still has a write and read bit, but in this setup, the input and output are the same thing.


This is actually good. For example. If you wanted to copy the contents of R1 into R2, you would turn on the read bit for R1, which would push the contents of R1 onto the bus.


Registers are used to make RAM as well. RAM is often laid out in a grid, with wires going in two directions:. The decoders take a binary input and turn on the corresponding numbered wire. All of these are connected to the central bus, and to a central write and read input. Both the read and the write input will only turn on if the two wires crossing over the register are also on, effectively allowing you to select the register from which to write and read.


Again, modern RAM is far more complicated, but this setup still works. Registers are used everywhere and are the basic tool for moving data around and storing information in the CPU. So what tells them to move things around? The clock is the first component in the core of the CPU and will turn off and on at a set interval, measured in hertz, or cycles per second. This is the speed you see advertised alongside CPUs; a 5 GHz chip can perform 5 billion cycles per second.


Clock speed is often a very good metric for how fast a CPU is. The clock has three different states: the base clock, the enable clock, and the set clock. The base clock will be on for half a cycle, and off for the other half. The enable clock is used to turn on registers and will need to be on for longer to make sure that the data is enabled. The set clock always needs to be on at the same time as the enable clock, or else incorrect data could be written.


These AND gates are also connected to the output of another component, the instruction decoder. Since program data is stored in registers, just like every other variable, it can be manipulated on the fly to jump around the program. This is how programs get their structure, with loops and if statements. A jump instruction sets the current location in memory that the instruction decoder is reading from to a different location. Now, our gross oversimplification of how a CPU works is complete.


The main bus spans the whole system and connects to all of the registers. To perform a calculation, program data is loaded from system RAM into the control section. Meanwhile, it sends the ALU an instruction code telling it what to do. Originally, CPUs had a single processing core. Most CPUs sold today have two or four cores. Six cores are considered mainstream, while more expensive chips range from eight to a massive 64 cores.


Many processors also employ a technology called multithreading. Clock speed is prominently advertised when you are looking at CPUs. Clock speed mostly comes into play when comparing CPUs from the same product family or generation. When all else is the same, a faster clock speed means a faster processor.


However, a 3GHz processor from will deliver less work than a 2GHz processor from So, how much should you pay for a CPU? We have several guides to give you some suggestions for the best CPUs you can buy.


You can help keep the cost down by avoiding the latest hardware and instead sticking to a recent generation of CPU. For Intel CPUs , that means 8th-, 9th-, or 10th-generation chips. Instead, it receives the data in smaller chunks known as a word. The performance of the processor is limited by the number of bits in a word. Although bit processors were first designed in the s, they didn't become practical until much later.


By the s, they were affordable enough to include in consumer electronics, and everyone assumed 32 bits would be relatively future-proof. However, as predicted by Moore's Law , technology continued improving, and soon, bit processors were a limiting factor in hardware and software. As a result, they were gradually phased out in favor of bit processors, the current worldwide standard. While lower power consumption is clearly good for your electricity bills, it can have another surprising benefit; less heat.


The CPU needs to be attached to the other components through the motherboard to make up a fully functioning computer. The more you have of it, the faster your CPU will perform. The frequency refers to the operating speed of the processor. Before multi-core processors, frequency was the most crucial performance metric between individual CPUs.


Despite the addition of features, it is still a vital specification to take into account. The CPU is arguably the most crucial component of your computer. It performs all the tasks you associate with computers, and the other parts primarily exist to support the CPU.


Despite following the same guiding principles for many decades, there have been notable improvements like adding multiple cores and the use of hyper-threading. Combined, they make our computers, laptops, tablets, smartphones, and connected equipment more powerful and, ultimately, more valuable. However, there are plenty of upgrades you can make to your current PC to help modernize it and improve performance.


A timing circuit called a clock sends electrical pulses to the CPU. Depending on the processor, the clock may run at speeds ranging from hundreds of thousands to billions of cycles per second. The pulses drive activity inside the CPU; because other circuits depend on the same clock, it keeps complex events in the computer synchronized.


All CPUs have an instruction set -- a list of actions the processor performs, including adding numbers, comparing two pieces of data and moving data into the CPU. The software you run on your computer consists of millions of the CPU's instructions laid out in a sequence; instructions are very simple operations, so the CPU performs many of them to accomplish meaningful tasks. Some families of CPUs, such as the ones used in desktop PCs, use the same instruction set, allowing them to run the same software.


CPUs outside a product family may use different instructions; an iPad's CPU, for example, has different instructions than one running a Windows-based laptop. Processors have a circuit called the arithmetic and logic unit that carries out calculations and comparisons. The arithmetic most CPUs perform is basic multiplication, addition, division and subtraction; complex math such as statistical functions are combinations of many simple operations performed at high speed.