Yo Sup Forums your always acting so smart but I dont think u can explain how a cpu works without looking it up somewhere

Yo Sup Forums your always acting so smart but I dont think u can explain how a cpu works without looking it up somewhere

Other urls found in this thread:

youtube.com/watch?v=cNN_tTXABUA
youtube.com/watch?v=VBDoT8o4q00
youtube.com/watch?v=-0DQ1Fv8Ej4
twitter.com/NSFWRedditGif

It involves a vibrating quartz crystal or four. Also, you need to learn your homophones. YOU'RE not too bright now with English, are you lad?

ALU

and how that work???

A bunch of electrical signals basically. On off

it's got an adder

and some opcodes

maybe a cache of memory

Ones and zeros.

machine language
wires
interrupts
buses
multitasking

etc etc.

Fucking transistors. How do they work?

That's the part of the computer that hold all the graphics right?

how does it work? through controlled use of electricity.

>how does it work
not
>what does it do

you fucked yourself from the start OP enjoy the shitposting

how?

Nah, the ram holds the graphics. CPU just holds the numbers.

It has the alu, the databus, registers, and the controller. The aluminum is everything from adding, subbing, anding, oring, xoring, all that. The controller is able to take the bi are instructions and turn them into the needed electrical signals for toggling the control lines of the registers and alu . All moving data is put on to the data bus. Registers hold values, the main one being the accumulator, or register a. I knew this all off the top of my head. Look up the sap1 architecture.

Also everything I listed is by using logic gates, and logic gates are made up of different arrangements of transistors. A transistor is an electrically controlled switch is layman's terms

Does the ram carry the graphics in his horns?

"your" & "you're" are not actually homophones, fyi
they are contractions, which are exempt from the "sound similar but spelled differently" category
if you're going to insult someone, at least be correct

Yeah. And it feeds on the roundy and liney bits from the cpu

They're some of the most complex pieces of engineering in the world, you're likely not going to get a simplified explanation for how one works.

They manipulate bits in memory. You can influence how the bits are manipulated with an input device and the result is output using some kind of output device.

