Add sub
tmarhguy·alu·schematics/kicad/boards/add_sub/add_sub.kicad_pcb
About the Add sub PCB
Add sub is an open source PCB design by tmarhguy, published on GitHub under the MIT license. It is a 2-layer board measuring 110 × 117 mm, with 200 components from 8 distinct parts.
Other key parts include the 74HC86 and 74HC157. By type, the board carries 178 transistors, 12 ICs, 6 capacitors and 4 connectors.
From the project
8-bit combinational ALU built from scratch with 3,488 CMOS transistors (KiCad + SPICE + Logisim + 1.24M tests
8-bit adder with conditional B inversion for subtraction
Implements both addition and subtraction using a single 8-bit ripple-carry adder.
Operations: - ADD: OUT = A + B (when M=0) - SUB: OUT = A - B (when M=1, using 2's complement)
Truth table: | M | B | B' | |---|---|----| | 0 | 0 | 0 | | 0 | 1 | 1 | | 1 | 0 | 1 | | 1 | 1 | 0 |
When M=0 (ADD): B' = B When M=1 (SUB): B' = ~B
Main components on the Add sub
Add sub bill of materials (BOM)
200 components, 8 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 4 | 74HC86 | SOIC-14_3.9x8.7mm_P1.27mm | U201, U1101, U2201, U3301 |
| 2 | 74HC86 | DIP-14_W7.62mm | U701, U702 |
| 6 | 74HC157 | SOIC-16_3.9x9.9mm_P1.27mm | U801, U802, U803, U804, U805, U806 |
| 89 | NMOS | TSOT-23 | Q301, Q304, Q306, Q308, Q502, Q602, Q701, Q704 +81 |
| 89 | PMOS | TSOT-23 | Q302, Q303, Q305, Q307, Q501, Q601, Q702, Q703 +81 |
| 3 | Conn_01x12_Pin | Harwin_Gecko-G125-FVX1205L0X_2x06_P1.25mm_Vertical | J101, J103, J104 |
| 1 | Conn_01x34_Pin | Harwin_Gecko-G125-FVX3405L0X_2x17_P1.25mm_Vertical | J102 |
| 6 | 100nF | C_Disc_D5.0mm_W2.5mm_P5.00mm | C201, C701, C702, C1101, C2201, C3301 |
Add sub design files
The KiCad project lives in the tmarhguy/alu repository on GitHub; these links point at the commit this page was built from.
Add sub: common questions
How big is the Add sub PCB?
The Add sub measures 110 × 117 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the Add sub?
200 components, from 8 distinct parts. The full bill of materials is listed on this page.
Where can I download the Add sub design files?
From the tmarhguy/alu repository on GitHub, which has the KiCad layout and the schematic; the links under Design files point to each one.
Can I use the Add sub design in my own project?
Yes, under the terms of its MIT license, which tmarhguy chose for the repository.
More boards in alu
Led panel 1
tmarhguy
101 × 68 mm131 parts2LMIT47Led panel 2
tmarhguy
78.5 × 68.5 mm129 parts2LMIT47Main logic
tmarhguy
98.5 × 95.5 mm122 parts2LMIT47Main control
tmarhguy
59 × 63 mm42 parts2LMIT47Led panel 3
tmarhguy
43.5 × 50.5 mm35 parts2LMIT47Flags
tmarhguy
41 × 35.5 mm26 parts2LMIT47Gate xnor 2in
tmarhguy
77.5 × 43 mm16 parts2LMIT47Gate xor 2in
tmarhguy
72 × 42.5 mm16 parts2LMIT47Gate and 4in
tmarhguy
5.4 × 18.7 mm10 parts2LMIT47Gate or 2in
tmarhguy
57.5 × 36 mm6 parts2LMIT47Gate and 2in
tmarhguy
42.5 × 32.5 mm6 parts2LMIT47