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.

User:Kyace/Adder

From Dwarf Fortress Wiki
Revision as of 12:55, 13 June 2008 by Kyace (talk | contribs) (Full adder didn't work in one case, updated to fix flaw.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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