Published Oct 6th, 2012, 10/6/12 5:02 pm
- 1,700 views, 3 today
- 72 downloads, 0 today
29
The is the 16 Bit ALU me and peri_rawesome have been working on.
So the functions it contains are:
ADD
SUBTRACT
OR
AND
XOR
EQUALS
GREATER THAN
To Add
- NOT
- LESS THAN
- BITSHIFT
The ALU is reasonably compact and is hopefully going to part of our 16bit computer
So the functions it contains are:
ADD
SUBTRACT
OR
AND
XOR
EQUALS
GREATER THAN
To Add
- NOT
- LESS THAN
- BITSHIFT
The ALU is reasonably compact and is hopefully going to part of our 16bit computer
Progress | 80% complete |
Tags |
tools/tracking
1501960
2
16bit-alu-v2
Create an account or sign in to comment.
Very compact, though it seems you sacrificed a lot of speed for the size. How long does the function on the top layer take? About 15 ticks?
you'll have to repeat the signal before you get to the top, but that's
not a big deal. Having all of the delay from using torches for vertical
transmission would kill your clock speed once it was implemented in a
full CPU. Definitely something you want to avoid.
Also, are you using the same adder for addition and subtraction in each bit? I can't see much from looking at the picture.
And
I don't know if you thought about this already, but putting the NOT
gate toward the back end of the ALU comes in handy. Use it as an
alternate, inverted, output. That way you can use it to turn AND into
NAND, OR into NOR, etc. with the same inverter. It will also reduce the
size of your instruction set, making it easier for when you start
programming your CPU.
There is one adder per bit, subtraction is does standard using by inverting input A and inverting the output.
Finally, yep, this was the intended setup, hence it not being implemented yet
Also this thing is QUITE compact for a 16-bit ALU !
Ill definitely be keeping an eye out for your next CPU !