Skip to the content
PCBKitNew board
2 layers136 × 160 mmClock, the printed circuit board in 3D

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

Size
136 × 160 mm
Copper layers
2
Thickness
1.6 mm
Parts
54
Nets
83
Pads
185
Tracks, vias
226, 16
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
9 Sep 2026
Updated
15 Oct 2026

Overview

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.

README

boards/03-sequencer/README.md

Board 03: sequencer

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 usedin: 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 drivenBUS0#..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):

  • Steps are a one-hot ring of five flip-flops with asynchronous reset. S0 loads IR and the operand's low nibble (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.
  • IR and OPR are transparent latches open while their load line and PH1 are both high: they follow the memory word during the low half of the clock and are closed before the rising edge on which everything else changes.
  • Decoders: IR3..0 to OP0#..OP15#, OPR3..0 to F0#..F15#, each through a pair of 2-to-4 predecoders so no NAND has more than two transistors in series.
  • Rows: 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.
  • The matrix: a diode from a row to a column pulls that control line high while the row is active. 23 columns with 1 Meg pull-downs: 19 go to the bus header, PCL too, PCR and RAI to the link, DONE back to the step ring. New instructions are diodes; rows OP8..OP15 are free.
  • Flags: CFQ and ZFQ latched from the ALU while FI and PH1.

Files

  • 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.

Verification

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).

Parts

54
QtyValueFootprintReferences
162N7000TO-92_Inline_WideQ1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15, Q16
947kR_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_VerticalR2, R3, R4, R5, R6, R7, R8, R9, R12
4M3MountingHole_3.2mm_M3_PadH1, H2, H3, H4
3100kR_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_VerticalR15, R18, R19
310kR_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_VerticalR13, R17, R21
31kR_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_VerticalR10, R11, R14
21MegR_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_VerticalR16, R20
21N4148D_DO-35_SOD27_P7.62mm_HorizontalD3, D4
22.2uCP_Radial_D5.0mm_P2.00mmC4, C5
2LEDLED_D3.0mmD1, D2
1100nC_Disc_D5.0mm_W2.5mm_P2.50mmC1
110uCP_Radial_D5.0mm_P2.00mmC2
11MPotentiometer_Alpha_RD901F-40-00D_Single_VerticalRV1
14.7kR_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_VerticalR1
147nC_Disc_D5.0mm_W2.5mm_P2.50mmC3
1BUSIDC-Header_2x32_P2.54mm_VerticalJ1
1RUNSW_DIP_SPSTx01_Slide_9.78x4.72mm_W7.62mm_P2.54mmSW1
1SLOWPinHeader_1x02_P2.54mm_VerticalJ2

Questions

How big is the Clock PCB?

It measures 136 × 160 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Clock use?

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.

Where can I download the Clock KiCad files?

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.

Can I use the Clock design in my own project?

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).

More from nikolafilip/nibble

12
  • 4 layers245 × 255 mmSequencer, the printed circuit board in 3D

    Sequencer

    nikolafilip/nibble

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

    2,009 parts1CERN-OHL-P-2.0
  • 2 layers414 × 248 mm00-origin calculator, the printed circuit board in 3D

    00-origin calculator

    nikolafilip/nibble

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

    747 parts1CERN-OHL-P-2.0
  • 2 layers189.8 × 269.8 mmAlu, the printed circuit board in 3D

    Alu

    nikolafilip/nibble

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

    379 parts1CERN-OHL-P-2.0
  • 2 layers200 × 222 mmPanel, the printed circuit board in 3D

    Panel

    nikolafilip/nibble

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

    229 parts1CERN-OHL-P-2.0
  • 2 layers100 × 100 mmReg2, the printed circuit board in 3D

    Reg2

    nikolafilip/nibble

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

    161 parts1CERN-OHL-P-2.0
  • 2 layers100 × 100 mmMemslot, the printed circuit board in 3D

    Memslot

    nikolafilip/nibble

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

    143 parts1CERN-OHL-P-2.0
  • 2 layers100 × 100 mmCoupon, the printed circuit board in 3D

    Coupon

    nikolafilip/nibble

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

    136 parts1CERN-OHL-P-2.0
  • 2 layers100 × 100 mmPanela, the printed circuit board in 3D

    Panela

    nikolafilip/nibble

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

    123 parts1CERN-OHL-P-2.0
  • 2 layers100 × 100 mmProg, the printed circuit board in 3D

    Prog

    nikolafilip/nibble

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

    121 parts1CERN-OHL-P-2.0
  • 2 layers100 × 100 mmAlu2, the printed circuit board in 3D

    Alu2

    nikolafilip/nibble

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

    116 parts1CERN-OHL-P-2.0
  • 2 layers100 × 100 mmAlu0, the printed circuit board in 3D

    Alu0

    nikolafilip/nibble

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

    112 parts1CERN-OHL-P-2.0
  • 2 layers100 × 100 mmPanelb, the printed circuit board in 3D

    Panelb

    nikolafilip/nibble

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

    111 parts1CERN-OHL-P-2.0

Similar boards

  • 2 layers203 × 26.6 mmBlade13, the printed circuit board in 3D

    Blade13

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    54 parts3.7k
  • 2 layers30 × 50 mmModuleV421, the printed circuit board in 3D

    ModuleV421

    stuartpittaway/diyBMSv4

    Version 4 of the diyBMS

    54 parts1.1k
  • 2 layers100.1 × 40 mm32Bit shift register, the printed circuit board in 3D

    32Bit shift register

    MaltWhiskey/Mega-Cube

    16x16x16 PL9823 Cube with Teensy 4.0 and FlexIO driver

    54 parts766
  • 2 layers100 × 120 mmHubble lens, the printed circuit board in 3D

    Hubble lens

    wntrblm/Castor_and_Pollux

    A Juno-inspired dual oscillator

    54 parts587
  • 2 layersPassword, the printed circuit board in 3D

    Password

    limpkin/mooltipass

    Github repository dedicated to the mooltipass project

    54 parts531
  • 2 layers104.3 × 38.9 mmHYD ISO PANEL, the printed circuit board in 3D

    HYD ISO PANEL

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    54 parts431
  • 2 layers93.8 × 64.2 mmPiFinder smt, the printed circuit board in 3D

    PiFinder smt

    brickbots/PiFinder

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

    54 parts257GPL-3.0