v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User:Kyace/Adder"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (Forgot to allow hatchs a drain on the level below)
(Full adder didn't work in one case, updated to fix flaw.)
 
Line 1: Line 1:
See [http://en.wikipedia.org/wiki/Adder_(electronics) Adders]
+
An [http://en.wikipedia.org/wiki/Adder_(electronics) adder] is a logic device which can take two inputs, and possibly carry bit and output the sum and possibly a carry out: In 1-bit binary 1 + 1 = 0, carry the 1.
  
'''Half Adder'''
+
Proof of concept: [http://mkv25.net/dfma/movie-615-fulladderfluidlogic]
 +
 
 +
==Full Adder==
 +
'''Full Adder (Z-level 0)'''
 
{| style="border-spacing: 0"
 
{| style="border-spacing: 0"
 
|-
 
|-
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 17: Line 22:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|≈|#008|#000}}
 
|style="padding: 0"|{{Raw Tile|≈|#008|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 25: Line 32:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|÷|#555|#000}}
 
|style="padding: 0"|{{Raw Tile|÷|#555|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 33: Line 42:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|÷|#555|#000}}
 
|style="padding: 0"|{{Raw Tile|÷|#555|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 41: Line 52:
 
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
|style="padding: 0"|{{Raw Tile||#990|#330}}
+
|style="padding: 0"|{{Raw Tile||#00F|#000}}
 +
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 +
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|-
 
|-
Line 50: Line 63:
 
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|-
 
|-
Line 58: Line 73:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|┼|#0FF|#000}}
 
|style="padding: 0"|{{Raw Tile|┼|#0FF|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|┼|#F00|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|-
 
|-
Line 67: Line 84:
 
|style="padding: 0"|{{Raw Tile|¢|#F00|#000}}
 
|style="padding: 0"|{{Raw Tile|¢|#F00|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|┼|#0FF|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
 
|-
 
|-
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 74: Line 94:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|┼|#0FF|#000}}
 
|style="padding: 0"|{{Raw Tile|┼|#0FF|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|┼|#0F0|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|-
 
|-
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|`|#990|#000}}
+
|style="padding: 0"|{{Raw Tile|#|#999|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|¢|#0F0|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|.|#990|#000}}
 
|style="padding: 0"|{{Raw Tile|.|#990|#000}}
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|-
 
|style="padding: 0"|
 
|style="padding: 0"|{{Raw Tile|C|#FFF|#000}}
 
|style="padding: 0"|
 
|style="padding: 0"|
 
|style="padding: 0"|{{Raw Tile|S|#FFF|#000}}
 
|style="padding: 0"|
 
|style="padding: 0"|
 
|}
 
 
'''Full Adder (Z-level 0)'''
 
{| style="border-spacing: 0"
 
 
|-
 
|-
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 100: Line 112:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|`|#990|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|#|#999|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|-
 
|-
Line 108: Line 122:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile||#008|#000}}
+
|style="padding: 0"|{{Raw Tile|.|#990|#000}}
 +
|style="padding: 0"|{{Raw Tile|#|#999|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 116: Line 132:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|÷|#555|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|}
 +
 +
'''Full Adder (Z-level -1)'''
 +
{| style="border-spacing: 0"
 
|-
 
|-
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 124: Line 146:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|÷|#555|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|-
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|-
 
|-
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile||#00F|#000}}
+
|style="padding: 0"|{{Raw Tile||#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 143: Line 159:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|-
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|┼|#F00|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|┼|#F00|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|┼|#0FF|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|-
 
|-
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|┼|#0FF|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|¢|#0FF|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|¢|#F00|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|-
+
|style="padding: 0"|{{Raw Tile|÷|#555|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|.|#990|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|┼|#F00|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|┼|#0FF|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|-
 
|-
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|#|#999|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|¢|#0F0|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|÷|#555|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|-
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|`|#990|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|-
 
|style="padding: 0"|
 
|style="padding: 0"|
 
|style="padding: 0"|
 
|style="padding: 0"|
 
|style="padding: 0"|{{Raw Tile|S|#FFF|#000}}
 
|style="padding: 0"|
 
|style="padding: 0"|
 
|}
 
 
'''Full Adder (Z-level -1)'''
 
{| style="border-spacing: 0"
 
|-
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|≈|#008|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 208: Line 196:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|-
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|÷|#555|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|-
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|÷|#555|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 231: Line 215:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|#|#999|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|#|#999|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|≈|#008|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 243: Line 229:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|-
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|.|#990|#000}}
 +
|style="padding: 0"|{{Raw Tile|`|#990|#000}}
 +
|style="padding: 0"|{{Raw Tile|,|#990|#000}}
 +
|style="padding: 0"|{{Raw Tile|.|#990|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 254: Line 244:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|`|#990|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|style="padding: 0"|{{Raw Tile|#|#999|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|#|#999|#000}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|-
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|.|#990|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
|-
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|.|#990|#000}}
 
|style="padding: 0"|{{Raw Tile|.|#990|#000}}
 
|style="padding: 0"|{{Raw Tile|`|#990|#000}}
 
|style="padding: 0"|{{Raw Tile|`|#990|#000}}
|style="padding: 0"|{{Raw Tile|,|#990|#000}}
+
|style="padding: 0"|{{Raw Tile|`|#990|#000}}
|style="padding: 0"|{{Raw Tile|.|#990|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|-
 
|-
Line 281: Line 267:
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|`|#990|#000}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
Line 289: Line 277:
 
|style="padding: 0"|
 
|style="padding: 0"|
 
|style="padding: 0"|
 
|style="padding: 0"|
 +
|style="padding: 0"|
 +
|style="padding: 0"|{{Raw Tile|S|#FFF|#000}}
 
|style="padding: 0"|
 
|style="padding: 0"|
 
|style="padding: 0"|
 
|style="padding: 0"|
Line 299: Line 289:
 
|{{Raw Tile|┼|#0FF|#000}}
 
|{{Raw Tile|┼|#0FF|#000}}
 
|Door connected to Lever B
 
|Door connected to Lever B
|{{Raw Tile|#|#999|#000}}
+
|{{Raw Tile||#0F0|#000}}
|Normal Grate
+
|Door connected to Carry Inputer
 
|-
 
|-
 
|{{Raw Tile|¢|#F00|#000}}
 
|{{Raw Tile|¢|#F00|#000}}
Line 313: Line 303:
 
|{{Raw Tile|S|#FFF|#000}}
 
|{{Raw Tile|S|#FFF|#000}}
 
|Sum Output
 
|Sum Output
 +
|{{Raw Tile|#|#999|#000}}
 +
|Normal Grate
 
|-
 
|-
 
|{{Raw Tile|≈|#008|#000}}
 
|{{Raw Tile|≈|#008|#000}}
Line 320: Line 312:
 
|{{Raw Tile|÷|#555|#000}}
 
|{{Raw Tile|÷|#555|#000}}
 
|Screw Pump
 
|Screw Pump
 +
|}
 +
 +
 +
 +
==Half Adder==
 +
{| style="border-spacing: 0"
 +
|-
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|≈|#008|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|÷|#555|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|÷|#555|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 +
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 +
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 +
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|≈|#00F|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|┼|#F00|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|┼|#F00|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|┼|#0FF|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|┼|#0FF|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|¢|#0FF|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|¢|#F00|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|.|#990|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|┼|#F00|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|┼|#0FF|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|`|#990|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|.|#990|#000}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|style="padding: 0"|{{Raw Tile|▒|#990|#330}}
 +
|-
 +
|style="padding: 0"|
 +
|style="padding: 0"|{{Raw Tile|C|#FFF|#000}}
 +
|style="padding: 0"|
 +
|style="padding: 0"|
 +
|style="padding: 0"|{{Raw Tile|S|#FFF|#000}}
 +
|style="padding: 0"|
 +
|style="padding: 0"|
 
|}
 
|}

Latest revision as of 12:55, 13 June 2008

An adder is a logic device which can take two inputs, and possibly carry bit and output the sum and possibly a carry out: In 1-bit binary 1 + 1 = 0, carry the 1.

Proof of concept: [1]

Full Adder[edit]

Full Adder (Z-level 0)

÷
÷
¢ ¢
.
# ¢ .
` #
. #

Full Adder (Z-level -1)

÷
÷
# #
. ` , .
`
. . ` `
` `
C S
Door connected to Lever A Door connected to Lever B Door connected to Carry Inputer
¢ Hatch connected to Lever A ¢ Hatch connected to Lever B ¢ Hatch connected to Carry Input
C Carry Output S Sum Output # Normal Grate
Water on Z-level below Water on Current level ÷ Screw Pump


Half Adder[edit]

÷
÷
¢ ¢
.
` .
C S