[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Yo /g/ your always acting so smart but I dont think u can explain

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 111
Thread images: 11

File: cpu.jpg (501KB, 1296x1059px) Image search: [Google]
cpu.jpg
501KB, 1296x1059px
Yo /g/ your always acting so smart but I dont think u can explain how a cpu works without looking it up somewhere
>>
>>57331165
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?
>>
>>57331165
ALU
>>
>>57331178
and how that work???
>>
A bunch of electrical signals basically. On off
>>
>>57331165

it's got an adder

and some opcodes

maybe a cache of memory
>>
>>57331165
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?
>>
>>57331186
how does it work? through controlled use of electricity.
>>
>>57331165
>how does it work
not
>what does it do

you fucked yourself from the start OP enjoy the shitposting
>>
>>57331235
how?
>>
>>57331224
Nah, the ram holds the graphics. CPU just holds the numbers.
>>
>>57331165
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.
>>
>>57331272
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
>>
>>57331271
Does the ram carry the graphics in his horns?
>>
>>57331175
"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
>>
>>57331293
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.
>>
File: 1476561747565.gif (2MB, 478x207px) Image search: [Google]
1476561747565.gif
2MB, 478x207px
>>57331251
>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
>>
>>57331165
DUDE
TRANSISTORS
LMAO
>>
>>57331312
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.
>>
File: 1476565650046[2].png (299KB, 680x598px) Image search: [Google]
1476565650046[2].png
299KB, 680x598px
Control units, microsequencers, l1 sram cache; I literally designed it all when I was still 12
>>
>>57331186
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..
>>
>>57331367
pretty much this
>>
>>57331165
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.
>>
>>57331165
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.
>>
>>57331224 no you idiot. CPU is for supplying power. Central Power Unit
>>
File: 1471725943861.png (307KB, 740x620px) Image search: [Google]
1471725943861.png
307KB, 740x620px
>>57333054
>>
File: 1353173624977.jpg (359KB, 2048x1367px) Image search: [Google]
1353173624977.jpg
359KB, 2048x1367px
here you go OP

https://www.youtube.com/watch?v=cNN_tTXABUA

https://www.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
>>
File: 1355444125157.jpg (43KB, 500x333px) Image search: [Google]
1355444125157.jpg
43KB, 500x333px
>>57333363
>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
>>
>>57333363
>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
>>
>>57333796
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.
>>
>>57333826
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
>>
>>57333885

still in one sentence that's pretty much how a computer works
>>
>>57332761
well you are a homo
>>
>>57333894
i disagree since it says that it's all addition and subtraction all the way down, which is clearly not the case.
>>
>>57331165
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.
>>
>>57333952

it clearly says there are four main things going on, addition, subtraction, moving of data, comparing of data
>>
Blast bait from the past.

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

see

>>57333341
>>
>>57333972
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.
>>
>>57334005

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
>>
>>57333962
yes, the last 2 are accurate and integral parts, but additino and subtraction isn't.
>>
>>57334005
what is IR supposed to be?
>>
>>57334057
>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
>>
>>57331165
it's all just 0's and 1's, anon
>>
>>57331165
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.
>>
File: 1353716485832.gif (2MB, 450x450px) Image search: [Google]
1353716485832.gif
2MB, 450x450px
>>57334099
>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.

https://www.youtube.com/watch?v=-0DQ1Fv8Ej4
>>
>>57334104
>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.
>>
>>57334121

make any cool clocks lately?
>>
>>57334121
>not even 60 layers of cpu cache
i'm disappointed
>>
>>57334124
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
>>
>>57333054
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 4CHAN IS STUPID
>>
>>57333796
my literal reaction
>>
>>57334163

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.
>>
>>57334188

yeah but how does it work how do logic gates output porn?
>>
>>57334207
You need to use lewdgic gates.
>>
File: justincuck.jpg (93KB, 822x637px) Image search: [Google]
justincuck.jpg
93KB, 822x637px
>>57331165

See... computers work with 1's and 0's
>>
>>57334228
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!
>>
>>57331272
>aluminum
>>
>>57334075
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.
>>
>>57331165
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
>>
>>57331312
>Yor
>Yuur
>Sound the same
>>
>>57334075
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.
>>
>>57334121
Just build it on an FPGA, that shouldn't count as cheating.
>>
>>57331214
They resist having sex change operations turning them into monsters.
>>
>>57333167
>Transformers lingo in a nutshell
>>
>>57334519
Doesn't branching shit all over the pipeline though?
>>
>retard OP still manages to bait all those autists
>>
>>57334564
I said there are Turing complete computers constructed entirely from subleq, I never said they were any good.
>>
>>57331175
>>57331178
>>57331186
>>57331192
>>57331205
>>57331206
>>57331207
>>57331214
>>57331224
>>57331272
>>57331367
>>57332730
>>57332740
>>57332777
>>57332887
>>57332928
>>57333363
>>57333964
>>57333961
>>57334099
>>57334087
>>57334188
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
>>
>>57334699
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 4chan post?
>>
>>57334699
how DOES a car work, idiot?
>>
>>57334726
>you can't explain it without looking somewhere else
>"ok, just look somewhere else"
still not an answer

>>57334732
irrelevant
>>
>>57334739
>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.
>>
>>57334739
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
>>
>>57334762
*you were
*doesn't fit
jesus
>>
>>57334739
I just printed out your post and shat over it.
>>
>>57331165
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.
>>
>>57334853
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.
>>
>>57334564
only if it's not predicted. predicted branches are free
>>
File: 1458228263561.png (180KB, 625x626px) Image search: [Google]
1458228263561.png
180KB, 625x626px
>>57334699
>>57334739
>>
>>57331165
small people inside who do math.
>>
>>57334858
The ALU is the esiest part of the CPU to understand imo.
>>
>>57331165
BING BOING BEEP Bzzzzzzzz BzzZZzzzz Beep BLeeEEp aiaiaiaoiaoioiiiiiii 010011110101 --->> 00100001010000001 .
>>
>>57331165
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.
>>
>>57334754
No you haven't

>>57334762
>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

>>57335103
truly btfo
>>
>>57334355
>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.
>>
>>57334699
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.
>>
>>57331165
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.
>>
File: has science gone too far.gif (449KB, 300x168px) Image search: [Google]
has science gone too far.gif
449KB, 300x168px
CPUs send 0 and 1 eletronic signals really fucking fast which power calculators that do math really fast which is what computer instructions are at a basic level.
>>
But anon, I know how to write vhdl processor models
>>
>>57335610
>now they are whole systems on a chip with very litlle input on the motherboard it self.
Yeah that's why we get new cpu architectures with 5% increases in instruction execution speed but massive increases in I/O capabilities.

DDR4, new PCI express versions, new SATA versions, m.2, new USB versions, thunderbolt, moving the DDR controller in to the CPU, large portions of the die dedicated to cache...

all of these are motivated by improving the efficiency of I/O from the motherboard. CPUs are still do a smple job. The fun happens when you try to make it faster at doing the simple job.
>>
>>57334732
>how DOES a car work, idiot?
Often driven by a combustion engine, the engine has shaft that runs through it. Connected to the shaft are pistols that can move up and down inside cylinders that are just the right size for them and, in doing so, will turn the shaft. Oil is used to both lubricate and seal the pistons in the shafts.
At the top of these cylinders there are valves that will let in air and fuel, as well as expel fumes, and a spark plug which is used to ignite fuel and air mixture. The expanding gas forces the piston down, turning the shaft. In car engines the are usually several pistons and half fire each rotation of the shaft. Timing of the spark plug firing and valves is done by the rotation of the shaft itself.
The spark plugs are driven by a coil that jumps the 12V of the car battery up to several thousand volts to create the spark. Water flows through the engine and through a radiator usually in front of the engine that uses airflow to transfer heat away from the system.
The shaft comes out of the engine into gear box, or transmission, which in simple terms is like the gears on a bike. Using a larger gearing makes it easier to turn the wheels but requires far more revolutions for a given speed than using a smaller gearing. The transmission then connects to the axle that drives the wheels.
>>
>>57335908
same here

i understand basics but how those basics end up as fucking desktop software is beyond me

aslo, i can't comprehend how can anyone put like 10 billion transistors on a cpu
>>
>>57336060
more. cache.
>>
>>57335908
>I can understand logic gates well enough, but how you get from logic gates to something running software is beyond me.

If you want to learn look in to combination logic and then sequential logic. You define a boolean equation which takes 1 or more boolean variables and outputs 1 or more boolean variables. So for a 1 bit adder you have two inputs of 1 bit and a 2 bit output

f(x0, x1) = (y1,y0)
The truth table is
f(0,0) = 00 (0+0 = 0)
f(0,1) = f(1,0) = 0,1 (1+0 = 0+1 = 1)
f(1,1) = 1,0 (1+1 = 2)

you can complicate it and make it possible to chain them by adding a carry in bit and calling y1 carry out but I'll skip that because the point I'm trying to illustrate is implementing a boolean function with just gates.

So y0 is only true when either x1 or x0 is 1.
y0 = x1 XOR x0
y1 is only true when x1 and x0 is 1
y1 = x1 AND x0

Once you learn that but for the general case you go to sequential where you have a finite state. The state is just a collection of bits and therefore a collection of boolean variables. The input is also a collection of boolean variables. So you have:
f(input, current state) = next state
Imlementing f is the same as above. This is called a finite state machine. Computers are just big approximations of finite state machines.

So you build small finite state macihnes to do small jobs. But you take the state from one and use part of it as the input as another. This is like functions in programming. It's just abstration and abstraction is how you build large systems.

So you have a CPU that has figured out it it needs something from RAM. So part of it's state is YO I NEED DIS. This part of the state is sent to the input of the memory controller. The guy who designed the memory controller knows how to turn retrieve(DIS) in to an output. So it looks at its state which is lots of DATS. For it retrieve(DIS) = lookup(DIS,DATS).

Now you have a machine that figures out it needs something and gets it.
>>
Don't do op's homework for him
>>
>>57336060
>aslo, i can't comprehend how can anyone put like 10 billion transistors on a cpu

Well, first you start out with a mostly human designed cpu that has like say 2300 transistors then you use the computing power to help you design a chip with more transistors and repeat the process for a few decades.
>>
>>57331224
Yea but how many times more graphics?
>>
>>57331165
it starts with high purity silica sand which is refined into silicon, then heated past the melting point and allowed to re-cool on a send crystal to grow a larger crystal with uniformed preferred orientations. It is then cut into wafers which are treated with photo sensitive chemicals to create regions of positive and negative charge potential. The interface of these form the transistor gates which can be charged to change into a "on" or "off" state, the huge array of these can be used to from very complex electrical flow patterns which change the main electrical input into a desired output. To add to it the electrical flow is set to a frequency allowing for multiple operations to be preformed in sequence. At startup a sequence of on and off sates are read in sequence setting up how the array of gate will act in the CPU, then more software is loaded which acts according to the setup. This must be done each time the CPU is activated as it will fall back to a rest off state without power.

It is really complex, but that is the simple overview. Do you have more specif questions you would like me to answer?
Thread posts: 111
Thread images: 11


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.