
Sequencer
nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.

A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.
Clock is an open-source printed circuit board by nikolafilip, from the nikolafilip/nibble repository on GitHub, published under the CERN-OHL-P-2.0 licence. It is a 2-layer board of 136 × 160 mm with 54 parts on 83 nets, routed with 226 tracks and 16 vias.
Its parts include 21 resistors, 16 transistors, 5 capacitors, 4 diodes and 2 connectors. It belongs with the lEDs and displays boards of this library.
The control unit: step counter, instruction and operand registers, flags, two decoders and the diode control matrix. 592 transistors, 354 resistors, 87 matrix diodes on 1035 crossings, 19 LEDs (counted on the routed board). The program counter and the return register are on the counter cards (D035).
| Bus signals used | in: M0..M7, CF, ZF, CLK, RST. out: II, PCE, SUB, EO, AI, AO, BI, BO, BA, AB, OI, IO, PCL, FI, HLT, MAI, MI, MO, ONE, F0, F1, INP |
| Bus driven | BUS0#..BUS3# open-drain with OPR3..0 while IO (LDI, LOAD n, STORE n) |
| Link header (2x6) | to board 09: OPR0..OPR7, PCR, RAI, GND, GND |
How it runs an instruction (docs/isa.md):
II); S1 counts (PCE); S2, only for
a two-word instruction, loads the second word (OPI, PCE); S3 and S4 drive
the matrix rows. The DONE column returns the ring to S0.NOR(OPn#, T3N) for every opcode, NOR(OP0#, Fn#, T3N) for every
family member, an S4 row for the four memory accesses, and for JC and JZ a
second row that includes the latched flag; JNZ and JNC the same. 45 rows,
10k pull-ups.PCL too, PCR and RAI to the link, DONE back to the step ring.
New instructions are diodes; rows OP8..OP15 are free.FI and PH1.sequencer.kicad_sch: generated by sim/build_sequencer.py from sim/sequencer.py. Do not hand-edit.fab/sequencer-assembly.svg: which crossing takes a diode and which resistor is not 47k (sim/assembly.py sequencer). On the board a crossing that takes a diode has a printed circle; the other 948 are bare pads.fab/sequencer-gerbers.zip: the eleven files the fab takes (four copper layers). python3 sim/order_check.py sequencer is the gate.sequencer.kicad_pcb, fab/: layout by sim/pcb.py. The matrix is laid out transposed: rows are vertical tracks at 3.81 mm pitch on the back, columns horizontal tracks at 10.16 mm on the front, a diode standing on each populated crossing.The machine gate (sim/gate.py): the reference programs on the kicad-cli
exports of ALU, registers, sequencer and counter with the hub, compared tick
for tick with sim/emu.py. Results are recorded in the commit that adds the
routed board.
D041 proof (2026-09-11): list.asm on alu, hub, registers, sequencer, counter and memory at the MIX corner, seed 3, the run that failed before the column buffers: 210 ticks, 0 mismatches (sim/out/d041_list_MIX3.log). Seeds 1 and 2 and the other programs are in the card gate.
Layout (D051, 2026-09-11, amended 2026-09-13): 245 x 255 mm on four layers, the tiles at the card pitch; layer 2 is a ground pour with a few routed tracks, layer 3 a third routing layer (two layers left the router about 100 nets short at this pitch and about 70 at 10.16 mm, D049). Routed with freerouting 2.4.1 (Java 25) with the layers ordered so that layers 3 and 4 route vertically and 1 and 2 horizontally, the power nets out of its network (the rails, stubs and vias are fixed copper) and the optimizer off. The matrix rows and columns are hidden from the router on the outer layers and a keepout fences the matrix, but the matrix diodes stay in the DSN with their pins off the nets, so layer 3 threads between their pads across it. Each matrix column tail ends on a fixed via 4.5 mm before the keepout with a short stub on layer 3, where the router picks it up on its vertical layer. The 45 row drivers stand under their matrix columns (three per tile column, left to right). The left field, 12 columns, is split: its right five columns start one tile row lower, leaving an 8 mm strip under the header's right half for the fan-out to pins 42 to 64, and the output buffers stand in the column under their own header pin; the 23 column buffers fill the columns beside the matrix, where the tails come out. The +5V feed runs along the top edge and down the right side of the board, never through the corridor between the left field and the matrix.
Routed board (2026-09-14, route v9): 0 unconnected, 0 DRC errors on the rules it was routed with (0.2 mm track, 0.15 mm clearance). The 132 warnings, read one by one on 2026-09-28: 59 dangling fixed stubs, by design (the 45 matrix column tails and the In2 stubs of the row tails the router did not need); 67 silkscreen overlaps (the printed circles of diodes on neighbouring crossings touch at 2.54 mm; two LED names touch a transistor's outline); 6 LED names clipped by a pad's mask opening (OPR0, OPR1, OPR3, OPR5, OPR6, ZFQ), which move in the silkscreen pass. One hand patch after the router, recorded in the plan (extra.patches) and applied by pcb.py: freerouting had hooked ENF across CFQ_m1 on layer 3 beside Q380. The SPICE export of this schematic is line for line the one the machine gate ran (resistor pin order aside): the tile mirroring of the re-placement is the only difference. Gate results on the card deck with this sequencer: all twelve programs at TYP, 0 mismatches (lfsr 1497 ticks, rerun with the virtual reset fixed in machine.py, sim/out/cards_lfsr_TYP.log); fib, alu, gcd, list, logic, call at LO, HI, MIX1 and MIX2: 24 of 24 runs, 0 mismatches (sim/out/gate_cards_corners.log); fib, list, logic, calc at TYP and LO with 500 pF per bus line: 8 of 8; fib and call with the clock card driving CLK: 0 mismatches (docs/cards.md step 9).
| Qty | Value | Footprint | References |
|---|---|---|---|
| 16 | 2N7000 | TO-92_Inline_Wide | Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15, Q16 |
| 9 | 47k | R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical | R2, R3, R4, R5, R6, R7, R8, R9, R12 |
| 4 | M3 | MountingHole_3.2mm_M3_Pad | H1, H2, H3, H4 |
| 3 | 100k | R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical | R15, R18, R19 |
| 3 | 10k | R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical | R13, R17, R21 |
| 3 | 1k | R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical | R10, R11, R14 |
| 2 | 1Meg | R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical | R16, R20 |
| 2 | 1N4148 | D_DO-35_SOD27_P7.62mm_Horizontal | D3, D4 |
| 2 | 2.2u | CP_Radial_D5.0mm_P2.00mm | C4, C5 |
| 2 | LED | LED_D3.0mm | D1, D2 |
| 1 | 100n | C_Disc_D5.0mm_W2.5mm_P2.50mm | C1 |
| 1 | 10u | CP_Radial_D5.0mm_P2.00mm | C2 |
| 1 | 1M | Potentiometer_Alpha_RD901F-40-00D_Single_Vertical | RV1 |
| 1 | 4.7k | R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical | R1 |
| 1 | 47n | C_Disc_D5.0mm_W2.5mm_P2.50mm | C3 |
| 1 | BUS | IDC-Header_2x32_P2.54mm_Vertical | J1 |
| 1 | RUN | SW_DIP_SPSTx01_Slide_9.78x4.72mm_W7.62mm_P2.54mm | SW1 |
| 1 | SLOW | PinHeader_1x02_P2.54mm_Vertical | J2 |
It measures 136 × 160 mm and has 2 copper layers, 1.6 mm thick.
54 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the nikolafilip/nibble repository on GitHub, at the commit this page was made from: the board is boards/05-clock/clock.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the CERN-OHL-P-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.

nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.

nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.

nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.

nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.

nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.

nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.

nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.

nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.

nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.

nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.

nikolafilip/nibble
A 4-bit computer built from individual transistors, in public. No integrated circuits. AI-designed, hand-soldered.



MaltWhiskey/Mega-Cube
16x16x16 PL9823 Cube with Teensy 4.0 and FlexIO driver





brickbots/PiFinder
A plate solving telescope finder based around a Raspberry PI and RPI HQ Camera