Help me understand what goes on in a CPU.
Long story short:
I saw a youtube vid in which someone made a 4-bit computer in Minecraft.
I was kind of immediately impressed with the idea of walking through a CPU the size of a building, where I could see how each gate fits in the whole system.
It's a bit of a mystery to me how a power switch can turn on, which sets in motion a series of switches, which ultimately culminates in my monitor, keyboard and mouse working as a computer.
So I've done a bit of research, but I'm really stuck on some stuff.
Currently I'm thinking about exactly what an ALU does. I know it does arithmetic and logic, but which functions? In that Minecraft vid I mentioned, the adder and the subtractor were separate buildings. I would not have expected that, since they are similar processes. If it's a 4-bit ALU, how does it output 1-bit logic (like A>B). Does it really have an extra bit of output?
If anyone here understands the inner workings of a CPU, please post.
I would even appreciate any links to good online sources about CU, ALU, CPU and/or FPU (math coprocessor / coprocessor) architecture. I'm probably mostly interested in more primitive stuff right now... since that's all I understand.
My final goal will be to fully understand at least a basic calculator from the gates to the user interface.