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.

Editing v0.34 Talk:Adder (Computing)

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.34"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
I moved the minimised mechanical adder to my own user page and linked it. I think it's the smallest reasonably possible with mechanical logic, and the practically instantaenous calculation speaks for itself.
+
== Small mechanical adder (sort-of-look-ahead) ==
--[[User:Larix|Larix]] ([[User talk:Larix|talk]]) 23:38, 28 October 2013 (UTC)
+
 
 +
Using mechanical logic and applying the principles shown by Jong, an extremely compact full adder can be built which functions similarly to a carry look-ahead adder, but thanks to the immediate operation of mechanisms in Dwarf Fortress can calculate a full carry chain in a single tick.
 +
 
 +
O1-SPABC-O2
 +
        X
 +
        c
 +
 
 +
P = Power
 +
 
 +
A,B = gear assemblies connected to the A and B inputs, active when the signal is on
 +
 
 +
C = gear assembly generating the carry output for this bit. The gear is not linked to any inputs and presence of power on it serves as carry input for the next higher bit.
 +
 
 +
X = a single gear assembly, connected to both A and B inputs, pre-toggled. It transmits power if one and only one of the inputs is on (an XOR gate).
 +
 
 +
c = carry input from the next lower bit. Like the output, an unconnected gear, presence of power on the gear serves as carry input.
 +
 
 +
S = the sum calculation, consisting of a single gear, connected to the A and B inputs as well as a signal generated by the carry input, pre-toggled. It transmits power when exactly one or three of the inputs are on.
 +
 
 +
O1 = power-to-signal converter or other output device to generate the sum output
 +
 
 +
O2 = output generating a signal from the carry, required to calculate the next higher bit's sum.
 +
 
 +
 
 +
* This adder takes a mere five installed gear assemblies per bit - four for the carry calculation and one for the sum. Additional mechanisms and machinery are required for power supply, signal generation and linkage. This is an actual full adder, as opposed to the one linked to (which misses an A = 0, B = 0, C = 1 gate).
 +
--[[User:Larix|Larix]] 14:10, 22 October 2013 (UTC)

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Please sign comments with ~~~~

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)