Okay so ive always wanted to build a cpu, i know all the basic parts ive created my own design of alot of them such as adder alu and ram i know theres much more but i want to know how to put one together but i cant find any good tutorials on one please help!
Building a CPU is different on what the context is. The CPU (Central Processing Unit) takes in input, usually from RAM, and outputs it, usually to the GPU. If you want to make a redstone system that can do everything, to taking input from levers or something and to a redstone display, that is considered a computer.
This post will be about making a CPU.
First, you need to consider what kind of CPU you want to make, as in how many bits. The higher amount of bits, the more infomation it can handle, but the larger the space. Think about it like this:
2 bit - can handle numbers up to 3 - size is muliplied by 1
4 bit - can handle numbers up to 15 - size is multipied by 1.5 - 2
[x] will replace how much bits you want your CPU to have, so it is easier to make one.
The central part of the CPU which processes the infomation is called the ALU. The ALU is where it does it's calculations.
Now, enough of introductions, lets get practical.
First, you need to reserve a space for the CPU. Make it reasonably big.
Now, we need to reserve redstone wire connections. Have about [x] amount connections for input 1, [x[ amount for input 2, 2 connections or more for the multiplexer, and [x] + 1 connections for output.
How I make my CPU is that I put the input and multiplexer connections on one side, and the output on the opposite size.
Then I create layers of functions. For example:
Layer 0: AND
Layer 1: OR
Layer 2: XOR
and so on.
They are built by making a flat square that has the same area as what you allocated before. You build one above the other once you have finished the circuitry on that layer.
Then you need to figure out how you are going to get the connections to each layer, for example, how are you going to get the input to each layer? How are you going to get the output from each layer?
The next step is to add a multiplexer for each layer of the ALU, either at the input or the output. Then you need to tune each of the multiplexors to allow the input/output to pass through. For example:
Layer 1: 00
Layer 2: 01
Layer 3: 10
and so on. Each digit represents each connection for the muliplexers, and 0 means off, and 1 means on.
Thats it! If you need any more clarity, just post and I'll reply back.
Rollback Post to RevisionRollBack
If the world is going to end in 2012, then why is there a Farm Simulator 2013? Mayans: 0 Farm Simulator: 1
Put the A bit in, take the Xor out, don't forget B bit, and shake it all about, do the OR of AND of all the bits, don't forget the Xor out!
Basically I have a block of Ram that inputs to the A part of the ALU/CPU, a block of Ram that imputs to the B part of the ALU/CPU, and then the output of the ALU/CPU goes into both the A and B blocks of Ram. The more simple the Ram/ALU combo is the better.