deckle studioOpen in the editor

4-bit adder from components (144 MOSFETs)

Four full adder components with a carry chain.

Open in the simulatorNo account needed: press Simulate and it runs.

How it works

The full adder as its own component (ports A, B, Cin, S, Cout), used four times with a carry chain. Switches A0–A3 / B0–B3 = two 4-bit numbers, LEDs = sum (S0 = least significant bit) + carry. Preset to 5 + 6 = 11. Click a component → "Open internals".

Wiring

Each line is one connection (net) and the pins it joins.

NetPins
GNDD_C4 KD_S0 KD_S1 KD_S2 KD_S3 KR_A0 2R_A1 2R_A2 2R_A3 2R_B0 2R_B1 2R_B2 2R_B3 2V1 −
VDDSW_A0 1SW_A1 1SW_A2 1SW_A3 1SW_B0 1SW_B1 1SW_B2 1SW_B3 1V1 +
A0R_A0 1SW_A0 2
A1R_A1 1SW_A1 2
A2R_A2 1SW_A2 2
A3R_A3 1SW_A3 2
B0R_B0 1SW_B0 2
B1R_B1 1SW_B1 2
B2R_B2 1SW_B2 2
B3R_B3 1SW_B3 2
D_C4
LED
D_S0
LED
D_S1
LED
D_S2
LED
D_S3
LED
SW_A0
Switch
SW_A1
Switch
SW_A2
Switch
SW_A3
Switch
SW_B0
Switch
SW_B1
Switch
SW_B2
Switch
SW_B3
Switch

Parts

More examples: Logic and home-made CPUs