>enjoy the shitposting
>OP is provocative etc.
>one guy keeps asking how?(as if you can't ask that ad infinitum)
>implying this isn't bait

does making one in minecraft count

DUDE
TRANSISTORS
LMAO

no, only "You're" is a contraction. And they are homophones since they sound the same but mean two different things and are spelled differently.

Control units, microsequencers, l1 sram cache; I literally designed it all when I was still 12

ALUs consist of logical gates for the simple operations of and(*) or(+) and a sequence of usually 64bit full adders (which is itself made up of gates) these gates can be further broken down into transistors and the control of individual streams of current for an input/output/and control signal which becomes more of a physics concern than a CS one. As a side note breaking a CPU down into this low of a level is rarely useful because some modern processors can have ~10,000,000,000 Transistors which is honestly beyond human comprehension..

pretty much this

electricity comes in through pipes, and travels through pipes to a cord which connects to your monitors.

The pipes are full of levers, which flip on or off based on electricity going through them, and input from other levers.

you can buy other sorts of things which modify the lever/pipe network, like graphics cards, or expand the direction electricity can travel, such as letting you attach cords for sound devices.

Basically electrons from electricity flow through it and the flow is regulated by logic gates. Through the use of these logic gates, data is processed and results in output.

no you idiot. CPU is for supplying power. Central Power Unit

...

here you go OP

youtube.com/watch?v=cNN_tTXABUA

youtube.com/watch?v=VBDoT8o4q00

short answer is it's fucking complicated and there is no way i could quickly type out how a cpu or alu works if you are coming from not knowing anything

everything you see your computer do comes from adding and subtracting numbers, moving data (ones and zeros) and comparing data to other data to see if it is equal

through those 4 basic things video games and porn happen

if you really want to understand how that is the case it can take months and years of study

>everything you see your computer do comes from adding and subtracting numbers, moving data (ones and zeros) and comparing data to other data to see if it is equal

>everything you see your computer do comes from adding and subtracting numbers, moving data (ones and zeros) and comparing data to other data to see if it is equal

wat

He's not wrong really, that's basically what assembly languages do. They add/subtract values from registers and then move the values around or check the value against another and branch if a condition was met.

no, they do various combinations of logical functions like and/or/xor etc. on boolean values(addition is just that)
also he specifically said comparing data to other data IF IT IS EQUAL(emphasis mine) which is certainly not the goal in a lot of cases

still in one sentence that's pretty much how a computer works

well you are a homo

i disagree since it says that it's all addition and subtraction all the way down, which is clearly not the case.

I'm going to be honest, I can't.
I have been looking up how it works for many times too but information is just not good enough to stick.

it clearly says there are four main things going on, addition, subtraction, moving of data, comparing of data

Blast bait from the past.

Sage.

>I have been looking up how it works for many times too but information is just not good enough to stick.

see

I have seen scotts CPU is the problem and I understand how logical gates work but how does CPU get instructions from IR for example, I dont know.

by cycling, every cycle is a new set or continuation of instructions

basically by turning itself off and back on a billion times a second

yes, the last 2 are accurate and integral parts, but additino and subtraction isn't.

what is IR supposed to be?

>but additino and subtraction isn't.

division is multiple subtractions, multiplication is multiple additions

i don't see how these are not basic functions constantly done in the ALU

it's all just 0's and 1's, user

It's a bunch of fucking flip flops and logic gates, plus a clock signal.
I can build you a super shitty CPU if you give me enough time and the components.

>It's a bunch of fucking flip flops and logic gates, plus a clock signal.
>I can build you a super shitty CPU if you give me enough time and the components.

youtube.com/watch?v=-0DQ1Fv8Ej4

>He thinks this is some super hard next level shit
It would be a super shitty CPU as I said.
No pipeline, very few registers, smallest possible MIPs instruction set, 16 bit, all wired instead of using microcode. etc.

make any cool clocks lately?

>not even 60 layers of cpu cache
i'm disappointed

Yes, it measures the time until the next shitpost appears in this thread, it seems it got caught in a loop at 3:03:00 and has been ringing nonstop

Are you fucking serious? Normiefag get fucked, CPU stands for Concurrent Penetration Unit, so you can hack using CMD, it's where CMD comes from, you know, the most used hax0r tool? DUH! GOD Sup Forums IS STUPID

my literal reaction

how would you explain it

There are silicon circuits.
In the circuits there are transistors.
Transistors make logic gates.
Logic gates are able to act on logic decisions.
Thanks to logic decisions you can create hardware instructions.
How fast (in cycles) are these hardware instructions to execute is important on speed.

If you insert memory directly into the CPU you have got registers.
The CPU can now operate on numbers with registers.
If you insert even bigger memory around the CPU you've got a cache.
A big cache makes your computer faster because it takes big chunks of data from the RAM and doesn't have to access it as much (which is slow compared to cache memory).
To access to the cache and memory and shit you need a bus.
The bus is silicon circuits.
The architecture of how everything is connected to the bus got a significant impact on the computer's speed.

I was gonna write about pipelines and threads and cores and multitask and interpreted software instructions and shit but I just realized how extensive is to actually explain how a CPU werks.

yeah but how does it work how do logic gates output porn?

You need to use lewdgic gates.

See... computers work with 1's and 0's

weedman senpai is so wise~

It has many small gold pieces in it that can hold many GRAFFIX! So games can be cool.
The bigger the CPU, the more graphics you can fit in it!

>aluminum

because, they're made up of and/or/xor etc. which the alu constantly peforms. and those are certainly invoked directly as well, without adding.

opcodes, traces, voltage, transistors, nand-gates, flip-flops, logic, the clock cycle, bit-widths, addr, memory handlers, registers, source code vs machine code....

Jesus, where do you want to begin?

gnomes are captured by Intel and housed within the CPU
the gnomes are able to shrink themselves down to very small levels and do so as whoever captures them is their master.
they manually write messages and carry them to small computers within the CPU to relay information across the system, the computers that the gnomes use also contain even smaller CPUs run by even smaller gnomes, ad infinitum

AMD outsources the production of synthetic gnomes for their CPUs to Chinese alchemists

>Yor
>Yuur
>Sound the same

And addition is just multiple subtractions.

a, Z
Subtract the content at location a from the content at location Z (which is 0) and store the result (which is the negative of the content at a) in location Z
Z, b
subtract this result from b, storing in b this difference (which is now the sum of the contents originally at a and b)
Z, Z
restore the value 0 to Z

There are Turing complete computers constructed entirely from subleq(Subtract and branch if less than or equal to zero). There are also ones made entirely from subneg(Subtract and branch if negative).

You can just synthesize higher-order instructions with a shit load of subtraction.

Just build it on an FPGA, that shouldn't count as cheating.

They resist having sex change operations turning them into monsters.

>Transformers lingo in a nutshell

Doesn't branching shit all over the pipeline though?

>retard OP still manages to bait all those autists

I said there are Turing complete computers constructed entirely from subleq, I never said they were any good.

not a single answer

>listing the components
not the question
>how does a car work
>well, it has the wheels, the driver, the differentials, the engine, the suspesnsion, I could go on for days.

>explaining what it does
not the question
>how does a car work
>well, you start it and use it to drive around town

You want an actual answer? Read the 600 fucking pages of "Principles of Computer Architecture" by Miles Murdocca and some other dude. And that's without even dabbling into more complex cpus with pipeline, Tomasulo's path, caches, etc etc etc.
Do you seriously expect me to describe and explain a basic CPU in a fucking Sup Forums post?

how DOES a car work, idiot?

>you can't explain it without looking somewhere else
>"ok, just look somewhere else"
still not an answer

irrelevant

>still not an answer
So you expect me to recite a fucking book on a thread?
I gave you a factually correct short explanation before, if you want a long one go read a book.

It is relevant if you're using it as an example to explain why you think the answer you was given doesn't fix the question you asked

So answer the question I posed in the same way you would like YOUR question to be fulfilled, doesn't matter if you have to look it up

*you were
*doesn't fit
jesus

I just printed out your post and shat over it.

ALU + Processor = CPU

Processor sorts the incoming binary instructions, ALU does the calculations. It is very complex, it involves gates, pipelines and a variety of engineering jargon.

Basically fucking magic.

You are using "processor" where you should say "controller"

Fetch, decode, ALU, registers, something to clock it, and lots of muxes, conceptually.

In reality, electrons doing things electrons have no right to be doing, 'unused' polysilicon voodoo, shameless cheating, and desperate lies. Mostly the latter, especially where branch prediction or cache management is concerned.

only if it's not predicted. predicted branches are free

...

small people inside who do math.

The ALU is the esiest part of the CPU to understand imo.

BING BOING BEEP Bzzzzzzzz BzzZZzzzz Beep BLeeEEp aiaiaiaoiaoioiiiiiii 010011110101 --->> 00100001010000001 .

ah shieeet I can't. Better ask ahmed.

A set of states is kept in a series of circuits called registers.
The outputs of these registers are constantly reflecting the states of the registers into a set of demultiplexers that will output the states of only certain registers- this is controlled by an additional register holding the instruction.
From the demultiplexer, various operations are performed on the states by numerous circuits; each producing their own output. Another demultiplexer, also controlled by the state of the instruction register, produces one output from all of these operations- plus another source of state which is external (this external data may additionally be found in one of the operation circuits in some machines, where the inputs to the circuit determine where to pull the data from).
Finally a multiplexer is used to send this state back into a register, chosen by the instruction register again.
On a clock signal, the registers update and are either fed their original value or the new one produced by the circuit. They take that input state, and reflect it back into the machine. Also on clock signal, the instruction register will take on a new state- thus determining some new operation to perform between some given registers, to put into some given register. Before the next clock signal, the circuits must stabilise to produce a consistent output. Should the output be inconsistent, the intended output of an operation may be incorrect, and thus the algorithm given by the instructions will not perform correctly.

This is called a Register Transfer Machine, and represents the simplest form of CPU.

No you haven't

>How does a processor work?
>The processor is what makes your computer run!
>What? That's not an explanation.
>Oh yeah, so how does a car work.
IRRELEVANT

truly btfo

>opcodes, traces, voltage, transistors, nand-gates, flip-flops, logic, the clock cycle, bit-widths, addr, memory handlers, registers, source code vs machine code....

this its a silicon die that has all that on it using
one and Zero in binary to make pre-coded APi's and softerware do things.

The cpu also tells the hard disk to write or read and tells memory to store shit untill its ready to be prossed into the cpu's fetcher and decoder for processing and various other steps depending on the age and complexity of the CPU.

if you want real answers its too long to explain
get the 300 page Mick Meyers "A+Hardware and Neworking+ handbook.

it tell about binary code and how instuctions work with api's and software to do shit .
read up on early cpu's first then move up.

many years ago cpu's didn't do much more than complex math in binary.
now they are whole systems on a chip with very litlle input on the motherboard it self.

Transistor, NAND gates. signal flanks, registers, flip/flop arrays, mux/demuxers, program counter, decoder, bus, ALU

My CS degree involved designing a 4-bit CPU from the transistor level up, pretty standard stuff.

No. CPU's are fucking magic to me.

I can understand logic gates well enough, but how you get from logic gates to something running software is beyond me.