I now know more about Logic gates and ram! so i decided to make a new topic for developing a CPU!
my question is now:
How is the structure of an ALU?
What are Registers?
and How to make a WHOLE CPU of it!
i tried myself at the program "Logisim" its a free Java program, where you can build Logic stuff too! and complete Computers! i played a bit around and made some simple stuff. so know i know a bit more about CPUs and stuff.
Well, from my limited experience programming assembly(quite limited), I have gathered this, registers are set memory addresses in the processor(or atleast starting at the same addres) which specialize in storing certain datatypes(integers characters). The use of registers is that they are set locations allowing easier registers than dynamic memory locations, such as stacks or places in RAM or other caches. The thing that sets registers apart from RAM and other storage is that they are in the processor itself and are much more quickly accessed and read from.
Instructions, which are stored in RAM, are "grabbed" consecutively by the CPU and stored in it's registers, along with any necessary data. From the register, the bits to be processed are run along a common data pathway to each of the necessry logic blocks (basic logic, math, etc.) needed to process the data. Once the data has been processed, it is relayed along the computer's main data bus to wherever is required (eg. the RAM, I/O peripherals, etc.).