Minecraft Maps / Redstone Device

Full Adder, 4 wide stackable and 2 redstone ticks fast

  • 3,776 views, 2 today
  • 93 downloads, 0 today
  • 4
  • 0
  • 10
fibonatic's Avatar fibonatic
Level 41 : Master Electrician
31
After I had seen a couple of calculators/ALU videos, I decided to design a full adder myself but wanted to make it as narrow as possible and stackable (when placed directly next to each other, the carry out of the first has to be connected directly to the carry in of the second one).

When I started building, 3 blocks wide seemed to me to be the narrowest way to construct the the entire circuit, adding the one block of air to isolate each full adder, which lead to a total width of 4 blocks.
At first I designed one which followed the commonly used circuit of XOR, AND and OR gates which can be seen in the figure down below.
Full_Addersvg
However due to the serial XOR gates the "calculation time" was a bit high (6 redstone ticks or more) but when you search on planetminecraft.com for "full adder" one of the first results would be: "Efficient full adder" by CX gamer which is only 2 ticks. There fore I took a look at the truth table:
fulladdgif
After which I realized how it could be done in minecraft in such way it would only take 2 ticks. Because the Carry out can be done using three parallel AND gates (A&B, A&Cin and B&Cin) where all the outputs are connected together and all the AND gates have two ticks delay. And the Sum can be done using a three input XOR and AND gate, where the XOR gate only will output an high signal when only one input is high (how to do this can be seen in the last image) and the AND gate will only be high when all the three inputs are high.

Add some time building, making a lot of use of the properties of glowstone, and it is done. The end result uses the following materials:
  • 74 Redstone Wires
  • 14 Redstone Torches
  • 15 Glowstone
  • 3 Repeaters
  • 84 Blocks (opaque)


Where the repeaters manly are used for increasing the range from where the input can come from, however it does not effect the "calculation time". The red wool blocks represent the inputs and the blue one(s) the output (however the the glowstone block which I labelled "S" could not be replaced with blue wool).
CreditCX gamer
Progress100% complete
Tags

Create an account or sign in to comment.

1
12/31/2013 1:52 pm
Level 25 : Expert Dragonborn
Spade285
Spade285's Avatar
Do you mind if i use this?
1
01/06/2014 9:02 pm
Level 41 : Master Electrician
fibonatic
fibonatic's Avatar
Not at all, that is why I posted on here:P
1
11/14/2012 1:26 pm
Level 32 : Artisan Architect
CrossingWolf
CrossingWolf's Avatar
A friend of my builds a 54 Bit Calculator with squarerout and things like that and he built a 3 Wide Adder with no delay. I dont know, how he figured out that D: But this is very nice as well. My systems were sometimes 2 Wide, but they took about 3 or 4 Tiks per adder....
1
11/14/2012 3:27 pm
Level 41 : Master Electrician
fibonatic
fibonatic's Avatar
You should also look at my 1 tick carry propagation adders since that causes most of the delay in a ripple carry adder. My latest design sometimes seem to glitch and have some an instant propagation, do not know why. These aren't the fastest adders, since you could also use a kogge-stone adder, however theses can get very big and complicated compared to my designs, which only have to be stacked, or instant carry adders using pistons.
Not sure how you could build an entirely instant adders though XD.
1
11/15/2012 3:01 am
Level 32 : Artisan Architect
CrossingWolf
CrossingWolf's Avatar
I will take a look ;D Bugs and Glitches arent something special in Minecraft :P
1
11/15/2012 2:36 pm
Level 41 : Master Electrician
fibonatic
fibonatic's Avatar
Indeed, but most bugs are consistent, this doesn't seem to has a consistent interval in which the propagation is instant.
1
07/17/2012 2:51 am
Level 2 : Apprentice Warrior
Aser96
Aser96's Avatar
thanks for this great design !
1
07/17/2012 11:20 am
Level 41 : Master Electrician
fibonatic
fibonatic's Avatar
Thanks, but if you would have to do some fast adding you might want to consider instant-carry adders (like the one from properinglish).
1
06/25/2012 11:52 am
Level 32 : Artisan Engineer
properinglish
properinglish's Avatar
Very creative use of logic!
1
06/25/2012 1:08 pm
Level 41 : Master Electrician
fibonatic
fibonatic's Avatar
Thanks. But if you would input the truth table of a fulladder in to Logisim and turn it into a circuit, it would have similar gates as this design, but you do have to keep in mind that you have to use inverters and that a high signal is dominant over a low signal. But I did had a lot of problem making is all fit within the area. In 1.3 it might be easier cause of being able to place repeaters and torches on top of half slabs (which could replace glowstone).
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome