TAMS / Java / Hades / applets: contents | previous | next | ||||
Hades Applets contents visual index introduction std_logic_1164 gatelevel circuits delay models flipflops adders and arithm... counters LFSR and selftest memories programmable logic state-machine editor misc. demos I/O and displays DCF-77 clock relays (switch-le... switch-level... relays AND, NAND OR, NOR XOR polarity cha... mux and demux full adder full adder (... SR flipflop SR flipflop toggle flipflop toggle flipflop toggle flipf... CMOS circuits (sw... RTLIB logic RTLIB registers Prima processor D*CORE MicroJava Pic16 cosimulation Mips R3000 cosimu... Intel MCS4 (i4004) image processing ... [Sch04] Codeumsetzer [Sch04] Addierer [Sch04] Flipflops [Sch04] Schaltwerke [Sch04] RALU, Min... [Fer05] State-Mac... [Fer05] PIC16F84/... [Fer05] Miscellan... [Fer05] Femtojava FreeTTS | relay-based full adder
Circuit Description
This circuit demonstrates a full-adder built with three relays.
Three identical relays with four changeover switches each are used,
to slightly improve the clarity of the schematics.
An actual implementation might avoid the unused switches.
Click the input switches or type the ('a','b','c') bindkeys to control the circuit and watch the behavior. Each input of the full-adder (A, B, C=carry-in) is connected to the coil of one relay, with the other end of the coils connected to ground. The upper switches of the relays are used to calculate the SUM output, SUM = A + B + C = A xor B xor C As shown in the previous polarity change applet, two switches of the B-relay are used to realize the polarity changer required for the three-input XOR. The lower switches are used to calculate the carry output signal, based on the following logical expression: COUT = (A & (B | C)) | (B & C) The third contacts of relays B and C are used for the (B & C) term, while the fourth contacts are used for the (B | C) term. Note that we cannot share the first contact of relay A (already used for the SUM output), because the resulting functions would be wrong due to feedback. Obviously, larger adders can be built as a cascade of multiple one-bit adders, and subtraction is possible via two-complement's addition. Please see the arithmetic chapter of the applet collection for details and the different variants of adders. | |||
Print version | Run this demo in the Hades editor (via Java WebStart) | ||||
Usage | FAQ | About | License | Feedback | Tutorial (PDF) | Referenzkarte (PDF, in German) | ||||
Impressum | http://tams.informatik.uni-hamburg.de/applets/hades/webdemos/05-switched/20-relays/fulladd.html |